@wireapp/api-client 22.6.1 → 22.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,10 +16,10 @@ export declare class MemberAPI {
|
|
|
16
16
|
postMembers(teamId: string, member: MemberData): Promise<void>;
|
|
17
17
|
putMembers(teamId: string, member: UpdatedMemberData): Promise<void>;
|
|
18
18
|
/**
|
|
19
|
-
* This endpoint returns all members of the a team unless it's a large team (>2000 team
|
|
19
|
+
* This endpoint returns all members of the a team unless it's a large team (>2000 team members).
|
|
20
20
|
* If the queried team is a large team the `hasMore` flag will switch to `true`.
|
|
21
21
|
*/
|
|
22
|
-
getAllMembers(teamId: string): Promise<Members>;
|
|
22
|
+
getAllMembers(teamId: string, maxResults?: number, pagingState?: string): Promise<Members>;
|
|
23
23
|
getMembers(teamId: string, parameters: {
|
|
24
24
|
ids: string[];
|
|
25
25
|
}, limit?: number): Promise<MemberData[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberAPI.d.ts","sourceRoot":"","sources":["../../../src/team/member/MemberAPI.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAGL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AAG/C,qBAAa,SAAS;IAGR,OAAO,CAAC,QAAQ,CAAC,MAAM;IADnC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,0BAA0B,CAAQ;gBAC7B,MAAM,EAAE,UAAU;IAE/C,gBAAuB,GAAG;;;;MAIxB;IAEW,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAU9D,Y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M,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAYjF;;;OAGG;IACU,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,SAAO,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAcxF,UAAU,CACrB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE;QAAC,GAAG,EAAE,MAAM,EAAE,CAAA;KAAC,EAC3B,KAAK,SAAuC,GAC3C,OAAO,CAAC,UAAU,EAAE,CAAC;YAkBV,WAAW;IAWZ,gBAAgB,CAC3B,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,gBAAgB,GAClC,OAAO,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CA8BjD"}
|
|
@@ -70,13 +70,17 @@ class MemberAPI {
|
|
|
70
70
|
await this.client.sendJSON(config);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
* This endpoint returns all members of the a team unless it's a large team (>2000 team
|
|
73
|
+
* This endpoint returns all members of the a team unless it's a large team (>2000 team members).
|
|
74
74
|
* If the queried team is a large team the `hasMore` flag will switch to `true`.
|
|
75
75
|
*/
|
|
76
|
-
async getAllMembers(teamId) {
|
|
76
|
+
async getAllMembers(teamId, maxResults = 2000, pagingState) {
|
|
77
77
|
const config = {
|
|
78
78
|
method: 'get',
|
|
79
79
|
url: `${TeamAPI_1.TeamAPI.URL.TEAMS}/${teamId}/${MemberAPI.URL.MEMBERS}`,
|
|
80
|
+
params: {
|
|
81
|
+
maxResults: maxResults,
|
|
82
|
+
pagingState: pagingState,
|
|
83
|
+
},
|
|
80
84
|
};
|
|
81
85
|
const response = await this.client.sendJSON(config);
|
|
82
86
|
return response.data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Members.d.ts","sourceRoot":"","sources":["../../../src/team/member/Members.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Members.d.ts","sourceRoot":"","sources":["../../../src/team/member/Members.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/package.json
CHANGED