mftsccs-node 0.2.20 → 0.2.22
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 +12 -3
- package/dist/bundle.js +1 -1
- package/dist/types/DataStructures/AccessControl/AccessControlModels.d.ts +22 -0
- package/dist/types/DataStructures/CCSConfig.d.ts +3 -0
- package/dist/types/Services/AccessControl/APIClientService.d.ts +56 -1
- package/dist/types/Services/AccessControl/AccessControlService.d.ts +41 -7
- package/dist/types/app.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -125,12 +125,21 @@ Initialize the CCS system before performing any operations:
|
|
|
125
125
|
|
|
126
126
|
```typescript
|
|
127
127
|
import { init, updateAccessToken } from 'mftsccs-node';
|
|
128
|
+
import { CCSConfig } from 'mftsccs-node';
|
|
128
129
|
|
|
129
|
-
//
|
|
130
|
+
// Access control is disabled by default (all access allowed).
|
|
131
|
+
// Enable it explicitly via CCSConfig when needed.
|
|
132
|
+
const config = new CCSConfig({
|
|
133
|
+
accessToken: 'your-bearer-access-token',
|
|
134
|
+
enableAccessControl: true
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// Initialize with backend URLs and config
|
|
130
138
|
init(
|
|
131
139
|
'https://api.freeschema.com', // Base API URL
|
|
132
|
-
'
|
|
133
|
-
'
|
|
140
|
+
'', // Optional Node URL
|
|
141
|
+
'MyApp', // Application name
|
|
142
|
+
config
|
|
134
143
|
);
|
|
135
144
|
|
|
136
145
|
// Update token later if needed
|