@liminalfunctions/framework 1.0.7 → 1.0.9
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/code_generation/utils/type_from_zod.js +4 -5
- package/dist/code_generation/utils/type_from_zod.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/mongoose_from_zod.d.ts +1 -3
- package/dist/utils/mongoose_from_zod.js +18 -6
- package/dist/utils/mongoose_from_zod.js.map +1 -1
- package/dist/utils/pretty_print_zod.js +4 -5
- package/dist/utils/pretty_print_zod.js.map +1 -1
- package/dist/utils/query_validator_from_zod.js +8 -8
- package/dist/utils/query_validator_from_zod.js.map +1 -1
- package/package.json +1 -1
- package/src/code_generation/utils/type_from_zod.ts +4 -5
- package/src/index.ts +1 -1
- package/src/utils/mongoose_from_zod.ts +19 -8
- package/src/utils/pretty_print_zod.ts +4 -5
- package/src/utils/query_validator_from_zod.ts +11 -9
- package/test/tmp/dist/Brief_News_Category.d.ts +16 -0
- package/test/tmp/dist/Brief_News_Category.js +85 -0
- package/test/tmp/dist/Brief_News_Category.js.map +1 -0
- package/test/tmp/dist/Client.d.ts +19 -0
- package/test/tmp/dist/Client.js +97 -0
- package/test/tmp/dist/Client.js.map +1 -0
- package/test/tmp/dist/Institution.d.ts +18 -0
- package/test/tmp/dist/Institution.js +94 -0
- package/test/tmp/dist/Institution.js.map +1 -0
- package/test/tmp/dist/Project.d.ts +16 -0
- package/test/tmp/dist/Project.js +85 -0
- package/test/tmp/dist/Project.js.map +1 -0
- package/test/tmp/dist/index.d.ts +4 -0
- package/test/tmp/dist/index.js +14 -0
- package/test/tmp/dist/index.js.map +1 -0
- package/test/tmp/dist/types/brief_news_category.d.ts +7 -0
- package/test/tmp/dist/types/brief_news_category.js +2 -0
- package/test/tmp/dist/types/brief_news_category.js.map +1 -0
- package/test/tmp/dist/types/brief_news_category_post.d.ts +7 -0
- package/test/tmp/dist/types/brief_news_category_post.js +2 -0
- package/test/tmp/dist/types/brief_news_category_post.js.map +1 -0
- package/test/tmp/dist/types/brief_news_category_put.d.ts +7 -0
- package/test/tmp/dist/types/brief_news_category_put.js +2 -0
- package/test/tmp/dist/types/brief_news_category_put.js.map +1 -0
- package/test/tmp/dist/types/brief_news_category_query.d.ts +26 -0
- package/test/tmp/dist/types/brief_news_category_query.js +2 -0
- package/test/tmp/dist/types/brief_news_category_query.js.map +1 -0
- package/test/tmp/dist/types/client.d.ts +5 -0
- package/test/tmp/dist/types/client.js +2 -0
- package/test/tmp/dist/types/client.js.map +1 -0
- package/test/tmp/dist/types/client_post.d.ts +5 -0
- package/test/tmp/dist/types/client_post.js +2 -0
- package/test/tmp/dist/types/client_post.js.map +1 -0
- package/test/tmp/dist/types/client_put.d.ts +5 -0
- package/test/tmp/dist/types/client_put.js +2 -0
- package/test/tmp/dist/types/client_put.js.map +1 -0
- package/test/tmp/dist/types/client_query.d.ts +18 -0
- package/test/tmp/dist/types/client_query.js +2 -0
- package/test/tmp/dist/types/client_query.js.map +1 -0
- package/test/tmp/dist/types/institution.d.ts +4 -0
- package/test/tmp/dist/types/institution.js +2 -0
- package/test/tmp/dist/types/institution.js.map +1 -0
- package/test/tmp/dist/types/institution_post.d.ts +4 -0
- package/test/tmp/dist/types/institution_post.js +2 -0
- package/test/tmp/dist/types/institution_post.js.map +1 -0
- package/test/tmp/dist/types/institution_put.d.ts +4 -0
- package/test/tmp/dist/types/institution_put.js +2 -0
- package/test/tmp/dist/types/institution_put.js.map +1 -0
- package/test/tmp/dist/types/institution_query.d.ts +14 -0
- package/test/tmp/dist/types/institution_query.js +2 -0
- package/test/tmp/dist/types/institution_query.js.map +1 -0
- package/test/tmp/dist/types/project.d.ts +7 -0
- package/test/tmp/dist/types/project.js +2 -0
- package/test/tmp/dist/types/project.js.map +1 -0
- package/test/tmp/dist/types/project_post.d.ts +7 -0
- package/test/tmp/dist/types/project_post.js +2 -0
- package/test/tmp/dist/types/project_post.js.map +1 -0
- package/test/tmp/dist/types/project_put.d.ts +7 -0
- package/test/tmp/dist/types/project_put.js +2 -0
- package/test/tmp/dist/types/project_put.js.map +1 -0
- package/test/tmp/dist/types/project_query.d.ts +27 -0
- package/test/tmp/dist/types/project_query.js +2 -0
- package/test/tmp/dist/types/project_query.js.map +1 -0
- package/test/tmp/dist/utils/utils.d.ts +11 -0
- package/test/tmp/dist/utils/utils.js +13 -0
- package/test/tmp/dist/utils/utils.js.map +1 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type project_query = {
|
|
2
|
+
"limit"?: number;
|
|
3
|
+
"cursor"?: string;
|
|
4
|
+
"sort_order"?: ("ascending" | "descending");
|
|
5
|
+
"_id"?: string;
|
|
6
|
+
"_id_gt"?: string;
|
|
7
|
+
"_id_lt"?: string;
|
|
8
|
+
"_id_in"?: string[];
|
|
9
|
+
"name"?: string;
|
|
10
|
+
"name_gt"?: string;
|
|
11
|
+
"name_lt"?: string;
|
|
12
|
+
"name_in"?: string[];
|
|
13
|
+
"institution_id"?: string;
|
|
14
|
+
"institution_id_gt"?: string;
|
|
15
|
+
"institution_id_lt"?: string;
|
|
16
|
+
"institution_id_in"?: string[];
|
|
17
|
+
"client_id"?: string;
|
|
18
|
+
"client_id_gt"?: string;
|
|
19
|
+
"client_id_lt"?: string;
|
|
20
|
+
"client_id_in"?: string[];
|
|
21
|
+
"project_number"?: number;
|
|
22
|
+
"project_number_gt"?: number;
|
|
23
|
+
"project_number_gte"?: number;
|
|
24
|
+
"project_number_lt"?: number;
|
|
25
|
+
"project_number_lte"?: number;
|
|
26
|
+
"sort"?: ("_id" | "name" | "institution_id" | "client_id" | "project_number");
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project_query.js","sourceRoot":"","sources":["../../src/types/project_query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function encode_search_params(params: {
|
|
2
|
+
[key: string]: string | number | boolean | string[];
|
|
3
|
+
}): {
|
|
4
|
+
[key: string]: string | number | boolean;
|
|
5
|
+
};
|
|
6
|
+
export type Response<Q> = {
|
|
7
|
+
data: Q;
|
|
8
|
+
};
|
|
9
|
+
export type Response_Multiple<Q> = {
|
|
10
|
+
data: Q[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function encode_search_params(params) {
|
|
2
|
+
let retval = {};
|
|
3
|
+
for (let [key, value] of Object.entries(params)) {
|
|
4
|
+
if (Array.isArray(value)) {
|
|
5
|
+
retval[key] = value.join(',');
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
retval[key] = value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return retval;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,MAA6D;IAC9F,IAAI,MAAM,GAAgD,EAAE,CAAA;IAC5D,KAAI,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAC,CAAC;QAC5C,IAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAC,CAAC;YACrB,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACjC,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACxB,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
|