@emilgroup/validation-rules-sdk 1.0.1-beta.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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/health-checks-api.ts +150 -0
  6. package/api/investigation-blocks-api.ts +693 -0
  7. package/api/validation-rules-api.ts +557 -0
  8. package/api.ts +31 -0
  9. package/base.ts +331 -0
  10. package/common.ts +198 -0
  11. package/configuration.ts +110 -0
  12. package/dist/api/health-checks-api.d.ts +87 -0
  13. package/dist/api/health-checks-api.js +218 -0
  14. package/dist/api/investigation-blocks-api.d.ts +393 -0
  15. package/dist/api/investigation-blocks-api.js +644 -0
  16. package/dist/api/validation-rules-api.d.ts +318 -0
  17. package/dist/api/validation-rules-api.js +537 -0
  18. package/dist/api.d.ts +14 -0
  19. package/dist/api.js +32 -0
  20. package/dist/base.d.ts +86 -0
  21. package/dist/base.js +367 -0
  22. package/dist/common.d.ts +91 -0
  23. package/dist/common.js +276 -0
  24. package/dist/configuration.d.ts +89 -0
  25. package/dist/configuration.js +52 -0
  26. package/dist/index.d.ts +15 -0
  27. package/dist/index.js +36 -0
  28. package/dist/models/create-investigation-block-request-dto.d.ts +41 -0
  29. package/dist/models/create-investigation-block-request-dto.js +20 -0
  30. package/dist/models/create-investigation-block-response-class.d.ts +25 -0
  31. package/dist/models/create-investigation-block-response-class.js +15 -0
  32. package/dist/models/create-validation-rule-request-dto.d.ts +83 -0
  33. package/dist/models/create-validation-rule-request-dto.js +20 -0
  34. package/dist/models/create-validation-rule-response-class.d.ts +25 -0
  35. package/dist/models/create-validation-rule-response-class.js +15 -0
  36. package/dist/models/get-investigation-block-response-class.d.ts +25 -0
  37. package/dist/models/get-investigation-block-response-class.js +15 -0
  38. package/dist/models/get-validation-rule-response-class.d.ts +25 -0
  39. package/dist/models/get-validation-rule-response-class.js +15 -0
  40. package/dist/models/index.d.ts +14 -0
  41. package/dist/models/index.js +30 -0
  42. package/dist/models/inline-response200.d.ts +54 -0
  43. package/dist/models/inline-response200.js +15 -0
  44. package/dist/models/inline-response503.d.ts +54 -0
  45. package/dist/models/inline-response503.js +15 -0
  46. package/dist/models/investigation-block-class.d.ts +90 -0
  47. package/dist/models/investigation-block-class.js +15 -0
  48. package/dist/models/list-investigation-blocks-response-class.d.ts +43 -0
  49. package/dist/models/list-investigation-blocks-response-class.js +15 -0
  50. package/dist/models/list-validation-rules-response-class.d.ts +43 -0
  51. package/dist/models/list-validation-rules-response-class.js +15 -0
  52. package/dist/models/update-investigation-block-request-dto.d.ts +59 -0
  53. package/dist/models/update-investigation-block-request-dto.js +25 -0
  54. package/dist/models/update-investigation-block-response-class.d.ts +25 -0
  55. package/dist/models/update-investigation-block-response-class.js +15 -0
  56. package/dist/models/validation-rule-class.d.ts +119 -0
  57. package/dist/models/validation-rule-class.js +20 -0
  58. package/git_push.sh +57 -0
  59. package/index.ts +19 -0
  60. package/models/create-investigation-block-request-dto.ts +50 -0
  61. package/models/create-investigation-block-response-class.ts +31 -0
  62. package/models/create-validation-rule-request-dto.ts +92 -0
  63. package/models/create-validation-rule-response-class.ts +31 -0
  64. package/models/get-investigation-block-response-class.ts +31 -0
  65. package/models/get-validation-rule-response-class.ts +31 -0
  66. package/models/index.ts +14 -0
  67. package/models/inline-response200.ts +48 -0
  68. package/models/inline-response503.ts +48 -0
  69. package/models/investigation-block-class.ts +96 -0
  70. package/models/list-investigation-blocks-response-class.ts +49 -0
  71. package/models/list-validation-rules-response-class.ts +49 -0
  72. package/models/update-investigation-block-request-dto.ts +69 -0
  73. package/models/update-investigation-block-response-class.ts +31 -0
  74. package/models/validation-rule-class.ts +128 -0
  75. package/package.json +27 -0
  76. package/tsconfig.json +23 -0
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Validation Rules Service
5
+ * The EMIL Validation Rules Service API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { InvestigationBlockClass } from './investigation-block-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListInvestigationBlocksResponseClass
22
+ */
23
+ export interface ListInvestigationBlocksResponseClass {
24
+ /**
25
+ * items
26
+ * @type {Array<InvestigationBlockClass>}
27
+ * @memberof ListInvestigationBlocksResponseClass
28
+ */
29
+ 'items': Array<InvestigationBlockClass>;
30
+ /**
31
+ * nextPageToken
32
+ * @type {string}
33
+ * @memberof ListInvestigationBlocksResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * totalItems
38
+ * @type {number}
39
+ * @memberof ListInvestigationBlocksResponseClass
40
+ */
41
+ 'totalItems': number;
42
+ /**
43
+ * itemsPerPage
44
+ * @type {number}
45
+ * @memberof ListInvestigationBlocksResponseClass
46
+ */
47
+ 'itemsPerPage': number;
48
+ }
49
+
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Validation Rules Service
5
+ * The EMIL Validation Rules Service API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { ValidationRuleClass } from './validation-rule-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListValidationRulesResponseClass
22
+ */
23
+ export interface ListValidationRulesResponseClass {
24
+ /**
25
+ * The list of validation rules.
26
+ * @type {Array<ValidationRuleClass>}
27
+ * @memberof ListValidationRulesResponseClass
28
+ */
29
+ 'items': Array<ValidationRuleClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListValidationRulesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListValidationRulesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListValidationRulesResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -0,0 +1,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Validation Rules Service
5
+ * The EMIL Validation Rules Service API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface UpdateInvestigationBlockRequestDto
21
+ */
22
+ export interface UpdateInvestigationBlockRequestDto {
23
+ /**
24
+ * Unique code for the investigation block
25
+ * @type {string}
26
+ * @memberof UpdateInvestigationBlockRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Type of the entity that the investigation block is associated with
31
+ * @type {string}
32
+ * @memberof UpdateInvestigationBlockRequestDto
33
+ */
34
+ 'entityType': UpdateInvestigationBlockRequestDtoEntityTypeEnum;
35
+ /**
36
+ * Code of the entity that the investigation block is associated with
37
+ * @type {string}
38
+ * @memberof UpdateInvestigationBlockRequestDto
39
+ */
40
+ 'entityCode': string;
41
+ /**
42
+ * Status
43
+ * @type {string}
44
+ * @memberof UpdateInvestigationBlockRequestDto
45
+ */
46
+ 'status': UpdateInvestigationBlockRequestDtoStatusEnum;
47
+ /**
48
+ * notes
49
+ * @type {string}
50
+ * @memberof UpdateInvestigationBlockRequestDto
51
+ */
52
+ 'notes'?: string;
53
+ }
54
+
55
+ export const UpdateInvestigationBlockRequestDtoEntityTypeEnum = {
56
+ Claim: 'claim',
57
+ Policy: 'policy'
58
+ } as const;
59
+
60
+ export type UpdateInvestigationBlockRequestDtoEntityTypeEnum = typeof UpdateInvestigationBlockRequestDtoEntityTypeEnum[keyof typeof UpdateInvestigationBlockRequestDtoEntityTypeEnum];
61
+ export const UpdateInvestigationBlockRequestDtoStatusEnum = {
62
+ Open: 'open',
63
+ Closed: 'closed',
64
+ Resolved: 'resolved'
65
+ } as const;
66
+
67
+ export type UpdateInvestigationBlockRequestDtoStatusEnum = typeof UpdateInvestigationBlockRequestDtoStatusEnum[keyof typeof UpdateInvestigationBlockRequestDtoStatusEnum];
68
+
69
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Validation Rules Service
5
+ * The EMIL Validation Rules Service API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { InvestigationBlockClass } from './investigation-block-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateInvestigationBlockResponseClass
22
+ */
23
+ export interface UpdateInvestigationBlockResponseClass {
24
+ /**
25
+ * investigationBlock
26
+ * @type {InvestigationBlockClass}
27
+ * @memberof UpdateInvestigationBlockResponseClass
28
+ */
29
+ 'investigationBlock'?: InvestigationBlockClass;
30
+ }
31
+
@@ -0,0 +1,128 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Validation Rules Service
5
+ * The EMIL Validation Rules Service API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ValidationRuleClass
21
+ */
22
+ export interface ValidationRuleClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof ValidationRuleClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier code for the validation rule
31
+ * @type {string}
32
+ * @memberof ValidationRuleClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Human-readable unique identifier
37
+ * @type {string}
38
+ * @memberof ValidationRuleClass
39
+ */
40
+ 'slug': string;
41
+ /**
42
+ * Entity type this rule applies to
43
+ * @type {string}
44
+ * @memberof ValidationRuleClass
45
+ */
46
+ 'entityType': string;
47
+ /**
48
+ * Product slug this rule belongs to
49
+ * @type {string}
50
+ * @memberof ValidationRuleClass
51
+ */
52
+ 'productSlug': string;
53
+ /**
54
+ * Product version code
55
+ * @type {string}
56
+ * @memberof ValidationRuleClass
57
+ */
58
+ 'productVersionCode': string;
59
+ /**
60
+ * Human-readable message shown when rule triggers
61
+ * @type {string}
62
+ * @memberof ValidationRuleClass
63
+ */
64
+ 'displayMessage': string;
65
+ /**
66
+ * Detailed description of what the rule checks
67
+ * @type {string}
68
+ * @memberof ValidationRuleClass
69
+ */
70
+ 'description'?: string;
71
+ /**
72
+ * Rule severity
73
+ * @type {string}
74
+ * @memberof ValidationRuleClass
75
+ */
76
+ 'severity': ValidationRuleClassSeverityEnum;
77
+ /**
78
+ * JsonLogic expression for rule evaluation
79
+ * @type {object}
80
+ * @memberof ValidationRuleClass
81
+ */
82
+ 'expression'?: object;
83
+ /**
84
+ * Related entities to load for evaluation
85
+ * @type {Array<string>}
86
+ * @memberof ValidationRuleClass
87
+ */
88
+ 'expands': Array<string>;
89
+ /**
90
+ * Whether the rule is enabled
91
+ * @type {boolean}
92
+ * @memberof ValidationRuleClass
93
+ */
94
+ 'isEnabled': boolean;
95
+ /**
96
+ * Time at which the object was created.
97
+ * @type {string}
98
+ * @memberof ValidationRuleClass
99
+ */
100
+ 'createdAt': string;
101
+ /**
102
+ * Time at which the object was updated.
103
+ * @type {string}
104
+ * @memberof ValidationRuleClass
105
+ */
106
+ 'updatedAt': string;
107
+ /**
108
+ * Identifier of the user who created the record.
109
+ * @type {string}
110
+ * @memberof ValidationRuleClass
111
+ */
112
+ 'createdBy': string;
113
+ /**
114
+ * Identifier of the user who last updated the record.
115
+ * @type {string}
116
+ * @memberof ValidationRuleClass
117
+ */
118
+ 'updatedBy': string;
119
+ }
120
+
121
+ export const ValidationRuleClassSeverityEnum = {
122
+ Warning: 'Warning',
123
+ Error: 'Error'
124
+ } as const;
125
+
126
+ export type ValidationRuleClassSeverityEnum = typeof ValidationRuleClassSeverityEnum[keyof typeof ValidationRuleClassSeverityEnum];
127
+
128
+
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@emilgroup/validation-rules-sdk",
3
+ "version": "1.0.1-beta.0",
4
+ "description": "OpenAPI client for @emilgroup/validation-rules-sdk",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "keywords": [
7
+ "axios",
8
+ "typescript",
9
+ "openapi-client",
10
+ "openapi-generator",
11
+ "@emilgroup/validation-rules-sdk"
12
+ ],
13
+ "license": "Unlicense",
14
+ "main": "./dist/index.js",
15
+ "typings": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": "tsc --outDir dist/",
18
+ "prepare": "npm run build"
19
+ },
20
+ "dependencies": {
21
+ "axios": "^1.12.0"
22
+ },
23
+ "devDependencies": {
24
+
25
+ "typescript": "^4.0"
26
+ }
27
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES5",
5
+ "module": "CommonJS",
6
+ "noImplicitAny": true,
7
+ "esModuleInterop": true,
8
+ "noImplicitOverride": true,
9
+ "outDir": "dist",
10
+ "rootDir": ".",
11
+ "lib": [
12
+ "es6",
13
+ "dom"
14
+ ],
15
+ "typeRoots": [
16
+ "node_modules/@types"
17
+ ]
18
+ },
19
+ "exclude": [
20
+ "dist",
21
+ "node_modules"
22
+ ]
23
+ }