@roomstay/core 0.1.85-4 → 0.1.85-6
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an entity is in a usable ("valid") state, and — when it isn't — the human-readable reasons
|
|
3
|
+
* why. Computed on the backend and returned alongside the entity so the admin can flag it (and explain
|
|
4
|
+
* it) without re-deriving the logic client-side.
|
|
5
|
+
*
|
|
6
|
+
* `reasons` is empty when `valid` is true.
|
|
7
|
+
*/
|
|
8
|
+
export interface IEntityValidity {
|
|
9
|
+
valid: boolean;
|
|
10
|
+
reasons: string[];
|
|
11
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export * from './Events/IRoomstayEvent.type';
|
|
|
117
117
|
*/
|
|
118
118
|
export * from './General/Format.types';
|
|
119
119
|
export * from './General/HttpMethod.enum';
|
|
120
|
+
export * from './General/IEntityValidity.type';
|
|
120
121
|
export * from './General/IMessage.type';
|
|
121
122
|
export * from './General/Pagination.types';
|
|
122
123
|
export * from './General/Warning.type';
|