@ampsec/platform-client 27.4.1 → 28.0.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.
|
@@ -4,8 +4,10 @@ export type SaasUserUpsertDto = ChangeAwareUpsertDto & {
|
|
|
4
4
|
uid: string;
|
|
5
5
|
/** Connector Id */
|
|
6
6
|
cid: string;
|
|
7
|
-
/** External
|
|
7
|
+
/** External email */
|
|
8
8
|
email: string;
|
|
9
|
+
/** External Id */
|
|
10
|
+
extId: string;
|
|
9
11
|
/** Additional information specific to this Saas User */
|
|
10
12
|
meta: unknown;
|
|
11
13
|
};
|
|
@@ -33,7 +33,7 @@ class EngageApi {
|
|
|
33
33
|
this.findings = new data_service_1.AmpPatchDataServiceImpl(rest, constants_1.KIND.FINDINGS, constants_1.TARGET_API_ENGAGE);
|
|
34
34
|
this.identity = new UserIdentityService_1.UserIdentityService(rest);
|
|
35
35
|
this.notifications = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.NOTIFICATIONS, constants_1.TARGET_API_ENGAGE); // TODO: add /eng endpoint
|
|
36
|
-
this.providers = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.PROVIDERS, constants_1.
|
|
36
|
+
this.providers = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.PROVIDERS, constants_1.TARGET_API_AGENT);
|
|
37
37
|
this.reports = new reports_service_1.AmpReportServiceImpl(rest);
|
|
38
38
|
this.settings = new settings_service_1.AmpSettingsService(rest); // TODO: add /eng endpoint
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngageApi.js","sourceRoot":"","sources":["../../../src/services/EngageApi.ts"],"names":[],"mappings":";;;AACA,qDAAsD;AACtD,iDAAgH;AAChH,iCAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"EngageApi.js","sourceRoot":"","sources":["../../../src/services/EngageApi.ts"],"names":[],"mappings":";;;AACA,qDAAsD;AACtD,iDAAgH;AACh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/** External email */
|
|
9
9
|
email: string;
|
|
10
|
+
/** External Id */
|
|
11
|
+
extId: string;
|
|
10
12
|
/** Additional information specific to this Saas User */
|
|
11
13
|
meta: unknown;
|
|
12
14
|
};
|
|
@@ -2,7 +2,7 @@ import {ConnectorDto, ConnectorUpsertDto, FindingDto, FindingsStatusPathDto as F
|
|
|
2
2
|
import {AmpEntityServiceImpl} from './entity.service';
|
|
3
3
|
import {AmpDataService, AmpDataServiceImpl, AmpPatchDataService, AmpPatchDataServiceImpl} from './data.service';
|
|
4
4
|
import {AmpRestClientOptions, RestClient, getAmpRestClient} from './rest';
|
|
5
|
-
import {KIND, TARGET_API_ENGAGE} from './constants';
|
|
5
|
+
import {KIND, TARGET_API_AGENT, TARGET_API_ENGAGE} from './constants';
|
|
6
6
|
import {AmpReportService, AmpReportServiceImpl} from './reports.service';
|
|
7
7
|
import {AmpSettingsService} from './settings.service';
|
|
8
8
|
import {UserIdentityService} from './rest/UserIdentityService';
|
|
@@ -42,7 +42,7 @@ export class EngageApi {
|
|
|
42
42
|
this.findings = new AmpPatchDataServiceImpl<FindingsStatusPatchDto, FindingDto>(rest, KIND.FINDINGS, TARGET_API_ENGAGE);
|
|
43
43
|
this.identity = new UserIdentityService(rest);
|
|
44
44
|
this.notifications = new AmpDataServiceImpl<NotificationDto>(rest, KIND.NOTIFICATIONS, TARGET_API_ENGAGE); // TODO: add /eng endpoint
|
|
45
|
-
this.providers = new AmpDataServiceImpl<ProviderDto>(rest, KIND.PROVIDERS,
|
|
45
|
+
this.providers = new AmpDataServiceImpl<ProviderDto>(rest, KIND.PROVIDERS, TARGET_API_AGENT);
|
|
46
46
|
this.reports = new AmpReportServiceImpl(rest);
|
|
47
47
|
this.settings = new AmpSettingsService(rest); // TODO: add /eng endpoint
|
|
48
48
|
}
|