@ampsec/platform-client 82.4.0 → 82.5.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/build/src/dto/index.d.ts +1 -0
- package/build/src/dto/index.js +1 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/{testEngagement.dto.js → testEngagements.dto.js} +1 -1
- package/build/src/dto/testEngagements.dto.js.map +1 -0
- package/build/src/services/flowSpecs.service.d.ts +1 -1
- package/build/src/services/rest/CohortService.d.ts +1 -0
- package/build/src/services/rest/CohortService.js +8 -0
- package/build/src/services/rest/CohortService.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/index.ts +1 -0
- package/src/services/flowSpecs.service.ts +1 -1
- package/src/services/rest/CohortService.ts +9 -0
- package/build/src/dto/testEngagement.dto.js.map +0 -1
- /package/build/src/dto/{testEngagement.dto.d.ts → testEngagements.dto.d.ts} +0 -0
- /package/src/dto/{testEngagement.dto.ts → testEngagements.dto.ts} +0 -0
package/build/src/dto/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './ampSetting.dto';
|
|
|
35
35
|
export * from './tenants.dto';
|
|
36
36
|
export * from './tenantNotes.dto';
|
|
37
37
|
export * from './tokens.dto';
|
|
38
|
+
export * from './testEngagements.dto';
|
|
38
39
|
export * from './users.dto';
|
|
39
40
|
export * from './messagingChannels';
|
|
40
41
|
export * from './cohort.dto';
|
package/build/src/dto/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __exportStar(require("./ampSetting.dto"), exports);
|
|
|
51
51
|
__exportStar(require("./tenants.dto"), exports);
|
|
52
52
|
__exportStar(require("./tenantNotes.dto"), exports);
|
|
53
53
|
__exportStar(require("./tokens.dto"), exports);
|
|
54
|
+
__exportStar(require("./testEngagements.dto"), exports);
|
|
54
55
|
__exportStar(require("./users.dto"), exports);
|
|
55
56
|
__exportStar(require("./messagingChannels"), exports);
|
|
56
57
|
__exportStar(require("./cohort.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,wDAAsC;AACtC,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testEngagements.dto.js","sourceRoot":"","sources":["../../../src/dto/testEngagements.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,mCAAoC;AAEvB,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC;AAGU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { ActiveEngagement, ActiveEngagementFilterCriteria, FlowSpecDto, FlowSpec
|
|
|
2
2
|
import { RestClient } from './rest';
|
|
3
3
|
import { AmpEntityServiceImpl, EntityCallOptions } from './entity.service';
|
|
4
4
|
import { FilterCriteria } from '../FilterCriteria';
|
|
5
|
-
import { TestEngagementRequestDto } from '../dto/
|
|
5
|
+
import { TestEngagementRequestDto } from '../dto/testEngagements.dto';
|
|
6
6
|
export declare class FlowSpecsService extends AmpEntityServiceImpl<FlowSpecUpsertDto, FlowSpecDto> {
|
|
7
7
|
constructor(rest: RestClient);
|
|
8
8
|
/** @deprecated Use `createFromName` instead */
|
|
@@ -11,6 +11,14 @@ class CohortService {
|
|
|
11
11
|
});
|
|
12
12
|
return res.data;
|
|
13
13
|
};
|
|
14
|
+
this.listUserCohorts = async (q) => {
|
|
15
|
+
const res = await this.rest.call({
|
|
16
|
+
url: '/api/v1/enum/cohorts/users',
|
|
17
|
+
method: 'GET',
|
|
18
|
+
params: { q },
|
|
19
|
+
});
|
|
20
|
+
return res.data;
|
|
21
|
+
};
|
|
14
22
|
this.rest = rest;
|
|
15
23
|
}
|
|
16
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CohortService.js","sourceRoot":"","sources":["../../../../src/services/rest/CohortService.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IAExB,YAAY,IAAgB;QAI5B,SAAI,GAAG,KAAK,EAAE,CAAU,EAA4B,EAAE;YACpD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,sBAAsB;gBAC3B,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,EAAC,CAAC,EAAC;aACZ,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAuB,CAAC;QACrC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"CohortService.js","sourceRoot":"","sources":["../../../../src/services/rest/CohortService.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IAExB,YAAY,IAAgB;QAI5B,SAAI,GAAG,KAAK,EAAE,CAAU,EAA4B,EAAE;YACpD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,sBAAsB;gBAC3B,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,EAAC,CAAC,EAAC;aACZ,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAuB,CAAC;QACrC,CAAC,CAAC;QAEF,oBAAe,GAAG,KAAK,EAAE,CAAU,EAA4B,EAAE;YAC/D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,4BAA4B;gBACjC,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,EAAC,CAAC,EAAC;aACZ,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAuB,CAAC;QACrC,CAAC,CAAC;QAnBA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAmBF;AAvBD,sCAuBC"}
|
package/package.json
CHANGED
package/src/dto/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './ampSetting.dto';
|
|
|
35
35
|
export * from './tenants.dto';
|
|
36
36
|
export * from './tenantNotes.dto';
|
|
37
37
|
export * from './tokens.dto';
|
|
38
|
+
export * from './testEngagements.dto';
|
|
38
39
|
export * from './users.dto';
|
|
39
40
|
export * from './messagingChannels';
|
|
40
41
|
export * from './cohort.dto';
|
|
@@ -4,7 +4,7 @@ import {RestClient} from './rest';
|
|
|
4
4
|
import {KIND} from './constants';
|
|
5
5
|
import {AmpEntityServiceImpl, EntityCallOptions} from './entity.service';
|
|
6
6
|
import {FilterCriteria} from '../FilterCriteria';
|
|
7
|
-
import {TestEngagementRequestDto} from '../dto/
|
|
7
|
+
import {TestEngagementRequestDto} from '../dto/testEngagements.dto';
|
|
8
8
|
|
|
9
9
|
export class FlowSpecsService extends AmpEntityServiceImpl<FlowSpecUpsertDto, FlowSpecDto> {
|
|
10
10
|
constructor(rest: RestClient) {
|
|
@@ -15,4 +15,13 @@ export class CohortService {
|
|
|
15
15
|
});
|
|
16
16
|
return res.data as Page<CohortDto>;
|
|
17
17
|
};
|
|
18
|
+
|
|
19
|
+
listUserCohorts = async (q?: string): Promise<Page<CohortDto>> => {
|
|
20
|
+
const res = await this.rest.call({
|
|
21
|
+
url: '/api/v1/enum/cohorts/users',
|
|
22
|
+
method: 'GET',
|
|
23
|
+
params: {q},
|
|
24
|
+
});
|
|
25
|
+
return res.data as Page<CohortDto>;
|
|
26
|
+
};
|
|
18
27
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testEngagement.dto.js","sourceRoot":"","sources":["../../../src/dto/testEngagement.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,mCAAoC;AAEvB,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC;AAGU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC;CAChC,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|