@shieldiot/ngx-pulseiot-lib 2.18.1286 → 2.18.1293

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 { RegulatoryViolation } from './RegulatoryViolation';
2
- import { MitreAttackCategory } from './MitreAttackCategory';
3
1
  import { BaseEntity } from './BaseEntity';
4
2
  import { InsightTypeCode } from './InsightTypeCode';
5
3
  import { InsightStatusCode } from './InsightStatusCode';
6
4
  import { SeverityTypeCode } from './SeverityTypeCode';
7
5
  import { DirectionContextCode } from './DirectionContextCode';
6
+ import { RegulatoryViolation } from './RegulatoryViolation';
7
+ import { MitreAttackCategory } from './MitreAttackCategory';
8
8
  import { ColumnDef } from './ColumnDef';
9
9
  export declare class Insight extends BaseEntity {
10
10
  accountId: string;
@@ -1,11 +1,11 @@
1
+ import { IntegrationTypeCode } from './IntegrationTypeCode';
2
+ import { IntegrationTriggerCode } from './IntegrationTriggerCode';
1
3
  import { HttpMethodCode } from './HttpMethodCode';
2
4
  import { Tuple } from './Tuple';
3
5
  import { EventTypeCode } from './EventTypeCode';
4
6
  import { SeverityTypeCode } from './SeverityTypeCode';
5
7
  import { DeviceActionCode } from './DeviceActionCode';
6
8
  import { BaseEntity } from './BaseEntity';
7
- import { IntegrationTypeCode } from './IntegrationTypeCode';
8
- import { IntegrationTriggerCode } from './IntegrationTriggerCode';
9
9
  import { ColumnDef } from './ColumnDef';
10
10
  export declare class Integration extends BaseEntity {
11
11
  accountId: string;
@@ -32,5 +32,6 @@ export declare class Integration extends BaseEntity {
32
32
  templateId: string;
33
33
  parameterValues: any;
34
34
  collectionId: string;
35
+ isSystem: boolean;
35
36
  }
36
37
  export declare function GetIntegrationColumnsDef(): ColumnDef[];
@@ -1,8 +1,8 @@
1
- import { BaseEntity } from './BaseEntity';
2
- import { IntegrationTypeCode } from './IntegrationTypeCode';
3
1
  import { IntegrationTriggerCode } from './IntegrationTriggerCode';
4
2
  import { TemplateParameter } from './TemplateParameter';
5
3
  import { TemplateStep } from './TemplateStep';
4
+ import { BaseEntity } from './BaseEntity';
5
+ import { IntegrationTypeCode } from './IntegrationTypeCode';
6
6
  import { ColumnDef } from './ColumnDef';
7
7
  export declare class IntegrationTemplate extends BaseEntity {
8
8
  name: string;
@@ -17,5 +17,6 @@ export declare class IntegrationTemplate extends BaseEntity {
17
17
  logo: string;
18
18
  favicon: string;
19
19
  singleton: boolean;
20
+ isSystem: boolean;
20
21
  }
21
22
  export declare function GetIntegrationTemplateColumnsDef(): ColumnDef[];
@@ -29,7 +29,7 @@ export declare class SysIntegrationTemplatesService {
29
29
  /**
30
30
  * Find integration templates by query.
31
31
  */
32
- find(search?: string, trigger?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IntegrationTemplate>>;
32
+ find(search?: string, trigger?: number, isSystem?: boolean, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IntegrationTemplate>>;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SysIntegrationTemplatesService, never>;
34
34
  static ɵprov: i0.ɵɵInjectableDeclaration<SysIntegrationTemplatesService>;
35
35
  }
@@ -0,0 +1,63 @@
1
+ import { RestUtils } from '../../rest-utils';
2
+ import { AppConfig } from '../../config';
3
+ import { EntitiesResponse } from '../model';
4
+ import { StixCollectionView } from '../model';
5
+ import { IntegrationTemplate } from '../model';
6
+ import { Integration } from '../model';
7
+ import { EntityResponse } from '../model';
8
+ import { ActionResponse } from '../model';
9
+ import * as i0 from "@angular/core";
10
+ export declare class SysIntegrationsService {
11
+ private config;
12
+ private rest;
13
+ private baseUrl;
14
+ constructor(config: AppConfig, rest: RestUtils);
15
+ /**
16
+ * Create new integration configuration
17
+ */
18
+ create(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
19
+ /**
20
+ * Update existing integration configuration
21
+ */
22
+ update(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
23
+ /**
24
+ * Delete integration configuration
25
+ */
26
+ delete(id?: string): import("rxjs").Observable<ActionResponse>;
27
+ /**
28
+ * Get a single Integration by id
29
+ */
30
+ get(id?: string): import("rxjs").Observable<EntityResponse<Integration>>;
31
+ /**
32
+ * Find integrations by query
33
+ */
34
+ find(accountId?: string, streamId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<Integration>>;
35
+ /**
36
+ * Validate format of the templates in the fields
37
+ */
38
+ validate(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
39
+ /**
40
+ * Test the integration with pseudo data
41
+ */
42
+ test(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
43
+ /**
44
+ * Mint or rotate the system STIX/TAXII bearer token. The raw token is returned
45
+ * exactly once; only its bcrypt hash is persisted, so the caller MUST capture
46
+ * it immediately.
47
+ */
48
+ rotateToken(): import("rxjs").Observable<ActionResponse>;
49
+ /**
50
+ * Get the system STIX/TAXII collection view, including the firewall-polling URL.
51
+ */
52
+ getCollection(): import("rxjs").Observable<EntityResponse<StixCollectionView>>;
53
+ /**
54
+ * Find available integration templates.
55
+ */
56
+ findTemplates(search?: string, trigger?: number, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<IntegrationTemplate>>;
57
+ /**
58
+ * Get a single integration template by id.
59
+ */
60
+ getTemplate(id?: string): import("rxjs").Observable<EntityResponse<IntegrationTemplate>>;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<SysIntegrationsService, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<SysIntegrationsService>;
63
+ }
@@ -1,11 +1,10 @@
1
1
  import { RestUtils } from '../../rest-utils';
2
2
  import { AppConfig } from '../../config';
3
- import { Integration } from '../model';
4
3
  import { EntityResponse } from '../model';
5
4
  import { ActionResponse } from '../model';
6
5
  import { EntitiesResponse } from '../model';
7
- import { StixCollectionView } from '../model';
8
6
  import { IntegrationTemplate } from '../model';
7
+ import { Integration } from '../model';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class UsrIntegrationsService {
11
10
  private config;
@@ -41,20 +40,6 @@ export declare class UsrIntegrationsService {
41
40
  * Test the integration with pseudo data
42
41
  */
43
42
  test(body?: Integration): import("rxjs").Observable<EntityResponse<Integration>>;
44
- /**
45
- * Issues a bearer token for the STIX/TAXII collection. Call once after
46
- * provisioning to mint the initial token; call again to rotate. The raw
47
- * token is returned only in this response; only its bcrypt hash is
48
- * persisted, so the caller MUST capture it immediately.
49
- */
50
- rotateToken(id?: string): import("rxjs").Observable<ActionResponse>;
51
- /**
52
- * Get the StixCollection metadata associated with a STIX/TAXII integration.
53
- * Used by the UI to display the firewall-polling URL and collection details
54
- * alongside the integration form. Returns 404 if the integration is not of
55
- * type STIX_TAXII or has no associated collection.
56
- */
57
- getCollection(id?: string): import("rxjs").Observable<EntityResponse<StixCollectionView>>;
58
43
  /**
59
44
  * Find available integration templates (read-only for users).
60
45
  */
@@ -35,3 +35,4 @@ export * from './TaxiiDiscoveryService';
35
35
  export * from './TaxiiManifestService';
36
36
  export * from './TaxiiCollectionsService';
37
37
  export * from './TaxiiObjectsService';
38
+ export * from './SysIntegrationsService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shieldiot/ngx-pulseiot-lib",
3
- "version": "2.18.1286",
3
+ "version": "2.18.1293",
4
4
  "description": "Angular client library for PulseIoT backend",
5
5
  "publishConfig": {
6
6
  "access": "public"