@atscript/moost-mongo 0.1.25 → 0.1.27
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/index.cjs +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +9 -6
package/dist/index.cjs
CHANGED
|
@@ -56,6 +56,7 @@ var QueryControlsDto = class {
|
|
|
56
56
|
_define_property$1(QueryControlsDto, "__is_atscript_annotated_type", true);
|
|
57
57
|
_define_property$1(QueryControlsDto, "type", {});
|
|
58
58
|
_define_property$1(QueryControlsDto, "metadata", new Map());
|
|
59
|
+
_define_property$1(QueryControlsDto, "id", "QueryControlsDto");
|
|
59
60
|
var PagesControlsDto = class {
|
|
60
61
|
static toJsonSchema() {
|
|
61
62
|
(0, __atscript_typescript_utils.throwFeatureDisabled)("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -64,6 +65,7 @@ var PagesControlsDto = class {
|
|
|
64
65
|
_define_property$1(PagesControlsDto, "__is_atscript_annotated_type", true);
|
|
65
66
|
_define_property$1(PagesControlsDto, "type", {});
|
|
66
67
|
_define_property$1(PagesControlsDto, "metadata", new Map());
|
|
68
|
+
_define_property$1(PagesControlsDto, "id", "PagesControlsDto");
|
|
67
69
|
var GetOneControlsDto = class {
|
|
68
70
|
static toJsonSchema() {
|
|
69
71
|
(0, __atscript_typescript_utils.throwFeatureDisabled)("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -72,6 +74,7 @@ var GetOneControlsDto = class {
|
|
|
72
74
|
_define_property$1(GetOneControlsDto, "__is_atscript_annotated_type", true);
|
|
73
75
|
_define_property$1(GetOneControlsDto, "type", {});
|
|
74
76
|
_define_property$1(GetOneControlsDto, "metadata", new Map());
|
|
77
|
+
_define_property$1(GetOneControlsDto, "id", "GetOneControlsDto");
|
|
75
78
|
let SortControlDto = class SortControlDto$1 {
|
|
76
79
|
static toJsonSchema() {
|
|
77
80
|
(0, __atscript_typescript_utils.throwFeatureDisabled)("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -80,6 +83,7 @@ let SortControlDto = class SortControlDto$1 {
|
|
|
80
83
|
_define_property$1(SortControlDto, "__is_atscript_annotated_type", true);
|
|
81
84
|
_define_property$1(SortControlDto, "type", {});
|
|
82
85
|
_define_property$1(SortControlDto, "metadata", new Map());
|
|
86
|
+
_define_property$1(SortControlDto, "id", "SortControlDto");
|
|
83
87
|
let SelectControlDto = class SelectControlDto$1 {
|
|
84
88
|
static toJsonSchema() {
|
|
85
89
|
(0, __atscript_typescript_utils.throwFeatureDisabled)("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -88,6 +92,7 @@ let SelectControlDto = class SelectControlDto$1 {
|
|
|
88
92
|
_define_property$1(SelectControlDto, "__is_atscript_annotated_type", true);
|
|
89
93
|
_define_property$1(SelectControlDto, "type", {});
|
|
90
94
|
_define_property$1(SelectControlDto, "metadata", new Map());
|
|
95
|
+
_define_property$1(SelectControlDto, "id", "SelectControlDto");
|
|
91
96
|
(0, __atscript_typescript_utils.defineAnnotatedType)("object", QueryControlsDto).prop("$skip", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("number").tags("positive", "int", "number").annotate("expect.min", { minValue: 0 }).annotate("expect.int", true).optional().$type).prop("$limit", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("number").tags("positive", "int", "number").annotate("expect.min", { minValue: 0 }).annotate("expect.int", true).optional().$type).prop("$count", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("boolean").tags("boolean").optional().$type).prop("$sort", (0, __atscript_typescript_utils.defineAnnotatedType)().refTo(SortControlDto).optional().$type).prop("$select", (0, __atscript_typescript_utils.defineAnnotatedType)().refTo(SelectControlDto).optional().$type).prop("$search", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("string").tags("string").optional().$type).prop("$index", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("string").tags("string").optional().$type);
|
|
92
97
|
(0, __atscript_typescript_utils.defineAnnotatedType)("object", PagesControlsDto).prop("$page", (0, __atscript_typescript_utils.defineAnnotatedType)().designType("string").tags("string").annotate("expect.pattern", {
|
|
93
98
|
pattern: "^\\d+$",
|
package/dist/index.mjs
CHANGED
|
@@ -32,6 +32,7 @@ var QueryControlsDto = class {
|
|
|
32
32
|
_define_property$1(QueryControlsDto, "__is_atscript_annotated_type", true);
|
|
33
33
|
_define_property$1(QueryControlsDto, "type", {});
|
|
34
34
|
_define_property$1(QueryControlsDto, "metadata", new Map());
|
|
35
|
+
_define_property$1(QueryControlsDto, "id", "QueryControlsDto");
|
|
35
36
|
var PagesControlsDto = class {
|
|
36
37
|
static toJsonSchema() {
|
|
37
38
|
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -40,6 +41,7 @@ var PagesControlsDto = class {
|
|
|
40
41
|
_define_property$1(PagesControlsDto, "__is_atscript_annotated_type", true);
|
|
41
42
|
_define_property$1(PagesControlsDto, "type", {});
|
|
42
43
|
_define_property$1(PagesControlsDto, "metadata", new Map());
|
|
44
|
+
_define_property$1(PagesControlsDto, "id", "PagesControlsDto");
|
|
43
45
|
var GetOneControlsDto = class {
|
|
44
46
|
static toJsonSchema() {
|
|
45
47
|
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -48,6 +50,7 @@ var GetOneControlsDto = class {
|
|
|
48
50
|
_define_property$1(GetOneControlsDto, "__is_atscript_annotated_type", true);
|
|
49
51
|
_define_property$1(GetOneControlsDto, "type", {});
|
|
50
52
|
_define_property$1(GetOneControlsDto, "metadata", new Map());
|
|
53
|
+
_define_property$1(GetOneControlsDto, "id", "GetOneControlsDto");
|
|
51
54
|
let SortControlDto = class SortControlDto$1 {
|
|
52
55
|
static toJsonSchema() {
|
|
53
56
|
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -56,6 +59,7 @@ let SortControlDto = class SortControlDto$1 {
|
|
|
56
59
|
_define_property$1(SortControlDto, "__is_atscript_annotated_type", true);
|
|
57
60
|
_define_property$1(SortControlDto, "type", {});
|
|
58
61
|
_define_property$1(SortControlDto, "metadata", new Map());
|
|
62
|
+
_define_property$1(SortControlDto, "id", "SortControlDto");
|
|
59
63
|
let SelectControlDto = class SelectControlDto$1 {
|
|
60
64
|
static toJsonSchema() {
|
|
61
65
|
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
@@ -64,6 +68,7 @@ let SelectControlDto = class SelectControlDto$1 {
|
|
|
64
68
|
_define_property$1(SelectControlDto, "__is_atscript_annotated_type", true);
|
|
65
69
|
_define_property$1(SelectControlDto, "type", {});
|
|
66
70
|
_define_property$1(SelectControlDto, "metadata", new Map());
|
|
71
|
+
_define_property$1(SelectControlDto, "id", "SelectControlDto");
|
|
67
72
|
defineAnnotatedType("object", QueryControlsDto).prop("$skip", defineAnnotatedType().designType("number").tags("positive", "int", "number").annotate("expect.min", { minValue: 0 }).annotate("expect.int", true).optional().$type).prop("$limit", defineAnnotatedType().designType("number").tags("positive", "int", "number").annotate("expect.min", { minValue: 0 }).annotate("expect.int", true).optional().$type).prop("$count", defineAnnotatedType().designType("boolean").tags("boolean").optional().$type).prop("$sort", defineAnnotatedType().refTo(SortControlDto).optional().$type).prop("$select", defineAnnotatedType().refTo(SelectControlDto).optional().$type).prop("$search", defineAnnotatedType().designType("string").tags("string").optional().$type).prop("$index", defineAnnotatedType().designType("string").tags("string").optional().$type);
|
|
68
73
|
defineAnnotatedType("object", PagesControlsDto).prop("$page", defineAnnotatedType().designType("string").tags("string").annotate("expect.pattern", {
|
|
69
74
|
pattern: "^\\d+$",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/moost-mongo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "Atscript Mongo for Moost.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
@@ -38,15 +38,18 @@
|
|
|
38
38
|
"urlql": "^0.0.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@moostjs/event-http": "^0.6.0",
|
|
42
|
+
"mongodb": "^6.17.0",
|
|
43
|
+
"moost": "^0.6.0",
|
|
41
44
|
"vitest": "3.2.4",
|
|
42
|
-
"@atscript/core": "^0.1.
|
|
45
|
+
"@atscript/core": "^0.1.27"
|
|
43
46
|
},
|
|
44
47
|
"peerDependencies": {
|
|
45
|
-
"@moostjs/event-http": "^0.
|
|
48
|
+
"@moostjs/event-http": "^0.6.0",
|
|
46
49
|
"mongodb": "^6.17.0",
|
|
47
|
-
"moost": "^0.
|
|
48
|
-
"@atscript/mongo": "^0.1.
|
|
49
|
-
"@atscript/typescript": "^0.1.
|
|
50
|
+
"moost": "^0.6.0",
|
|
51
|
+
"@atscript/mongo": "^0.1.27",
|
|
52
|
+
"@atscript/typescript": "^0.1.27"
|
|
50
53
|
},
|
|
51
54
|
"scripts": {
|
|
52
55
|
"pub": "pnpm publish --access public",
|