@tolinax/ayoune-interfaces 2026.58.0 → 2026.60.0

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
@@ -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
- [![npm version](https://badge.fury.io/js/@tolinax%2Fayoune-interfaces.svg)](https://badge.fury.io/js/@tolinax%2Fayoune-interfaces)
6
- [![License: LGPL-3.0](https://img.shields.io/badge/License-LGPL-yellow.svg)](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
+ [![npm version](https://badge.fury.io/js/@tolinax%2Fayoune-interfaces.svg)](https://badge.fury.io/js/@tolinax%2Fayoune-interfaces)
6
+ [![License: LGPL-3.0](https://img.shields.io/badge/License-LGPL-yellow.svg)](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
@@ -718,6 +718,12 @@ const modelsAndRights = [
718
718
  availableInSDK: false,
719
719
  searchable: true,
720
720
  searchableFields: ['subject', 'description'],
721
+ entityActions: [
722
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "crm.activities.actions.complete" },
723
+ { name: "reassign", verb: "POST", emits: "reassigned", icon: "person_add", labelKey: "crm.activities.actions.reassign" },
724
+ { name: "postpone", verb: "POST", emits: "postponed", icon: "schedule", labelKey: "crm.activities.actions.postpone" },
725
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "crm.activities.actions.cancel" },
726
+ ],
721
727
  },
722
728
  {
723
729
  plural: "AdAccounts",
@@ -959,6 +965,12 @@ const modelsAndRights = [
959
965
  allowDuplicate: false,
960
966
  updateBy: "_id",
961
967
  availableInSDK: false,
968
+ entityActions: [
969
+ { name: "activate", verb: "POST", emits: "activated", icon: "toggle_on", labelKey: "ai.aiagents.actions.activate" },
970
+ { name: "deploy", verb: "POST", emits: "deployed", icon: "rocket_launch", labelKey: "ai.aiagents.actions.deploy" },
971
+ { name: "test", verb: "POST", emits: "tested", icon: "bug_report", labelKey: "ai.aiagents.actions.test" },
972
+ { name: "rollback", verb: "POST", emits: "rolled-back", icon: "undo", labelKey: "ai.aiagents.actions.rollback", dangerous: true },
973
+ ],
962
974
  },
963
975
  {
964
976
  plural: "AIConversations",
@@ -1058,6 +1070,12 @@ const modelsAndRights = [
1058
1070
  allowDuplicate: false,
1059
1071
  updateBy: "_id",
1060
1072
  availableInSDK: false,
1073
+ entityActions: [
1074
+ { name: "index", verb: "POST", emits: "indexed", icon: "search", labelKey: "ai.knowledgesources.actions.index" },
1075
+ { name: "reindex", verb: "POST", emits: "reindexed", icon: "refresh", labelKey: "ai.knowledgesources.actions.reindex" },
1076
+ { name: "sync", verb: "POST", emits: "synced", icon: "sync", labelKey: "ai.knowledgesources.actions.sync" },
1077
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "ai.knowledgesources.actions.archive" },
1078
+ ],
1061
1079
  },
1062
1080
  {
1063
1081
  plural: "AIAgentExamples",
@@ -1344,6 +1362,12 @@ const modelsAndRights = [
1344
1362
  allowDuplicate: false,
1345
1363
  updateBy: "_id",
1346
1364
  availableInSDK: false,
1365
+ entityActions: [
1366
+ { name: "reschedule", verb: "POST", emits: "rescheduled", icon: "event_available", labelKey: "crm.calendarentries.actions.reschedule" },
1367
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "event_busy", labelKey: "crm.calendarentries.actions.cancel", dangerous: true },
1368
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "crm.calendarentries.actions.complete" },
1369
+ { name: "send-reminder", verb: "POST", emits: "reminder-sent", icon: "alarm", labelKey: "crm.calendarentries.actions.send-reminder" },
1370
+ ],
1347
1371
  },
1348
1372
  {
1349
1373
  plural: "Charges",
@@ -1432,6 +1456,12 @@ const modelsAndRights = [
1432
1456
  allowDuplicate: true,
1433
1457
  updateBy: "_id",
1434
1458
  availableInSDK: false,
1459
+ entityActions: [
1460
+ { name: "start", verb: "POST", emits: "started", icon: "play_arrow", labelKey: "pm.epics.actions.start" },
1461
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "pm.epics.actions.complete" },
1462
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "pm.epics.actions.archive" },
1463
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "pm.epics.actions.reopen" },
1464
+ ],
1435
1465
  },
1436
1466
  {
1437
1467
  plural: "Events",
@@ -1525,6 +1555,11 @@ const modelsAndRights = [
1525
1555
  allowDuplicate: true,
1526
1556
  updateBy: "_id",
1527
1557
  availableInSDK: false,
1558
+ entityActions: [
1559
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "pm.milestones.actions.complete" },
1560
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "pm.milestones.actions.reopen" },
1561
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "pm.milestones.actions.archive" },
1562
+ ],
1528
1563
  },
1529
1564
  {
1530
1565
  plural: "PATs",
@@ -1577,6 +1612,12 @@ const modelsAndRights = [
1577
1612
  { title: "COMPLETE", action: "complete", availability: "single", method: "PUT", icon: "done_all" },
1578
1613
  { title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
1579
1614
  ],
1615
+ entityActions: [
1616
+ { name: "start", verb: "POST", emits: "started", icon: "play_arrow", labelKey: "pm.projects.actions.start" },
1617
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "pm.projects.actions.complete" },
1618
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "pm.projects.actions.archive" },
1619
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "pm.projects.actions.reopen" },
1620
+ ],
1580
1621
  },
1581
1622
  {
1582
1623
  plural: "RunningPipelines",
@@ -1892,6 +1933,12 @@ const modelsAndRights = [
1892
1933
  allowDuplicate: true,
1893
1934
  updateBy: "_id",
1894
1935
  availableInSDK: false,
1936
+ entityActions: [
1937
+ { name: "activate", verb: "POST", emits: "activated", icon: "toggle_on", labelKey: "automation.automations.actions.activate" },
1938
+ { name: "pause", verb: "POST", emits: "paused", icon: "pause", labelKey: "automation.automations.actions.pause" },
1939
+ { name: "test", verb: "POST", emits: "tested", icon: "bug_report", labelKey: "automation.automations.actions.test" },
1940
+ { name: "execute", verb: "POST", emits: "executed", icon: "play_arrow", labelKey: "automation.automations.actions.execute" },
1941
+ ],
1895
1942
  },
1896
1943
  {
1897
1944
  plural: "AutomationTemplates",
@@ -2718,6 +2765,12 @@ const modelsAndRights = [
2718
2765
  sdkOperations: ["find", "findOne", "insert", "update", "aggregate", "count"],
2719
2766
  searchable: true,
2720
2767
  searchableFields: ['name', 'contractNumber'],
2768
+ entityActions: [
2769
+ { name: "sign", verb: "POST", emits: "signed", icon: "draw", labelKey: "sale.contracts.actions.sign" },
2770
+ { name: "renew", verb: "POST", emits: "renewed", icon: "autorenew", labelKey: "sale.contracts.actions.renew" },
2771
+ { name: "expire", verb: "POST", emits: "expired", icon: "timer_off", labelKey: "sale.contracts.actions.expire" },
2772
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "sale.contracts.actions.cancel", dangerous: true },
2773
+ ],
2721
2774
  },
2722
2775
  {
2723
2776
  plural: "ContentSnippets",
@@ -2879,6 +2932,12 @@ const modelsAndRights = [
2879
2932
  piiLevel: "low",
2880
2933
  availableInSDK: true,
2881
2934
  sdkOperations: ["find", "findOne", "insert", "update", "aggregate", "count"],
2935
+ entityActions: [
2936
+ { name: "start", verb: "POST", emits: "started", icon: "play_arrow", labelKey: "sale.assignments.actions.start" },
2937
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "sale.assignments.actions.complete" },
2938
+ { name: "reassign", verb: "POST", emits: "reassigned", icon: "person_add", labelKey: "sale.assignments.actions.reassign" },
2939
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "sale.assignments.actions.cancel", dangerous: true },
2940
+ ],
2882
2941
  },
2883
2942
  {
2884
2943
  plural: "CreditNotes",
@@ -3301,6 +3360,12 @@ const modelsAndRights = [
3301
3360
  allowDuplicate: false,
3302
3361
  updateBy: "_id",
3303
3362
  availableInSDK: false,
3363
+ entityActions: [
3364
+ { name: "sign", verb: "POST", emits: "signed", icon: "draw", labelKey: "crm.documents.actions.sign" },
3365
+ { name: "approve", verb: "POST", emits: "approved", icon: "check_circle", labelKey: "crm.documents.actions.approve" },
3366
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "crm.documents.actions.archive" },
3367
+ { name: "restore", verb: "POST", emits: "restored", icon: "unarchive", labelKey: "crm.documents.actions.restore" },
3368
+ ],
3304
3369
  },
3305
3370
  {
3306
3371
  plural: "DoiLogs",
@@ -3684,6 +3749,12 @@ const modelsAndRights = [
3684
3749
  { title: "REORDER_ROADMAP", action: "reorder", availability: "many", method: "POST", icon: "sort" },
3685
3750
  { title: "CONVERT_TO_TASK", action: "convert", availability: "single", method: "POST", icon: "task_alt" },
3686
3751
  ],
3752
+ entityActions: [
3753
+ { name: "accept", verb: "POST", emits: "accepted", icon: "thumb_up", labelKey: "pm.featurerequests.actions.accept" },
3754
+ { name: "reject", verb: "POST", emits: "rejected", icon: "thumb_down", labelKey: "pm.featurerequests.actions.reject" },
3755
+ { name: "implement", verb: "POST", emits: "implemented", icon: "done_all", labelKey: "pm.featurerequests.actions.implement" },
3756
+ { name: "close", verb: "POST", emits: "closed", icon: "lock", labelKey: "pm.featurerequests.actions.close" },
3757
+ ],
3687
3758
  },
3688
3759
  {
3689
3760
  plural: "FeedbackAnswers",
@@ -4051,6 +4122,11 @@ const modelsAndRights = [
4051
4122
  allowDuplicate: false,
4052
4123
  updateBy: "_id",
4053
4124
  availableInSDK: false,
4125
+ entityActions: [
4126
+ { name: "answer", verb: "POST", emits: "answered", icon: "reply", labelKey: "hub.hubquestions.actions.answer" },
4127
+ { name: "resolve", verb: "POST", emits: "resolved", icon: "task_alt", labelKey: "hub.hubquestions.actions.resolve" },
4128
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "hub.hubquestions.actions.reopen" },
4129
+ ],
4054
4130
  },
4055
4131
  {
4056
4132
  plural: "IABCategories",
@@ -4365,6 +4441,13 @@ const modelsAndRights = [
4365
4441
  { title: "SEND_REMINDER", action: "send-reminder", availability: "single", method: "POST", icon: "notification_important" },
4366
4442
  { title: "CANCEL", action: "cancel", availability: "single", method: "PUT", icon: "cancel", dangerous: true },
4367
4443
  ],
4444
+ entityActions: [
4445
+ { name: "send", verb: "POST", emits: "sent", icon: "send", labelKey: "sale.invoices.actions.send" },
4446
+ { name: "pay", verb: "POST", emits: "paid", icon: "paid", labelKey: "sale.invoices.actions.pay" },
4447
+ { name: "dispute", verb: "POST", emits: "disputed", icon: "report", labelKey: "sale.invoices.actions.dispute" },
4448
+ { name: "refund", verb: "POST", emits: "refunded", icon: "undo", labelKey: "sale.invoices.actions.refund", dangerous: true },
4449
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "sale.invoices.actions.cancel", dangerous: true },
4450
+ ],
4368
4451
  },
4369
4452
  {
4370
4453
  plural: "JobOffers",
@@ -4376,6 +4459,13 @@ const modelsAndRights = [
4376
4459
  allowDuplicate: false,
4377
4460
  updateBy: "_id",
4378
4461
  availableInSDK: false,
4462
+ entityActions: [
4463
+ { name: "send", verb: "POST", emits: "sent", icon: "send", labelKey: "hr.joboffers.actions.send" },
4464
+ { name: "accept", verb: "POST", emits: "accepted", icon: "check_circle", labelKey: "hr.joboffers.actions.accept" },
4465
+ { name: "reject", verb: "POST", emits: "rejected", icon: "cancel", labelKey: "hr.joboffers.actions.reject" },
4466
+ { name: "counter-offer", verb: "POST", emits: "countered", icon: "swap_horiz", labelKey: "hr.joboffers.actions.counter-offer" },
4467
+ { name: "expire", verb: "POST", emits: "expired", icon: "timer_off", labelKey: "hr.joboffers.actions.expire" },
4468
+ ],
4379
4469
  },
4380
4470
  {
4381
4471
  plural: "Journals",
@@ -4590,6 +4680,13 @@ const modelsAndRights = [
4590
4680
  piiLevel: "high",
4591
4681
  availableInSDK: true,
4592
4682
  sdkOperations: ["find", "findOne", "insert", "update", "aggregate", "count"],
4683
+ entityActions: [
4684
+ { name: "qualify", verb: "POST", emits: "qualified", icon: "verified", labelKey: "crm.leads.actions.qualify" },
4685
+ { name: "convert", verb: "POST", emits: "converted", icon: "swap_horiz", labelKey: "crm.leads.actions.convert" },
4686
+ { name: "disqualify", verb: "POST", emits: "disqualified", icon: "cancel", labelKey: "crm.leads.actions.disqualify" },
4687
+ { name: "nurture", verb: "POST", emits: "nurturing", icon: "trending_up", labelKey: "crm.leads.actions.nurture" },
4688
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "crm.leads.actions.archive" },
4689
+ ],
4593
4690
  },
4594
4691
  {
4595
4692
  plural: "LinkPortalClicks",
@@ -5023,6 +5120,11 @@ const modelsAndRights = [
5023
5120
  allowDuplicate: false,
5024
5121
  updateBy: "_id",
5025
5122
  availableInSDK: false,
5123
+ entityActions: [
5124
+ { name: "send", verb: "POST", emits: "sent", icon: "send", labelKey: "crm.messages.actions.send" },
5125
+ { name: "resend", verb: "POST", emits: "resent", icon: "replay", labelKey: "crm.messages.actions.resend" },
5126
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "crm.messages.actions.archive" },
5127
+ ],
5026
5128
  },
5027
5129
  {
5028
5130
  plural: "MessageTemplates",
@@ -5253,6 +5355,13 @@ const modelsAndRights = [
5253
5355
  piiLevel: "low",
5254
5356
  availableInSDK: true,
5255
5357
  sdkOperations: ["find", "findOne", "insert", "update", "aggregate", "count"],
5358
+ entityActions: [
5359
+ { name: "send", verb: "POST", emits: "sent", icon: "send", labelKey: "sale.offers.actions.send" },
5360
+ { name: "accept", verb: "POST", emits: "accepted", icon: "check_circle", labelKey: "sale.offers.actions.accept" },
5361
+ { name: "reject", verb: "POST", emits: "rejected", icon: "cancel", labelKey: "sale.offers.actions.reject" },
5362
+ { name: "withdraw", verb: "POST", emits: "withdrawn", icon: "undo", labelKey: "sale.offers.actions.withdraw" },
5363
+ { name: "expire", verb: "POST", emits: "expired", icon: "timer_off", labelKey: "sale.offers.actions.expire" },
5364
+ ],
5256
5365
  },
5257
5366
  {
5258
5367
  plural: "OMReports",
@@ -5287,6 +5396,12 @@ const modelsAndRights = [
5287
5396
  { title: "LOST", action: "lost", availability: "single", method: "PUT", icon: "thumb_down", dangerous: true },
5288
5397
  { title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
5289
5398
  ],
5399
+ entityActions: [
5400
+ { name: "win", verb: "POST", emits: "won", icon: "emoji_events", labelKey: "sale.opportunities.actions.win" },
5401
+ { name: "lose", verb: "POST", emits: "lost", icon: "sentiment_very_dissatisfied", labelKey: "sale.opportunities.actions.lose" },
5402
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "sale.opportunities.actions.reopen" },
5403
+ { name: "create-quote", verb: "POST", emits: "quote-created", icon: "description", labelKey: "sale.opportunities.actions.create-quote" },
5404
+ ],
5290
5405
  },
5291
5406
  {
5292
5407
  plural: "OpportunitySchemas",
@@ -5487,6 +5602,10 @@ const modelsAndRights = [
5487
5602
  allowDuplicate: true,
5488
5603
  updateBy: "_id",
5489
5604
  availableInSDK: false,
5605
+ entityActions: [
5606
+ { name: "close", verb: "POST", emits: "closed", icon: "lock", labelKey: "hub.polls.actions.close" },
5607
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "lock_open", labelKey: "hub.polls.actions.reopen" },
5608
+ ],
5490
5609
  },
5491
5610
  {
5492
5611
  plural: "PopupClicks",
@@ -5769,6 +5888,13 @@ const modelsAndRights = [
5769
5888
  { title: "COMPLETE", action: "complete", availability: "single", method: "POST", icon: "done_all" },
5770
5889
  { title: "CANCEL", action: "cancel", availability: "single", method: "POST", icon: "cancel", dangerous: true },
5771
5890
  ],
5891
+ entityActions: [
5892
+ { name: "start", verb: "POST", emits: "started", icon: "play_arrow", labelKey: "production.productionorders.actions.start" },
5893
+ { name: "pause", verb: "POST", emits: "paused", icon: "pause", labelKey: "production.productionorders.actions.pause" },
5894
+ { name: "resume", verb: "POST", emits: "resumed", icon: "play_arrow", labelKey: "production.productionorders.actions.resume" },
5895
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "production.productionorders.actions.complete" },
5896
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "production.productionorders.actions.cancel", dangerous: true },
5897
+ ],
5772
5898
  },
5773
5899
  {
5774
5900
  plural: "ProductionProcesses",
@@ -6160,6 +6286,12 @@ const modelsAndRights = [
6160
6286
  { title: "ROLLUP", action: "rollup", availability: "single", method: "POST", icon: "merge_type" },
6161
6287
  { title: "FROM_COMMITS", action: "from-commits", availability: "single", method: "POST", icon: "commit" },
6162
6288
  ],
6289
+ entityActions: [
6290
+ { name: "stage", verb: "POST", emits: "staged", icon: "rocket_launch", labelKey: "pm.releases.actions.stage" },
6291
+ { name: "publish", verb: "POST", emits: "published", icon: "public", labelKey: "pm.releases.actions.publish" },
6292
+ { name: "unpublish", verb: "POST", emits: "unpublished", icon: "visibility_off", labelKey: "pm.releases.actions.unpublish" },
6293
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "pm.releases.actions.archive" },
6294
+ ],
6163
6295
  },
6164
6296
  {
6165
6297
  plural: "Reminders",
@@ -6583,6 +6715,12 @@ const modelsAndRights = [
6583
6715
  allowDuplicate: false,
6584
6716
  updateBy: "_id",
6585
6717
  availableInSDK: false,
6718
+ entityActions: [
6719
+ { name: "publish", verb: "POST", emits: "published", icon: "public", labelKey: "hr.shifts.actions.publish" },
6720
+ { name: "swap", verb: "POST", emits: "swapped", icon: "swap_horiz", labelKey: "hr.shifts.actions.swap" },
6721
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "hr.shifts.actions.cancel" },
6722
+ { name: "assign", verb: "POST", emits: "assigned", icon: "person_add", labelKey: "hr.shifts.actions.assign" },
6723
+ ],
6586
6724
  },
6587
6725
  {
6588
6726
  plural: "ShippingBoxes",
@@ -6627,6 +6765,12 @@ const modelsAndRights = [
6627
6765
  allowDuplicate: false,
6628
6766
  updateBy: "_id",
6629
6767
  availableInSDK: false,
6768
+ entityActions: [
6769
+ { name: "ship", verb: "POST", emits: "shipped", icon: "local_shipping", labelKey: "sale.shippings.actions.ship" },
6770
+ { name: "deliver", verb: "POST", emits: "delivered", icon: "check_circle", labelKey: "sale.shippings.actions.deliver" },
6771
+ { name: "return", verb: "POST", emits: "returned", icon: "undo", labelKey: "sale.shippings.actions.return" },
6772
+ { name: "mark-lost", verb: "POST", emits: "lost", icon: "report", labelKey: "sale.shippings.actions.mark-lost", dangerous: true },
6773
+ ],
6630
6774
  },
6631
6775
  {
6632
6776
  plural: "Shippments",
@@ -6671,6 +6815,12 @@ const modelsAndRights = [
6671
6815
  allowDuplicate: false,
6672
6816
  updateBy: "_id",
6673
6817
  availableInSDK: false,
6818
+ entityActions: [
6819
+ { name: "checkout", verb: "POST", emits: "checkout-started", icon: "shopping_cart", labelKey: "ecommerce.shoppingcarts.actions.checkout" },
6820
+ { name: "abandon", verb: "POST", emits: "abandoned", icon: "remove_shopping_cart", labelKey: "ecommerce.shoppingcarts.actions.abandon" },
6821
+ { name: "recover", verb: "POST", emits: "recovered", icon: "restore", labelKey: "ecommerce.shoppingcarts.actions.recover" },
6822
+ { name: "clear", verb: "POST", emits: "cleared", icon: "delete_sweep", labelKey: "ecommerce.shoppingcarts.actions.clear", dangerous: true },
6823
+ ],
6674
6824
  },
6675
6825
  {
6676
6826
  plural: "Shops",
@@ -6956,6 +7106,12 @@ const modelsAndRights = [
6956
7106
  allowDuplicate: false,
6957
7107
  updateBy: "_id",
6958
7108
  availableInSDK: false,
7109
+ entityActions: [
7110
+ { name: "sign", verb: "POST", emits: "signed", icon: "draw", labelKey: "purchase.supplieragreements.actions.sign" },
7111
+ { name: "renew", verb: "POST", emits: "renewed", icon: "autorenew", labelKey: "purchase.supplieragreements.actions.renew" },
7112
+ { name: "expire", verb: "POST", emits: "expired", icon: "timer_off", labelKey: "purchase.supplieragreements.actions.expire" },
7113
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "purchase.supplieragreements.actions.cancel", dangerous: true },
7114
+ ],
6959
7115
  },
6960
7116
  {
6961
7117
  plural: "SupplierOrders",
@@ -6967,6 +7123,13 @@ const modelsAndRights = [
6967
7123
  allowDuplicate: false,
6968
7124
  updateBy: "_id",
6969
7125
  availableInSDK: false,
7126
+ entityActions: [
7127
+ { name: "approve", verb: "POST", emits: "approved", icon: "check_circle", labelKey: "purchase.supplierorders.actions.approve" },
7128
+ { name: "reject", verb: "POST", emits: "rejected", icon: "cancel", labelKey: "purchase.supplierorders.actions.reject" },
7129
+ { name: "order", verb: "POST", emits: "ordered", icon: "send", labelKey: "purchase.supplierorders.actions.order" },
7130
+ { name: "receive", verb: "POST", emits: "received", icon: "inventory_2", labelKey: "purchase.supplierorders.actions.receive" },
7131
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "purchase.supplierorders.actions.cancel", dangerous: true },
7132
+ ],
6970
7133
  },
6971
7134
  {
6972
7135
  plural: "SupplierProducts",
@@ -7056,6 +7219,11 @@ const modelsAndRights = [
7056
7219
  { title: "COMPLETE", action: "complete", availability: "single", method: "PUT", icon: "done" },
7057
7220
  { title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
7058
7221
  ],
7222
+ entityActions: [
7223
+ { name: "complete", verb: "POST", emits: "completed", icon: "done", labelKey: "pm.tasks.actions.complete" },
7224
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "pm.tasks.actions.reopen" },
7225
+ { name: "assign", verb: "POST", emits: "assigned", icon: "person_add", labelKey: "pm.tasks.actions.assign" },
7226
+ ],
7059
7227
  },
7060
7228
  {
7061
7229
  plural: "TemplateGroups",
@@ -7118,6 +7286,13 @@ const modelsAndRights = [
7118
7286
  sdkOperations: ["find", "findOne", "insert", "update", "aggregate", "count"],
7119
7287
  searchable: true,
7120
7288
  searchableFields: ['subject', 'ticketNumber'],
7289
+ entityActions: [
7290
+ { name: "open", verb: "POST", emits: "opened", icon: "lock_open", labelKey: "sale.tickets.actions.open" },
7291
+ { name: "resolve", verb: "POST", emits: "resolved", icon: "task_alt", labelKey: "sale.tickets.actions.resolve" },
7292
+ { name: "escalate", verb: "POST", emits: "escalated", icon: "priority_high", labelKey: "sale.tickets.actions.escalate" },
7293
+ { name: "close", verb: "POST", emits: "closed", icon: "lock", labelKey: "sale.tickets.actions.close" },
7294
+ { name: "reopen", verb: "POST", emits: "reopened", icon: "refresh", labelKey: "sale.tickets.actions.reopen" },
7295
+ ],
7121
7296
  },
7122
7297
  {
7123
7298
  plural: "Tips",
@@ -7151,6 +7326,11 @@ const modelsAndRights = [
7151
7326
  allowDuplicate: false,
7152
7327
  updateBy: "_id",
7153
7328
  availableInSDK: false,
7329
+ entityActions: [
7330
+ { name: "capture", verb: "POST", emits: "captured", icon: "attach_money", labelKey: "ecommerce.transactions.actions.capture" },
7331
+ { name: "refund", verb: "POST", emits: "refunded", icon: "undo", labelKey: "ecommerce.transactions.actions.refund", dangerous: true },
7332
+ { name: "void", verb: "POST", emits: "voided", icon: "close", labelKey: "ecommerce.transactions.actions.void", dangerous: true },
7333
+ ],
7154
7334
  },
7155
7335
  {
7156
7336
  plural: "TransportOrders",
@@ -7305,6 +7485,12 @@ const modelsAndRights = [
7305
7485
  allowDuplicate: false,
7306
7486
  updateBy: "_id",
7307
7487
  availableInSDK: false,
7488
+ entityActions: [
7489
+ { name: "request", verb: "POST", emits: "requested", icon: "send", labelKey: "hr.vacations.actions.request" },
7490
+ { name: "approve", verb: "POST", emits: "approved", icon: "check_circle", labelKey: "hr.vacations.actions.approve" },
7491
+ { name: "reject", verb: "POST", emits: "rejected", icon: "cancel", labelKey: "hr.vacations.actions.reject" },
7492
+ { name: "cancel", verb: "POST", emits: "cancelled", icon: "close", labelKey: "hr.vacations.actions.cancel" },
7493
+ ],
7308
7494
  },
7309
7495
  {
7310
7496
  plural: "VideoGenerators",
@@ -7556,6 +7742,11 @@ const modelsAndRights = [
7556
7742
  availability: "both",
7557
7743
  },
7558
7744
  ],
7745
+ entityActions: [
7746
+ { name: "publish", verb: "POST", emits: "published", icon: "public", labelKey: "hub.wikipages.actions.publish" },
7747
+ { name: "unpublish", verb: "POST", emits: "unpublished", icon: "visibility_off", labelKey: "hub.wikipages.actions.unpublish" },
7748
+ { name: "archive", verb: "POST", emits: "archived", icon: "archive", labelKey: "hub.wikipages.actions.archive" },
7749
+ ],
7559
7750
  },
7560
7751
  {
7561
7752
  plural: "Wizards",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2026.58.0",
3
+ "version": "2026.60.0",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",