@flusys/nestjs-entity-builder 9.1.0-rc.1
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.
- package/README.md +103 -0
- package/config/entity-builder.constants.d.ts +6 -0
- package/config/event-actions.d.ts +8 -0
- package/config/index.d.ts +3 -0
- package/config/message-keys.d.ts +481 -0
- package/controllers/entity-definition.controller.d.ts +40 -0
- package/controllers/field-definition.controller.d.ts +22 -0
- package/controllers/flow-api-key.controller.d.ts +14 -0
- package/controllers/flow-definition.controller.d.ts +45 -0
- package/controllers/flow-execution.controller.d.ts +21 -0
- package/controllers/flow-runtime.controller.d.ts +16 -0
- package/controllers/index.d.ts +6 -0
- package/docs/entity-builder-swagger.config.d.ts +3 -0
- package/docs/index.d.ts +1 -0
- package/dtos/entity-definition.dto.d.ts +58 -0
- package/dtos/field-definition.dto.d.ts +42 -0
- package/dtos/flow.dto.d.ts +85 -0
- package/dtos/index.d.ts +3 -0
- package/dtos/schema-change.dto.d.ts +53 -0
- package/entities/entity-definition.entity.d.ts +15 -0
- package/entities/field-definition.entity.d.ts +23 -0
- package/entities/flow-api-key.entity.d.ts +10 -0
- package/entities/flow-definition.entity.d.ts +20 -0
- package/entities/flow-execution.entity.d.ts +18 -0
- package/entities/index.d.ts +14 -0
- package/entities/schema-change-log.entity.d.ts +15 -0
- package/enums/ddl-operation.enum.d.ts +13 -0
- package/enums/entity-status.enum.d.ts +5 -0
- package/enums/field-type.enum.d.ts +15 -0
- package/enums/index.d.ts +3 -0
- package/fesm/21.js +515 -0
- package/fesm/362.js +1074 -0
- package/fesm/489.js +1238 -0
- package/fesm/606.js +1655 -0
- package/fesm/719.js +3615 -0
- package/fesm/794.js +1050 -0
- package/fesm/996.js +6537 -0
- package/fesm/config/index.js +126 -0
- package/fesm/controllers/index.js +28 -0
- package/fesm/docs/index.js +82 -0
- package/fesm/dtos/index.js +327 -0
- package/fesm/entities/index.js +18 -0
- package/fesm/enums/index.js +97 -0
- package/fesm/guards/index.js +228 -0
- package/fesm/index.js +1125 -0
- package/fesm/interfaces/index.js +80 -0
- package/fesm/modules/index.js +642 -0
- package/fesm/rule-engine/index.js +21 -0
- package/fesm/runtime.js +85 -0
- package/fesm/services/index.js +495 -0
- package/flow-engine/flow-api-key.d.ts +10 -0
- package/flow-engine/flow-code-sandbox.d.ts +5 -0
- package/flow-engine/flow-engine.d.ts +22 -0
- package/flow-engine/flow-graph.validator.d.ts +19 -0
- package/flow-engine/flow-http.client.d.ts +15 -0
- package/flow-engine/flow-input.validator.d.ts +7 -0
- package/flow-engine/flow-node-handlers.d.ts +5 -0
- package/flow-engine/flow-rate-limiter.d.ts +8 -0
- package/flow-engine/flow-reference.d.ts +7 -0
- package/flow-engine/flow-run.types.d.ts +120 -0
- package/flow-engine/flow.errors.d.ts +27 -0
- package/flow-engine/flow.types.d.ts +217 -0
- package/flow-engine/index.d.ts +4 -0
- package/flow-engine/redact.d.ts +3 -0
- package/flow-engine/ssrf-guard.d.ts +6 -0
- package/guards/flow-access.guard.d.ts +11 -0
- package/guards/index.d.ts +1 -0
- package/index.d.ts +11 -0
- package/interfaces/entity-builder-module.interface.d.ts +28 -0
- package/interfaces/field-definition.interface.d.ts +33 -0
- package/interfaces/flow-definition.interface.d.ts +20 -0
- package/interfaces/generic-record.interface.d.ts +15 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/reference-provider.interface.d.ts +8 -0
- package/interfaces/schema-dialect-adapter.interface.d.ts +15 -0
- package/modules/entity-builder.module.d.ts +10 -0
- package/modules/index.d.ts +1 -0
- package/package.json +93 -0
- package/rule-engine/index.d.ts +3 -0
- package/rule-engine/rule-engine.service.d.ts +39 -0
- package/rule-engine/rule-evaluation-context.interface.d.ts +28 -0
- package/rule-engine/rule-ip.d.ts +3 -0
- package/rule-engine/rule-permission.d.ts +10 -0
- package/rule-engine/rule-regex.d.ts +4 -0
- package/rule-engine/rule-values.d.ts +5 -0
- package/rule-engine/rule.interface.d.ts +79 -0
- package/services/database-error.mapper.d.ts +2 -0
- package/services/definition-cache.service.d.ts +8 -0
- package/services/entity-builder-config.service.d.ts +12 -0
- package/services/entity-builder-datasource.provider.d.ts +24 -0
- package/services/entity-definition.service.d.ts +17 -0
- package/services/entity-flow-scaffold.d.ts +26 -0
- package/services/entity-permission.service.d.ts +8 -0
- package/services/field-definition.service.d.ts +17 -0
- package/services/field-type-conversion.d.ts +15 -0
- package/services/field-value-validator.d.ts +17 -0
- package/services/flow-api-key.service.d.ts +31 -0
- package/services/flow-definition.service.d.ts +49 -0
- package/services/flow-execution.service.d.ts +37 -0
- package/services/flow-executor.service.d.ts +40 -0
- package/services/flow-reference.provider.d.ts +13 -0
- package/services/flow-runtime.service.d.ts +29 -0
- package/services/generic-entity-service.factory.d.ts +12 -0
- package/services/generic-entity.service.d.ts +67 -0
- package/services/identifier-rules.d.ts +9 -0
- package/services/index.d.ts +27 -0
- package/services/reference-rewrite.d.ts +7 -0
- package/services/reference-scanner.service.d.ts +10 -0
- package/services/schema-change-executor.service.d.ts +39 -0
- package/services/schema-change.types.d.ts +59 -0
- package/services/schema-columns.d.ts +26 -0
- package/services/schema-dialect-adapter.service.d.ts +13 -0
- package/services/schema-evolution.service.d.ts +67 -0
- package/services/schema-registry.service.d.ts +13 -0
- package/services/schema-sync.service.d.ts +28 -0
package/fesm/21.js
ADDED
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
export const __rspack_esm_id = 21;
|
|
2
|
+
export const __rspack_esm_ids = [21];
|
|
3
|
+
export const __webpack_modules__ = {
|
|
4
|
+
5732(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
// ==================== ENTITY BUILDER MODULE MESSAGE KEYS ====================
|
|
6
|
+
// The CRUD `*_SUCCESS` keys are the ones createApiController emits for `entityName: 'entity_builder.<resource>'`.
|
|
7
|
+
const ENTITY_DEFINITION_MESSAGES = {
|
|
8
|
+
NOT_FOUND: 'entity_builder.entity_definition.not.found',
|
|
9
|
+
CODE_ALREADY_EXISTS: 'entity_builder.entity_definition.code.already.exists',
|
|
10
|
+
DEPRECATED: 'entity_builder.entity_definition.deprecated',
|
|
11
|
+
ID_REQUIRED: 'entity_builder.entity_definition.id.required',
|
|
12
|
+
INVALID_STATUS: 'entity_builder.entity_definition.invalid.status',
|
|
13
|
+
CREATE_SUCCESS: 'entity_builder.entity_definition.create.success',
|
|
14
|
+
GET_SUCCESS: 'entity_builder.entity_definition.get.success',
|
|
15
|
+
GET_BY_IDS_SUCCESS: 'entity_builder.entity_definition.get.by.ids.success',
|
|
16
|
+
GET_BY_FILTER_SUCCESS: 'entity_builder.entity_definition.get.by.filter.success',
|
|
17
|
+
GET_ALL_SUCCESS: 'entity_builder.entity_definition.get.all.success',
|
|
18
|
+
PLAN_SUCCESS: 'entity_builder.entity_definition.plan.success',
|
|
19
|
+
APPLY_SUCCESS: 'entity_builder.entity_definition.apply.success',
|
|
20
|
+
INSPECT_SUCCESS: 'entity_builder.entity_definition.inspect.success',
|
|
21
|
+
HISTORY_SUCCESS: 'entity_builder.entity_definition.history.success'
|
|
22
|
+
};
|
|
23
|
+
const FIELD_DEFINITION_MESSAGES = {
|
|
24
|
+
NOT_FOUND: 'entity_builder.field_definition.not.found',
|
|
25
|
+
ID_REQUIRED: 'entity_builder.field_definition.id.required',
|
|
26
|
+
DEFINITION_REQUIRED: 'entity_builder.field_definition.definition.required',
|
|
27
|
+
DEPRECATED_LOCKED: 'entity_builder.field_definition.deprecated.locked',
|
|
28
|
+
RENAME_ALONE: 'entity_builder.field_definition.rename.alone',
|
|
29
|
+
GET_SUCCESS: 'entity_builder.field_definition.get.success',
|
|
30
|
+
GET_BY_IDS_SUCCESS: 'entity_builder.field_definition.get.by.ids.success',
|
|
31
|
+
GET_BY_FILTER_SUCCESS: 'entity_builder.field_definition.get.by.filter.success',
|
|
32
|
+
GET_ALL_SUCCESS: 'entity_builder.field_definition.get.all.success'
|
|
33
|
+
};
|
|
34
|
+
const FLOW_DEFINITION_MESSAGES = {
|
|
35
|
+
CREATE_SUCCESS: 'entity_builder.flow_definition.create.success',
|
|
36
|
+
UPDATE_SUCCESS: 'entity_builder.flow_definition.update.success',
|
|
37
|
+
DELETE_SUCCESS: 'entity_builder.flow_definition.delete.success',
|
|
38
|
+
RESTORE_SUCCESS: 'entity_builder.flow_definition.restore.success',
|
|
39
|
+
GET_SUCCESS: 'entity_builder.flow_definition.get.success',
|
|
40
|
+
GET_BY_IDS_SUCCESS: 'entity_builder.flow_definition.get.by.ids.success',
|
|
41
|
+
GET_BY_FILTER_SUCCESS: 'entity_builder.flow_definition.get.by.filter.success',
|
|
42
|
+
GET_ALL_SUCCESS: 'entity_builder.flow_definition.get.all.success'
|
|
43
|
+
};
|
|
44
|
+
const GENERIC_RECORD_MESSAGES = {
|
|
45
|
+
NOT_FOUND: 'entity_builder.generic_record.not.found',
|
|
46
|
+
NO_MATCH: 'entity_builder.generic_record.no.match',
|
|
47
|
+
ID_REQUIRED: 'entity_builder.generic_record.id.required',
|
|
48
|
+
UNKNOWN_FIELD: 'entity_builder.generic_record.unknown.field',
|
|
49
|
+
SYSTEM_COLUMN_READONLY: 'entity_builder.generic_record.system.column.readonly',
|
|
50
|
+
VALIDATION_FAILED: 'entity_builder.generic_record.validation.failed',
|
|
51
|
+
UNIQUE_VIOLATION: 'entity_builder.generic_record.unique.violation',
|
|
52
|
+
UNIQUE_VIOLATION_ANY: 'entity_builder.generic_record.unique.violation.any',
|
|
53
|
+
REQUIRED: 'entity_builder.generic_record.required',
|
|
54
|
+
REQUIRED_ANY: 'entity_builder.generic_record.required.any',
|
|
55
|
+
TOO_LONG: 'entity_builder.generic_record.too.long',
|
|
56
|
+
TOO_LONG_ANY: 'entity_builder.generic_record.too.long.any',
|
|
57
|
+
OUT_OF_RANGE: 'entity_builder.generic_record.out.of.range',
|
|
58
|
+
OUT_OF_RANGE_ANY: 'entity_builder.generic_record.out.of.range.any',
|
|
59
|
+
INVALID_FORMAT: 'entity_builder.generic_record.invalid.format',
|
|
60
|
+
INVALID_FORMAT_ANY: 'entity_builder.generic_record.invalid.format.any',
|
|
61
|
+
REFERENCE_VIOLATION: 'entity_builder.generic_record.reference.violation',
|
|
62
|
+
FILTER_OPERATOR_UNKNOWN: 'entity_builder.generic_record.filter.operator.unknown',
|
|
63
|
+
FILTER_VALUE_INVALID: 'entity_builder.generic_record.filter.value.invalid',
|
|
64
|
+
FILTER_TOO_MANY_VALUES: 'entity_builder.generic_record.filter.too.many.values'
|
|
65
|
+
};
|
|
66
|
+
const SCHEMA_MESSAGES = {
|
|
67
|
+
BUSY: 'entity_builder.schema.busy',
|
|
68
|
+
COLUMN_EXISTS: 'entity_builder.schema.column.exists',
|
|
69
|
+
TABLE_EXISTS: 'entity_builder.schema.table.exists',
|
|
70
|
+
DRIFT_COLUMN: 'entity_builder.schema.drift.column',
|
|
71
|
+
DRIFT_TABLE: 'entity_builder.schema.drift.table',
|
|
72
|
+
CONVERSION_FAILED: 'entity_builder.schema.conversion.failed',
|
|
73
|
+
DUPLICATES_EXIST: 'entity_builder.schema.duplicates.exist',
|
|
74
|
+
NULLS_EXIST: 'entity_builder.schema.nulls.exist',
|
|
75
|
+
FAILED: 'entity_builder.schema.failed',
|
|
76
|
+
BLOCKED: 'entity_builder.schema.blocked',
|
|
77
|
+
NO_LONGER_APPLICABLE: 'entity_builder.schema.no.longer.applicable',
|
|
78
|
+
CONFIRMATION_REQUIRED: 'entity_builder.schema.confirmation.required',
|
|
79
|
+
USE_DESTRUCTIVE_ENDPOINT: 'entity_builder.schema.use.destructive.endpoint',
|
|
80
|
+
USE_REGULAR_ENDPOINT: 'entity_builder.schema.use.regular.endpoint',
|
|
81
|
+
UNSUPPORTED_FIELD_TYPE: 'entity_builder.schema.unsupported.field.type',
|
|
82
|
+
UNSUPPORTED_DRIVER: 'entity_builder.schema.unsupported.driver',
|
|
83
|
+
UNKNOWN_CHANGE_PROPERTY: 'entity_builder.schema.unknown.change.property',
|
|
84
|
+
DUPLICATE_FIELD_CODE: 'entity_builder.schema.duplicate.field.code',
|
|
85
|
+
INVALID_CODE_PATTERN: 'entity_builder.schema.invalid.code.pattern',
|
|
86
|
+
RESERVED_WORD: 'entity_builder.schema.reserved.word',
|
|
87
|
+
SYSTEM_COLUMN_CODE: 'entity_builder.schema.system.column.code',
|
|
88
|
+
NOT_INDEXABLE: 'entity_builder.schema.not.indexable',
|
|
89
|
+
INVALID_CHANGE_VALUE: 'entity_builder.schema.invalid.change.value',
|
|
90
|
+
STALE_DEFINITION: 'entity_builder.schema.stale.definition',
|
|
91
|
+
FAILED_NOT_REVERTED: 'entity_builder.schema.failed.not.reverted'
|
|
92
|
+
};
|
|
93
|
+
/** Reasons a schema change cannot run right now (`plan.blockers`). */ const SCHEMA_BLOCKER_MESSAGES = {
|
|
94
|
+
TABLE_MISSING: 'entity_builder.schema.blocker.table.missing',
|
|
95
|
+
TABLE_EXISTS: 'entity_builder.schema.blocker.table.exists',
|
|
96
|
+
ENTITY_CODE_EXISTS: 'entity_builder.schema.blocker.entity.code.exists',
|
|
97
|
+
RELATION_FIELD_TARGET_MISSING: 'entity_builder.schema.blocker.relation.field.target.missing',
|
|
98
|
+
FLOW_SLUG_TAKEN: 'entity_builder.schema.blocker.flow.slug.taken',
|
|
99
|
+
RELATION_TARGET_MISSING: 'entity_builder.schema.blocker.relation.target.missing',
|
|
100
|
+
RELATION_TARGET_REQUIRED: 'entity_builder.schema.blocker.relation.target.required',
|
|
101
|
+
FIELD_EXISTS: 'entity_builder.schema.blocker.field.exists',
|
|
102
|
+
FIELD_EXISTS_DEPRECATED: 'entity_builder.schema.blocker.field.exists.deprecated',
|
|
103
|
+
DEFAULT_INVALID: 'entity_builder.schema.blocker.default.invalid',
|
|
104
|
+
BACKFILL_INVALID: 'entity_builder.schema.blocker.backfill.invalid',
|
|
105
|
+
REQUIRED_NEEDS_VALUE: 'entity_builder.schema.blocker.required.needs.value',
|
|
106
|
+
UNIQUE_BACKFILL_CONFLICT: 'entity_builder.schema.blocker.unique.backfill.conflict',
|
|
107
|
+
COLUMN_MISSING: 'entity_builder.schema.blocker.column.missing',
|
|
108
|
+
CONVERSION_UNSUPPORTED: 'entity_builder.schema.blocker.conversion.unsupported',
|
|
109
|
+
CONVERSION_BAD_ROWS: 'entity_builder.schema.blocker.conversion.bad.rows',
|
|
110
|
+
CURRENT_DEFAULT_INVALID: 'entity_builder.schema.blocker.current.default.invalid',
|
|
111
|
+
NULLS_NEED_VALUE: 'entity_builder.schema.blocker.nulls.need.value',
|
|
112
|
+
DUPLICATE_VALUES: 'entity_builder.schema.blocker.duplicate.values',
|
|
113
|
+
FIELD_CODE_TAKEN: 'entity_builder.schema.blocker.field.code.taken',
|
|
114
|
+
FIELD_CODE_TAKEN_DEPRECATED: 'entity_builder.schema.blocker.field.code.taken.deprecated',
|
|
115
|
+
RENAME_IN_USE: 'entity_builder.schema.blocker.rename.in.use',
|
|
116
|
+
ALREADY_DEPRECATED: 'entity_builder.schema.blocker.already.deprecated',
|
|
117
|
+
NOT_DEPRECATED: 'entity_builder.schema.blocker.not.deprecated',
|
|
118
|
+
COLUMN_GONE: 'entity_builder.schema.blocker.column.gone',
|
|
119
|
+
PURGE_REQUIRES_DEPRECATED: 'entity_builder.schema.blocker.purge.requires.deprecated',
|
|
120
|
+
PURGE_CONFIRM_CODE: 'entity_builder.schema.blocker.purge.confirm.code',
|
|
121
|
+
PURGE_IN_USE: 'entity_builder.schema.blocker.purge.in.use',
|
|
122
|
+
DROP_CONFIRM_CODE: 'entity_builder.schema.blocker.drop.confirm.code',
|
|
123
|
+
DROP_IN_USE: 'entity_builder.schema.blocker.drop.in.use',
|
|
124
|
+
DROP_RELATION_IN_USE: 'entity_builder.schema.blocker.drop.relation.in.use',
|
|
125
|
+
DEFINITION_CHANGED: 'entity_builder.schema.blocker.definition.changed'
|
|
126
|
+
};
|
|
127
|
+
/** Things worth knowing before a schema change is applied (`plan.warnings`). */ const SCHEMA_WARNING_MESSAGES = {
|
|
128
|
+
NO_SELECT_OPTIONS_YET: 'entity_builder.schema.warning.no.select.options.yet',
|
|
129
|
+
NO_SELECT_OPTIONS_CONVERT: 'entity_builder.schema.warning.no.select.options.convert',
|
|
130
|
+
STRAY_VALUES: 'entity_builder.schema.warning.stray.values',
|
|
131
|
+
RULES_VIOLATED: 'entity_builder.schema.warning.rules.violated',
|
|
132
|
+
LOSSY_ROUNDING: 'entity_builder.schema.warning.lossy.rounding',
|
|
133
|
+
LOSSY_TIME_DROPPED: 'entity_builder.schema.warning.lossy.time.dropped',
|
|
134
|
+
BACKFILL_WILL_SET: 'entity_builder.schema.warning.backfill.will.set',
|
|
135
|
+
REFERENCES_REWRITTEN: 'entity_builder.schema.warning.references.rewritten',
|
|
136
|
+
STILL_REFERENCED: 'entity_builder.schema.warning.still.referenced',
|
|
137
|
+
FIELD_OPTIONAL_AGAIN: 'entity_builder.schema.warning.field.optional.again',
|
|
138
|
+
VALUES_DELETED: 'entity_builder.schema.warning.values.deleted',
|
|
139
|
+
COLUMN_ALREADY_MISSING: 'entity_builder.schema.warning.column.already.missing',
|
|
140
|
+
SOFT_DELETE_OFF: 'entity_builder.schema.warning.soft.delete.off',
|
|
141
|
+
AUDIT_OFF: 'entity_builder.schema.warning.audit.off',
|
|
142
|
+
ENTITY_REFERENCED: 'entity_builder.schema.warning.entity.referenced',
|
|
143
|
+
RECORDS_DELETED: 'entity_builder.schema.warning.records.deleted',
|
|
144
|
+
TABLE_ALREADY_MISSING: 'entity_builder.schema.warning.table.already.missing',
|
|
145
|
+
TABLE_RECREATED_EMPTY: 'entity_builder.schema.warning.table.recreated.empty',
|
|
146
|
+
UNIQUE_NOT_RECREATED: 'entity_builder.schema.warning.unique.not.recreated',
|
|
147
|
+
REQUIRED_HAS_NULLS: 'entity_builder.schema.warning.required.has.nulls',
|
|
148
|
+
NEEDS_MANUAL_ATTENTION: 'entity_builder.schema.warning.needs.manual.attention',
|
|
149
|
+
NOTHING_TO_REPAIR: 'entity_builder.schema.warning.nothing.to.repair',
|
|
150
|
+
FOLLOW_UP_FAILED: 'entity_builder.schema.warning.follow.up.failed',
|
|
151
|
+
ENDPOINT_FLOW_FAILED: 'entity_builder.schema.warning.endpoint.flow.failed',
|
|
152
|
+
MYSQL_NO_ROLLBACK: 'entity_builder.schema.warning.mysql.no.rollback'
|
|
153
|
+
};
|
|
154
|
+
/** One line of a schema change plan (`plan.steps[].description`). */ const SCHEMA_STEP_MESSAGES = {
|
|
155
|
+
CREATE_TABLE: 'entity_builder.schema.step.create.table',
|
|
156
|
+
ADD_COLUMN: 'entity_builder.schema.step.add.column',
|
|
157
|
+
BACKFILL_EXISTING: 'entity_builder.schema.step.backfill.existing',
|
|
158
|
+
BACKFILL_RECORDS: 'entity_builder.schema.step.backfill.records',
|
|
159
|
+
MAKE_REQUIRED: 'entity_builder.schema.step.make.required',
|
|
160
|
+
MAKE_OPTIONAL: 'entity_builder.schema.step.make.optional',
|
|
161
|
+
ADD_UNIQUE: 'entity_builder.schema.step.add.unique',
|
|
162
|
+
REMOVE_UNIQUE: 'entity_builder.schema.step.remove.unique',
|
|
163
|
+
ADD_INDEX: 'entity_builder.schema.step.add.index',
|
|
164
|
+
REMOVE_INDEX: 'entity_builder.schema.step.remove.index',
|
|
165
|
+
CONVERT_TYPE: 'entity_builder.schema.step.convert.type',
|
|
166
|
+
RENAME_COLUMN: 'entity_builder.schema.step.rename.column',
|
|
167
|
+
RENAME_INDEX: 'entity_builder.schema.step.rename.index',
|
|
168
|
+
RELAX_DEPRECATED: 'entity_builder.schema.step.relax.deprecated',
|
|
169
|
+
DROP_COLUMN: 'entity_builder.schema.step.drop.column',
|
|
170
|
+
DROP_TABLE: 'entity_builder.schema.step.drop.table',
|
|
171
|
+
ADD_DELETED_AT: 'entity_builder.schema.step.add.deleted.at',
|
|
172
|
+
ADD_AUDIT_COLUMNS: 'entity_builder.schema.step.add.audit.columns',
|
|
173
|
+
RECREATE_TABLE: 'entity_builder.schema.step.recreate.table',
|
|
174
|
+
ADD_SYSTEM_COLUMN: 'entity_builder.schema.step.add.system.column',
|
|
175
|
+
ADD_MISSING_COLUMN: 'entity_builder.schema.step.add.missing.column',
|
|
176
|
+
RECREATE_INDEX: 'entity_builder.schema.step.recreate.index',
|
|
177
|
+
RECREATE_UNIQUE: 'entity_builder.schema.step.recreate.unique'
|
|
178
|
+
};
|
|
179
|
+
/** Drift check findings (`inspect`). */ const SCHEMA_FINDING_MESSAGES = {
|
|
180
|
+
MISSING_TABLE: 'entity_builder.schema.finding.missing.table',
|
|
181
|
+
SYSTEM_COLUMN_MISSING: 'entity_builder.schema.finding.system.column.missing',
|
|
182
|
+
COLUMN_MISSING: 'entity_builder.schema.finding.column.missing',
|
|
183
|
+
TYPE_MISMATCH: 'entity_builder.schema.finding.type.mismatch',
|
|
184
|
+
REQUIRED_BUT_NULLABLE: 'entity_builder.schema.finding.required.but.nullable',
|
|
185
|
+
OPTIONAL_BUT_NOT_NULL: 'entity_builder.schema.finding.optional.but.not.null',
|
|
186
|
+
INDEX_MISSING: 'entity_builder.schema.finding.index.missing',
|
|
187
|
+
UNIQUE_MISSING: 'entity_builder.schema.finding.unique.missing',
|
|
188
|
+
STALE_METADATA: 'entity_builder.schema.finding.stale.metadata',
|
|
189
|
+
EXTRA_COLUMN: 'entity_builder.schema.finding.extra.column'
|
|
190
|
+
};
|
|
191
|
+
/** What else mentions the entity or field being changed (`plan.impact[].detail`). */ const SCHEMA_IMPACT_MESSAGES = {
|
|
192
|
+
FLOW_ON_ENTITY: 'entity_builder.schema.impact.flow.on.entity',
|
|
193
|
+
FLOW_USES_FIELD: 'entity_builder.schema.impact.flow.uses.field'
|
|
194
|
+
};
|
|
195
|
+
/** Data that would not survive a type change, counted before anything runs. */ const SCHEMA_PRECHECK_MESSAGES = {
|
|
196
|
+
NOT_EMAIL: 'entity_builder.schema.precheck.not.email',
|
|
197
|
+
TOO_LONG: 'entity_builder.schema.precheck.too.long',
|
|
198
|
+
NOT_WHOLE_NUMBER: 'entity_builder.schema.precheck.not.whole.number',
|
|
199
|
+
NOT_NUMBER: 'entity_builder.schema.precheck.not.number',
|
|
200
|
+
NOT_BOOLEAN_TEXT: 'entity_builder.schema.precheck.not.boolean.text',
|
|
201
|
+
NOT_DATE: 'entity_builder.schema.precheck.not.date',
|
|
202
|
+
NOT_DATETIME: 'entity_builder.schema.precheck.not.datetime',
|
|
203
|
+
OUT_OF_INTEGER_RANGE: 'entity_builder.schema.precheck.out.of.integer.range',
|
|
204
|
+
NOT_ZERO_OR_ONE: 'entity_builder.schema.precheck.not.zero.or.one',
|
|
205
|
+
MULTIPLE_SELECTED: 'entity_builder.schema.precheck.multiple.selected'
|
|
206
|
+
};
|
|
207
|
+
/** Why a single record value was refused (`errors[].messageKey`). */ const FIELD_VALIDATION_MESSAGES = {
|
|
208
|
+
REQUIRED: 'entity_builder.validation.required',
|
|
209
|
+
MUST_BE_TEXT: 'entity_builder.validation.must.be.text',
|
|
210
|
+
MAX_LENGTH: 'entity_builder.validation.max.length',
|
|
211
|
+
MIN_LENGTH: 'entity_builder.validation.min.length',
|
|
212
|
+
INVALID_EMAIL: 'entity_builder.validation.invalid.email',
|
|
213
|
+
ONE_OF: 'entity_builder.validation.one.of',
|
|
214
|
+
WHOLE_NUMBER: 'entity_builder.validation.whole.number',
|
|
215
|
+
NUMBER_BETWEEN: 'entity_builder.validation.number.between',
|
|
216
|
+
NUMBER: 'entity_builder.validation.number',
|
|
217
|
+
NUMBER_TOO_LARGE: 'entity_builder.validation.number.too.large',
|
|
218
|
+
BOOLEAN: 'entity_builder.validation.boolean',
|
|
219
|
+
REAL_DATE: 'entity_builder.validation.real.date',
|
|
220
|
+
ISO_DATETIME: 'entity_builder.validation.iso.datetime',
|
|
221
|
+
TEXT_LIST: 'entity_builder.validation.text.list',
|
|
222
|
+
UNKNOWN_OPTIONS: 'entity_builder.validation.unknown.options',
|
|
223
|
+
UUID: 'entity_builder.validation.uuid',
|
|
224
|
+
JSON: 'entity_builder.validation.json',
|
|
225
|
+
MIN_VALUE: 'entity_builder.validation.min.value',
|
|
226
|
+
MAX_VALUE: 'entity_builder.validation.max.value',
|
|
227
|
+
MIN_ITEMS: 'entity_builder.validation.min.items',
|
|
228
|
+
MAX_ITEMS: 'entity_builder.validation.max.items',
|
|
229
|
+
MUST_BE_LIST: 'entity_builder.validation.must.be.list',
|
|
230
|
+
MUST_BE_OBJECT: 'entity_builder.validation.must.be.object',
|
|
231
|
+
RELATED_NOT_FOUND: 'entity_builder.validation.related.not.found'
|
|
232
|
+
};
|
|
233
|
+
const RULE_ENGINE_MESSAGES = {
|
|
234
|
+
TEMPLATE_TOO_LONG: 'entity_builder.rule_engine.template.too.long',
|
|
235
|
+
INVALID_FIELD_REFERENCE: 'entity_builder.rule_engine.invalid.field.reference',
|
|
236
|
+
UNKNOWN_FUNCTION: 'entity_builder.rule_engine.unknown.function',
|
|
237
|
+
EXPECTED_NUMBER: 'entity_builder.rule_engine.expected.number',
|
|
238
|
+
DIVISION_BY_ZERO: 'entity_builder.rule_engine.division.by.zero',
|
|
239
|
+
MAX_DEPTH_EXCEEDED: 'entity_builder.rule_engine.max.depth.exceeded',
|
|
240
|
+
MAX_CONDITIONS_EXCEEDED: 'entity_builder.rule_engine.max.conditions.exceeded',
|
|
241
|
+
CONDITION_INCOMPLETE: 'entity_builder.rule_engine.condition.incomplete',
|
|
242
|
+
EXPECTED_DATE: 'entity_builder.rule_engine.expected.date',
|
|
243
|
+
INVALID_DURATION_UNIT: 'entity_builder.rule_engine.invalid.duration.unit',
|
|
244
|
+
INVALID_UTC_OFFSET: 'entity_builder.rule_engine.invalid.utc.offset',
|
|
245
|
+
REGEX_INVALID: 'entity_builder.rule_engine.regex.invalid',
|
|
246
|
+
REGEX_PATTERN_TOO_LONG: 'entity_builder.rule_engine.regex.pattern.too.long',
|
|
247
|
+
REGEX_INPUT_TOO_LONG: 'entity_builder.rule_engine.regex.input.too.long',
|
|
248
|
+
LOOKUP_RESOLVER_UNAVAILABLE: 'entity_builder.rule_engine.lookup.resolver.unavailable',
|
|
249
|
+
LOOKUP_LIMIT_EXCEEDED: 'entity_builder.rule_engine.lookup.limit.exceeded',
|
|
250
|
+
TOO_MANY_PERMISSION_CODES: 'entity_builder.rule_engine.too.many.permission.codes',
|
|
251
|
+
INVALID_IP_RANGE: 'entity_builder.rule_engine.invalid.ip.range',
|
|
252
|
+
TOO_MANY_IP_RANGES: 'entity_builder.rule_engine.too.many.ip.ranges',
|
|
253
|
+
UNKNOWN_COMPARISON: 'entity_builder.rule_engine.unknown.comparison',
|
|
254
|
+
UNKNOWN_GROUP_OPERATOR: 'entity_builder.rule_engine.unknown.group.operator',
|
|
255
|
+
REGEX_TOO_COMPLEX: 'entity_builder.rule_engine.regex.too.complex'
|
|
256
|
+
};
|
|
257
|
+
const FLOW_MESSAGES = {
|
|
258
|
+
NOT_FOUND: 'entity_builder.flow.not.found',
|
|
259
|
+
NOTHING_TO_TEST: 'entity_builder.flow.nothing.to.test',
|
|
260
|
+
INVALID: 'entity_builder.flow.invalid',
|
|
261
|
+
SLUG_TAKEN: 'entity_builder.flow.slug.taken',
|
|
262
|
+
RATE_LIMITED: 'entity_builder.flow.rate.limited',
|
|
263
|
+
API_KEY_INVALID: 'entity_builder.flow.api.key.invalid',
|
|
264
|
+
API_KEY_NOT_FOUND: 'entity_builder.flow.api.key.not.found',
|
|
265
|
+
API_KEY_CREATE_SUCCESS: 'entity_builder.flow.api.key.create.success',
|
|
266
|
+
API_KEY_LIST_SUCCESS: 'entity_builder.flow.api.key.list.success',
|
|
267
|
+
API_KEY_REVOKE_SUCCESS: 'entity_builder.flow.api.key.revoke.success',
|
|
268
|
+
API_KEY_DELETE_SUCCESS: 'entity_builder.flow.api.key.delete.success',
|
|
269
|
+
API_KEY_EXPIRED: 'entity_builder.flow.api.key.expired',
|
|
270
|
+
API_KEY_EXPIRY_IN_PAST: 'entity_builder.flow.api.key.expiry.in.past',
|
|
271
|
+
CALLED_BY_OTHER_FLOWS: 'entity_builder.flow.called.by.other.flows',
|
|
272
|
+
EXECUTION_NOT_FOUND: 'entity_builder.flow.execution.not.found',
|
|
273
|
+
EXECUTIONS_SUCCESS: 'entity_builder.flow.executions.success',
|
|
274
|
+
EXECUTION_SUCCESS: 'entity_builder.flow.execution.success',
|
|
275
|
+
REJECTED: 'entity_builder.flow.rejected',
|
|
276
|
+
FAILED: 'entity_builder.flow.failed',
|
|
277
|
+
FAILED_AT_NODE: 'entity_builder.flow.failed.at.node',
|
|
278
|
+
FAILED_AT_NODE_DETAIL: 'entity_builder.flow.failed.at.node.detail',
|
|
279
|
+
FAILED_DETAIL: 'entity_builder.flow.failed.detail',
|
|
280
|
+
COMPLETED: 'entity_builder.flow.completed',
|
|
281
|
+
VALIDATE_OK: 'entity_builder.flow.validate.ok',
|
|
282
|
+
VALIDATE_PROBLEMS: 'entity_builder.flow.validate.problems',
|
|
283
|
+
TEST_SUCCESS: 'entity_builder.flow.test.success',
|
|
284
|
+
INPUT_INVALID: 'entity_builder.flow.input.invalid',
|
|
285
|
+
INPUT_BODY_NOT_LIST: 'entity_builder.flow.input.body.not.list',
|
|
286
|
+
INPUT_BODY_ITEM_NOT_OBJECT: 'entity_builder.flow.input.body.item.not.object',
|
|
287
|
+
CHECKS_FAILED: 'entity_builder.flow.checks.failed',
|
|
288
|
+
PERMISSION_DENIED: 'entity_builder.flow.permission.denied'
|
|
289
|
+
};
|
|
290
|
+
/** Why a run was stopped or a node failed (`trace[].error`, `body.messageKey`). */ const FLOW_ERROR_MESSAGES = {
|
|
291
|
+
NO_TRIGGER: 'entity_builder.flow.error.no.trigger',
|
|
292
|
+
TOO_MANY_STEPS: 'entity_builder.flow.error.too.many.steps',
|
|
293
|
+
OUT_OF_TIME: 'entity_builder.flow.error.out.of.time',
|
|
294
|
+
TOO_MANY_ITEMS: 'entity_builder.flow.error.too.many.items',
|
|
295
|
+
TOO_MANY_HTTP_CALLS: 'entity_builder.flow.error.too.many.http.calls',
|
|
296
|
+
UNKNOWN_NODE_TYPE: 'entity_builder.flow.error.unknown.node.type',
|
|
297
|
+
RECORD_ID_MISSING: 'entity_builder.flow.error.record.id.missing',
|
|
298
|
+
LIST_NOT_A_LIST: 'entity_builder.flow.error.list.not.a.list',
|
|
299
|
+
TOO_MANY_WRITES: 'entity_builder.flow.error.too.many.writes',
|
|
300
|
+
WRITE_FILTER_EMPTY: 'entity_builder.flow.error.write.filter.empty',
|
|
301
|
+
TOO_MANY_MATCHES: 'entity_builder.flow.error.too.many.matches',
|
|
302
|
+
URL_EMPTY: 'entity_builder.flow.error.url.empty',
|
|
303
|
+
URL_INVALID: 'entity_builder.flow.error.url.invalid',
|
|
304
|
+
URL_PROTOCOL: 'entity_builder.flow.error.url.protocol',
|
|
305
|
+
URL_CREDENTIALS: 'entity_builder.flow.error.url.credentials',
|
|
306
|
+
URL_PRIVATE: 'entity_builder.flow.error.url.private',
|
|
307
|
+
RESPONSE_TOO_LARGE: 'entity_builder.flow.error.response.too.large',
|
|
308
|
+
RESPONSE_INCOMPLETE: 'entity_builder.flow.error.response.incomplete',
|
|
309
|
+
REQUEST_TIMEOUT: 'entity_builder.flow.error.request.timeout',
|
|
310
|
+
NODE_FAILED: 'entity_builder.flow.error.node.failed',
|
|
311
|
+
CODE_THREW: 'entity_builder.flow.error.code.threw',
|
|
312
|
+
CODE_TIMEOUT: 'entity_builder.flow.error.code.timeout',
|
|
313
|
+
CODE_OUT_OF_MEMORY: 'entity_builder.flow.error.code.out.of.memory',
|
|
314
|
+
CODE_OUTPUT_TOO_LARGE: 'entity_builder.flow.error.code.output.too.large',
|
|
315
|
+
CODE_OUTPUT_INVALID: 'entity_builder.flow.error.code.output.invalid',
|
|
316
|
+
CODE_UNAVAILABLE: 'entity_builder.flow.error.code.unavailable',
|
|
317
|
+
CALLED_FLOW_NOT_FOUND: 'entity_builder.flow.error.called.flow.not.found',
|
|
318
|
+
CALLED_FLOW_NOT_ALLOWED: 'entity_builder.flow.error.called.flow.not.allowed',
|
|
319
|
+
CALLED_FLOW_RECURSION: 'entity_builder.flow.error.called.flow.recursion',
|
|
320
|
+
CALLED_FLOW_TOO_DEEP: 'entity_builder.flow.error.called.flow.too.deep',
|
|
321
|
+
CALLED_FLOW_FAILED: 'entity_builder.flow.error.called.flow.failed',
|
|
322
|
+
CALLED_FLOW_FAILED_AT_NODE: 'entity_builder.flow.error.called.flow.failed.at.node',
|
|
323
|
+
RUN_AS_NOT_ALLOWED: 'entity_builder.flow.error.run.as.not.allowed',
|
|
324
|
+
FILTER_VALUE_MISSING: 'entity_builder.flow.error.filter.value.missing'
|
|
325
|
+
};
|
|
326
|
+
/** Why a node was not executed in a test run (`output.reasonKey`). */ const FLOW_SKIP_MESSAGES = {
|
|
327
|
+
HTTP: 'entity_builder.flow.skip.http',
|
|
328
|
+
EVENTS: 'entity_builder.flow.skip.events',
|
|
329
|
+
COMMIT_DRY_RUN: 'entity_builder.flow.skip.commit.dry.run',
|
|
330
|
+
COMMIT_NO_TRANSACTION: 'entity_builder.flow.skip.commit.no.transaction',
|
|
331
|
+
COMMIT_JOINED: 'entity_builder.flow.skip.commit.joined'
|
|
332
|
+
};
|
|
333
|
+
/** Save-time findings about a flow (`validateFlow`). */ const FLOW_VALIDATION_MESSAGES = {
|
|
334
|
+
SLUG_INVALID: 'entity_builder.flow.validation.slug.invalid',
|
|
335
|
+
RUN_AS_CALLER_NEEDS_AUTH: 'entity_builder.flow.validation.run.as.caller.needs.auth',
|
|
336
|
+
RUN_AS_INVALID: 'entity_builder.flow.validation.run.as.invalid',
|
|
337
|
+
AUTH_MODE_INVALID: 'entity_builder.flow.validation.auth.mode.invalid',
|
|
338
|
+
NO_NODES: 'entity_builder.flow.validation.no.nodes',
|
|
339
|
+
TOO_MANY_NODES: 'entity_builder.flow.validation.too.many.nodes',
|
|
340
|
+
TOO_MANY_EDGES: 'entity_builder.flow.validation.too.many.edges',
|
|
341
|
+
NODE_ID_INVALID: 'entity_builder.flow.validation.node.id.invalid',
|
|
342
|
+
NODE_ID_DUPLICATE: 'entity_builder.flow.validation.node.id.duplicate',
|
|
343
|
+
NODE_TYPE_UNKNOWN: 'entity_builder.flow.validation.node.type.unknown',
|
|
344
|
+
TRIGGER_COUNT: 'entity_builder.flow.validation.trigger.count',
|
|
345
|
+
EDGE_ID_DUPLICATE: 'entity_builder.flow.validation.edge.id.duplicate',
|
|
346
|
+
EDGE_DANGLING: 'entity_builder.flow.validation.edge.dangling',
|
|
347
|
+
EDGE_SELF: 'entity_builder.flow.validation.edge.self',
|
|
348
|
+
EDGE_INTO_TRIGGER: 'entity_builder.flow.validation.edge.into.trigger',
|
|
349
|
+
EDGE_NO_PORT: 'entity_builder.flow.validation.edge.no.port',
|
|
350
|
+
EDGE_TWICE: 'entity_builder.flow.validation.edge.twice',
|
|
351
|
+
CYCLE: 'entity_builder.flow.validation.cycle',
|
|
352
|
+
NODE_UNREACHABLE: 'entity_builder.flow.validation.node.unreachable',
|
|
353
|
+
TRANSACTIONAL_HTTP: 'entity_builder.flow.validation.transactional.http',
|
|
354
|
+
WRITES_NOT_TRANSACTIONAL: 'entity_builder.flow.validation.writes.not.transactional',
|
|
355
|
+
NODE_COMMIT_CONTINUE: 'entity_builder.flow.validation.node.commit.continue',
|
|
356
|
+
COMMIT_NOT_TRANSACTIONAL: 'entity_builder.flow.validation.commit.not.transactional',
|
|
357
|
+
COMMIT_IN_LOOP: 'entity_builder.flow.validation.commit.in.loop',
|
|
358
|
+
COMMIT_IN_CALLED_FLOW: 'entity_builder.flow.validation.commit.in.called.flow',
|
|
359
|
+
PUBLIC_SYSTEM_ENTITY: 'entity_builder.flow.validation.public.system.entity',
|
|
360
|
+
PERMISSION_WITHOUT_USER: 'entity_builder.flow.validation.permission.without.user',
|
|
361
|
+
INPUT_TOO_MANY: 'entity_builder.flow.validation.input.too.many',
|
|
362
|
+
INPUT_NAME_INVALID: 'entity_builder.flow.validation.input.name.invalid',
|
|
363
|
+
INPUT_NAME_DUPLICATE: 'entity_builder.flow.validation.input.name.duplicate',
|
|
364
|
+
INPUT_TYPE_UNKNOWN: 'entity_builder.flow.validation.input.type.unknown',
|
|
365
|
+
INPUT_CHOICE_NO_OPTIONS: 'entity_builder.flow.validation.input.choice.no.options',
|
|
366
|
+
INPUT_ITEM_TYPE_UNKNOWN: 'entity_builder.flow.validation.input.item.type.unknown',
|
|
367
|
+
INPUT_TOO_DEEP: 'entity_builder.flow.validation.input.too.deep',
|
|
368
|
+
BODY_TYPE_UNKNOWN: 'entity_builder.flow.validation.body.type.unknown',
|
|
369
|
+
NODE_EXPRESSION_PROBLEM: 'entity_builder.flow.validation.node.expression.problem',
|
|
370
|
+
NODE_RULE_PROBLEM: 'entity_builder.flow.validation.node.rule.problem',
|
|
371
|
+
NODE_PAIRS_INVALID: 'entity_builder.flow.validation.node.pairs.invalid',
|
|
372
|
+
NODE_CHOOSE_ENTITY: 'entity_builder.flow.validation.node.choose.entity',
|
|
373
|
+
NODE_ENTITY_UNKNOWN: 'entity_builder.flow.validation.node.entity.unknown',
|
|
374
|
+
NODE_STATUS_4XX: 'entity_builder.flow.validation.node.status.4xx',
|
|
375
|
+
NODE_SETS_NOTHING: 'entity_builder.flow.validation.node.sets.nothing',
|
|
376
|
+
NODE_VARIABLE_INVALID: 'entity_builder.flow.validation.node.variable.invalid',
|
|
377
|
+
NODE_CASE_REQUIRED: 'entity_builder.flow.validation.node.case.required',
|
|
378
|
+
NODE_CASE_INVALID: 'entity_builder.flow.validation.node.case.invalid',
|
|
379
|
+
NODE_CASE_DUPLICATE: 'entity_builder.flow.validation.node.case.duplicate',
|
|
380
|
+
NODE_MAX_ITEMS_RANGE: 'entity_builder.flow.validation.node.max.items.range',
|
|
381
|
+
NODE_LIMIT_RANGE: 'entity_builder.flow.validation.node.limit.range',
|
|
382
|
+
NODE_WRITE_TARGET_INVALID: 'entity_builder.flow.validation.node.write.target.invalid',
|
|
383
|
+
NODE_NOT_FOUND_INVALID: 'entity_builder.flow.validation.node.not.found.invalid',
|
|
384
|
+
NODE_FILTER_REQUIRED: 'entity_builder.flow.validation.node.filter.required',
|
|
385
|
+
NODE_CHILDREN_INVALID: 'entity_builder.flow.validation.node.children.invalid',
|
|
386
|
+
NODE_CHILDREN_TOO_MANY: 'entity_builder.flow.validation.node.children.too.many',
|
|
387
|
+
NODE_CHILD_NAME_INVALID: 'entity_builder.flow.validation.node.child.name.invalid',
|
|
388
|
+
NODE_CHILD_NAME_DUPLICATE: 'entity_builder.flow.validation.node.child.name.duplicate',
|
|
389
|
+
NODE_CHILD_PARENT_FIELD_REQUIRED: 'entity_builder.flow.validation.node.child.parent.field.required',
|
|
390
|
+
NODE_CHOOSE_FLOW: 'entity_builder.flow.validation.node.choose.flow',
|
|
391
|
+
NODE_FLOW_UNKNOWN: 'entity_builder.flow.validation.node.flow.unknown',
|
|
392
|
+
NODE_CALLS_ITSELF: 'entity_builder.flow.validation.node.calls.itself',
|
|
393
|
+
NODE_FLOW_INACTIVE: 'entity_builder.flow.validation.node.flow.inactive',
|
|
394
|
+
NODE_FLOW_API_KEY: 'entity_builder.flow.validation.node.flow.api.key',
|
|
395
|
+
NODE_FLOW_INPUT_MISSING: 'entity_builder.flow.validation.node.flow.input.missing',
|
|
396
|
+
NODE_FLOW_INPUT_UNDECLARED: 'entity_builder.flow.validation.node.flow.input.undeclared',
|
|
397
|
+
NODE_FLOW_INPUT_LIST_REQUIRED: 'entity_builder.flow.validation.node.flow.input.list.required',
|
|
398
|
+
NODE_FLOW_INPUT_LIST_UNEXPECTED: 'entity_builder.flow.validation.node.flow.input.list.unexpected',
|
|
399
|
+
NODE_FLOW_LOOP: 'entity_builder.flow.validation.node.flow.loop',
|
|
400
|
+
NODE_FLOW_TOO_DEEP: 'entity_builder.flow.validation.node.flow.too.deep',
|
|
401
|
+
NODE_CHOOSE_METHOD: 'entity_builder.flow.validation.node.choose.method',
|
|
402
|
+
NODE_TIMEOUT_RANGE: 'entity_builder.flow.validation.node.timeout.range',
|
|
403
|
+
NODE_EVENT_NAME_INVALID: 'entity_builder.flow.validation.node.event.name.invalid',
|
|
404
|
+
NODE_STATUS_2XX_5XX: 'entity_builder.flow.validation.node.status.2xx.5xx',
|
|
405
|
+
REF_BAD_SCOPE: 'entity_builder.flow.validation.ref.bad.scope',
|
|
406
|
+
REF_NODE_MISSING: 'entity_builder.flow.validation.ref.node.missing',
|
|
407
|
+
REF_SELF: 'entity_builder.flow.validation.ref.self',
|
|
408
|
+
REF_INPUT_UNDECLARED: 'entity_builder.flow.validation.ref.input.undeclared',
|
|
409
|
+
REF_NODE_NOT_YET: 'entity_builder.flow.validation.ref.node.not.yet',
|
|
410
|
+
REF_LOOP_OUTSIDE: 'entity_builder.flow.validation.ref.loop.outside',
|
|
411
|
+
REF_LOOP_PARENT_MISSING: 'entity_builder.flow.validation.ref.loop.parent.missing',
|
|
412
|
+
REF_LOOP_RESULTS_EARLY: 'entity_builder.flow.validation.ref.loop.results.early',
|
|
413
|
+
LOOP_TOO_DEEP: 'entity_builder.flow.validation.loop.too.deep',
|
|
414
|
+
NODE_CHECK_REQUIRED: 'entity_builder.flow.validation.node.check.required',
|
|
415
|
+
NODE_TOO_MANY_CHECKS: 'entity_builder.flow.validation.node.too.many.checks',
|
|
416
|
+
NODE_CHECK_ID_INVALID: 'entity_builder.flow.validation.node.check.id.invalid',
|
|
417
|
+
NODE_CHECK_ID_DUPLICATE: 'entity_builder.flow.validation.node.check.id.duplicate',
|
|
418
|
+
NODE_CHECK_MESSAGE_REQUIRED: 'entity_builder.flow.validation.node.check.message.required',
|
|
419
|
+
NODE_CHECK_FIELD_INVALID: 'entity_builder.flow.validation.node.check.field.invalid',
|
|
420
|
+
NODE_MODE_INVALID: 'entity_builder.flow.validation.node.mode.invalid',
|
|
421
|
+
NODE_PERMISSION_REQUIRED: 'entity_builder.flow.validation.node.permission.required',
|
|
422
|
+
NODE_PERMISSION_OPTION_INVALID: 'entity_builder.flow.validation.node.permission.option.invalid',
|
|
423
|
+
NODE_CODE_REQUIRED: 'entity_builder.flow.validation.node.code.required',
|
|
424
|
+
NODE_CODE_TOO_LONG: 'entity_builder.flow.validation.node.code.too.long',
|
|
425
|
+
NODE_CODE_TIMEOUT_RANGE: 'entity_builder.flow.validation.node.code.timeout.range'
|
|
426
|
+
};
|
|
427
|
+
/** Why an expression or rule inside a flow node is malformed (`node.expression.problem` variable). */ const FLOW_SHAPE_MESSAGES = {
|
|
428
|
+
NOT_AN_EXPRESSION: 'entity_builder.flow.shape.not.an.expression',
|
|
429
|
+
TOO_DEEP: 'entity_builder.flow.shape.too.deep',
|
|
430
|
+
EMPTY_REFERENCE: 'entity_builder.flow.shape.empty.reference',
|
|
431
|
+
NO_TEMPLATE_TEXT: 'entity_builder.flow.shape.no.template.text',
|
|
432
|
+
TEMPLATE_TOO_LONG: 'entity_builder.flow.shape.template.too.long',
|
|
433
|
+
NO_OPERANDS: 'entity_builder.flow.shape.no.operands',
|
|
434
|
+
NO_PARTS: 'entity_builder.flow.shape.no.parts',
|
|
435
|
+
NO_ARGUMENTS: 'entity_builder.flow.shape.no.arguments',
|
|
436
|
+
UNKNOWN_EXPRESSION_TYPE: 'entity_builder.flow.shape.unknown.expression.type',
|
|
437
|
+
NOT_A_RULE: 'entity_builder.flow.shape.not.a.rule',
|
|
438
|
+
TOO_MANY_CONDITIONS: 'entity_builder.flow.shape.too.many.conditions',
|
|
439
|
+
UNKNOWN_OPERATOR: 'entity_builder.flow.shape.unknown.operator',
|
|
440
|
+
CONDITION_INCOMPLETE: 'entity_builder.flow.shape.condition.incomplete',
|
|
441
|
+
UNKNOWN_COMPARISON: 'entity_builder.flow.shape.unknown.comparison',
|
|
442
|
+
REGEX_INVALID: 'entity_builder.flow.shape.regex.invalid',
|
|
443
|
+
REGEX_TOO_LONG: 'entity_builder.flow.shape.regex.too.long',
|
|
444
|
+
REGEX_TOO_COMPLEX: 'entity_builder.flow.shape.regex.too.complex',
|
|
445
|
+
UNKNOWN_FUNCTION: 'entity_builder.flow.shape.unknown.function',
|
|
446
|
+
WRONG_ARGUMENT_COUNT: 'entity_builder.flow.shape.wrong.argument.count',
|
|
447
|
+
DURATION_UNIT_INVALID: 'entity_builder.flow.shape.duration.unit.invalid',
|
|
448
|
+
PERMISSION_CODE_REQUIRED: 'entity_builder.flow.shape.permission.code.required',
|
|
449
|
+
IP_RANGE_INVALID: 'entity_builder.flow.shape.ip.range.invalid',
|
|
450
|
+
LOOKUP_ENTITY_INVALID: 'entity_builder.flow.shape.lookup.entity.invalid',
|
|
451
|
+
LOOKUP_ENTITY_UNKNOWN: 'entity_builder.flow.shape.lookup.entity.unknown',
|
|
452
|
+
LOOKUP_MODE_INVALID: 'entity_builder.flow.shape.lookup.mode.invalid',
|
|
453
|
+
LOOKUP_FILTER_INVALID: 'entity_builder.flow.shape.lookup.filter.invalid',
|
|
454
|
+
LOOKUP_FIELD_INVALID: 'entity_builder.flow.shape.lookup.field.invalid',
|
|
455
|
+
FILTER_OPERATOR_UNKNOWN: 'entity_builder.flow.shape.filter.operator.unknown',
|
|
456
|
+
FILTER_VALUE_REQUIRED: 'entity_builder.flow.shape.filter.value.required'
|
|
457
|
+
};
|
|
458
|
+
/** What a flow node problem is about (`what` variable of the node validation messages). */ const FLOW_SUBJECT_MESSAGES = {
|
|
459
|
+
THE_RULE: 'entity_builder.flow.subject.the.rule',
|
|
460
|
+
THE_CHECK: 'entity_builder.flow.subject.the.check',
|
|
461
|
+
THE_VALUE: 'entity_builder.flow.subject.the.value',
|
|
462
|
+
THE_LIST: 'entity_builder.flow.subject.the.list',
|
|
463
|
+
CHILD_LIST: 'entity_builder.flow.subject.child.list',
|
|
464
|
+
CHILD_FIELD: 'entity_builder.flow.subject.child.field',
|
|
465
|
+
THE_COLLECTED_VALUE: 'entity_builder.flow.subject.the.collected.value',
|
|
466
|
+
THE_RECORD_ID: 'entity_builder.flow.subject.the.record.id',
|
|
467
|
+
THE_SEARCH_TEXT: 'entity_builder.flow.subject.the.search.text',
|
|
468
|
+
THE_URL: 'entity_builder.flow.subject.the.url',
|
|
469
|
+
THE_INPUT_LIST: 'entity_builder.flow.subject.the.input.list',
|
|
470
|
+
THE_RESPONSE: 'entity_builder.flow.subject.the.response',
|
|
471
|
+
VARIABLES: 'entity_builder.flow.subject.variables',
|
|
472
|
+
VARIABLE: 'entity_builder.flow.subject.variable',
|
|
473
|
+
FIELDS: 'entity_builder.flow.subject.fields',
|
|
474
|
+
FIELD: 'entity_builder.flow.subject.field',
|
|
475
|
+
FILTERS: 'entity_builder.flow.subject.filters',
|
|
476
|
+
FILTER: 'entity_builder.flow.subject.filter',
|
|
477
|
+
INPUTS: 'entity_builder.flow.subject.inputs',
|
|
478
|
+
INPUT: 'entity_builder.flow.subject.input',
|
|
479
|
+
HEADERS: 'entity_builder.flow.subject.headers',
|
|
480
|
+
HEADER: 'entity_builder.flow.subject.header',
|
|
481
|
+
BODY_VALUES: 'entity_builder.flow.subject.body.values',
|
|
482
|
+
BODY_VALUE: 'entity_builder.flow.subject.body.value',
|
|
483
|
+
PAYLOAD_VALUES: 'entity_builder.flow.subject.payload.values',
|
|
484
|
+
PAYLOAD_VALUE: 'entity_builder.flow.subject.payload.value',
|
|
485
|
+
RESPONSE_VALUES: 'entity_builder.flow.subject.response.values',
|
|
486
|
+
RESPONSE_VALUE: 'entity_builder.flow.subject.response.value'
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
490
|
+
}, {
|
|
491
|
+
CB: FLOW_SKIP_MESSAGES,
|
|
492
|
+
EQ: SCHEMA_STEP_MESSAGES,
|
|
493
|
+
GY: FLOW_DEFINITION_MESSAGES,
|
|
494
|
+
Hu: SCHEMA_MESSAGES,
|
|
495
|
+
IP: FLOW_SHAPE_MESSAGES,
|
|
496
|
+
KE: FIELD_VALIDATION_MESSAGES,
|
|
497
|
+
M3: SCHEMA_BLOCKER_MESSAGES,
|
|
498
|
+
NE: SCHEMA_PRECHECK_MESSAGES,
|
|
499
|
+
Uu: SCHEMA_WARNING_MESSAGES,
|
|
500
|
+
Vu: SCHEMA_FINDING_MESSAGES,
|
|
501
|
+
aB: SCHEMA_IMPACT_MESSAGES,
|
|
502
|
+
bc: FLOW_SUBJECT_MESSAGES,
|
|
503
|
+
j4: GENERIC_RECORD_MESSAGES,
|
|
504
|
+
oc: FIELD_DEFINITION_MESSAGES,
|
|
505
|
+
pL: ENTITY_DEFINITION_MESSAGES,
|
|
506
|
+
qj: FLOW_VALIDATION_MESSAGES,
|
|
507
|
+
wu: FLOW_MESSAGES,
|
|
508
|
+
x3: RULE_ENGINE_MESSAGES,
|
|
509
|
+
zr: FLOW_ERROR_MESSAGES
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
},
|
|
514
|
+
|
|
515
|
+
};
|