@studyportals/campaign-management-api-interface 0.34.1-0 → 0.34.1-1
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 +1 -1
- package/src/domain/links/create-or-update-link-response.dto.d.ts +0 -2
- package/src/domain/links/create-or-update-link-response.dto.js +1 -4
- package/src/domain/links/create-or-update-link-response.dto.js.map +1 -1
- package/src/domain/users/search-user-with-organisation.dto.d.ts +7 -0
- package/src/domain/users/search-user-with-organisation.dto.js +7 -0
- package/src/domain/users/search-user-with-organisation.dto.js.map +1 -0
- package/src/user-campaign-management-api.client.d.ts +2 -0
- package/src/user-campaign-management-api.client.js +6 -0
- package/src/user-campaign-management-api.client.js.map +1 -1
package/package.json
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateOrUpdateLinksResponse = void 0;
|
|
4
4
|
class CreateOrUpdateLinksResponse {
|
|
5
|
-
constructor(createdLinks, updatedLinks) {
|
|
6
|
-
this.createdLinks = createdLinks;
|
|
7
|
-
this.updatedLinks = updatedLinks;
|
|
8
|
-
}
|
|
5
|
+
constructor(createdLinks, updatedLinks) { }
|
|
9
6
|
}
|
|
10
7
|
exports.CreateOrUpdateLinksResponse = CreateOrUpdateLinksResponse;
|
|
11
8
|
//# sourceMappingURL=create-or-update-link-response.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-link-response.dto.js","sourceRoot":"","sources":["../../../../src/domain/links/create-or-update-link-response.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,2BAA2B;IACvC,
|
|
1
|
+
{"version":3,"file":"create-or-update-link-response.dto.js","sourceRoot":"","sources":["../../../../src/domain/links/create-or-update-link-response.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,2BAA2B;IACvC,YACC,YAAoB,EACpB,YAAoB,IACjB,CAAC;CACL;AALD,kEAKC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchUserWithOrganisationDto = void 0;
|
|
4
|
+
class SearchUserWithOrganisationDto {
|
|
5
|
+
}
|
|
6
|
+
exports.SearchUserWithOrganisationDto = SearchUserWithOrganisationDto;
|
|
7
|
+
//# sourceMappingURL=search-user-with-organisation.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-user-with-organisation.dto.js","sourceRoot":"","sources":["../../../../src/domain/users/search-user-with-organisation.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,6BAA6B;CAMzC;AAND,sEAMC"}
|
|
@@ -6,6 +6,7 @@ import { CreateClientDto } from "./domain/users/create-client.dto";
|
|
|
6
6
|
import { UpdateClientDto } from "./domain/users/update-client.dto";
|
|
7
7
|
import { UserDto } from "./domain/users/user.dto";
|
|
8
8
|
import { DeleteClientDto } from "./domain/users/delete-client.dto";
|
|
9
|
+
import { SearchUserWithOrganisationDto } from "./domain/users/search-user-with-organisation.dto";
|
|
9
10
|
export declare class UserCampaignManagementAPIClient {
|
|
10
11
|
private readonly baseUrl;
|
|
11
12
|
constructor(baseUrl: string);
|
|
@@ -15,6 +16,7 @@ export declare class UserCampaignManagementAPIClient {
|
|
|
15
16
|
deleteClient(user: DeleteClientDto, jwt?: string): Promise<void>;
|
|
16
17
|
getAllUsersWithEbpPsm(jwt?: string): Promise<GetEBPUsersDto[]>;
|
|
17
18
|
searchUsers(searchTerm: string, limit?: number, jwt?: string): Promise<SearchUserDto[]>;
|
|
19
|
+
searchClientsWithOrganisationsAttached(searchTerm: string, limit?: number, jwt?: string): Promise<SearchUserWithOrganisationDto[]>;
|
|
18
20
|
attachToOrganisation(userId: number, organisationId: number, jwt?: string): Promise<void>;
|
|
19
21
|
detachFromOrganisation(userId: number, organisationId: number, jwt?: string): Promise<void>;
|
|
20
22
|
getDetailedUsersByOrganisationID(organisationID: number, jwt?: string): Promise<DetailedUserDto[]>;
|
|
@@ -47,6 +47,12 @@ let UserCampaignManagementAPIClient = class UserCampaignManagementAPIClient {
|
|
|
47
47
|
const users = result.body;
|
|
48
48
|
return users;
|
|
49
49
|
}
|
|
50
|
+
async searchClientsWithOrganisationsAttached(searchTerm, limit, jwt = "") {
|
|
51
|
+
const path = 'users/search-clients-with-organisations-attached';
|
|
52
|
+
const result = await this.postRequest(path, { searchTerm, limit }, jwt);
|
|
53
|
+
const users = result.body;
|
|
54
|
+
return users;
|
|
55
|
+
}
|
|
50
56
|
async attachToOrganisation(userId, organisationId, jwt = "") {
|
|
51
57
|
const path = 'users/attach-user-to-organisation';
|
|
52
58
|
await this.postRequest(path, { userId, organisationId }, jwt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/user-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAuC;AACvC,yCAAyC;
|
|
1
|
+
{"version":3,"file":"user-campaign-management-api.client.js","sourceRoot":"","sources":["../../src/user-campaign-management-api.client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAuC;AACvC,yCAAyC;AAWlC,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAC3C,YACkB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAC7B,CAAC;IAEE,KAAK,CAAC,YAAY,CAAC,IAAqB,EAAE,MAAc,EAAE;QAChE,MAAM,IAAI,GAAG,qBAAqB,CAAC;QAEnC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QAEvD,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,KAAa,EAAE,MAAc,EAAE;QAC1D,MAAM,IAAI,GAA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