@tolinax/ayoune-interfaces 2024.4.36 → 2024.4.38

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,4 +1,5 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ import { ILabels } from "./ILabels";
2
3
  export interface IBusinessEvent extends IDefaultFields {
3
4
  _customerID: ObjectId;
4
5
  _clientID?: ObjectId[];
@@ -20,5 +21,5 @@ export interface IBusinessEvent extends IDefaultFields {
20
21
  to?: Date;
21
22
  group?: string;
22
23
  prefix?: string;
23
- labels?: any;
24
+ labels?: ILabels;
24
25
  }
@@ -1,8 +1,8 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
- import { ILabel } from "./ILabel";
2
+ import { ILabels } from "./ILabels";
3
3
  export interface IEnvironment extends IDefaultFields {
4
4
  _customerID: ObjectId;
5
5
  name: string;
6
6
  type: "production" | "stage" | "development";
7
- labels: ILabel[];
7
+ labels?: ILabels;
8
8
  }
@@ -1,4 +1,5 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ import { ILabels } from "./ILabels";
2
3
  export interface IEvent extends IDefaultFields {
3
4
  _customerID: ObjectId;
4
5
  _state?: ObjectId;
@@ -16,6 +17,10 @@ export interface IEvent extends IDefaultFields {
16
17
  modelName?: string;
17
18
  domain?: string;
18
19
  origin?: string;
20
+ prefix: string;
21
+ postfix: string;
22
+ key: string;
23
+ group: string;
19
24
  category?: string;
20
25
  action?: string;
21
26
  label?: string;
@@ -23,4 +28,5 @@ export interface IEvent extends IDefaultFields {
23
28
  evt_data?: any;
24
29
  body?: any;
25
30
  ts?: Date;
31
+ labels?: ILabels;
26
32
  }
@@ -1,7 +1,7 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
- import { ILabel } from "./ILabel";
3
2
  import { IVariant } from "./IVariant";
4
3
  import { IRolloutEnvironment } from "./IRolloutEnvironment";
4
+ import { ILabels } from "./ILabels";
5
5
  export interface IFlag extends IDefaultFields {
6
6
  _customerID: ObjectId;
7
7
  name: string;
@@ -12,7 +12,7 @@ export interface IFlag extends IDefaultFields {
12
12
  impressionData: boolean;
13
13
  stale: boolean;
14
14
  archived: boolean;
15
- labels: ILabel[];
15
+ labels?: ILabels;
16
16
  value: string;
17
17
  lastSeenAt: Date;
18
18
  children: IFlag[];
@@ -1,4 +1,5 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ import { ILabels } from "./ILabels";
2
3
  export interface AgendaConfig {
3
4
  name?: string;
4
5
  processEvery?: string;
@@ -63,7 +64,7 @@ export interface IK8Deployment extends IDefaultFields {
63
64
  name?: string;
64
65
  namespace?: string;
65
66
  resourceVersion?: string;
66
- labels?: string;
67
+ labels?: ILabels;
67
68
  minReplicas?: number;
68
69
  maxReplicas?: number;
69
70
  uid?: string;
@@ -0,0 +1,3 @@
1
+ export interface ILabels {
2
+ [key: string]: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ import { IComment } from "./IComment";
4
4
  import { IaYOUneContract } from "./IaYOUneContract";
5
5
  import { IShare } from "./IShare";
6
6
  import { IRepository } from "./IRepository";
7
+ import { ILabels } from "./ILabels";
7
8
  export interface IProject extends IDefaultFields {
8
9
  _customerID: ObjectId;
9
10
  _clientID: ObjectId[];
@@ -180,5 +181,5 @@ export interface IProject extends IDefaultFields {
180
181
  comments: IComment[];
181
182
  group?: string;
182
183
  prefix?: string;
183
- labels?: any;
184
+ labels?: ILabels;
184
185
  }
@@ -1,5 +1,5 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
- import { ILabel } from "./ILabel";
2
+ import { ILabels } from "./ILabels";
3
3
  interface ScrapeConfig {
4
4
  job_name: string;
5
5
  metrics_path?: string;
@@ -200,6 +200,6 @@ export interface IPrometheusConfig extends IDefaultFields {
200
200
  k8Deployments: K8DeploymentsOptions;
201
201
  };
202
202
  prom: PromConfig;
203
- labels: ILabel[];
203
+ labels?: ILabels;
204
204
  }
205
205
  export {};
@@ -1,4 +1,5 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ import { ILabels } from "./ILabels";
2
3
  export interface IState extends IDefaultFields {
3
4
  _customerID: ObjectId;
4
5
  _lastEvent?: ObjectId;
@@ -9,15 +10,18 @@ export interface IState extends IDefaultFields {
9
10
  isSensor: boolean;
10
11
  isSwitch: boolean;
11
12
  isLight: boolean;
13
+ isOverTime: boolean;
12
14
  availableForWallboard: boolean;
13
15
  showOnWallboard: boolean;
14
16
  appName?: string;
15
17
  nameSpace?: string;
16
- environment: string;
17
- domain: string;
18
- prefix: string;
19
- key: string;
20
- group: string;
18
+ environment?: string;
19
+ domain?: string;
20
+ prefix?: string;
21
+ postfix?: string;
22
+ key?: string;
23
+ group?: string;
24
+ timeInterval?: string;
21
25
  entityId?: string;
22
26
  friendlyName?: string;
23
27
  additionalData?: string;
@@ -30,5 +34,5 @@ export interface IState extends IDefaultFields {
30
34
  lastChanged?: Date;
31
35
  attributes?: any;
32
36
  context?: any;
33
- labels?: any;
37
+ labels?: ILabels;
34
38
  }
@@ -1,7 +1,9 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ import { ILabels } from "./ILabels";
2
3
  export interface IaYOUneMeta extends IDefaultFields {
3
- labels?: any;
4
+ labels?: ILabels;
4
5
  prefix?: string;
6
+ postfix?: string;
5
7
  key?: string;
6
8
  group?: string;
7
9
  note?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.4.36",
3
+ "version": "2024.4.38",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",