@tolinax/ayoune-interfaces 2026.66.0 → 2026.66.1
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 +132 -132
- package/data/modelsAndRights.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
# aYOUne Interfaces
|
|
2
|
-
|
|
3
|
-
A comprehensive TypeScript interfaces library for the aYOUne platform - a modular business as a Service platform.
|
|
4
|
-
|
|
5
|
-
[](https://badge.fury.io/js/@tolinax%2Fayoune-interfaces)
|
|
6
|
-
[](https://opensource.org/license/lgpl-3-0)
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
This library provides TypeScript type definitions and data exports for the aYOUne platform, which includes modules for:
|
|
11
|
-
|
|
12
|
-
- **AI** - Artificial Intelligence services
|
|
13
|
-
- **CRM** - Customer Relationship Management
|
|
14
|
-
- **CMS** - Content Management System
|
|
15
|
-
- **Marketing** - Marketing automation and campaigns
|
|
16
|
-
- **Automation** - Business process automation
|
|
17
|
-
- **PM** - Project Management
|
|
18
|
-
- **E-commerce** - Online store management
|
|
19
|
-
- And many more specialized modules
|
|
20
|
-
|
|
21
|
-
## Installation
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm install @tolinax/ayoune-interfaces
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
### Importing Interfaces
|
|
30
|
-
|
|
31
|
-
```typescript
|
|
32
|
-
import { IAPI, ITicket, IaYOUneUser } from '@tolinax/ayoune-interfaces';
|
|
33
|
-
|
|
34
|
-
// Use interfaces for type safety
|
|
35
|
-
const api: IAPI = {
|
|
36
|
-
_customerID: "customer123",
|
|
37
|
-
_clientID: [],
|
|
38
|
-
_subID: [],
|
|
39
|
-
_user: "user456",
|
|
40
|
-
name: "My API",
|
|
41
|
-
callback_url: "https://example.com/callback",
|
|
42
|
-
access_token: "token123",
|
|
43
|
-
access_token_key: "key456",
|
|
44
|
-
active: true,
|
|
45
|
-
scopes: [{ key: "read" }],
|
|
46
|
-
limit: false,
|
|
47
|
-
rateLimit: 1000
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Importing Data and Enums
|
|
52
|
-
|
|
53
|
-
```typescript
|
|
54
|
-
import { aYOUneServices, aYOUneModules, aMN } from '@tolinax/ayoune-interfaces';
|
|
55
|
-
|
|
56
|
-
// Access service definitions
|
|
57
|
-
console.log(aYOUneServices); // Array of all aYOUne services with hosts
|
|
58
|
-
|
|
59
|
-
// Access module definitions
|
|
60
|
-
console.log(aYOUneModules); // Array of platform modules
|
|
61
|
-
|
|
62
|
-
// Use model names enum
|
|
63
|
-
const collectionName = aMN.AIConversations; // "AIConversations"
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## API Reference
|
|
67
|
-
|
|
68
|
-
### Core Interfaces
|
|
69
|
-
|
|
70
|
-
All interfaces extend `IDefaultFields` which provides common MongoDB document fields:
|
|
71
|
-
|
|
72
|
-
- `_id`: ObjectId
|
|
73
|
-
- `created`: Date
|
|
74
|
-
- `updated`: Date
|
|
75
|
-
- Other standard database fields
|
|
76
|
-
|
|
77
|
-
### Data Exports
|
|
78
|
-
|
|
79
|
-
#### Services (`aYOUneServices`)
|
|
80
|
-
Array of service definitions with:
|
|
81
|
-
- `label`: Human-readable service name
|
|
82
|
-
- `module`: Associated platform module
|
|
83
|
-
- `host`: Service hostname
|
|
84
|
-
|
|
85
|
-
#### Modules (`aYOUneModules`)
|
|
86
|
-
Array of platform modules with:
|
|
87
|
-
- `label`: Module display name
|
|
88
|
-
- `module`: Module identifier
|
|
89
|
-
- `host`: Module hostname
|
|
90
|
-
|
|
91
|
-
#### Model Names (`aMN`)
|
|
92
|
-
Enum containing all MongoDB collection names used across the platform.
|
|
93
|
-
|
|
94
|
-
## Development
|
|
95
|
-
|
|
96
|
-
### Building
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
npm run build
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Release
|
|
103
|
-
|
|
104
|
-
This project uses conventional commits and automated releases:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm run release
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Platform Architecture
|
|
111
|
-
|
|
112
|
-
The aYOUne platform consists of multiple specialized services:
|
|
113
|
-
|
|
114
|
-
- **Global Services**: Middleware, Datatables, Barcodes, Scripts
|
|
115
|
-
- **AI Services**: Text/Image/Video Generation, Text-to-Speech
|
|
116
|
-
- **CMS Services**: Media, Content Snippets, Dynamic Content
|
|
117
|
-
- **Business Services**: CRM, PM, Marketing, Automation
|
|
118
|
-
- **Analytics**: Statistics, Monitoring, Reporting
|
|
119
|
-
- **E-commerce**: Sales, Purchase, Accounting
|
|
120
|
-
|
|
121
|
-
Each service is independently deployable and communicates through well-defined interfaces provided by this library.
|
|
122
|
-
|
|
123
|
-
## Contributing
|
|
124
|
-
|
|
125
|
-
1. Follow conventional commit format (`feat:`, `fix:`, `docs:`, etc.)
|
|
126
|
-
2. All interfaces should extend `IDefaultFields` when appropriate
|
|
127
|
-
3. Use consistent naming: interfaces start with `I`, data exports use descriptive names
|
|
128
|
-
4. Update CHANGELOG.md entries are generated automatically
|
|
129
|
-
|
|
130
|
-
## License
|
|
131
|
-
|
|
132
|
-
LGPL-3.0 © tolinax
|
|
1
|
+
# aYOUne Interfaces
|
|
2
|
+
|
|
3
|
+
A comprehensive TypeScript interfaces library for the aYOUne platform - a modular business as a Service platform.
|
|
4
|
+
|
|
5
|
+
[](https://badge.fury.io/js/@tolinax%2Fayoune-interfaces)
|
|
6
|
+
[](https://opensource.org/license/lgpl-3-0)
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
This library provides TypeScript type definitions and data exports for the aYOUne platform, which includes modules for:
|
|
11
|
+
|
|
12
|
+
- **AI** - Artificial Intelligence services
|
|
13
|
+
- **CRM** - Customer Relationship Management
|
|
14
|
+
- **CMS** - Content Management System
|
|
15
|
+
- **Marketing** - Marketing automation and campaigns
|
|
16
|
+
- **Automation** - Business process automation
|
|
17
|
+
- **PM** - Project Management
|
|
18
|
+
- **E-commerce** - Online store management
|
|
19
|
+
- And many more specialized modules
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @tolinax/ayoune-interfaces
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
### Importing Interfaces
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { IAPI, ITicket, IaYOUneUser } from '@tolinax/ayoune-interfaces';
|
|
33
|
+
|
|
34
|
+
// Use interfaces for type safety
|
|
35
|
+
const api: IAPI = {
|
|
36
|
+
_customerID: "customer123",
|
|
37
|
+
_clientID: [],
|
|
38
|
+
_subID: [],
|
|
39
|
+
_user: "user456",
|
|
40
|
+
name: "My API",
|
|
41
|
+
callback_url: "https://example.com/callback",
|
|
42
|
+
access_token: "token123",
|
|
43
|
+
access_token_key: "key456",
|
|
44
|
+
active: true,
|
|
45
|
+
scopes: [{ key: "read" }],
|
|
46
|
+
limit: false,
|
|
47
|
+
rateLimit: 1000
|
|
48
|
+
};
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Importing Data and Enums
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
import { aYOUneServices, aYOUneModules, aMN } from '@tolinax/ayoune-interfaces';
|
|
55
|
+
|
|
56
|
+
// Access service definitions
|
|
57
|
+
console.log(aYOUneServices); // Array of all aYOUne services with hosts
|
|
58
|
+
|
|
59
|
+
// Access module definitions
|
|
60
|
+
console.log(aYOUneModules); // Array of platform modules
|
|
61
|
+
|
|
62
|
+
// Use model names enum
|
|
63
|
+
const collectionName = aMN.AIConversations; // "AIConversations"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## API Reference
|
|
67
|
+
|
|
68
|
+
### Core Interfaces
|
|
69
|
+
|
|
70
|
+
All interfaces extend `IDefaultFields` which provides common MongoDB document fields:
|
|
71
|
+
|
|
72
|
+
- `_id`: ObjectId
|
|
73
|
+
- `created`: Date
|
|
74
|
+
- `updated`: Date
|
|
75
|
+
- Other standard database fields
|
|
76
|
+
|
|
77
|
+
### Data Exports
|
|
78
|
+
|
|
79
|
+
#### Services (`aYOUneServices`)
|
|
80
|
+
Array of service definitions with:
|
|
81
|
+
- `label`: Human-readable service name
|
|
82
|
+
- `module`: Associated platform module
|
|
83
|
+
- `host`: Service hostname
|
|
84
|
+
|
|
85
|
+
#### Modules (`aYOUneModules`)
|
|
86
|
+
Array of platform modules with:
|
|
87
|
+
- `label`: Module display name
|
|
88
|
+
- `module`: Module identifier
|
|
89
|
+
- `host`: Module hostname
|
|
90
|
+
|
|
91
|
+
#### Model Names (`aMN`)
|
|
92
|
+
Enum containing all MongoDB collection names used across the platform.
|
|
93
|
+
|
|
94
|
+
## Development
|
|
95
|
+
|
|
96
|
+
### Building
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npm run build
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Release
|
|
103
|
+
|
|
104
|
+
This project uses conventional commits and automated releases:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npm run release
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Platform Architecture
|
|
111
|
+
|
|
112
|
+
The aYOUne platform consists of multiple specialized services:
|
|
113
|
+
|
|
114
|
+
- **Global Services**: Middleware, Datatables, Barcodes, Scripts
|
|
115
|
+
- **AI Services**: Text/Image/Video Generation, Text-to-Speech
|
|
116
|
+
- **CMS Services**: Media, Content Snippets, Dynamic Content
|
|
117
|
+
- **Business Services**: CRM, PM, Marketing, Automation
|
|
118
|
+
- **Analytics**: Statistics, Monitoring, Reporting
|
|
119
|
+
- **E-commerce**: Sales, Purchase, Accounting
|
|
120
|
+
|
|
121
|
+
Each service is independently deployable and communicates through well-defined interfaces provided by this library.
|
|
122
|
+
|
|
123
|
+
## Contributing
|
|
124
|
+
|
|
125
|
+
1. Follow conventional commit format (`feat:`, `fix:`, `docs:`, etc.)
|
|
126
|
+
2. All interfaces should extend `IDefaultFields` when appropriate
|
|
127
|
+
3. Use consistent naming: interfaces start with `I`, data exports use descriptive names
|
|
128
|
+
4. Update CHANGELOG.md entries are generated automatically
|
|
129
|
+
|
|
130
|
+
## License
|
|
131
|
+
|
|
132
|
+
LGPL-3.0 © tolinax
|
package/data/modelsAndRights.js
CHANGED
|
@@ -7972,7 +7972,7 @@ const modelsAndRights = [
|
|
|
7972
7972
|
plural: "MarketplaceApps",
|
|
7973
7973
|
singular: "MarketplaceApp",
|
|
7974
7974
|
module: "marketplace",
|
|
7975
|
-
right: "marketplace.
|
|
7975
|
+
right: "marketplace.marketplaceapps",
|
|
7976
7976
|
readOnly: false,
|
|
7977
7977
|
importable: false,
|
|
7978
7978
|
allowDuplicate: false,
|
|
@@ -8001,7 +8001,7 @@ const modelsAndRights = [
|
|
|
8001
8001
|
plural: "MarketplaceBundles",
|
|
8002
8002
|
singular: "MarketplaceBundle",
|
|
8003
8003
|
module: "marketplace",
|
|
8004
|
-
right: "marketplace.
|
|
8004
|
+
right: "marketplace.marketplacebundles",
|
|
8005
8005
|
readOnly: false,
|
|
8006
8006
|
importable: false,
|
|
8007
8007
|
allowDuplicate: false,
|
|
@@ -8026,7 +8026,7 @@ const modelsAndRights = [
|
|
|
8026
8026
|
plural: "MarketplaceInstallations",
|
|
8027
8027
|
singular: "MarketplaceInstallation",
|
|
8028
8028
|
module: "marketplace",
|
|
8029
|
-
right: "marketplace.
|
|
8029
|
+
right: "marketplace.marketplaceinstallations",
|
|
8030
8030
|
readOnly: false,
|
|
8031
8031
|
importable: false,
|
|
8032
8032
|
allowDuplicate: false,
|
|
@@ -8055,7 +8055,7 @@ const modelsAndRights = [
|
|
|
8055
8055
|
plural: "MarketplaceReviews",
|
|
8056
8056
|
singular: "MarketplaceReview",
|
|
8057
8057
|
module: "marketplace",
|
|
8058
|
-
right: "marketplace.
|
|
8058
|
+
right: "marketplace.marketplacereviews",
|
|
8059
8059
|
readOnly: false,
|
|
8060
8060
|
importable: false,
|
|
8061
8061
|
allowDuplicate: false,
|