@objectstack/runtime 0.3.1 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @objectstack/runtime
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Workflow and configuration improvements
8
+
9
+ - Enhanced GitHub workflows for CI, release, and PR automation
10
+ - Added comprehensive prompt templates for different protocol areas
11
+ - Improved project documentation and automation guides
12
+ - Updated changeset configuration
13
+ - Added cursor rules for better development experience
14
+
15
+ - Updated dependencies
16
+ - @objectstack/spec@0.3.3
17
+ - @objectstack/objectql@0.3.3
18
+ - @objectstack/types@0.3.3
19
+
20
+ ## 0.3.2
21
+
22
+ ### Patch Changes
23
+
24
+ - Patch release for maintenance and stability improvements
25
+ - Updated dependencies
26
+ - @objectstack/objectql@0.3.2
27
+ - @objectstack/spec@0.3.2
28
+ - @objectstack/types@0.3.2
29
+
3
30
  ## 0.3.1
4
31
 
5
32
  ### Patch Changes
package/dist/kernel.d.ts CHANGED
@@ -12,17 +12,16 @@ export declare class ObjectStackKernel {
12
12
  start(): Promise<void>;
13
13
  seed(): Promise<void>;
14
14
  find(objectName: string, query: any): Promise<{
15
- value: Record<string, any>[];
16
- count: number;
15
+ value: any;
16
+ count: any;
17
17
  }>;
18
- get(objectName: string, id: string): Promise<Record<string, any>>;
19
- create(objectName: string, data: any): Promise<Record<string, any>>;
20
- update(objectName: string, id: string, data: any): Promise<Record<string, any>>;
21
- delete(objectName: string, id: string): Promise<boolean>;
18
+ get(objectName: string, id: string): Promise<any>;
19
+ create(objectName: string, data: any): Promise<any>;
20
+ update(objectName: string, id: string, data: any): Promise<any>;
21
+ delete(objectName: string, id: string): Promise<any>;
22
22
  getMetadata(objectName: string): {
23
- name: string;
24
23
  fields: Record<string, {
25
- type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode";
24
+ type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode";
26
25
  required: boolean;
27
26
  searchable: boolean;
28
27
  multiple: boolean;
@@ -33,31 +32,31 @@ export declare class ObjectStackKernel {
33
32
  encryption: boolean;
34
33
  index: boolean;
35
34
  externalId: boolean;
36
- formula?: string | undefined;
37
35
  options?: {
38
36
  value: string;
39
37
  label: string;
40
38
  color?: string | undefined;
41
39
  default?: boolean | undefined;
42
40
  }[] | undefined;
41
+ min?: number | undefined;
42
+ max?: number | undefined;
43
+ formula?: string | undefined;
43
44
  label?: string | undefined;
45
+ precision?: number | undefined;
44
46
  name?: string | undefined;
45
47
  description?: string | undefined;
46
48
  format?: string | undefined;
47
49
  defaultValue?: any;
48
50
  maxLength?: number | undefined;
49
51
  minLength?: number | undefined;
50
- precision?: number | undefined;
51
52
  scale?: number | undefined;
52
- min?: number | undefined;
53
- max?: number | undefined;
54
53
  reference?: string | undefined;
55
54
  referenceFilters?: string[] | undefined;
56
55
  writeRequiresMasterRead?: boolean | undefined;
57
56
  expression?: string | undefined;
58
57
  summaryOperations?: {
59
58
  object: string;
60
- function: "min" | "max" | "count" | "sum" | "avg";
59
+ function: "count" | "sum" | "avg" | "min" | "max";
61
60
  field: string;
62
61
  } | undefined;
63
62
  language?: string | undefined;
@@ -78,28 +77,48 @@ export declare class ObjectStackKernel {
78
77
  qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
79
78
  displayValue?: boolean | undefined;
80
79
  allowScanning?: boolean | undefined;
80
+ currencyConfig?: {
81
+ precision: number;
82
+ currencyMode: "dynamic" | "fixed";
83
+ defaultCurrency: string;
84
+ } | undefined;
81
85
  }>;
82
- datasource: string;
86
+ name: string;
87
+ active: boolean;
83
88
  isSystem: boolean;
89
+ abstract: boolean;
90
+ datasource: string;
84
91
  label?: string | undefined;
85
92
  description?: string | undefined;
93
+ tags?: string[] | undefined;
94
+ search?: {
95
+ fields: string[];
96
+ displayFields?: string[] | undefined;
97
+ filters?: string[] | undefined;
98
+ } | undefined;
86
99
  pluralLabel?: string | undefined;
87
100
  icon?: string | undefined;
88
101
  tableName?: string | undefined;
89
102
  indexes?: {
90
103
  fields: string[];
104
+ type?: "hash" | "btree" | "gin" | "gist" | undefined;
91
105
  name?: string | undefined;
92
106
  unique?: boolean | undefined;
93
107
  }[] | undefined;
94
- nameField?: string | undefined;
108
+ validations?: any[] | undefined;
109
+ titleFormat?: string | undefined;
110
+ compactLayout?: string[] | undefined;
95
111
  enable?: {
96
112
  searchable: boolean;
97
113
  trackHistory: boolean;
98
114
  apiEnabled: boolean;
99
115
  files: boolean;
100
- feedEnabled: boolean;
116
+ feeds: boolean;
117
+ activities: boolean;
101
118
  trash: boolean;
102
- apiMethods?: ("get" | "list" | "create" | "update" | "delete" | "upsert" | "bulkCreate" | "bulkUpdate" | "bulkDelete" | "bulkUpsert" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
119
+ mru: boolean;
120
+ clone: boolean;
121
+ apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
103
122
  } | undefined;
104
123
  };
105
124
  getView(objectName: string, viewType?: 'list' | 'form'): {
@@ -54,15 +54,15 @@ export declare class ObjectStackRuntimeProtocol {
54
54
  actions: string[];
55
55
  };
56
56
  findData(objectName: string, query: any): Promise<{
57
- value: Record<string, any>[];
58
- count: number;
57
+ value: any;
58
+ count: any;
59
59
  }>;
60
60
  queryData(objectName: string, body: any): Promise<{
61
- value: Record<string, any>[];
62
- count: number;
61
+ value: any;
62
+ count: any;
63
63
  }>;
64
- getData(objectName: string, id: string): Promise<Record<string, any>>;
65
- createData(objectName: string, body: any): Promise<Record<string, any>>;
66
- updateData(objectName: string, id: string, body: any): Promise<Record<string, any>>;
67
- deleteData(objectName: string, id: string): Promise<boolean>;
64
+ getData(objectName: string, id: string): Promise<any>;
65
+ createData(objectName: string, body: any): Promise<any>;
66
+ updateData(objectName: string, id: string, body: any): Promise<any>;
67
+ deleteData(objectName: string, id: string): Promise<any>;
68
68
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@objectstack/runtime",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "ObjectStack Core Runtime & Query Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
8
- "@objectstack/objectql": "0.3.1",
9
- "@objectstack/types": "0.3.1",
10
- "@objectstack/spec": "0.3.1"
8
+ "@objectstack/objectql": "0.3.3",
9
+ "@objectstack/types": "0.3.3",
10
+ "@objectstack/spec": "0.3.3"
11
11
  },
12
12
  "devDependencies": {
13
13
  "typescript": "^5.0.0"