@datapos/datapos-shared 0.3.139 → 0.3.146

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
@@ -13,9 +13,18 @@ Install as a production dependency:
13
13
  npm install @datapos/datapos-shared
14
14
  ```
15
15
 
16
+ Create `.npmrc` with access token. Access token needs to disable 2FA and allow all access.
17
+
18
+ ```ini
19
+ registry=https://registry.npmjs.org/
20
+ //registry.npmjs.org/:_authToken=<ACCESS TOKEN>
21
+ ```
22
+
16
23
  ## Declarations
17
24
 
18
- ### Component Types
25
+ ### Components
26
+
27
+ #### Component Types
19
28
 
20
29
  | Item | Notes |
21
30
  | ------------------------------------- | ------------------------------------------------------------ |
@@ -26,14 +35,14 @@ npm install @datapos/datapos-shared
26
35
  | ComponentTypeId | |
27
36
  | StatusColorId | |
28
37
 
29
- ### Connector and Connection Types
38
+ #### Connector and Connection Types
30
39
 
31
40
  | Item | Notes |
32
41
  | --------------------------------------- | ----------------------------------------------------------------- |
33
42
  | [Connector Types](./src/connector.ts) | Connector types. The Connector type extends the Component type. |
34
43
  | [Connection Types](./src/connection.ts) | Connection types. The Connection type extends the Component type. |
35
44
 
36
- ### Context Types
45
+ #### Context Types
37
46
 
38
47
  | Item | Notes |
39
48
  | ------------------------------------------- | --------------------------------------------------------------------- |
@@ -70,14 +79,17 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
70
79
  | ------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------- |
71
80
  | audit | alt+ctrl+shift+a | Audit the project's dependencies for known security vulnerabilities. |
72
81
  | build | alt+ctrl+shift+b | Build the package using Vite. |
82
+ | build...Config | | |
83
+ | bumpVersion | alt+ctrl+shift+v | |
73
84
  | check | alt+ctrl+shift+c | List outdated dependencies and run retire scanner. |
74
85
  | document | alt+ctrl+shift+d | Identify licenses of the project's production and peer dependencies. See [LICENSES.json](./LICENSES.json). |
75
86
  | format | alt+ctrl+shift+f | Enforce formatting style rules. |
76
87
  | lint | alt+ctrl+shift+l | Check the code for errors and enforce coding style rules. |
88
+ | publishToNPM | alt+ctrl+shift+p | |
77
89
  | release | alt+ctrl+shift+r | Bump version, synchronise local repository with the main GitHub repository, build and publish to npm. |
78
90
  | syncWithGitHub | alt+ctrl+shift+s | Bump version and synchronise local repository with the main GitHub repository. |
79
- | test | alt+ctrl+shift+t | NOT implemented. |
80
- | updateDependencies | alt+ctrl+shift+u | Install the latest version of outdated Data Positioning packages. |
91
+ | test | alt+ctrl+shift+t | Not implemented. |
92
+ | updateDependencies | alt+ctrl+shift+l | Install the latest version of all Data Positioning dependencies. |
81
93
 
82
94
  ## Compliance
83
95
 
@@ -4,6 +4,7 @@
4
4
  export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
5
5
  export type LocalisedString = Record<LocaleCode, string>;
6
6
  export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
7
+ export type { ModuleConfig } from './module';
7
8
  export type { AppModuleConfig } from './module';
8
9
  export type { ConnectorModuleConfig, ConnectorModuleOperation, ConnectorModuleUsageId } from './module';
9
10
  export type { ContextModuleConfig, ContextModuleOperation } from './module';
@@ -1,6 +1,6 @@
1
1
  import { ContextModelGroupConfig } from '../component/context';
2
2
  import { LocalisedString } from '../index';
3
- interface ModuleConfig {
3
+ export interface ModuleConfig {
4
4
  id: string;
5
5
  label: Partial<LocalisedString>;
6
6
  description: Partial<LocalisedString>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "MIT",
4
4
  "private": false,
5
5
  "type": "module",
6
- "version": "0.3.139",
6
+ "version": "0.3.146",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "types": "./dist/types/src/index.d.ts",
18
18
  "devDependencies": {
19
- "@datapos/datapos-development": "^0.3.39",
19
+ "@datapos/datapos-development": "^0.3.54",
20
20
  "@types/markdown-it": "^14.1.2",
21
21
  "@types/node": "^24.10.0",
22
22
  "@typescript-eslint/eslint-plugin": "^8.46.3",
@@ -34,9 +34,8 @@
34
34
  "npm-check-updates": "^19.1.2",
35
35
  "prettier": "^3.6.2",
36
36
  "retire": "^5.3.0",
37
- "type-fest": "^5.2.0",
38
37
  "typescript": "^5.9.3",
39
- "vite": "^7.2.1",
38
+ "vite": "^7.2.2",
40
39
  "vite-plugin-dts": "^4.5.4"
41
40
  },
42
41
  "scripts": {
@@ -45,13 +44,12 @@
45
44
  "bumpVersion": "node -e \"import('@datapos/datapos-development').then(m => m.bumpVersion())\"",
46
45
  "check": "npm outdated; npm-check-updates -i && retire",
47
46
  "document": "license-report --only=prod,peer > LICENSES.json && license-report-check --source ./LICENSES.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --output=table",
48
- "format": "prettier --write *.ts",
49
- "lint": "eslint src/",
47
+ "format": "prettier --write src/",
48
+ "lint": "eslint .",
50
49
  "publishToNPM": "npm publish --access public",
51
50
  "release": "npm run syncWithGitHub && npm run build && npm run publishToNPM",
52
- "syncWithGitHub": "npm run bumpVersion && node -e \"require('@datapos/datapos-development').syncWithGitHub()\"",
51
+ "syncWithGitHub": "npm run bumpVersion && node -e \"import('@datapos/datapos-development').then(m => m.syncWithGitHub())\"",
53
52
  "test": "echo \"***** TEST SCRIPT NOT IMPLEMENTED. *****\"",
54
- "updateDependencies": "npm run updateOperations",
55
- "updateOperations": "npm install -D @datapos/datapos-development@latest"
53
+ "updateDependencies": "npm install -D @datapos/datapos-development@latest"
56
54
  }
57
55
  }