@studyportals/campaign-management-api-interface 0.34.1-1 → 0.35.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.
- package/package.json +1 -1
- package/src/domain/links/create-link.dto.d.ts +1 -1
- package/src/domain/links/create-or-update-link-response.dto.d.ts +2 -0
- package/src/domain/links/create-or-update-link-response.dto.js +4 -1
- package/src/domain/links/create-or-update-link-response.dto.js.map +1 -1
- package/src/domain/links/update-link.dto.d.ts +1 -1
- package/src/user-campaign-management-api.client.d.ts +0 -2
- package/src/user-campaign-management-api.client.js +0 -6
- package/src/user-campaign-management-api.client.js.map +1 -1
- package/src/domain/users/search-user-with-organisation.dto.d.ts +0 -7
- package/src/domain/users/search-user-with-organisation.dto.js +0 -7
- package/src/domain/users/search-user-with-organisation.dto.js.map +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateOrUpdateLinksResponse = void 0;
|
|
4
4
|
class CreateOrUpdateLinksResponse {
|
|
5
|
-
constructor(createdLinks, updatedLinks) {
|
|
5
|
+
constructor(createdLinks, updatedLinks) {
|
|
6
|
+
this.createdLinks = createdLinks;
|
|
7
|
+
this.updatedLinks = updatedLinks;
|
|
8
|
+
}
|
|
6
9
|
}
|
|
7
10
|
exports.CreateOrUpdateLinksResponse = CreateOrUpdateLinksResponse;
|
|
8
11
|
//# 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,YACQ,YAAoB,EACpB,YAAoB;QADpB,iBAAY,GAAZ,YAAY,CAAQ;QACpB,iBAAY,GAAZ,YAAY,CAAQ;IACxB,CAAC;CACL;AALD,kEAKC"}
|
|
@@ -6,7 +6,6 @@ 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";
|
|
10
9
|
export declare class UserCampaignManagementAPIClient {
|
|
11
10
|
private readonly baseUrl;
|
|
12
11
|
constructor(baseUrl: string);
|
|
@@ -16,7 +15,6 @@ export declare class UserCampaignManagementAPIClient {
|
|
|
16
15
|
deleteClient(user: DeleteClientDto, jwt?: string): Promise<void>;
|
|
17
16
|
getAllUsersWithEbpPsm(jwt?: string): Promise<GetEBPUsersDto[]>;
|
|
18
17
|
searchUsers(searchTerm: string, limit?: number, jwt?: string): Promise<SearchUserDto[]>;
|
|
19
|
-
searchClientsWithOrganisationsAttached(searchTerm: string, limit?: number, jwt?: string): Promise<SearchUserWithOrganisationDto[]>;
|
|
20
18
|
attachToOrganisation(userId: number, organisationId: number, jwt?: string): Promise<void>;
|
|
21
19
|
detachFromOrganisation(userId: number, organisationId: number, jwt?: string): Promise<void>;
|
|
22
20
|
getDetailedUsersByOrganisationID(organisationID: number, jwt?: string): Promise<DetailedUserDto[]>;
|
|
@@ -47,12 +47,6 @@ 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
|
-
}
|
|
56
50
|
async attachToOrganisation(userId, organisationId, jwt = "") {
|
|
57
51
|
const path = 'users/attach-user-to-organisation';
|
|
58
52
|
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;AAUlC,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,GAAG,iCAAiC,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;QAE1E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAEhD,OAAO,MAAM,CAAC,IAAe,CAAC;IAC/B,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,IAAqB,EAAE,MAAc,EAAE;QAChE,MAAM,IAAI,GAAG,qBAAqB,CAAC;QAEnC,MAAM,IAAI,CAAC,UAAU,CAAC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GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;aACtD,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC;aACvC,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC;aACzB,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEO,YAAY,CAAC,QAAgB;QACpC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,EAAE,CAAC;IACtC,CAAC;CACD,CAAA;AArGY,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;;GACA,+BAA+B,CAqG3C;AArGY,0EAA+B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|