@ai0x0/utils 0.0.0 → 0.0.1

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.
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
10
10
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
11
11
  import { rpcOperation } from "next-rest-framework";
12
- import { getListQuery } from "./get-List-query";
12
+ import { getListQuery } from "./get-list-query";
13
13
  import { getListData } from "./get-list-data";
14
14
  export function getActionFn(_ref) {
15
15
  var bodySchema = _ref.bodySchema,
@@ -7,7 +7,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
7
7
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
8
8
  import { rpcOperation } from "next-rest-framework";
9
9
  import { listBodySchema } from "../schemas";
10
- import { getListQuery } from "./get-List-query";
10
+ import { getListQuery } from "./get-list-query";
11
11
  import { getListData } from "./get-list-data";
12
12
  export function getListActionFn(_ref) {
13
13
  var bodySchema = _ref.bodySchema,
@@ -1,5 +1,5 @@
1
1
  import { ZodSchema } from "zod";
2
- import { getListQuery } from "./get-List-query";
2
+ import { getListQuery } from "./get-list-query";
3
3
  export declare function getListData<B extends ZodSchema>({ query, countQuery, pageSize, current, bodySchema, }: {
4
4
  bodySchema: B;
5
5
  current?: number;
@@ -27,4 +27,4 @@ export declare function getListQuery<TTable extends BaseTable, TSelection extend
27
27
  }>, "where">;
28
28
  query: any;
29
29
  };
30
- //# sourceMappingURL=get-List-query.d.ts.map
30
+ //# sourceMappingURL=get-list-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-List-query.d.ts","sourceRoot":"","sources":["get-List-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAwB;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAYL,GAAG,EACJ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,wBAAgB,YAAY,CAC1B,MAAM,SAAS,SAAS,EACxB,UAAU,SAAS,cAAc,EACjC,EACA,EAAE,EACF,MAAM,EACN,eAAe,EACf,MAAM,EACN,SAAS,EACT,KAAK,GACN,EAAE;IACD,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IACxB,MAAM,EAAE,UAAU,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE;QAEN,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;QAErB,OAAO,CAAC,EAAE,MAAM,SAAS,CAAC;QAE1B,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;EA6MA"}
1
+ {"version":3,"file":"get-list-query.d.ts","sourceRoot":"","sources":["get-list-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAwB;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAYL,GAAG,EACJ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,wBAAgB,YAAY,CAC1B,MAAM,SAAS,SAAS,EACxB,UAAU,SAAS,cAAc,EACjC,EACA,EAAE,EACF,MAAM,EACN,eAAe,EACf,MAAM,EACN,SAAS,EACT,KAAK,GACN,EAAE;IACD,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IACxB,MAAM,EAAE,UAAU,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE;QAEN,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;QAErB,OAAO,CAAC,EAAE,MAAM,SAAS,CAAC;QAE1B,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;EA6MA"}
@@ -3,4 +3,5 @@ export { getActionFn } from "./get-action-fn";
3
3
  export { getListActionFn } from "./get-list-action-fn";
4
4
  export { postActionFn } from "./post-action-fn";
5
5
  export { putActionFn } from "./put-action-fn";
6
+ export { getListQuery } from "./get-list-query";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -2,4 +2,5 @@ export { deleteActionFn } from "./delete-action-fn";
2
2
  export { getActionFn } from "./get-action-fn";
3
3
  export { getListActionFn } from "./get-list-action-fn";
4
4
  export { postActionFn } from "./post-action-fn";
5
- export { putActionFn } from "./put-action-fn";
5
+ export { putActionFn } from "./put-action-fn";
6
+ export { getListQuery } from "./get-list-query";
@@ -1,3 +1,4 @@
1
+ export * from "./actions";
1
2
  export * from "./route-operation";
2
3
  export * from "./schemas";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from "./actions";
1
2
  export * from "./route-operation";
2
3
  export * from "./schemas";
@@ -23,7 +23,7 @@ __export(get_action_fn_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(get_action_fn_exports);
25
25
  var import_next_rest_framework = require("next-rest-framework");
26
- var import_get_List_query = require("./get-List-query");
26
+ var import_get_list_query = require("./get-list-query");
27
27
  var import_get_list_data = require("./get-list-data");
28
28
  function getActionFn({
29
29
  bodySchema,
@@ -49,7 +49,7 @@ function getActionFn({
49
49
  fields[key] = field;
50
50
  }
51
51
  }
52
- const { query, countQuery } = (0, import_get_List_query.getListQuery)({
52
+ const { query, countQuery } = (0, import_get_list_query.getListQuery)({
53
53
  db,
54
54
  fields,
55
55
  jsonArrayFields,
@@ -24,7 +24,7 @@ __export(get_list_action_fn_exports, {
24
24
  module.exports = __toCommonJS(get_list_action_fn_exports);
25
25
  var import_next_rest_framework = require("next-rest-framework");
26
26
  var import_schemas = require("../schemas");
27
- var import_get_List_query = require("./get-List-query");
27
+ var import_get_list_query = require("./get-list-query");
28
28
  var import_get_list_data = require("./get-list-data");
29
29
  function getListActionFn({
30
30
  bodySchema,
@@ -51,7 +51,7 @@ function getListActionFn({
51
51
  fields[key] = field;
52
52
  }
53
53
  }
54
- const { query, countQuery } = (0, import_get_List_query.getListQuery)({
54
+ const { query, countQuery } = (0, import_get_list_query.getListQuery)({
55
55
  db,
56
56
  fields,
57
57
  jsonArrayFields,
@@ -1,5 +1,5 @@
1
1
  import { ZodSchema } from "zod";
2
- import { getListQuery } from "./get-List-query";
2
+ import { getListQuery } from "./get-list-query";
3
3
  export declare function getListData<B extends ZodSchema>({ query, countQuery, pageSize, current, bodySchema, }: {
4
4
  bodySchema: B;
5
5
  current?: number;
@@ -27,4 +27,4 @@ export declare function getListQuery<TTable extends BaseTable, TSelection extend
27
27
  }>, "where">;
28
28
  query: any;
29
29
  };
30
- //# sourceMappingURL=get-List-query.d.ts.map
30
+ //# sourceMappingURL=get-list-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-List-query.d.ts","sourceRoot":"","sources":["get-List-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAwB;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAYL,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E,CAAC;IAC3B,MAAM,EAAE;QAEN,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;QAErB,OAAO,CAAC,EAAE,MAAM,SAAS,CAAC;QAE1B,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;EA6MA"}
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc2) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // src/backend/actions/get-List-query.ts
20
- var get_List_query_exports = {};
21
- __export(get_List_query_exports, {
19
+ // src/backend/actions/get-list-query.ts
20
+ var get_list_query_exports = {};
21
+ __export(get_list_query_exports, {
22
22
  getListQuery: () => getListQuery
23
23
  });
24
- module.exports = __toCommonJS(get_List_query_exports);
24
+ module.exports = __toCommonJS(get_list_query_exports);
25
25
  var import_drizzle_orm = require("drizzle-orm");
26
26
  function getListQuery({
27
27
  db,
@@ -3,4 +3,5 @@ export { getActionFn } from "./get-action-fn";
3
3
  export { getListActionFn } from "./get-list-action-fn";
4
4
  export { postActionFn } from "./post-action-fn";
5
5
  export { putActionFn } from "./put-action-fn";
6
+ export { getListQuery } from "./get-list-query";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -22,6 +22,7 @@ __export(actions_exports, {
22
22
  deleteActionFn: () => import_delete_action_fn.deleteActionFn,
23
23
  getActionFn: () => import_get_action_fn.getActionFn,
24
24
  getListActionFn: () => import_get_list_action_fn.getListActionFn,
25
+ getListQuery: () => import_get_list_query.getListQuery,
25
26
  postActionFn: () => import_post_action_fn.postActionFn,
26
27
  putActionFn: () => import_put_action_fn.putActionFn
27
28
  });
@@ -31,11 +32,13 @@ var import_get_action_fn = require("./get-action-fn");
31
32
  var import_get_list_action_fn = require("./get-list-action-fn");
32
33
  var import_post_action_fn = require("./post-action-fn");
33
34
  var import_put_action_fn = require("./put-action-fn");
35
+ var import_get_list_query = require("./get-list-query");
34
36
  // Annotate the CommonJS export names for ESM import in node:
35
37
  0 && (module.exports = {
36
38
  deleteActionFn,
37
39
  getActionFn,
38
40
  getListActionFn,
41
+ getListQuery,
39
42
  postActionFn,
40
43
  putActionFn
41
44
  });
@@ -1,3 +1,4 @@
1
+ export * from "./actions";
1
2
  export * from "./route-operation";
2
3
  export * from "./schemas";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -16,10 +16,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  // src/backend/index.ts
17
17
  var backend_exports = {};
18
18
  module.exports = __toCommonJS(backend_exports);
19
+ __reExport(backend_exports, require("./actions"), module.exports);
19
20
  __reExport(backend_exports, require("./route-operation"), module.exports);
20
21
  __reExport(backend_exports, require("./schemas"), module.exports);
21
22
  // Annotate the CommonJS export names for ESM import in node:
22
23
  0 && (module.exports = {
24
+ ...require("./actions"),
23
25
  ...require("./route-operation"),
24
26
  ...require("./schemas")
25
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai0x0/utils",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "AI0x0 utils",
5
5
  "keywords": [
6
6
  "ai0x0"