@airoom/nextmin-node 0.1.0 → 0.1.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/README.md CHANGED
@@ -5,6 +5,10 @@ Schema‑driven Node.js toolkit that turns a JSON schema into a secure, policy
5
5
  - “From JSON schema to REST API + Admin”
6
6
  - 1 month → 1 hour
7
7
 
8
+ ## Documentation
9
+
10
+ Read the full documentation at: https://nextmin.gscodes.dev/
11
+
8
12
  ## Highlights
9
13
 
10
14
  - Express router factory: mount a complete REST API in a few lines
@@ -19,6 +19,7 @@ export interface Attributes {
19
19
  }
20
20
  export interface Schema {
21
21
  modelName: string;
22
+ showCount: boolean;
22
23
  attributes: {
23
24
  [key: string]: Attributes;
24
25
  };
@@ -3,6 +3,7 @@ import { FieldIndexSpec } from '../database/DatabaseAdapter';
3
3
  type PublicAttributes = Record<string, any>;
4
4
  type PublicSchema = Omit<Schema, 'attributes'> & {
5
5
  modelName: string;
6
+ showCount: boolean;
6
7
  attributes: PublicAttributes;
7
8
  allowedMethods: Schema['allowedMethods'];
8
9
  };
@@ -237,6 +237,7 @@ class SchemaLoader {
237
237
  };
238
238
  out[name] = {
239
239
  modelName: s.modelName,
240
+ showCount: s.showCount,
240
241
  allowedMethods: s.allowedMethods,
241
242
  attributes: attributesWithTimestamps,
242
243
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airoom/nextmin-node",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",