@bob-kit/types 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/errors.d.ts +25 -25
- package/dist/errors.js +1 -24
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
package/dist/errors.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export
|
|
2
|
-
LimitValueRequired
|
|
3
|
-
LimitValueMustBeInteger
|
|
4
|
-
OffsetValueMustBeInteger
|
|
5
|
-
MalformedQuery
|
|
6
|
-
ConditionValidation
|
|
7
|
-
DeleteCondition
|
|
8
|
-
UndefinedReferenceTable
|
|
9
|
-
UndefinedReferencedColumn
|
|
10
|
-
UndefinedTypeForColumn
|
|
11
|
-
InvalidSelectedColumn
|
|
12
|
-
ColumnNotReceivingValue
|
|
13
|
-
UndefinedToken
|
|
14
|
-
InvalidTypeForColumn
|
|
15
|
-
InvalidProperty
|
|
16
|
-
UnknownDriver
|
|
17
|
-
MalformedCondition
|
|
18
|
-
JsonParse
|
|
19
|
-
MalformedArgs
|
|
20
|
-
CollectFiles
|
|
21
|
-
InvalidInput
|
|
22
|
-
IO
|
|
23
|
-
}
|
|
24
|
-
export
|
|
1
|
+
export type BobErrors = {
|
|
2
|
+
LimitValueRequired: "LimitValueRequired";
|
|
3
|
+
LimitValueMustBeInteger: "LimitValueMustBeInteger";
|
|
4
|
+
OffsetValueMustBeInteger: "OffsetValueMustBeInteger";
|
|
5
|
+
MalformedQuery: "MalformedQuery";
|
|
6
|
+
ConditionValidation: "ConditionValidation";
|
|
7
|
+
DeleteCondition: "DeleteCondition";
|
|
8
|
+
UndefinedReferenceTable: "UndefinedReferenceTable";
|
|
9
|
+
UndefinedReferencedColumn: "UndefinedReferencedColumn";
|
|
10
|
+
UndefinedTypeForColumn: "UndefinedTypeForColumn";
|
|
11
|
+
InvalidSelectedColumn: "InvalidSelectedColumn";
|
|
12
|
+
ColumnNotReceivingValue: "ColumnNotReceivingValue";
|
|
13
|
+
UndefinedToken: "UndefinedToken";
|
|
14
|
+
InvalidTypeForColumn: "InvalidTypeForColumn";
|
|
15
|
+
InvalidProperty: "InvalidProperty";
|
|
16
|
+
UnknownDriver: "UnknownDriver";
|
|
17
|
+
MalformedCondition: "MalformedCondition";
|
|
18
|
+
JsonParse: "JsonParse";
|
|
19
|
+
MalformedArgs: "MalformedArgs";
|
|
20
|
+
CollectFiles: "CollectFiles";
|
|
21
|
+
InvalidInput: "InvalidInput";
|
|
22
|
+
IO: "IO";
|
|
23
|
+
};
|
|
24
|
+
export type BobError = {
|
|
25
25
|
type: BobErrors;
|
|
26
26
|
message: string;
|
|
27
|
-
}
|
|
27
|
+
};
|
package/dist/errors.js
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (BobErrors) {
|
|
3
|
-
BobErrors["LimitValueRequired"] = "LimitValueRequired";
|
|
4
|
-
BobErrors["LimitValueMustBeInteger"] = "LimitValueMustBeInteger";
|
|
5
|
-
BobErrors["OffsetValueMustBeInteger"] = "OffsetValueMustBeInteger";
|
|
6
|
-
BobErrors["MalformedQuery"] = "MalformedQuery";
|
|
7
|
-
BobErrors["ConditionValidation"] = "ConditionValidation";
|
|
8
|
-
BobErrors["DeleteCondition"] = "DeleteCondition";
|
|
9
|
-
BobErrors["UndefinedReferenceTable"] = "UndefinedReferenceTable";
|
|
10
|
-
BobErrors["UndefinedReferencedColumn"] = "UndefinedReferencedColumn";
|
|
11
|
-
BobErrors["UndefinedTypeForColumn"] = "UndefinedTypeForColumn";
|
|
12
|
-
BobErrors["InvalidSelectedColumn"] = "InvalidSelectedColumn";
|
|
13
|
-
BobErrors["ColumnNotReceivingValue"] = "ColumnNotReceivingValue";
|
|
14
|
-
BobErrors["UndefinedToken"] = "UndefinedToken";
|
|
15
|
-
BobErrors["InvalidTypeForColumn"] = "InvalidTypeForColumn";
|
|
16
|
-
BobErrors["InvalidProperty"] = "InvalidProperty";
|
|
17
|
-
BobErrors["UnknownDriver"] = "UnknownDriver";
|
|
18
|
-
BobErrors["MalformedCondition"] = "MalformedCondition";
|
|
19
|
-
BobErrors["JsonParse"] = "JsonParse";
|
|
20
|
-
BobErrors["MalformedArgs"] = "MalformedArgs";
|
|
21
|
-
BobErrors["CollectFiles"] = "CollectFiles";
|
|
22
|
-
BobErrors["InvalidInput"] = "InvalidInput";
|
|
23
|
-
BobErrors["IO"] = "IO";
|
|
24
|
-
})(BobErrors || (BobErrors = {}));
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -9,10 +9,13 @@ export type Driver = {
|
|
|
9
9
|
driver: Motor;
|
|
10
10
|
querier: (query: string, ...parameters: any) => Promise<any>;
|
|
11
11
|
cache: Memory;
|
|
12
|
+
daemon: boolean;
|
|
12
13
|
};
|
|
13
14
|
export type BobQueryResult = {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
value?: {
|
|
16
|
+
tables: string[];
|
|
17
|
+
actions: string[];
|
|
18
|
+
};
|
|
16
19
|
error?: BobError;
|
|
17
20
|
};
|
|
18
21
|
export type BobResult<T = any> = {
|