attlaz-client 1.38.0 → 1.38.2
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
2
|
+
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
2
3
|
import { WorkspaceMember } from '../Model/Workspace/WorkspaceMember.js';
|
|
3
4
|
import { WorkspaceMemberInvite } from '../Model/Workspace/WorkspaceMemberInvite.js';
|
|
4
5
|
import { WorkspaceMemberInvite2 } from '../Model/Workspace/WorkspaceMemberInvite2.js';
|
|
5
|
-
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
6
|
-
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
7
6
|
import { WorkspaceMemberRole } from '../Model/Workspace/WorkspaceMemberRole.js';
|
|
7
|
+
import { Endpoint } from './Endpoint.js';
|
|
8
8
|
export declare class WorkspaceMemberEndpoint extends Endpoint {
|
|
9
9
|
getByWorkspace(workspaceId: string, pagination?: CursorPagination | null): Promise<CollectionResult<WorkspaceMember>>;
|
|
10
10
|
invite(workspaceId: string, invites: WorkspaceMemberInvite[]): Promise<boolean>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QueryString } from '../Http/Data/QueryString.js';
|
|
2
2
|
import { WorkspaceMember } from '../Model/Workspace/WorkspaceMember.js';
|
|
3
3
|
import { WorkspaceMemberInvite2 } from '../Model/Workspace/WorkspaceMemberInvite2.js';
|
|
4
|
-
import { QueryString } from '../Http/Data/QueryString.js';
|
|
5
4
|
import { WorkspaceMemberRole } from '../Model/Workspace/WorkspaceMemberRole.js';
|
|
5
|
+
import { Endpoint } from './Endpoint.js';
|
|
6
6
|
export class WorkspaceMemberEndpoint extends Endpoint {
|
|
7
7
|
async getByWorkspace(workspaceId, pagination = null) {
|
|
8
8
|
const queryString = new QueryString('workspaces/' + workspaceId + '/members');
|
|
@@ -18,6 +18,7 @@ export class WorkspaceMemberEndpoint extends Endpoint {
|
|
|
18
18
|
}
|
|
19
19
|
try {
|
|
20
20
|
const parser = (raw) => raw;
|
|
21
|
+
// The result is actually a collection with shape {email:string;invited:boolean}[]
|
|
21
22
|
const result = await this.requestObject(cmd, { invites: rawInvites }, parser, 'POST');
|
|
22
23
|
const re = result.getData();
|
|
23
24
|
if (re === null) {
|
|
@@ -38,7 +39,8 @@ export class WorkspaceMemberEndpoint extends Endpoint {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
async getWorkspaceInviteByCode(inviteCode) {
|
|
41
|
-
const cmd = '/workspaces/invites
|
|
42
|
+
const cmd = new QueryString('/workspaces/invites');
|
|
43
|
+
cmd.set('inviteCode', inviteCode);
|
|
42
44
|
const rawInvite = await this.requestObject(cmd, null, WorkspaceMemberInvite2.parse, 'GET', false);
|
|
43
45
|
if (rawInvite !== null) {
|
|
44
46
|
return rawInvite.getData();
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.38.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.38.1";
|