@tolinax/ayoune-interfaces 2026.10.0 → 2026.10.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.
@@ -6,4 +6,7 @@ export interface IAPIAction {
6
6
  rel: string;
7
7
  types?: string[];
8
8
  right?: string;
9
+ icon?: string;
10
+ dangerous?: boolean;
11
+ confirmation?: string;
9
12
  }
@@ -63,6 +63,13 @@ export interface IAPIResultMeta {
63
63
  code: number;
64
64
  }[];
65
65
  code?: number;
66
+ search?: {
67
+ query: string;
68
+ duration: number;
69
+ totalResults: number;
70
+ modelCounts: Record<string, number>;
71
+ aiEnabled: boolean;
72
+ };
66
73
  }
67
74
  export interface IAPIResult {
68
75
  payload?: any | any[];
@@ -10,6 +10,10 @@ interface IModelAction {
10
10
  title: string;
11
11
  action: string;
12
12
  availability: "single" | "many" | "both";
13
+ method?: "POST" | "PUT";
14
+ icon?: string;
15
+ dangerous?: boolean;
16
+ confirmation?: string;
13
17
  }
14
18
  export interface IModelAndRight {
15
19
  plural: string;
@@ -641,6 +641,8 @@ const modelsAndRights = [
641
641
  importable: false,
642
642
  allowDuplicate: false,
643
643
  updateBy: "_id",
644
+ searchable: true,
645
+ searchableFields: ['subject', 'description'],
644
646
  },
645
647
  {
646
648
  plural: "AdAccounts",
@@ -1049,6 +1051,12 @@ const modelsAndRights = [
1049
1051
  importable: true,
1050
1052
  allowDuplicate: false,
1051
1053
  updateBy: "_id",
1054
+ searchable: true,
1055
+ searchableFields: ['firstname', 'lastname', 'email', 'phone', 'company'],
1056
+ actions: [
1057
+ { title: "ARCHIVE", action: "archive", availability: "both", method: "PUT", icon: "archive" },
1058
+ { title: "CONVERT_TO_CUSTOMER", action: "convert-to-customer", availability: "single", method: "POST", icon: "person_add" },
1059
+ ],
1052
1060
  },
1053
1061
  {
1054
1062
  plural: "ConsumerDatabases",
@@ -1169,6 +1177,8 @@ const modelsAndRights = [
1169
1177
  importable: false,
1170
1178
  allowDuplicate: true,
1171
1179
  updateBy: "_id",
1180
+ searchable: true,
1181
+ searchableFields: ['name', 'sku', 'ean', 'description'],
1172
1182
  },
1173
1183
  {
1174
1184
  plural: "Projects",
@@ -1179,6 +1189,13 @@ const modelsAndRights = [
1179
1189
  importable: false,
1180
1190
  allowDuplicate: true,
1181
1191
  updateBy: "_id",
1192
+ searchable: true,
1193
+ searchableFields: ['subject', 'description'],
1194
+ actions: [
1195
+ { title: "ARCHIVE", action: "archive", availability: "single", method: "PUT", icon: "archive" },
1196
+ { title: "COMPLETE", action: "complete", availability: "single", method: "PUT", icon: "done_all" },
1197
+ { title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
1198
+ ],
1182
1199
  },
1183
1200
  {
1184
1201
  plural: "RunningPipelines",
@@ -1349,6 +1366,8 @@ const modelsAndRights = [
1349
1366
  importable: false,
1350
1367
  allowDuplicate: true,
1351
1368
  updateBy: "_id",
1369
+ searchable: true,
1370
+ searchableFields: ['title', 'description'],
1352
1371
  },
1353
1372
  {
1354
1373
  plural: "Assets",
@@ -1479,6 +1498,8 @@ const modelsAndRights = [
1479
1498
  importable: false,
1480
1499
  allowDuplicate: true,
1481
1500
  updateBy: "_id",
1501
+ searchable: true,
1502
+ searchableFields: ['name', 'description'],
1482
1503
  },
1483
1504
  {
1484
1505
  plural: "BankAccounts",
@@ -1729,6 +1750,14 @@ const modelsAndRights = [
1729
1750
  importable: false,
1730
1751
  allowDuplicate: true,
1731
1752
  updateBy: "_id",
1753
+ searchable: true,
1754
+ searchableFields: ['name', 'subject'],
1755
+ actions: [
1756
+ { title: "ACTIVATE", action: "activate", availability: "single", method: "PUT", icon: "play_arrow" },
1757
+ { title: "PAUSE", action: "pause", availability: "single", method: "PUT", icon: "pause" },
1758
+ { title: "STOP", action: "stop", availability: "single", method: "PUT", icon: "stop", dangerous: true },
1759
+ { title: "ARCHIVE", action: "archive", availability: "both", method: "PUT", icon: "archive" },
1760
+ ],
1732
1761
  },
1733
1762
  {
1734
1763
  plural: "CancelReasons",
@@ -1789,6 +1818,8 @@ const modelsAndRights = [
1789
1818
  importable: false,
1790
1819
  allowDuplicate: false,
1791
1820
  updateBy: "_id",
1821
+ searchable: true,
1822
+ searchableFields: ['name', 'description'],
1792
1823
  },
1793
1824
  {
1794
1825
  plural: "ChatMessages",
@@ -1939,6 +1970,8 @@ const modelsAndRights = [
1939
1970
  importable: false,
1940
1971
  allowDuplicate: false,
1941
1972
  updateBy: "_id",
1973
+ searchable: true,
1974
+ searchableFields: ['name', 'email', 'phone', 'domain'],
1942
1975
  },
1943
1976
  {
1944
1977
  plural: "CompanyLocations",
@@ -2139,6 +2172,8 @@ const modelsAndRights = [
2139
2172
  importable: false,
2140
2173
  allowDuplicate: false,
2141
2174
  updateBy: "_id",
2175
+ searchable: true,
2176
+ searchableFields: ['title', 'description'],
2142
2177
  },
2143
2178
  {
2144
2179
  plural: "Contracts",
@@ -2149,6 +2184,8 @@ const modelsAndRights = [
2149
2184
  importable: false,
2150
2185
  allowDuplicate: false,
2151
2186
  updateBy: "_id",
2187
+ searchable: true,
2188
+ searchableFields: ['name', 'contractNumber'],
2152
2189
  },
2153
2190
  {
2154
2191
  plural: "ContentSnippets",
@@ -2219,6 +2256,8 @@ const modelsAndRights = [
2219
2256
  importable: false,
2220
2257
  allowDuplicate: false,
2221
2258
  updateBy: "_id",
2259
+ searchable: true,
2260
+ searchableFields: ['code', 'name'],
2222
2261
  },
2223
2262
  {
2224
2263
  plural: "CourseLessons",
@@ -3429,6 +3468,13 @@ const modelsAndRights = [
3429
3468
  importable: false,
3430
3469
  allowDuplicate: false,
3431
3470
  updateBy: "_id",
3471
+ searchable: true,
3472
+ searchableFields: ['invoiceNumber', 'subject', 'recipientName'],
3473
+ actions: [
3474
+ { title: "MARK_PAID", action: "mark-paid", availability: "single", method: "PUT", icon: "paid" },
3475
+ { title: "SEND_REMINDER", action: "send-reminder", availability: "single", method: "POST", icon: "notification_important" },
3476
+ { title: "CANCEL", action: "cancel", availability: "single", method: "PUT", icon: "cancel", dangerous: true },
3477
+ ],
3432
3478
  },
3433
3479
  {
3434
3480
  plural: "JobOffers",
@@ -3759,6 +3805,16 @@ const modelsAndRights = [
3759
3805
  importable: false,
3760
3806
  allowDuplicate: true,
3761
3807
  updateBy: "_id",
3808
+ searchable: true,
3809
+ searchableFields: ['name', 'shortID', 'serialNumber'],
3810
+ actions: [
3811
+ { title: "DISABLE", action: "disable", availability: "single", method: "PUT", icon: "block", dangerous: true },
3812
+ { title: "ENABLE", action: "enable", availability: "single", method: "PUT", icon: "check" },
3813
+ { title: "SET_MAINTENANCE", action: "set-maintenance", availability: "single", method: "PUT", icon: "build" },
3814
+ { title: "REPORT_FAILURE", action: "report-failure", availability: "single", method: "POST", icon: "warning", dangerous: true },
3815
+ { title: "SET_RUNNING", action: "set-running", availability: "single", method: "PUT", icon: "play_arrow" },
3816
+ { title: "SET_AVAILABLE", action: "set-available", availability: "single", method: "PUT", icon: "check_circle" },
3817
+ ],
3762
3818
  },
3763
3819
  {
3764
3820
  plural: "MachineTypes",
@@ -4209,6 +4265,13 @@ const modelsAndRights = [
4209
4265
  importable: false,
4210
4266
  allowDuplicate: false,
4211
4267
  updateBy: "_id",
4268
+ searchable: true,
4269
+ searchableFields: ['name', 'description'],
4270
+ actions: [
4271
+ { title: "WON", action: "won", availability: "single", method: "PUT", icon: "emoji_events" },
4272
+ { title: "LOST", action: "lost", availability: "single", method: "PUT", icon: "thumb_down", dangerous: true },
4273
+ { title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
4274
+ ],
4212
4275
  },
4213
4276
  {
4214
4277
  plural: "OpportunitySchemas",
@@ -4599,6 +4662,14 @@ const modelsAndRights = [
4599
4662
  importable: false,
4600
4663
  allowDuplicate: false,
4601
4664
  updateBy: "_id",
4665
+ searchable: true,
4666
+ searchableFields: ['orderNumber', 'subject'],
4667
+ actions: [
4668
+ { title: "START", action: "start", availability: "single", method: "POST", icon: "play_arrow" },
4669
+ { title: "STOP", action: "stop", availability: "single", method: "POST", icon: "stop", dangerous: true },
4670
+ { title: "COMPLETE", action: "complete", availability: "single", method: "POST", icon: "done_all" },
4671
+ { title: "CANCEL", action: "cancel", availability: "single", method: "POST", icon: "cancel", dangerous: true },
4672
+ ],
4602
4673
  },
4603
4674
  {
4604
4675
  plural: "ProductionProcesses",
@@ -4959,6 +5030,8 @@ const modelsAndRights = [
4959
5030
  importable: false,
4960
5031
  allowDuplicate: false,
4961
5032
  updateBy: "_id",
5033
+ searchable: true,
5034
+ searchableFields: ['name', 'repoSlug'],
4962
5035
  },
4963
5036
  {
4964
5037
  plural: "Requirements",
@@ -5551,6 +5624,8 @@ const modelsAndRights = [
5551
5624
  importable: false,
5552
5625
  allowDuplicate: false,
5553
5626
  updateBy: "_id",
5627
+ searchable: true,
5628
+ searchableFields: ['name', 'description'],
5554
5629
  actions: [
5555
5630
  {
5556
5631
  title: "REGENERATE_STREAM",
@@ -5658,6 +5733,13 @@ const modelsAndRights = [
5658
5733
  importable: false,
5659
5734
  allowDuplicate: false,
5660
5735
  updateBy: "_id",
5736
+ searchable: true,
5737
+ searchableFields: ['subject', 'description'],
5738
+ actions: [
5739
+ { title: "ASSIGN", action: "assign", availability: "single", method: "PUT", icon: "person_add" },
5740
+ { title: "COMPLETE", action: "complete", availability: "single", method: "PUT", icon: "done" },
5741
+ { title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
5742
+ ],
5661
5743
  },
5662
5744
  {
5663
5745
  plural: "TemplateGroups",
@@ -5708,6 +5790,8 @@ const modelsAndRights = [
5708
5790
  importable: false,
5709
5791
  allowDuplicate: false,
5710
5792
  updateBy: "_id",
5793
+ searchable: true,
5794
+ searchableFields: ['subject', 'ticketNumber'],
5711
5795
  },
5712
5796
  {
5713
5797
  plural: "Tips",
@@ -6028,6 +6112,8 @@ const modelsAndRights = [
6028
6112
  importable: false,
6029
6113
  allowDuplicate: true,
6030
6114
  updateBy: "_id",
6115
+ searchable: true,
6116
+ searchableFields: ['title', 'content'],
6031
6117
  actions: [
6032
6118
  {
6033
6119
  title: "REGENERATE_PERMALINKS",
@@ -6060,6 +6146,15 @@ const modelsAndRights = [
6060
6146
  importable: false,
6061
6147
  allowDuplicate: true,
6062
6148
  updateBy: "_id",
6149
+ searchable: true,
6150
+ searchableFields: ['name', 'shortID'],
6151
+ actions: [
6152
+ { title: "ACTIVATE", action: "activate", availability: "single", method: "PUT", icon: "check_circle" },
6153
+ { title: "DEACTIVATE", action: "deactivate", availability: "single", method: "PUT", icon: "block", dangerous: true },
6154
+ { title: "SET_OCCUPIED", action: "set-occupied", availability: "single", method: "PUT", icon: "person" },
6155
+ { title: "SET_MAINTENANCE", action: "set-maintenance", availability: "single", method: "PUT", icon: "build" },
6156
+ { title: "REPORT_FAILURE", action: "report-failure", availability: "single", method: "POST", icon: "warning", dangerous: true },
6157
+ ],
6063
6158
  },
6064
6159
  {
6065
6160
  plural: "WorkLogs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2026.10.0",
3
+ "version": "2026.10.1",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",