@aeriajs/types 0.0.21 → 0.0.23
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/accessControl.mjs +26 -28
- package/dist/api.mjs +1 -1
- package/dist/condition.mjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/context.mjs +1 -1
- package/dist/contract.mjs +3 -2
- package/dist/description.mjs +1 -1
- package/dist/either.mjs +1 -1
- package/dist/functions.mjs +1 -1
- package/dist/http.mjs +11 -10
- package/dist/index.mjs +1 -0
- package/dist/property.mjs +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/security.mjs +1 -1
- package/dist/validation.mjs +7 -6
- package/package.json +3 -3
package/dist/accessControl.mjs
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
var _obj;
|
|
28
|
-
export var ACErrorMessages = (_obj = {}, _define_property(_obj, "ASSET_NOT_FOUND", "collection has no registered functions"), _define_property(_obj, "AUTHENTICATION_ERROR", "you have insufficient privileges"), _define_property(_obj, "AUTHORIZATION_ERROR", "you have insufficient privileges"), _define_property(_obj, "FUNCTION_NOT_FOUND", "function not found"), _define_property(_obj, "IMMUTABILITY_INCORRECT_CHILD", "specified limit is invalid"), _define_property(_obj, "IMMUTABILITY_PARENT_NOT_FOUND", "specified limit is invalid"), _define_property(_obj, "IMMUTABILITY_TARGET_IMMUTABLE", "specified limit is invalid"), _define_property(_obj, "INVALID_LIMIT", "specified limit is invalid"), _define_property(_obj, "OWNERSHIP_ERROR", "you have insufficient privileges"), _define_property(_obj, "RESOURCE_NOT_FOUND", "collection not found"), _obj);
|
|
1
|
+
"use strict";
|
|
2
|
+
export var ACErrors = /* @__PURE__ */ ((ACErrors2) => {
|
|
3
|
+
ACErrors2["AssetNotFound"] = "ASSET_NOT_FOUND";
|
|
4
|
+
ACErrors2["AuthenticationError"] = "AUTHENTICATION_ERROR";
|
|
5
|
+
ACErrors2["AuthorizationError"] = "AUTHORIZATION_ERROR";
|
|
6
|
+
ACErrors2["FunctionNotFound"] = "FUNCTION_NOT_FOUND";
|
|
7
|
+
ACErrors2["ImmutabilityIncorrectChild"] = "IMMUTABILITY_INCORRECT_CHILD";
|
|
8
|
+
ACErrors2["ImmutabilityParentNotFound"] = "IMMUTABILITY_PARENT_NOT_FOUND";
|
|
9
|
+
ACErrors2["ImmutabilityTargetImmutable"] = "IMMUTABILITY_TARGET_IMMUTABLE";
|
|
10
|
+
ACErrors2["InvalidLimit"] = "INVALID_LIMIT";
|
|
11
|
+
ACErrors2["OwnershipError"] = "OWNERSHIP_ERROR";
|
|
12
|
+
ACErrors2["ResourceNotFound"] = "RESOURCE_NOT_FOUND";
|
|
13
|
+
return ACErrors2;
|
|
14
|
+
})(ACErrors || {});
|
|
15
|
+
export const ACErrorMessages = {
|
|
16
|
+
["ASSET_NOT_FOUND" /* AssetNotFound */]: "collection has no registered functions",
|
|
17
|
+
["AUTHENTICATION_ERROR" /* AuthenticationError */]: "you have insufficient privileges",
|
|
18
|
+
["AUTHORIZATION_ERROR" /* AuthorizationError */]: "you have insufficient privileges",
|
|
19
|
+
["FUNCTION_NOT_FOUND" /* FunctionNotFound */]: "function not found",
|
|
20
|
+
["IMMUTABILITY_INCORRECT_CHILD" /* ImmutabilityIncorrectChild */]: "specified limit is invalid",
|
|
21
|
+
["IMMUTABILITY_PARENT_NOT_FOUND" /* ImmutabilityParentNotFound */]: "specified limit is invalid",
|
|
22
|
+
["IMMUTABILITY_TARGET_IMMUTABLE" /* ImmutabilityTargetImmutable */]: "specified limit is invalid",
|
|
23
|
+
["INVALID_LIMIT" /* InvalidLimit */]: "specified limit is invalid",
|
|
24
|
+
["OWNERSHIP_ERROR" /* OwnershipError */]: "you have insufficient privileges",
|
|
25
|
+
["RESOURCE_NOT_FOUND" /* ResourceNotFound */]: "collection not found"
|
|
26
|
+
};
|
package/dist/api.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/condition.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/context.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/contract.mjs
CHANGED
package/dist/description.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/either.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/functions.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/http.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const REQUEST_METHODS = [
|
|
3
|
+
"GET",
|
|
4
|
+
"HEAD",
|
|
5
|
+
"POST",
|
|
6
|
+
"PUT",
|
|
7
|
+
"DELETE",
|
|
8
|
+
"OPTIONS",
|
|
9
|
+
"PATCH",
|
|
10
|
+
"TRACE",
|
|
11
|
+
"SEARCH"
|
|
11
12
|
];
|
package/dist/index.mjs
CHANGED
package/dist/property.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/schema.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export type InferProperty<T> = T extends TestType<{
|
|
|
33
33
|
items: infer K;
|
|
34
34
|
}> ? InferProperty<K>[] : T extends TestType<{
|
|
35
35
|
getter: (doc: any) => infer K;
|
|
36
|
-
}> ? K : T extends TestType<{
|
|
36
|
+
}> ? Awaited<K> : T extends TestType<{
|
|
37
37
|
const: infer K;
|
|
38
38
|
}> ? K : never;
|
|
39
39
|
export type InferSchema<TSchema> = MergeReferences<TSchema> extends infer MappedTypes ? TSchema extends {
|
package/dist/schema.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/security.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/validation.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export var ValidationErrorCodes = /* @__PURE__ */ ((ValidationErrorCodes2) => {
|
|
3
|
+
ValidationErrorCodes2["InvalidProperties"] = "INVALID_PROPERTIES";
|
|
4
|
+
ValidationErrorCodes2["MissingProperties"] = "MISSING_PROPERTIES";
|
|
5
|
+
ValidationErrorCodes2["EmptyTarget"] = "EMPTY_TARGET";
|
|
6
|
+
return ValidationErrorCodes2;
|
|
7
|
+
})(ValidationErrorCodes || {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@phosphor-icons/core": "^2.0.
|
|
25
|
+
"@phosphor-icons/core": "^2.0.8"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"test": "echo skipping",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lint:fix": "eslint src --fix",
|
|
31
31
|
"build": "pnpm build:cjs && pnpm build:esm",
|
|
32
32
|
"build:cjs": "tsc",
|
|
33
|
-
"build:esm": "
|
|
33
|
+
"build:esm": "esbuild './src/**/*.ts' --outdir=dist --out-extension:.js=.mjs && pnpm build:esm-transform",
|
|
34
34
|
"build:esm-transform": "pnpm -w esm-transform $PWD/dist"
|
|
35
35
|
}
|
|
36
36
|
}
|