@wix/groups 1.0.66 → 1.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/social-groups-v2-group-member.context.js +12 -6
- package/build/cjs/src/social-groups-v2-group-member.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-member.http.d.ts +6 -7
- package/build/cjs/src/social-groups-v2-group-member.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-request.context.js +8 -4
- package/build/cjs/src/social-groups-v2-group-request.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-request.http.d.ts +4 -5
- package/build/cjs/src/social-groups-v2-group-request.http.js +30 -118
- package/build/cjs/src/social-groups-v2-group-request.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-role.context.js +4 -2
- package/build/cjs/src/social-groups-v2-group-role.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-role.http.d.ts +2 -3
- package/build/cjs/src/social-groups-v2-group-role.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-rules.context.js +4 -2
- package/build/cjs/src/social-groups-v2-group-rules.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group-rules.http.d.ts +2 -3
- package/build/cjs/src/social-groups-v2-group-rules.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group.context.js +14 -7
- package/build/cjs/src/social-groups-v2-group.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-group.http.d.ts +7 -8
- package/build/cjs/src/social-groups-v2-group.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-join-group-request.context.js +8 -4
- package/build/cjs/src/social-groups-v2-join-group-request.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-join-group-request.http.d.ts +4 -5
- package/build/cjs/src/social-groups-v2-join-group-request.http.js.map +1 -1
- package/build/cjs/src/social-groups-v2-membership-question.context.js +6 -3
- package/build/cjs/src/social-groups-v2-membership-question.context.js.map +1 -1
- package/build/cjs/src/social-groups-v2-membership-question.http.d.ts +3 -4
- package/build/cjs/src/social-groups-v2-membership-question.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group-member.context.js +12 -6
- package/build/es/src/social-groups-v2-group-member.context.js.map +1 -1
- package/build/es/src/social-groups-v2-group-member.http.d.ts +6 -7
- package/build/es/src/social-groups-v2-group-member.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.context.js +8 -4
- package/build/es/src/social-groups-v2-group-request.context.js.map +1 -1
- package/build/es/src/social-groups-v2-group-request.http.d.ts +4 -5
- package/build/es/src/social-groups-v2-group-request.http.js +30 -118
- package/build/es/src/social-groups-v2-group-request.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group-role.context.js +4 -2
- package/build/es/src/social-groups-v2-group-role.context.js.map +1 -1
- package/build/es/src/social-groups-v2-group-role.http.d.ts +2 -3
- package/build/es/src/social-groups-v2-group-role.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group-rules.context.js +4 -2
- package/build/es/src/social-groups-v2-group-rules.context.js.map +1 -1
- package/build/es/src/social-groups-v2-group-rules.http.d.ts +2 -3
- package/build/es/src/social-groups-v2-group-rules.http.js.map +1 -1
- package/build/es/src/social-groups-v2-group.context.js +14 -7
- package/build/es/src/social-groups-v2-group.context.js.map +1 -1
- package/build/es/src/social-groups-v2-group.http.d.ts +7 -8
- package/build/es/src/social-groups-v2-group.http.js.map +1 -1
- package/build/es/src/social-groups-v2-join-group-request.context.js +8 -4
- package/build/es/src/social-groups-v2-join-group-request.context.js.map +1 -1
- package/build/es/src/social-groups-v2-join-group-request.http.d.ts +4 -5
- package/build/es/src/social-groups-v2-join-group-request.http.js.map +1 -1
- package/build/es/src/social-groups-v2-membership-question.context.js +6 -3
- package/build/es/src/social-groups-v2-membership-question.context.js.map +1 -1
- package/build/es/src/social-groups-v2-membership-question.http.d.ts +3 -4
- package/build/es/src/social-groups-v2-membership-question.http.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,68 +3,74 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.queryMemberships = exports.listMemberships = exports.queryGroupMembers = exports.listGroupMembers = exports.removeGroupMembers = exports.addGroupMembers = void 0;
|
|
4
4
|
const social_groups_v2_group_member_public_1 = require("./social-groups-v2-group-member.public");
|
|
5
5
|
const addGroupMembers = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(social_groups_v2_group_member_public_1.addGroupMembers)
|
|
13
|
+
.initWixModules(social_groups_v2_group_member_public_1.addGroupMembers, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.addGroupMembers = addGroupMembers;
|
|
16
17
|
const removeGroupMembers = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(social_groups_v2_group_member_public_1.removeGroupMembers)
|
|
25
|
+
.initWixModules(social_groups_v2_group_member_public_1.removeGroupMembers, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.removeGroupMembers = removeGroupMembers;
|
|
27
29
|
const listGroupMembers = (...args) => {
|
|
30
|
+
var _a;
|
|
28
31
|
// @ts-expect-error
|
|
29
32
|
if (!globalThis.__wix_context__) {
|
|
30
33
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
31
34
|
}
|
|
32
35
|
// @ts-expect-error
|
|
33
36
|
return globalThis.__wix_context__
|
|
34
|
-
.initWixModules(social_groups_v2_group_member_public_1.listGroupMembers)
|
|
37
|
+
.initWixModules(social_groups_v2_group_member_public_1.listGroupMembers, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
35
38
|
.apply(undefined, args);
|
|
36
39
|
};
|
|
37
40
|
exports.listGroupMembers = listGroupMembers;
|
|
38
41
|
const queryGroupMembers = (...args) => {
|
|
42
|
+
var _a;
|
|
39
43
|
// @ts-expect-error
|
|
40
44
|
if (!globalThis.__wix_context__) {
|
|
41
45
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
42
46
|
}
|
|
43
47
|
// @ts-expect-error
|
|
44
48
|
return globalThis.__wix_context__
|
|
45
|
-
.initWixModules(social_groups_v2_group_member_public_1.queryGroupMembers)
|
|
49
|
+
.initWixModules(social_groups_v2_group_member_public_1.queryGroupMembers, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
46
50
|
.apply(undefined, args);
|
|
47
51
|
};
|
|
48
52
|
exports.queryGroupMembers = queryGroupMembers;
|
|
49
53
|
const listMemberships = (...args) => {
|
|
54
|
+
var _a;
|
|
50
55
|
// @ts-expect-error
|
|
51
56
|
if (!globalThis.__wix_context__) {
|
|
52
57
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
53
58
|
}
|
|
54
59
|
// @ts-expect-error
|
|
55
60
|
return globalThis.__wix_context__
|
|
56
|
-
.initWixModules(social_groups_v2_group_member_public_1.listMemberships)
|
|
61
|
+
.initWixModules(social_groups_v2_group_member_public_1.listMemberships, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
57
62
|
.apply(undefined, args);
|
|
58
63
|
};
|
|
59
64
|
exports.listMemberships = listMemberships;
|
|
60
65
|
const queryMemberships = (...args) => {
|
|
66
|
+
var _a;
|
|
61
67
|
// @ts-expect-error
|
|
62
68
|
if (!globalThis.__wix_context__) {
|
|
63
69
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
64
70
|
}
|
|
65
71
|
// @ts-expect-error
|
|
66
72
|
return globalThis.__wix_context__
|
|
67
|
-
.initWixModules(social_groups_v2_group_member_public_1.queryMemberships)
|
|
73
|
+
.initWixModules(social_groups_v2_group_member_public_1.queryMemberships, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
68
74
|
.apply(undefined, args);
|
|
69
75
|
};
|
|
70
76
|
exports.queryMemberships = queryMemberships;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-member.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-member.context.ts"],"names":[],"mappings":";;;AAAA,iGAOgD;AAGzC,MAAM,eAAe,GAExB,CAAC,GAAG,IAAS,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-member.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-member.context.ts"],"names":[],"mappings":";;;AAAA,iGAOgD;AAGzC,MAAM,eAAe,GAExB,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,sDAAqB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC1E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B;AACK,MAAM,kBAAkB,GAE3B,CAAC,GAAG,IAAS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pC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B;AACK,MAAM,eAAe,GAExB,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,sDAAqB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC1E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B;AACK,MAAM,gBAAgB,GAEzB,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,uDAAsB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC3E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { AddGroupMembersRequest, AddGroupMembersResponse, ListGroupMembersRequest, ListGroupMembersResponse, ListMembershipsRequest, ListMembershipsResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryMembershipsRequest, QueryMembershipsResponse, RemoveGroupMembersRequest, RemoveGroupMembersResponse, AddGroupMembersResponseNonNullableFields, ListGroupMembersResponseNonNullableFields, QueryGroupMembersResponseNonNullableFields, ListMembershipsResponseNonNullableFields, QueryMembershipsResponseNonNullableFields } from './social-groups-v2-group-member.types';
|
|
3
2
|
/**
|
|
4
3
|
* Adds site members to a group.
|
|
5
4
|
*
|
|
@@ -15,7 +14,7 @@ import { AddGroupMembersRequest, AddGroupMembersResponse, ListGroupMembersReques
|
|
|
15
14
|
* <!-- > **Note:** If the `suppressAuth` option is set to `true`, all permissions are overwritten and all site members (including non-group members) can add additional members to a group. -->
|
|
16
15
|
*
|
|
17
16
|
*/
|
|
18
|
-
export declare function addGroupMembers(payload:
|
|
17
|
+
export declare function addGroupMembers(payload: object): RequestOptionsFactory<any>;
|
|
19
18
|
/**
|
|
20
19
|
* Removes members from a group.
|
|
21
20
|
*
|
|
@@ -25,7 +24,7 @@ export declare function addGroupMembers(payload: AddGroupMembersRequest): Reques
|
|
|
25
24
|
* > **Note:** Only site admins and group admins can remove members from their group. <!-- However, if the `suppressAuth` option is set to `true`, all permissions are overwritten and all site members (including non-group members) can remove members from a group. -->
|
|
26
25
|
*
|
|
27
26
|
*/
|
|
28
|
-
export declare function removeGroupMembers(payload:
|
|
27
|
+
export declare function removeGroupMembers(payload: object): RequestOptionsFactory<any>;
|
|
29
28
|
/**
|
|
30
29
|
* Lists all members of a group.
|
|
31
30
|
*
|
|
@@ -37,7 +36,7 @@ export declare function removeGroupMembers(payload: RemoveGroupMembersRequest):
|
|
|
37
36
|
* <!-- > + This function's parameters are positional, and must be specified in the sequence shown in the syntax below. When specifying a parameter, use `null` as a placeholder for any unspecified parameters. For example, to specify `limit` only, call `listGroupMembers(groupId, paging, null)`. To specify `supressAuth` only, call `listGroupMembers(groupId, null, options)`. -->
|
|
38
37
|
*
|
|
39
38
|
*/
|
|
40
|
-
export declare function listGroupMembers(payload:
|
|
39
|
+
export declare function listGroupMembers(payload: object): RequestOptionsFactory<any>;
|
|
41
40
|
/**
|
|
42
41
|
* Retrieves a list of up to 100 group members, given the provided paging, sorting and filtering.
|
|
43
42
|
*
|
|
@@ -65,7 +64,7 @@ export declare function listGroupMembers(payload: ListGroupMembersRequest): Requ
|
|
|
65
64
|
*
|
|
66
65
|
*
|
|
67
66
|
*/
|
|
68
|
-
export declare function queryGroupMembers(payload:
|
|
67
|
+
export declare function queryGroupMembers(payload: object): RequestOptionsFactory<any>;
|
|
69
68
|
/**
|
|
70
69
|
* Lists all group memberships of a site member.
|
|
71
70
|
*
|
|
@@ -77,7 +76,7 @@ export declare function queryGroupMembers(payload: QueryGroupMembersRequest): Re
|
|
|
77
76
|
* <!-- > + This function's parameters are positional, and must be specified in the sequence shown in the syntax below. When specifying a parameter, use `null` as a placeholder for any unspecified parameters. For example, to specify `limit` only, call `listMemberships(memberId, paging, null)`. To specify `supressAuth` only, call `listMemberships(memberId, null, options)`. -->
|
|
78
77
|
*
|
|
79
78
|
*/
|
|
80
|
-
export declare function listMemberships(payload:
|
|
79
|
+
export declare function listMemberships(payload: object): RequestOptionsFactory<any>;
|
|
81
80
|
/**
|
|
82
81
|
* Retrieves a list of up to 100 members and their membership status, given the provided paging and filtering.
|
|
83
82
|
*
|
|
@@ -91,4 +90,4 @@ export declare function listMemberships(payload: ListMembershipsRequest): Reques
|
|
|
91
90
|
* | `role` | [`eq()`](#membershipsquerybuilder/eq), [`ne()`](#membershipsquerybuilder/ne) |
|
|
92
91
|
*
|
|
93
92
|
*/
|
|
94
|
-
export declare function queryMemberships(payload:
|
|
93
|
+
export declare function queryMemberships(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-member.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-member.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-member.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-member.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;AAIhD,SAAS,iDAAiD,CACxD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,yBAAyB,EAAE;YACzB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,kCAAkC;gBAC3C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBAC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ACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;iBACxC;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AA1BD,8CA0BC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,mCAAmC;YAC/C,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,8DAA8D;YACzE,GAAG,EAAE,iDAAiD,CAAC;gBACrD,SAAS,EAAE,oCAAoC;gBAC/C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,iCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAlBD,0CAkBC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAAC,OAAe;IAC9C,SAAS,kBAAkB,CAAC,EAAE,IAAI,EAAO;QACvC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,mCAAmC;YAC/C,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,+DAA+D;YACjE,GAAG,EAAE,iDAAiD,CAAC;gBACrD,SAAS,EAAE,0CAA0C;gBACrD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAnBD,4CAmBC"}
|
|
@@ -3,46 +3,50 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.queryGroupRequests = exports.listGroupRequests = exports.rejectGroupRequests = exports.approveGroupRequests = void 0;
|
|
4
4
|
const social_groups_v2_group_request_public_1 = require("./social-groups-v2-group-request.public");
|
|
5
5
|
const approveGroupRequests = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(social_groups_v2_group_request_public_1.approveGroupRequests)
|
|
13
|
+
.initWixModules(social_groups_v2_group_request_public_1.approveGroupRequests, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.approveGroupRequests = approveGroupRequests;
|
|
16
17
|
const rejectGroupRequests = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(social_groups_v2_group_request_public_1.rejectGroupRequests)
|
|
25
|
+
.initWixModules(social_groups_v2_group_request_public_1.rejectGroupRequests, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.rejectGroupRequests = rejectGroupRequests;
|
|
27
29
|
const listGroupRequests = (...args) => {
|
|
30
|
+
var _a;
|
|
28
31
|
// @ts-expect-error
|
|
29
32
|
if (!globalThis.__wix_context__) {
|
|
30
33
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
31
34
|
}
|
|
32
35
|
// @ts-expect-error
|
|
33
36
|
return globalThis.__wix_context__
|
|
34
|
-
.initWixModules(social_groups_v2_group_request_public_1.listGroupRequests)
|
|
37
|
+
.initWixModules(social_groups_v2_group_request_public_1.listGroupRequests, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
35
38
|
.apply(undefined, args);
|
|
36
39
|
};
|
|
37
40
|
exports.listGroupRequests = listGroupRequests;
|
|
38
41
|
const queryGroupRequests = (...args) => {
|
|
42
|
+
var _a;
|
|
39
43
|
// @ts-expect-error
|
|
40
44
|
if (!globalThis.__wix_context__) {
|
|
41
45
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
42
46
|
}
|
|
43
47
|
// @ts-expect-error
|
|
44
48
|
return globalThis.__wix_context__
|
|
45
|
-
.initWixModules(social_groups_v2_group_request_public_1.queryGroupRequests)
|
|
49
|
+
.initWixModules(social_groups_v2_group_request_public_1.queryGroupRequests, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
46
50
|
.apply(undefined, args);
|
|
47
51
|
};
|
|
48
52
|
exports.queryGroupRequests = queryGroupRequests;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-request.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-request.context.ts"],"names":[],"mappings":";;;AAAA,mGAKiD;AAG1C,MAAM,oBAAoB,GAE7B,CAAC,GAAG,IAAS,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-request.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-request.context.ts"],"names":[],"mappings":";;;AAAA,mGAKiD;AAG1C,MAAM,oBAAoB,GAE7B,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,c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,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CACb,0DAAwB,EACxB,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAhBW,QAAA,kBAAkB,sBAgB7B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { ApproveGroupRequestsRequest, ApproveGroupRequestsResponse, ListGroupRequestsRequest, ListGroupRequestsResponse, QueryGroupRequestsRequest, QueryGroupRequestsResponse, RejectGroupRequestsRequest, RejectGroupRequestsResponse, ApproveGroupRequestsResponseNonNullableFields, RejectGroupRequestsResponseNonNullableFields, ListGroupRequestsResponseNonNullableFields, QueryGroupRequestsResponseNonNullableFields } from './social-groups-v2-group-request.types';
|
|
3
2
|
/**
|
|
4
3
|
* Approves requests to create a group.
|
|
5
4
|
*
|
|
@@ -7,7 +6,7 @@ import { ApproveGroupRequestsRequest, ApproveGroupRequestsResponse, ListGroupReq
|
|
|
7
6
|
*
|
|
8
7
|
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
9
8
|
*/
|
|
10
|
-
export declare function approveGroupRequests(payload:
|
|
9
|
+
export declare function approveGroupRequests(payload: object): RequestOptionsFactory<any>;
|
|
11
10
|
/**
|
|
12
11
|
* Rejects a request to create a group.
|
|
13
12
|
*
|
|
@@ -15,7 +14,7 @@ export declare function approveGroupRequests(payload: ApproveGroupRequestsReques
|
|
|
15
14
|
*
|
|
16
15
|
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
17
16
|
*/
|
|
18
|
-
export declare function rejectGroupRequests(payload:
|
|
17
|
+
export declare function rejectGroupRequests(payload: object): RequestOptionsFactory<any>;
|
|
19
18
|
/**
|
|
20
19
|
* Lists requests to create a group.
|
|
21
20
|
*
|
|
@@ -28,7 +27,7 @@ export declare function rejectGroupRequests(payload: RejectGroupRequestsRequest)
|
|
|
28
27
|
* >**Note:** This function is only relevant if admin approval is required for creating a group.
|
|
29
28
|
*
|
|
30
29
|
*/
|
|
31
|
-
export declare function listGroupRequests(payload:
|
|
30
|
+
export declare function listGroupRequests(payload: object): RequestOptionsFactory<any>;
|
|
32
31
|
/**
|
|
33
32
|
* Creates a query to retrieve a list of create requests.
|
|
34
33
|
*
|
|
@@ -42,4 +41,4 @@ export declare function listGroupRequests(payload: ListGroupRequestsRequest): Re
|
|
|
42
41
|
*
|
|
43
42
|
* The following `GroupRequestsQueryBuilder` functions are supported for `queryGroupRequests()`. For a full description of the `GroupRequests` object, see the object returned for the [`items`](#grouprequestsqueryresult/items) property in [`GroupRequestsQueryResult`](#grouprequestsqueryresult).
|
|
44
43
|
*/
|
|
45
|
-
export declare function queryGroupRequests(payload:
|
|
44
|
+
export declare function queryGroupRequests(payload: object): RequestOptionsFactory<any>;
|
|
@@ -8,164 +8,76 @@ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-pa
|
|
|
8
8
|
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
9
9
|
function resolveWixSocialGroupsApiV2GroupRequestsServiceUrl(opts) {
|
|
10
10
|
const domainToMappings = {
|
|
11
|
-
'
|
|
11
|
+
'*.dev.wix-code.com': [
|
|
12
12
|
{
|
|
13
|
-
srcPath: '/social-groups-
|
|
13
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
14
14
|
destPath: '',
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
17
|
_: [
|
|
18
18
|
{
|
|
19
|
-
srcPath: '/_api/social-groups/
|
|
20
|
-
destPath: '
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
srcPath: '/_api/social-groups/v2',
|
|
24
|
-
destPath: '/v2',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
srcPath: '/_api/social-groups/api/v1',
|
|
28
|
-
destPath: '/api/v1',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
'groups.wixapps.net': [
|
|
32
|
-
{
|
|
33
|
-
srcPath: '/social-groups/api',
|
|
34
|
-
destPath: '/api',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
srcPath: '/_api/social-groups/v2',
|
|
38
|
-
destPath: '/v2',
|
|
19
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
20
|
+
destPath: '',
|
|
39
21
|
},
|
|
40
22
|
],
|
|
41
|
-
'
|
|
42
|
-
{
|
|
43
|
-
srcPath: '/social-groups/api',
|
|
44
|
-
destPath: '/api',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
srcPath: '/_api/social-groups/v2',
|
|
48
|
-
destPath: '/v2',
|
|
49
|
-
},
|
|
23
|
+
'editor-flow.wixapps.net': [
|
|
50
24
|
{
|
|
51
|
-
srcPath: '/_api/social-groups/
|
|
52
|
-
destPath: '
|
|
25
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
26
|
+
destPath: '',
|
|
53
27
|
},
|
|
54
28
|
],
|
|
55
29
|
'editor._base_domain_': [
|
|
56
30
|
{
|
|
57
|
-
srcPath: '/_api/social-groups-
|
|
58
|
-
destPath: '
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
srcPath: '/_api/social-groups/v2',
|
|
62
|
-
destPath: '/v2',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
srcPath: '/_api/social-groups/api/v1',
|
|
66
|
-
destPath: '/api/v1',
|
|
31
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
32
|
+
destPath: '',
|
|
67
33
|
},
|
|
68
34
|
],
|
|
69
35
|
'blocks._base_domain_': [
|
|
70
36
|
{
|
|
71
|
-
srcPath: '/_api/social-groups-
|
|
72
|
-
destPath: '
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
srcPath: '/_api/social-groups/v2',
|
|
76
|
-
destPath: '/v2',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
srcPath: '/_api/social-groups/api/v1',
|
|
80
|
-
destPath: '/api/v1',
|
|
37
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
38
|
+
destPath: '',
|
|
81
39
|
},
|
|
82
40
|
],
|
|
83
41
|
'create.editorx': [
|
|
84
42
|
{
|
|
85
|
-
srcPath: '/_api/social-groups-
|
|
86
|
-
destPath: '
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
srcPath: '/_api/social-groups/v2',
|
|
90
|
-
destPath: '/v2',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
srcPath: '/_api/social-groups/api/v1',
|
|
94
|
-
destPath: '/api/v1',
|
|
43
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
44
|
+
destPath: '',
|
|
95
45
|
},
|
|
96
46
|
],
|
|
97
|
-
'
|
|
98
|
-
{
|
|
99
|
-
srcPath: '/_api/social-groups/v1',
|
|
100
|
-
destPath: '/api/v1',
|
|
101
|
-
},
|
|
47
|
+
'editor.wixapps.net': [
|
|
102
48
|
{
|
|
103
|
-
srcPath: '/_api/social-groups/
|
|
104
|
-
destPath: '
|
|
49
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
50
|
+
destPath: '',
|
|
105
51
|
},
|
|
52
|
+
],
|
|
53
|
+
'groups.wixapps.net': [
|
|
106
54
|
{
|
|
107
|
-
srcPath: '/_api/social-groups/
|
|
108
|
-
destPath: '
|
|
55
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
56
|
+
destPath: '',
|
|
109
57
|
},
|
|
110
58
|
],
|
|
111
59
|
'manage._base_domain_': [
|
|
112
60
|
{
|
|
113
|
-
srcPath: '/social-groups/
|
|
114
|
-
destPath: '
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
srcPath: '/_api/social-groups',
|
|
118
|
-
destPath: '/api',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
srcPath: '/_api/social-groups/v2',
|
|
122
|
-
destPath: '/v2',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
srcPath: '/_api/social-groups/api/v1',
|
|
126
|
-
destPath: '/api/v1',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
srcPath: '/social-groups/api/v1',
|
|
130
|
-
destPath: '/api/v1',
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
srcPath: '/social-groups/api/v2',
|
|
134
|
-
destPath: '/v2',
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
srcPath: '/_api/social-groups/v1',
|
|
138
|
-
destPath: '/api/v1',
|
|
61
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
62
|
+
destPath: '',
|
|
139
63
|
},
|
|
140
64
|
],
|
|
141
|
-
'
|
|
65
|
+
'www._base_domain_': [
|
|
142
66
|
{
|
|
143
|
-
srcPath: '/_api/social-groups/
|
|
144
|
-
destPath: '
|
|
67
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
68
|
+
destPath: '',
|
|
145
69
|
},
|
|
146
70
|
],
|
|
147
71
|
'www.wixapis.com': [
|
|
148
72
|
{
|
|
149
|
-
srcPath: '/social-groups/
|
|
150
|
-
destPath: '
|
|
73
|
+
srcPath: '/_api/social-groups-proxy/group-requests',
|
|
74
|
+
destPath: '',
|
|
151
75
|
},
|
|
152
76
|
],
|
|
153
|
-
'
|
|
154
|
-
{
|
|
155
|
-
srcPath: '/_api/social-groups/v2',
|
|
156
|
-
destPath: '/v2',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
srcPath: '/_api/social-groups/v1',
|
|
160
|
-
destPath: '/api/v1',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
srcPath: '/social-groups/api/v1',
|
|
164
|
-
destPath: '/api/v1',
|
|
165
|
-
},
|
|
77
|
+
'api._api_base_domain_': [
|
|
166
78
|
{
|
|
167
|
-
srcPath: '/
|
|
168
|
-
destPath: '
|
|
79
|
+
srcPath: '/group-requests-proxy',
|
|
80
|
+
destPath: '',
|
|
169
81
|
},
|
|
170
82
|
],
|
|
171
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-request.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-request.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-request.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-request.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,sDAAgD;AAIhD,SAAS,kDAAkD,CACzD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,yBAAyB,EAAE;YACzB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EA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EAAE,2CAA2C,EAAE;wBACrD,EAAE,IAAI,EAAE,iDAAiD,EAAE;wBAC3D,EAAE,IAAI,EAAE,iDAAiD,EAAE;qBAC5D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AA9CD,gDA8CC"}
|
|
@@ -3,24 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.unassignRole = exports.assignRole = void 0;
|
|
4
4
|
const social_groups_v2_group_role_public_1 = require("./social-groups-v2-group-role.public");
|
|
5
5
|
const assignRole = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(social_groups_v2_group_role_public_1.assignRole)
|
|
13
|
+
.initWixModules(social_groups_v2_group_role_public_1.assignRole, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.assignRole = assignRole;
|
|
16
17
|
const unassignRole = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(social_groups_v2_group_role_public_1.unassignRole)
|
|
25
|
+
.initWixModules(social_groups_v2_group_role_public_1.unassignRole, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.unassignRole = unassignRole;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-role.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-role.context.ts"],"names":[],"mappings":";;;AAAA,6FAG8C;AAGvC,MAAM,UAAU,GAA+C,CACpE,GAAG,IAAS,EACZ,EAAE
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-role.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-role.context.ts"],"names":[],"mappings":";;;AAAA,6FAG8C;AAGvC,MAAM,UAAU,GAA+C,CACpE,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,+CAAgB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACrE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AACK,MAAM,YAAY,GAAiD,CACxE,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,iDAAkB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACvE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,YAAY,gBAavB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { AssignRoleRequest, AssignRoleResponse, UnassignRoleRequest, UnassignRoleResponse, AssignRoleResponseNonNullableFields, UnassignRoleResponseNonNullableFields } from './social-groups-v2-group-role.types';
|
|
3
2
|
/**
|
|
4
3
|
* Assigns a specific role to group members.
|
|
5
4
|
*
|
|
@@ -8,7 +7,7 @@ import { AssignRoleRequest, AssignRoleResponse, UnassignRoleRequest, UnassignRol
|
|
|
8
7
|
*
|
|
9
8
|
* The `assignRole()` function returns a Promise that resolves to the newly-assigned role after it has successfully been assigned. Assigning a role overrides an existing role. For example, assigning a member role to an admin unassigned their admin role.
|
|
10
9
|
*/
|
|
11
|
-
export declare function assignRole(payload:
|
|
10
|
+
export declare function assignRole(payload: object): RequestOptionsFactory<any>;
|
|
12
11
|
/**
|
|
13
12
|
* Unassigns a role from group members.
|
|
14
13
|
*
|
|
@@ -16,4 +15,4 @@ export declare function assignRole(payload: AssignRoleRequest): RequestOptionsFa
|
|
|
16
15
|
*
|
|
17
16
|
* The `unassignRole()` function returns a Promise that resolves to the unassigned role after it has successfully been unassigned. This function only applies to admin roles. Using this function with member roles returns an error.
|
|
18
17
|
*/
|
|
19
|
-
export declare function unassignRole(payload:
|
|
18
|
+
export declare function unassignRole(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-role.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-role.http.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-role.http.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-role.http.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAIhD,SAAS,+CAA+C,CACtD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,E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gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,UAAU,CAAC,OAAe;IACxC,SAAS,YAAY,CAAC,EAAE,IAAI,EAAO;QACjC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,iCAAiC;YAC7C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,uDAAuD;YAClE,GAAG,EAAE,+CAA+C,CAAC;gBACnD,SAAS,EAAE,mCAAmC;gBAC9C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAlBD,gCAkBC;AAED;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,OAAe;IAC1C,SAAS,cAAc,CAAC,EAAE,IAAI,EAAO;QACnC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,iCAAiC;YAC7C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,yDAAyD;YACpE,GAAG,EAAE,+CAA+C,CAAC;gBACnD,SAAS,EAAE,qCAAqC;gBAChD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAlBD,oCAkBC"}
|
|
@@ -3,24 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createOrReplaceAllRules = exports.listRules = void 0;
|
|
4
4
|
const social_groups_v2_group_rules_public_1 = require("./social-groups-v2-group-rules.public");
|
|
5
5
|
const listRules = (...args) => {
|
|
6
|
+
var _a;
|
|
6
7
|
// @ts-expect-error
|
|
7
8
|
if (!globalThis.__wix_context__) {
|
|
8
9
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
9
10
|
}
|
|
10
11
|
// @ts-expect-error
|
|
11
12
|
return globalThis.__wix_context__
|
|
12
|
-
.initWixModules(social_groups_v2_group_rules_public_1.listRules)
|
|
13
|
+
.initWixModules(social_groups_v2_group_rules_public_1.listRules, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
13
14
|
.apply(undefined, args);
|
|
14
15
|
};
|
|
15
16
|
exports.listRules = listRules;
|
|
16
17
|
const createOrReplaceAllRules = (...args) => {
|
|
18
|
+
var _a;
|
|
17
19
|
// @ts-expect-error
|
|
18
20
|
if (!globalThis.__wix_context__) {
|
|
19
21
|
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
20
22
|
}
|
|
21
23
|
// @ts-expect-error
|
|
22
24
|
return globalThis.__wix_context__
|
|
23
|
-
.initWixModules(social_groups_v2_group_rules_public_1.createOrReplaceAllRules)
|
|
25
|
+
.initWixModules(social_groups_v2_group_rules_public_1.createOrReplaceAllRules, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
24
26
|
.apply(undefined, args);
|
|
25
27
|
};
|
|
26
28
|
exports.createOrReplaceAllRules = createOrReplaceAllRules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social-groups-v2-group-rules.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-rules.context.ts"],"names":[],"mappings":";;;AAAA,+FAG+C;AAGxC,MAAM,SAAS,GAA8C,CAClE,GAAG,IAAS,EACZ,EAAE
|
|
1
|
+
{"version":3,"file":"social-groups-v2-group-rules.context.js","sourceRoot":"","sources":["../../../src/social-groups-v2-group-rules.context.ts"],"names":[],"mappings":";;;AAAA,+FAG+C;AAGxC,MAAM,SAAS,GAA8C,CAClE,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,+CAAe,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACpE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB;AACK,MAAM,uBAAuB,GAEhC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CACb,6DAA6B,EAC7B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAhBW,QAAA,uBAAuB,2BAgBlC"}
|