@litusarchieve18/agricore-utils 1.0.2 → 1.0.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
@@ -37,7 +37,7 @@ const session: AgriCoreSession = {
37
37
  readScopes: ["..."],
38
38
  writeScopes: ["..."],
39
39
  availableScopes: [
40
- { authScopeId: "...", type: "company", name: "Acme Corp", parentId: null }
40
+ { authScopeId: "...", base44Id: "...", type: "company", name: "Acme Corp", parentId: null }
41
41
  ],
42
42
  resourceOverrides: { /* ... */ }
43
43
  }
@@ -89,6 +89,7 @@ Run the publish command:
89
89
  Bash
90
90
  npm publish --access public
91
91
  📝 Version History
92
+ v1.0.3 — add the base44Id
92
93
  v1.0.2 — Breaking Change: Upgraded AgriCoreSession interface. Added companyConfig and UI-ready availableScopes arrays to support the frontend hierarchy dropdown without secondary API calls.
93
94
 
94
95
  v1.0.1 — Migrated package from private GitHub Registry to public NPM Registry for Base44/Deno compatibility. Removed baseUrl from tsconfig.json for NodeNext compatibility. Cleaned build artifacts from dependencies.
package/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ type PermissionLevel = 'WRITE' | 'READ' | 'NONE';
2
2
  type ScopeType = 'company' | 'legalEntity' | 'facility';
3
3
  interface AvailableScope {
4
4
  authScopeId: string;
5
+ base44Id: string;
5
6
  type: ScopeType;
6
7
  name: string;
7
8
  parentId: string | null;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ type PermissionLevel = 'WRITE' | 'READ' | 'NONE';
2
2
  type ScopeType = 'company' | 'legalEntity' | 'facility';
3
3
  interface AvailableScope {
4
4
  authScopeId: string;
5
+ base44Id: string;
5
6
  type: ScopeType;
6
7
  name: string;
7
8
  parentId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litusarchieve18/agricore-utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Canonical Backend Utility Library for AgriCore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",