@tolinax/ayoune-interfaces 2024.4.2 → 2024.4.3

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,53 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ export interface AgendaConfig {
3
+ name?: string;
4
+ processEvery?: string;
5
+ maxConcurrency?: number;
6
+ defaultConcurrency?: number;
7
+ lockLimit?: number;
8
+ defaultLockLimit?: number;
9
+ defaultLockLifetime?: number;
10
+ sort?: any;
11
+ mongo?: any;
12
+ db?: {
13
+ address: string;
14
+ collection?: string;
15
+ options?: any;
16
+ };
17
+ disableAutoIndex?: boolean;
18
+ }
19
+ export interface BullConfig {
20
+ concurrency?: number;
21
+ removeOnComplete?: number | boolean;
22
+ removeOnFail?: number | boolean;
23
+ attempts?: number;
24
+ }
25
+ interface IK8DeploymentMonitoring {
26
+ disabled: boolean;
27
+ heartbeat: {
28
+ disabled: boolean;
29
+ interval: number;
30
+ };
31
+ healthz: {
32
+ disabled: boolean;
33
+ endpoint: string;
34
+ };
35
+ }
36
+ interface IK8DeploymentLogger {
37
+ debugNamespace: string;
38
+ level: string;
39
+ debug: boolean;
40
+ disabled: boolean;
41
+ showMeta: boolean;
42
+ colorize: boolean;
43
+ }
44
+ interface IK8DeploymentJobQ {
45
+ disabled: string;
46
+ name: string;
47
+ agendaConfig: AgendaConfig;
48
+ bullConfig: BullConfig;
49
+ queueToUse: "agenda" | "bull";
50
+ }
2
51
  export interface IK8Deployment extends IDefaultFields {
3
52
  shortID: string;
4
53
  _customerID: ObjectId;
@@ -8,25 +57,9 @@ export interface IK8Deployment extends IDefaultFields {
8
57
  _cluster?: ObjectId;
9
58
  locked?: boolean;
10
59
  logLevel?: string;
11
- monitoring: {
12
- disabled: boolean;
13
- heartbeat: {
14
- disabled: boolean;
15
- interval: number;
16
- };
17
- healthz: {
18
- disabled: boolean;
19
- endpoint: string;
20
- };
21
- };
22
- logger: {
23
- debugNamespace: string;
24
- level: string;
25
- debug: boolean;
26
- disabled: boolean;
27
- showMeta: boolean;
28
- colorize: boolean;
29
- };
60
+ logger: IK8DeploymentLogger;
61
+ monitoring: IK8DeploymentMonitoring;
62
+ jobQ: IK8DeploymentJobQ;
30
63
  name?: string;
31
64
  namespace?: string;
32
65
  resourceVersion?: string;
@@ -46,3 +79,4 @@ export interface IK8Deployment extends IDefaultFields {
46
79
  lastSync?: Date;
47
80
  customConfig: any;
48
81
  }
82
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.4.2",
3
+ "version": "2024.4.3",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",