@abyss-project/monitor 16.2.0 → 16.3.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.
@@ -8,13 +8,15 @@ export interface ICreateApplicationEnvironmentParams {
8
8
  export interface ICreateApplicationEnvironmentBody {
9
9
  name: string;
10
10
  kind: EnvironmentKind;
11
+ expiresAt?: Date | null;
11
12
  }
12
13
  export interface IUpdateApplicationEnvironmentParams {
13
14
  applicationId: string;
14
15
  applicationEnvironmentId: string;
15
16
  }
16
17
  export interface IUpdateApplicationEnvironmentBody {
17
- kind: EnvironmentKind;
18
+ kind?: EnvironmentKind;
19
+ expiresAt?: Date | null;
18
20
  }
19
21
  export interface IDeleteApplicationEnvironmentParams {
20
22
  applicationId: string;
@@ -2,11 +2,13 @@ import { EnvironmentKind } from '../../enum';
2
2
  import { IApplication } from './application.model';
3
3
  export declare const DEFAULT_ENVIRONMENT_NAME = "production";
4
4
  export declare const ENVIRONMENT_NAME_PATTERN: RegExp;
5
+ export declare const ENVIRONMENT_EXPIRY_MAX_DAYS = 365;
5
6
  export interface IApplicationEnvironment {
6
7
  id: string;
7
8
  applicationId: string;
8
9
  name: string;
9
10
  kind: EnvironmentKind;
11
+ expiresAt: Date | null;
10
12
  rumEnabled?: boolean;
11
13
  createdAt?: Date;
12
14
  updatedAt?: Date;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ENVIRONMENT_NAME_PATTERN = exports.DEFAULT_ENVIRONMENT_NAME = void 0;
3
+ exports.ENVIRONMENT_EXPIRY_MAX_DAYS = exports.ENVIRONMENT_NAME_PATTERN = exports.DEFAULT_ENVIRONMENT_NAME = void 0;
4
4
  exports.DEFAULT_ENVIRONMENT_NAME = 'production';
5
5
  exports.ENVIRONMENT_NAME_PATTERN = /^[a-z0-9][a-z0-9-]{0,31}$/;
6
+ exports.ENVIRONMENT_EXPIRY_MAX_DAYS = 365;
6
7
  //# sourceMappingURL=application-environment.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-environment.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/application-environment.model.ts"],"names":[],"mappings":";;;AAOa,QAAA,wBAAwB,GAAG,YAAY,CAAC;AAGxC,QAAA,wBAAwB,GAAG,2BAA2B,CAAC"}
1
+ {"version":3,"file":"application-environment.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/application-environment.model.ts"],"names":[],"mappings":";;;AAOa,QAAA,wBAAwB,GAAG,YAAY,CAAC;AAGxC,QAAA,wBAAwB,GAAG,2BAA2B,CAAC;AAMvD,QAAA,2BAA2B,GAAG,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "16.2.0",
3
+ "version": "16.3.0",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",