@abyss-project/monitor 1.0.48 → 1.0.49

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.
Files changed (32) hide show
  1. package/.eslintrc.js +33 -33
  2. package/README.md +1 -1
  3. package/dist/types/enum/time-period.enum.d.ts +0 -0
  4. package/dist/types/enum/time-period.enum.js +1 -0
  5. package/dist/types/interface/api/requests/report.admin.request.d.ts +1 -0
  6. package/dist/types/interface/api/responses/report.admin.response.d.ts +7 -6
  7. package/package.json +1 -1
  8. package/tsconfig.json +105 -105
  9. package/dist/api/application-store.admin.api.d.ts +0 -6
  10. package/dist/api/application-store.admin.api.js +0 -24
  11. package/dist/api/application-store.api.d.ts +0 -6
  12. package/dist/api/application-store.api.js +0 -24
  13. package/dist/api/application-store.public.api.d.ts +0 -3
  14. package/dist/api/application-store.public.api.js +0 -12
  15. package/dist/types/enum/webhook-type.enum.d.ts +0 -3
  16. package/dist/types/enum/webhook-type.enum.js +0 -7
  17. package/dist/types/interface/api/requests/application-store.admin.request.d.ts +0 -34
  18. package/dist/types/interface/api/requests/application-store.admin.request.js +0 -2
  19. package/dist/types/interface/api/requests/application-store.public.request.d.ts +0 -8
  20. package/dist/types/interface/api/requests/application-store.public.request.js +0 -2
  21. package/dist/types/interface/api/requests/application-store.request.d.ts +0 -39
  22. package/dist/types/interface/api/requests/application-store.request.js +0 -2
  23. package/dist/types/interface/api/responses/application-sentinel.response copy.d.ts +0 -26
  24. package/dist/types/interface/api/responses/application-sentinel.response copy.js +0 -2
  25. package/dist/types/interface/api/responses/application-store.admin.response.d.ts +0 -17
  26. package/dist/types/interface/api/responses/application-store.admin.response.js +0 -2
  27. package/dist/types/interface/api/responses/application-store.public.response.d.ts +0 -21
  28. package/dist/types/interface/api/responses/application-store.public.response.js +0 -2
  29. package/dist/types/interface/api/responses/application-store.response.d.ts +0 -17
  30. package/dist/types/interface/api/responses/application-store.response.js +0 -2
  31. package/dist/types/interface/models/application-store-entry.model.d.ts +0 -14
  32. package/dist/types/interface/models/application-store-entry.model.js +0 -2
package/.eslintrc.js CHANGED
@@ -1,34 +1,34 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- parserOptions: {
4
- project: 'tsconfig.json',
5
- tsconfigRootDir: __dirname,
6
- sourceType: 'module',
7
- },
8
- plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
9
- extends: [
10
- 'plugin:@typescript-eslint/recommended',
11
- 'plugin:prettier/recommended',
12
- ],
13
- root: true,
14
- env: {
15
- node: true,
16
- jest: true,
17
- },
18
- ignorePatterns: ['.eslintrc.js'],
19
- rules: {
20
- '@typescript-eslint/interface-name-prefix': 'off',
21
- '@typescript-eslint/explicit-function-return-type': 'off',
22
- '@typescript-eslint/explicit-module-boundary-types': 'off',
23
- '@typescript-eslint/no-explicit-any': 'off',
24
- "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
25
- 'filenames-simple/naming-convention': [
26
- 'error',
27
- {
28
- // Use custom regexp to match migration file
29
- rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
30
- },
31
- ],
32
- },
33
- overrides: [],
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ parserOptions: {
4
+ project: 'tsconfig.json',
5
+ tsconfigRootDir: __dirname,
6
+ sourceType: 'module',
7
+ },
8
+ plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
9
+ extends: [
10
+ 'plugin:@typescript-eslint/recommended',
11
+ 'plugin:prettier/recommended',
12
+ ],
13
+ root: true,
14
+ env: {
15
+ node: true,
16
+ jest: true,
17
+ },
18
+ ignorePatterns: ['.eslintrc.js'],
19
+ rules: {
20
+ '@typescript-eslint/interface-name-prefix': 'off',
21
+ '@typescript-eslint/explicit-function-return-type': 'off',
22
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
23
+ '@typescript-eslint/no-explicit-any': 'off',
24
+ "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
25
+ 'filenames-simple/naming-convention': [
26
+ 'error',
27
+ {
28
+ // Use custom regexp to match migration file
29
+ rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
30
+ },
31
+ ],
32
+ },
33
+ overrides: [],
34
34
  };
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # Abyss Monitor
1
+ # Abyss Monitor
2
2
  https://abyss-project.gitbook.io/abyss-monitor/
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -2,4 +2,5 @@ export interface GetReportAdminBody {
2
2
  applicationId: string[];
3
3
  startDate: Date;
4
4
  endDate: Date;
5
+ timePeriod?: 'minute' | 'hour' | 'day' | 'month';
5
6
  }
@@ -1,6 +1,6 @@
1
1
  import { LogLevel } from '../../../enum';
2
- export interface RequestsByMonth {
3
- month: number;
2
+ export interface RequestsByPeriod {
3
+ period: string;
4
4
  count: number;
5
5
  }
6
6
  export interface ErrorsByStatusCode {
@@ -11,8 +11,8 @@ export interface TopErrorEndpoint {
11
11
  endpoint: string;
12
12
  count: number;
13
13
  }
14
- export interface LogsByMonth {
15
- month: number;
14
+ export interface LogsByPeriod {
15
+ period: string;
16
16
  level: LogLevel;
17
17
  count: number;
18
18
  }
@@ -25,7 +25,7 @@ export interface ApplicationMetrics {
25
25
  mostUsedEndpoint: string;
26
26
  errorRate: number;
27
27
  availabilityRate: number;
28
- requestsByMonth: Array<RequestsByMonth>;
28
+ requestsByPeriod: Array<RequestsByPeriod>;
29
29
  errorsByStatusCode: Array<ErrorsByStatusCode>;
30
30
  topErrorEndpoints: Array<TopErrorEndpoint>;
31
31
  totalLogs: number;
@@ -39,11 +39,12 @@ export interface ApplicationMetrics {
39
39
  totalSentinelChecks: number;
40
40
  successfulSentinelChecks: number;
41
41
  failedSentinelChecks: number;
42
- logsByMonth: Array<LogsByMonth>;
42
+ logsByPeriod: Array<LogsByPeriod>;
43
43
  }
44
44
  export interface GetReportAdminResponse {
45
45
  data: {
46
46
  metrics: ApplicationMetrics & {
47
+ timePeriod: 'minute' | 'hour' | 'day' | 'month';
47
48
  metricsByApplication: Array<ApplicationMetrics & {
48
49
  applicationId: string;
49
50
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/monitor",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "Core package to interact with Abyss-Monitor",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/tsconfig.json CHANGED
@@ -1,105 +1,105 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
-
5
- /* Projects */
6
- "incremental": false /* Enable incremental compilation */,
7
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "es2019" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
- "lib": [
16
- "dom",
17
- "ES2019"
18
- ] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
19
- // "jsx": "preserve", /* Specify what JSX code is generated. */
20
- "experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
21
- "emitDecoratorMetadata": true /* Emit design-type metadata for decorated declarations in source files. */,
22
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
23
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
24
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
25
- // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
26
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
27
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
28
-
29
- /* Modules */
30
- "module": "commonjs" /* Specify what module code is generated. */,
31
- "rootDir": "./src" /* Specify the root folder within your source files. */,
32
- "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
33
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
34
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
35
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
36
- // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
37
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
38
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
39
- "resolveJsonModule": true /* Enable importing .json files */,
40
- // "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
41
-
42
- /* JavaScript Support */
43
- "allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
44
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
46
-
47
- /* Emit */
48
- "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
49
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
50
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
51
- // "sourceMap": true /* Create source map files for emitted JavaScript files. */,
52
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
53
- "outDir": "./dist" /* Specify an output folder for all emitted files. */,
54
- "removeComments": true /* Disable emitting comments. */,
55
- // "noEmit": true, /* Disable emitting files from a compilation. */
56
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
57
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
58
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
59
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
60
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
61
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
62
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
63
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
64
- // "newLine": "crlf", /* Set the newline character for emitting files. */
65
- // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
66
- // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
67
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
68
- // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
69
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
70
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
71
-
72
- /* Interop Constraints */
73
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
74
- "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
75
- "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
76
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
77
- "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
78
-
79
- /* Type Checking */
80
- "strict": true /* Enable all strict type-checking options. */,
81
- // "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied `any` type.. */,
82
- // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
83
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
84
- // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
85
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
86
- // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
87
- // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
88
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
89
- // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
90
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
91
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
92
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
93
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
94
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
95
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
96
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
97
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
98
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
99
-
100
- /* Completeness */
101
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
102
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
103
- },
104
- "exclude": ["./dist/**/*"]
105
- }
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+
5
+ /* Projects */
6
+ "incremental": false /* Enable incremental compilation */,
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2019" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
+ "lib": [
16
+ "dom",
17
+ "ES2019"
18
+ ] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
19
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
20
+ "experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
21
+ "emitDecoratorMetadata": true /* Emit design-type metadata for decorated declarations in source files. */,
22
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
23
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
24
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
25
+ // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
26
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
27
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
28
+
29
+ /* Modules */
30
+ "module": "commonjs" /* Specify what module code is generated. */,
31
+ "rootDir": "./src" /* Specify the root folder within your source files. */,
32
+ "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
33
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
34
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
35
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
36
+ // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
37
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
38
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
39
+ "resolveJsonModule": true /* Enable importing .json files */,
40
+ // "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
41
+
42
+ /* JavaScript Support */
43
+ "allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
44
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
46
+
47
+ /* Emit */
48
+ "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
49
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
50
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
51
+ // "sourceMap": true /* Create source map files for emitted JavaScript files. */,
52
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
53
+ "outDir": "./dist" /* Specify an output folder for all emitted files. */,
54
+ "removeComments": true /* Disable emitting comments. */,
55
+ // "noEmit": true, /* Disable emitting files from a compilation. */
56
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
57
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
58
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
59
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
60
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
61
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
62
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
63
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
64
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
65
+ // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
66
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
67
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
68
+ // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
69
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
70
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
71
+
72
+ /* Interop Constraints */
73
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
74
+ "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
75
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
76
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
77
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
78
+
79
+ /* Type Checking */
80
+ "strict": true /* Enable all strict type-checking options. */,
81
+ // "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied `any` type.. */,
82
+ // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
83
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
84
+ // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
85
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
86
+ // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
87
+ // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
88
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
89
+ // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
90
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
91
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
92
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
93
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
94
+ // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
95
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
96
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
97
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
98
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
99
+
100
+ /* Completeness */
101
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
102
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
103
+ },
104
+ "exclude": ["./dist/**/*"]
105
+ }
@@ -1,6 +0,0 @@
1
- import { ICreateEntryApplicationStoreAdminBody, ICreateEntryApplicationStoreAdminParams, ICreateEntryApplicationStoreAdminResponse, IDeleteEntryApplicationStoreAdminParams, IDeleteEntryApplicationStoreAdminResponse, IGetEntryApplicationStoreAdminParams, IGetEntryApplicationStoreAdminResponse, IPaginateEntryApplicationStoreAdminQuery, IPaginateEntryApplicationStoreAdminResponse, IUpdateEntryApplicationStoreAdminBody, IUpdateEntryApplicationStoreAdminParams, IUpdateEntryApplicationStoreAdminResponse } from '..';
2
- export declare const getEntryApplicationStoreAdmin: (params: IGetEntryApplicationStoreAdminParams) => Promise<IGetEntryApplicationStoreAdminResponse>;
3
- export declare const paginateEntryApplicationStoreAdmin: (query: IPaginateEntryApplicationStoreAdminQuery) => Promise<IPaginateEntryApplicationStoreAdminResponse>;
4
- export declare const createEntryApplicationStoreAdmin: (params: ICreateEntryApplicationStoreAdminParams, body: ICreateEntryApplicationStoreAdminBody) => Promise<ICreateEntryApplicationStoreAdminResponse>;
5
- export declare const updateEntryApplicationStoreAdmin: (params: IUpdateEntryApplicationStoreAdminParams, body: IUpdateEntryApplicationStoreAdminBody) => Promise<IUpdateEntryApplicationStoreAdminResponse>;
6
- export declare const deleteEntryApplicationStoreAdmin: (params: IDeleteEntryApplicationStoreAdminParams) => Promise<IDeleteEntryApplicationStoreAdminResponse>;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteEntryApplicationStoreAdmin = exports.updateEntryApplicationStoreAdmin = exports.createEntryApplicationStoreAdmin = exports.paginateEntryApplicationStoreAdmin = exports.getEntryApplicationStoreAdmin = void 0;
4
- const __1 = require("..");
5
- const getEntryApplicationStoreAdmin = async (params) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`application-store/admin/entry/${params.applicationStoreEntryId}`)).data;
7
- };
8
- exports.getEntryApplicationStoreAdmin = getEntryApplicationStoreAdmin;
9
- const paginateEntryApplicationStoreAdmin = async (query) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`application-store/admin/entry/paginate`, { params: query })).data;
11
- };
12
- exports.paginateEntryApplicationStoreAdmin = paginateEntryApplicationStoreAdmin;
13
- const createEntryApplicationStoreAdmin = async (params, body) => {
14
- return (await __1.AbyssMonitorCore.axios.post(`application-store/admin/entry/${params.applicationId}`, body)).data;
15
- };
16
- exports.createEntryApplicationStoreAdmin = createEntryApplicationStoreAdmin;
17
- const updateEntryApplicationStoreAdmin = async (params, body) => {
18
- return (await __1.AbyssMonitorCore.axios.put(`application-store/admin/entry/${params.applicationStoreEntryId}`, body)).data;
19
- };
20
- exports.updateEntryApplicationStoreAdmin = updateEntryApplicationStoreAdmin;
21
- const deleteEntryApplicationStoreAdmin = async (params) => {
22
- return (await __1.AbyssMonitorCore.axios.delete(`application-store/admin/entry/${params.applicationStoreEntryId}`)).data;
23
- };
24
- exports.deleteEntryApplicationStoreAdmin = deleteEntryApplicationStoreAdmin;
@@ -1,6 +0,0 @@
1
- import { ICreateEntryApplicationStoreBody, ICreateEntryApplicationStoreParams, ICreateEntryApplicationStoreResponse, IDeleteEntryApplicationStoreParams, IDeleteEntryApplicationStoreResponse, IGetEntryApplicationStoreParams, IGetEntryApplicationStoreResponse, IPaginateEntryApplicationStoreParams, IPaginateEntryApplicationStoreQuery, IPaginateEntryApplicationStoreResponse, IUpdateEntryApplicationStoreBody, IUpdateEntryApplicationStoreParams, IUpdateEntryApplicationStoreResponse } from '..';
2
- export declare const getEntryApplicationStore: (params: IGetEntryApplicationStoreParams) => Promise<IGetEntryApplicationStoreResponse>;
3
- export declare const paginateEntryApplicationStore: (params: IPaginateEntryApplicationStoreParams, query: IPaginateEntryApplicationStoreQuery) => Promise<IPaginateEntryApplicationStoreResponse>;
4
- export declare const createEntryApplicationStore: (params: ICreateEntryApplicationStoreParams, body: ICreateEntryApplicationStoreBody) => Promise<ICreateEntryApplicationStoreResponse>;
5
- export declare const updateEntryApplicationStore: (params: IUpdateEntryApplicationStoreParams, body: IUpdateEntryApplicationStoreBody) => Promise<IUpdateEntryApplicationStoreResponse>;
6
- export declare const deleteEntryApplicationStore: (params: IDeleteEntryApplicationStoreParams) => Promise<IDeleteEntryApplicationStoreResponse>;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteEntryApplicationStore = exports.updateEntryApplicationStore = exports.createEntryApplicationStore = exports.paginateEntryApplicationStore = exports.getEntryApplicationStore = void 0;
4
- const __1 = require("..");
5
- const getEntryApplicationStore = async (params) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`application-store/${params.applicationId}/entry/${params.applicationStoreEntryId}`)).data;
7
- };
8
- exports.getEntryApplicationStore = getEntryApplicationStore;
9
- const paginateEntryApplicationStore = async (params, query) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`application-store/${params.applicationId}/entry/paginate`, { params: query })).data;
11
- };
12
- exports.paginateEntryApplicationStore = paginateEntryApplicationStore;
13
- const createEntryApplicationStore = async (params, body) => {
14
- return (await __1.AbyssMonitorCore.axios.post(`application-store/${params.applicationId}/entry`, body)).data;
15
- };
16
- exports.createEntryApplicationStore = createEntryApplicationStore;
17
- const updateEntryApplicationStore = async (params, body) => {
18
- return (await __1.AbyssMonitorCore.axios.put(`application-store/${params.applicationId}/entry/${params.applicationStoreEntryId}`, body)).data;
19
- };
20
- exports.updateEntryApplicationStore = updateEntryApplicationStore;
21
- const deleteEntryApplicationStore = async (params) => {
22
- return (await __1.AbyssMonitorCore.axios.delete(`application-store/${params.applicationId}/entry/${params.applicationStoreEntryId}`)).data;
23
- };
24
- exports.deleteEntryApplicationStore = deleteEntryApplicationStore;
@@ -1,3 +0,0 @@
1
- import { IGetEntryByIdApplicationStorePublicParams, IGetEntryByIdApplicationStorePublicResponse, IGetEntryBySlugApplicationStorePublicParams, IGetEntryBySlugApplicationStorePublicResponse } from '..';
2
- export declare const getEntryBySlugApplicationStoreAdmin: (params: IGetEntryBySlugApplicationStorePublicParams) => Promise<IGetEntryBySlugApplicationStorePublicResponse>;
3
- export declare const getEntryByIdApplicationStoreAdmin: (params: IGetEntryByIdApplicationStorePublicParams) => Promise<IGetEntryByIdApplicationStorePublicResponse>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEntryByIdApplicationStoreAdmin = exports.getEntryBySlugApplicationStoreAdmin = void 0;
4
- const __1 = require("..");
5
- const getEntryBySlugApplicationStoreAdmin = async (params) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`application-store/public/${params.applicationId}/entry/slug/${params.slug}`)).data;
7
- };
8
- exports.getEntryBySlugApplicationStoreAdmin = getEntryBySlugApplicationStoreAdmin;
9
- const getEntryByIdApplicationStoreAdmin = async (params) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`application-store/public/${params.applicationId}/entry/id/${params.applicationStoreEntryId}`)).data;
11
- };
12
- exports.getEntryByIdApplicationStoreAdmin = getEntryByIdApplicationStoreAdmin;
@@ -1,3 +0,0 @@
1
- export declare enum WebhookType {
2
- DISCORD = "DISCORD"
3
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookType = void 0;
4
- var WebhookType;
5
- (function (WebhookType) {
6
- WebhookType["DISCORD"] = "DISCORD";
7
- })(WebhookType || (exports.WebhookType = WebhookType = {}));
@@ -1,34 +0,0 @@
1
- import { QueryPaginate } from '..';
2
- export interface IGetEntryApplicationStoreAdminParams {
3
- applicationStoreEntryId: string;
4
- }
5
- export interface ICreateEntryApplicationStoreAdminParams {
6
- applicationId: string;
7
- }
8
- export interface ICreateEntryApplicationStoreAdminBody {
9
- name: string;
10
- slug: string;
11
- value: string;
12
- isActive: boolean;
13
- expireAt?: Date | null;
14
- }
15
- export type IPaginateEntryApplicationStoreAdminQuery = {
16
- name?: string;
17
- slug?: string;
18
- isActive?: boolean;
19
- applicationId?: string[];
20
- id?: string;
21
- } & QueryPaginate;
22
- export interface IUpdateEntryApplicationStoreAdminParams {
23
- applicationStoreEntryId: string;
24
- }
25
- export interface IUpdateEntryApplicationStoreAdminBody {
26
- name?: string;
27
- slug?: string;
28
- value?: string;
29
- isActive?: boolean;
30
- expireAt?: Date | null;
31
- }
32
- export interface IDeleteEntryApplicationStoreAdminParams {
33
- applicationStoreEntryId: string;
34
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export interface IGetEntryBySlugApplicationStorePublicParams {
2
- applicationId: string;
3
- slug: string;
4
- }
5
- export interface IGetEntryByIdApplicationStorePublicParams {
6
- applicationId: string;
7
- applicationStoreEntryId: string;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
1
- import { QueryPaginate } from '..';
2
- export interface IGetEntryApplicationStoreParams {
3
- applicationId: string;
4
- applicationStoreEntryId: string;
5
- }
6
- export interface ICreateEntryApplicationStoreParams {
7
- applicationId: string;
8
- }
9
- export interface ICreateEntryApplicationStoreBody {
10
- name: string;
11
- slug: string;
12
- value: string;
13
- isActive: boolean;
14
- expireAt?: Date | null;
15
- }
16
- export interface IPaginateEntryApplicationStoreParams {
17
- applicationId: string;
18
- }
19
- export type IPaginateEntryApplicationStoreQuery = {
20
- name?: string;
21
- slug?: string;
22
- isActive?: boolean;
23
- id?: string;
24
- } & QueryPaginate;
25
- export interface IUpdateEntryApplicationStoreParams {
26
- applicationId: string;
27
- applicationStoreEntryId: string;
28
- }
29
- export interface IUpdateEntryApplicationStoreBody {
30
- name?: string;
31
- slug?: string;
32
- value?: string;
33
- isActive?: boolean;
34
- expireAt?: Date | null;
35
- }
36
- export interface IDeleteEntryApplicationStoreParams {
37
- applicationId: string;
38
- applicationStoreEntryId: string;
39
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
1
- import { IResponse, IApplicationSentinel, IApplicationSentinelHistory, BasePaginate } from '../..';
2
- export interface IGetApplicationSentinelData {
3
- applicationSentinel: IApplicationSentinel;
4
- }
5
- export type IGetApplicationSentinelResponse = IResponse<IGetApplicationSentinelData>;
6
- export interface IGetHistoryApplicationSentinelData {
7
- applicationSentinelHistory: IApplicationSentinelHistory;
8
- }
9
- export type IGetHistoryApplicationSentinelResponse = IResponse<IGetHistoryApplicationSentinelData>;
10
- export type IPaginateHistoryApplicationSentinelResponse = IResponse<BasePaginate<IApplicationSentinelHistory>>;
11
- export type IPaginateApplicationSentinelResponse = IResponse<BasePaginate<IApplicationSentinel>>;
12
- export interface ICreateApplicationSentinelData {
13
- applicationSentinel: IApplicationSentinel;
14
- }
15
- export type ICreateApplicationSentinelResponse = IResponse<ICreateApplicationSentinelData>;
16
- export interface IUpdateApplicationSentinelData {
17
- applicationSentinel: IApplicationSentinel;
18
- }
19
- export type IUpdateApplicationSentinelResponse = IResponse<IUpdateApplicationSentinelData>;
20
- export interface IDeleteApplicationSentinelData {
21
- }
22
- export type IDeleteApplicationSentinelResponse = IResponse<IDeleteApplicationSentinelData>;
23
- export interface ITriggerApplicationSentinelData {
24
- applicationSentinelHistory: IApplicationSentinelHistory;
25
- }
26
- export type ITriggerApplicationSentinelResponse = IResponse<ITriggerApplicationSentinelData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { IResponse, IApplicationStoreEntry, BasePaginate } from '../..';
2
- export interface IGetEntryApplicationStoreAdminData {
3
- applicationStoreEntry: IApplicationStoreEntry;
4
- }
5
- export type IGetEntryApplicationStoreAdminResponse = IResponse<IGetEntryApplicationStoreAdminData>;
6
- export type IPaginateEntryApplicationStoreAdminResponse = IResponse<BasePaginate<IApplicationStoreEntry>>;
7
- export interface ICreateEntryApplicationStoreAdminData {
8
- applicationStoreEntry: IApplicationStoreEntry;
9
- }
10
- export type ICreateEntryApplicationStoreAdminResponse = IResponse<ICreateEntryApplicationStoreAdminData>;
11
- export interface IUpdateEntryApplicationStoreAdminData {
12
- applicationStoreEntry: IApplicationStoreEntry;
13
- }
14
- export type IUpdateEntryApplicationStoreAdminResponse = IResponse<IUpdateEntryApplicationStoreAdminData>;
15
- export interface IDeleteEntryApplicationStoreAdminData {
16
- }
17
- export type IDeleteEntryApplicationStoreAdminResponse = IResponse<IDeleteEntryApplicationStoreAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- import { IResponse } from '../..';
2
- export interface IGetEntryBySlugApplicationStorePublicData {
3
- applicationStoreEntry: {
4
- id: string;
5
- slug: string;
6
- expireAt: Date | null;
7
- isActive: boolean;
8
- value: string;
9
- };
10
- }
11
- export type IGetEntryBySlugApplicationStorePublicResponse = IResponse<IGetEntryBySlugApplicationStorePublicData>;
12
- export interface IGetEntryByIdApplicationStorePublicData {
13
- applicationStoreEntry: {
14
- id: string;
15
- slug: string;
16
- expireAt: Date | null;
17
- isActive: boolean;
18
- value: string;
19
- };
20
- }
21
- export type IGetEntryByIdApplicationStorePublicResponse = IResponse<IGetEntryByIdApplicationStorePublicData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { IResponse, IApplicationStoreEntry, BasePaginate } from '../..';
2
- export interface IGetEntryApplicationStoreData {
3
- applicationStoreEntry: IApplicationStoreEntry;
4
- }
5
- export type IGetEntryApplicationStoreResponse = IResponse<IGetEntryApplicationStoreData>;
6
- export type IPaginateEntryApplicationStoreResponse = IResponse<BasePaginate<IApplicationStoreEntry>>;
7
- export interface ICreateEntryApplicationStoreData {
8
- applicationStoreEntry: IApplicationStoreEntry;
9
- }
10
- export type ICreateEntryApplicationStoreResponse = IResponse<ICreateEntryApplicationStoreData>;
11
- export interface IUpdateEntryApplicationStoreData {
12
- applicationStoreEntry: IApplicationStoreEntry;
13
- }
14
- export type IUpdateEntryApplicationStoreResponse = IResponse<IUpdateEntryApplicationStoreData>;
15
- export interface IDeleteEntryApplicationStoreData {
16
- }
17
- export type IDeleteEntryApplicationStoreResponse = IResponse<IDeleteEntryApplicationStoreData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { IApplication } from './application.model';
2
- export interface IApplicationStoreEntry {
3
- id?: string;
4
- applicationId: string;
5
- name: string;
6
- value: string;
7
- expireAt: Date | null;
8
- isActive: boolean;
9
- slug: string;
10
- countAccess: number;
11
- updatedAt?: Date;
12
- createdAt?: Date;
13
- application?: IApplication;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });