@futdevpro/fsm-dynamo 1.14.27 → 1.14.29

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.
@@ -149,13 +149,17 @@ jobs:
149
149
  run: |
150
150
  echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
151
151
 
152
+ - name: Install safe-chain
153
+ run: |
154
+ curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
155
+
152
156
  - name: Install pnpm
153
157
  run: |
154
- npm i -g pnpm
158
+ npm i -g pnpm
155
159
 
156
160
  - name: Install Packages
157
161
  run: |
158
- pnpm i
162
+ pnpm i --safe-chain-skip-minimum-package-age
159
163
 
160
164
  - name: Build
161
165
  run: |
package/README.md CHANGED
@@ -1,17 +1,690 @@
1
+ # @futdevpro/fsm-dynamo
1
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@futdevpro/fsm-dynamo.svg)](https://www.npmjs.com/package/@futdevpro/fsm-dynamo)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2
5
 
3
- Dynamo is a framework developed by FDP that allows you to perform software development tasks easily, efficiently, quickly, and simply. As well as creating a unified system, the development of which will increase the stability of all our projects. Dynamo is easy to use, with the goal of creating complete systems with the right energy investment for the design process so that it can be easily upgraded in any form later.
6
+ **Full Stack Model Collection for Dynamic (NodeJS-TypeScript) Framework**
4
7
 
5
- Using dynamo can reduce software development costs to a fraction.
8
+ Dynamo FSM (Full Stack Module) is the foundational TypeScript package that provides the core infrastructure and shared utilities for building full-stack applications. It serves as the base structure for all other Dynamo projects, establishing consistent patterns, type definitions, and interfaces that ensure seamless integration between frontend and backend implementations.
6
9
 
10
+ **Naming Convention**: All exports from Dynamo FSM use the `DyFM_*` prefix (Dynamo Full Stack Module), ensuring clear identification and preventing naming conflicts. This consistent prefix pattern makes it easy to identify FSM utilities, classes, interfaces, and enums throughout your codebase.
7
11
 
8
- Part of this project is also a builder or editor interface, through which even those who are not software developers or have no development experience, can perform the development.
12
+ ## Table of Contents
9
13
 
10
- This interface can help juniors and people unfamiliar with development to easily make minor modifications and repairs to the system. Or they can easily get to know and understand the operation and structure of even a more complex project.
14
+ - [Introduction](#introduction)
15
+ - [Features](#features)
16
+ - [Installation](#installation)
17
+ - [Quick Start](#quick-start)
18
+ - [Modules](#modules)
19
+ - [Common Usage Patterns](#common-usage-patterns)
20
+ - [API Reference](#api-reference)
21
+ - [Requirements](#requirements)
22
+ - [Support & Contributing](#support--contributing)
23
+ - [License](#license)
11
24
 
12
- ...
25
+ ## Introduction
13
26
 
14
- more documentation and description soon...
27
+ Dynamo FSM provides core utilities for data manipulation, error handling, logging, state management, and more. It includes modules covering AI integration, real-time communication, location services, data transformation, and testing tools. This package serves as the base structure for all other Dynamo projects.
15
28
 
16
- support out projects to make it happen sooner!
17
- https://futdevpro.hu/support/dynamo
29
+ **Naming Convention**: All exports from Dynamo FSM use the `DyFM_*` prefix (Dynamo Full Stack Module). This consistent naming pattern makes it easy to identify FSM utilities, classes, interfaces, enums, and constants throughout your codebase. Examples include `DyFM_Array`, `DyFM_Log`, `DyFM_Error`, `DyFM_DataHandler`, and `DyFM_Metadata`.
30
+
31
+ ### Dynamo Packages Using FSM
32
+
33
+ Dynamo FSM is the foundational package used by all other Dynamo packages:
34
+
35
+ - **[Dynamo-NTS](https://www.npmjs.com/package/@futdevpro/dynamo-nts)** - Backend framework for Node.js with TypeScript
36
+ - **[Dynamo NGX Models](https://www.npmjs.com/package/@futdevpro/ngx-dynamo-models)** - Model definitions for Angular applications
37
+ - **[Dynamo NGX](https://www.npmjs.com/package/@futdevpro/ngx-dynamo)** - Angular framework with Material Design and Tailwind CSS
38
+
39
+ All these packages build upon Dynamo FSM's core interfaces, types, and utilities, ensuring consistency and type safety across the entire Dynamo ecosystem.
40
+
41
+ ### Key Characteristics
42
+
43
+ - **Zero Dependencies**: The foundational package has no dependencies (except peer dependencies), making it the base upon which all other Dynamo packages are built
44
+ - **Type-Safe Full-Stack Development**: Shared interfaces and models ensure data structures, API contracts, and business logic remain consistent from database to UI
45
+ - **Comprehensive Utility Library**: Utilities for arrays, strings, dates, UUIDs, error handling, logging, and more
46
+ - **Modular Architecture**: Import only what you need, keeping bundle sizes small while providing access to a comprehensive toolkit
47
+
48
+ ## Features
49
+
50
+ ### Core Utilities
51
+ - **Array Manipulation**: Advanced array operations with async support (`DyFM_Array`)
52
+ - **String Operations**: Comprehensive string manipulation utilities (`DyFM_String`)
53
+ - **Time & Date**: Advanced time manipulation and formatting (`DyFM_Time`)
54
+ - **UUID Generation**: Secure UUID generation utilities (`DyFM_UUID`)
55
+ - **Logging**: Advanced logging with customizable styling (`DyFM_Log`)
56
+ - **Error Handling**: Standardized error handling with configurable severity levels (`DyFM_Error`)
57
+ - **Data Transformation**: Type-safe cloning and data manipulation utilities
58
+
59
+ ### Specialized Modules
60
+ - **AI Integration**: Unified interface for multiple AI providers (OpenAI, Anthropic, Google, Local AI)
61
+ - **Reactive Data Management**: RxJS-based data handlers for single items, lists, and searchable data
62
+ - **Real-Time Communication**: Socket.IO integration for bidirectional communication
63
+ - **Location Services**: Comprehensive geographical data handling with country information
64
+ - **Messaging System**: Unified messaging for user↔user and user↔AI communication
65
+ - **Data Transformation**: Specialized pipes for geographic data, string manipulation, and formatting
66
+ - **Crypto Utilities**: Deterministic encryption/decryption using AES-256-CBC
67
+ - **Testing Tools**: Comprehensive HTTP endpoint testing utilities
68
+ - **Analytics**: User behavior tracking and usage analytics
69
+
70
+ ## Installation
71
+
72
+ ```bash
73
+ npm install @futdevpro/fsm-dynamo
74
+ ```
75
+
76
+ or
77
+
78
+ ```bash
79
+ pnpm add @futdevpro/fsm-dynamo
80
+ ```
81
+
82
+ ## Quick Start
83
+
84
+ ### Basic Utility Usage
85
+
86
+ ```typescript
87
+ import { DyFM_Array, DyFM_String, DyFM_Log, DyFM_Error, DyFM_ErrorLevel } from '@futdevpro/fsm-dynamo';
88
+
89
+ // Array operations
90
+ const numbers = [1, 2, 3, 4, 5];
91
+ const doubled = DyFM_Array.map(numbers, (n) => n * 2);
92
+
93
+ // String operations
94
+ const formatted = DyFM_String.capitalize('hello world'); // "Hello World"
95
+
96
+ // Logging
97
+ DyFM_Log.info('Application started');
98
+ DyFM_Log.warn('This is a warning');
99
+ DyFM_Log.error('An error occurred');
100
+
101
+ // Special logging methods
102
+ DyFM_Log.H_error('Highlighted error message'); // Highlighted error with visual formatting
103
+ DyFM_Log.T_error('Test error message'); // Test error with special formatting
104
+
105
+ // Error handling
106
+ const error = new DyFM_Error({
107
+ errorCode: 'USER_NOT_FOUND',
108
+ message: 'User with ID 123 not found',
109
+ userMessage: 'User not found',
110
+ level: DyFM_ErrorLevel.error
111
+ });
112
+
113
+ // Or use static method for any error type
114
+ DyFM_Error.logSimple('Operation failed', error);
115
+ ```
116
+
117
+ ### Data Handler Example
118
+
119
+ ```typescript
120
+ import { DyFM_DataHandler } from '@futdevpro/fsm-dynamo/data-handler';
121
+ import { DyFM_Metadata } from '@futdevpro/fsm-dynamo';
122
+
123
+ interface User extends DyFM_Metadata {
124
+ name: string;
125
+ email: string;
126
+ }
127
+
128
+ class UserHandler extends DyFM_DataHandler<User> {
129
+ constructor(apiService: any) {
130
+ super({
131
+ name: 'UserHandler',
132
+ get: async (userId: string) => {
133
+ return await apiService.getUser(userId);
134
+ },
135
+ set: async (user: User) => {
136
+ return await apiService.updateUser(user);
137
+ }
138
+ });
139
+ }
140
+ }
141
+
142
+ // Usage
143
+ const userHandler = new UserHandler(apiService);
144
+ await userHandler.reload('user-123');
145
+ userHandler.data$.subscribe(user => {
146
+ console.log('User loaded:', user);
147
+ });
148
+ ```
149
+
150
+ ### AI Module Example
151
+
152
+ ```typescript
153
+ import { DyFM_AI_Provider, DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
154
+ import { DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
155
+
156
+ // Configure AI provider
157
+ const aiConfig = {
158
+ provider: DyFM_AI_Provider.OpenAI,
159
+ apiKey: process.env.OPENAI_API_KEY,
160
+ model: DyFM_OAI_Model.gpt_4o_latest
161
+ };
162
+
163
+ // Create AI request
164
+ const aiRequest = {
165
+ messages: [
166
+ {
167
+ role: DyFM_AI_MessageRole.user,
168
+ content: 'Hello, how are you?'
169
+ }
170
+ ],
171
+ settings: aiConfig
172
+ };
173
+ ```
174
+
175
+ ## Modules
176
+
177
+ Dynamo FSM is organized into 12 specialized modules, each providing focused functionality for specific use cases.
178
+
179
+ ### 1. Main Module
180
+
181
+ **Import:** `@futdevpro/fsm-dynamo`
182
+
183
+ The core foundation providing essential utilities, constants, enums, and models for state management and data handling.
184
+
185
+ **Key Features:**
186
+ - Core utilities for array manipulation, logging, string operations, and type-safe data handling
187
+ - Constants for times, data sizes, numbers, and global settings
188
+ - Enums for error levels, HTTP types, log styles, and more
189
+ - Models for error handling, data properties, and service endpoints
190
+
191
+ **Example:**
192
+ ```typescript
193
+ import {
194
+ DyFM_Array,
195
+ DyFM_Log,
196
+ DyFM_Error,
197
+ DyFM_times,
198
+ DyFM_ErrorLevel
199
+ } from '@futdevpro/fsm-dynamo';
200
+
201
+ // Use time constants
202
+ const oneDay = DyFM_times.day; // 86400000 milliseconds
203
+
204
+ // Array operations
205
+ const result = DyFM_Array.filter([1, 2, 3, 4], n => n > 2);
206
+ ```
207
+
208
+ ### 2. AI Module
209
+
210
+ **Import:** `@futdevpro/fsm-dynamo/ai`
211
+
212
+ Unified interface for interacting with multiple AI providers (OpenAI, Anthropic, Google, Local AI).
213
+
214
+ **Key Features:**
215
+ - Standardized models and interfaces for LLM operations
216
+ - Embedding support across providers
217
+ - Provider capability detection
218
+ - Flexible configuration options
219
+
220
+ **Submodules:**
221
+ - `@futdevpro/fsm-dynamo/ai/open-ai` - OpenAI-specific implementations
222
+ - `@futdevpro/fsm-dynamo/ai/anthropic` - Anthropic (Claude) implementations
223
+ - `@futdevpro/fsm-dynamo/ai/google` - Google AI implementations
224
+ - `@futdevpro/fsm-dynamo/ai/local` - Local AI implementations
225
+
226
+ **Example:**
227
+ ```typescript
228
+ import { DyFM_AI_Provider, DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
229
+ import { DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
230
+
231
+ const config = {
232
+ provider: DyFM_AI_Provider.OpenAI,
233
+ model: DyFM_OAI_Model.gpt_4o_latest
234
+ };
235
+ ```
236
+
237
+ ### 3. Data Handler Module
238
+
239
+ **Import:** `@futdevpro/fsm-dynamo/data-handler`
240
+
241
+ Reactive data management utilities using RxJS BehaviorSubjects and Observables.
242
+
243
+ **Key Features:**
244
+ - Automatic loading prevention (prevents multiple simultaneous load calls)
245
+ - Post-processing support for data transformation
246
+ - Dependency management for dependent data handlers
247
+ - Specialized handlers for lists, searchable data, and pagination
248
+
249
+ **Classes:**
250
+ - `DyFM_DataHandler` - Base handler for single data items
251
+ - `DyFM_DataListHandler` - Handler for array data
252
+ - `DyFM_DataSearchHandler` - Handler for searchable data with pagination
253
+ - `DyFM_ListCollectorDataHandler` - Handler for list collections within parent objects
254
+
255
+ **Example:**
256
+ ```typescript
257
+ import { DyFM_DataListHandler } from '@futdevpro/fsm-dynamo/data-handler';
258
+
259
+ const listHandler = new DyFM_DataListHandler({
260
+ name: 'UsersList',
261
+ get: async () => await apiService.getUsers(),
262
+ setItem: async (user) => await apiService.updateUser(user),
263
+ deleteItem: async (userId) => await apiService.deleteUser(userId)
264
+ });
265
+
266
+ listHandler.dataList$.subscribe(users => {
267
+ console.log('Users updated:', users);
268
+ });
269
+ ```
270
+
271
+ ### 4. Location Module
272
+
273
+ **Import:** `@futdevpro/fsm-dynamo/location`
274
+
275
+ Comprehensive suite for handling geographical data and location-based functionality.
276
+
277
+ **Key Features:**
278
+ - Country information management with ISO codes
279
+ - Administrative divisions data
280
+ - Geographical utilities for coordinates and distance calculations
281
+ - Region classification and IP-based location services
282
+ - Phone code integration
283
+
284
+ **Example:**
285
+ ```typescript
286
+ import {
287
+ DyFM_CountryISOs,
288
+ DyFM_LocationUtils,
289
+ DyFM_RegionsUtils
290
+ } from '@futdevpro/fsm-dynamo/location';
291
+
292
+ const country = DyFM_CountryISOs.getByISO('US');
293
+ const distance = DyFM_LocationUtils.calculateDistance(
294
+ { lat: 40.7128, lng: -74.0060 },
295
+ { lat: 34.0522, lng: -118.2437 }
296
+ );
297
+ ```
298
+
299
+ ### 5. Messaging Module
300
+
301
+ **Import:** `@futdevpro/fsm-dynamo/messaging`
302
+
303
+ Unified messaging system for user↔user and user↔AI communication.
304
+
305
+ **Key Features:**
306
+ - Support for direct, group, assistant chat, and channel conversations
307
+ - Message types: text, attachments, reactions, mentions, threads
308
+ - Real-time capabilities with socket integration
309
+ - Agent process visualization for AI reasoning
310
+ - Participant role management
311
+
312
+ **Example:**
313
+ ```typescript
314
+ import {
315
+ DyFM_Msg_Message,
316
+ DyFM_Msg_Type,
317
+ DyFM_Msg_Status
318
+ } from '@futdevpro/fsm-dynamo/messaging';
319
+
320
+ const message = new DyFM_Msg_Message({
321
+ conversationId: 'conv-123',
322
+ senderId: 'user-456',
323
+ content: 'Hello, world!',
324
+ type: DyFM_Msg_Type.text,
325
+ status: DyFM_Msg_Status.sent
326
+ });
327
+ ```
328
+
329
+ ### 6. Socket Module
330
+
331
+ **Import:** `@futdevpro/fsm-dynamo/socket`
332
+
333
+ Real-time bidirectional communication using Socket.IO.
334
+
335
+ **Key Features:**
336
+ - Event management with predefined event keys
337
+ - Client configuration and connection management
338
+ - Automatic reconnection logic
339
+ - Observable properties for connection and subscription states
340
+ - Base service class for custom socket clients
341
+
342
+ **Example:**
343
+ ```typescript
344
+ import {
345
+ DyFM_SocketClient_ServiceBase,
346
+ DyFM_SocketEvent_Key
347
+ } from '@futdevpro/fsm-dynamo/socket';
348
+
349
+ class MySocketClient extends DyFM_SocketClient_ServiceBase {
350
+ // Implementation
351
+ }
352
+ ```
353
+
354
+ ### 7. Pipe Module
355
+
356
+ **Import:** `@futdevpro/fsm-dynamo/pipe`
357
+
358
+ Data transformation utilities for manipulating and formatting data.
359
+
360
+ **Key Features:**
361
+ - Specialized pipes for geographic data, string manipulation, and data formatting
362
+ - UI component support with Angular pipe integration
363
+ - Multi-pipe functionality for complex transformations
364
+ - Country, region, and division formatting
365
+
366
+ **Example:**
367
+ ```typescript
368
+ import { DyFM_pipeTransforms } from '@futdevpro/fsm-dynamo/pipe';
369
+
370
+ const formatted = DyFM_pipeTransforms.country('US'); // "United States"
371
+ ```
372
+
373
+ ### 8. Crypto Module
374
+
375
+ **Import:** `@futdevpro/fsm-dynamo/crypto`
376
+
377
+ Deterministic encryption and decryption utilities using AES-256-CBC.
378
+
379
+ **Key Features:**
380
+ - Deterministic encryption (same input + key = same output)
381
+ - Cross-platform compatibility
382
+ - URL-safe base64 encoding
383
+ - Secure random key generation
384
+
385
+ **Important:** This implementation produces identical encrypted output for identical input data and key. Use when consistency across systems is more important than cryptographic security.
386
+
387
+ **Example:**
388
+ ```typescript
389
+ import { DyFM_Crypto } from '@futdevpro/fsm-dynamo/crypto';
390
+
391
+ const encrypted = DyFM_Crypto.encrypt('sensitive data', 'my-secret-key');
392
+ const decrypted = DyFM_Crypto.decrypt(encrypted, 'my-secret-key');
393
+ ```
394
+
395
+ ### 9. Custom Data Module
396
+
397
+ **Import:** `@futdevpro/fsm-dynamo/custom-data`
398
+
399
+ Flexible storage and management of custom data with metadata support.
400
+
401
+ **Key Features:**
402
+ - Type-safe data containers with validation rules
403
+ - RESTful API endpoints for data operations
404
+ - Metadata support for tracking and organization
405
+
406
+ **Example:**
407
+ ```typescript
408
+ import { DyFM_CustomData } from '@futdevpro/fsm-dynamo/custom-data';
409
+
410
+ const customData = new DyFM_CustomData({
411
+ key: 'user-preferences',
412
+ value: { theme: 'dark', language: 'en' },
413
+ __createdBy: 'user-123'
414
+ });
415
+ ```
416
+
417
+ ### 10. Test Module
418
+
419
+ **Import:** `@futdevpro/fsm-dynamo/test`
420
+
421
+ Comprehensive testing tools for HTTP endpoints.
422
+
423
+ **Key Features:**
424
+ - Complete suite of HTTP method test endpoints
425
+ - Server status monitoring
426
+ - Structured response handling
427
+
428
+ ### 11. Usage Module
429
+
430
+ **Import:** `@futdevpro/fsm-dynamo/usage`
431
+
432
+ User behavior tracking and analytics tools.
433
+
434
+ **Key Features:**
435
+ - Session management
436
+ - Usage analytics and geographic insights
437
+ - Daily statistics and action tracking
438
+
439
+ **Example:**
440
+ ```typescript
441
+ import { DyFM_UsageSession } from '@futdevpro/fsm-dynamo/usage';
442
+
443
+ const session = new DyFM_UsageSession({
444
+ userId: 'user-123',
445
+ startTime: new Date(),
446
+ __createdBy: 'system'
447
+ });
448
+ ```
449
+
450
+ ### 12. CI Tools Module
451
+
452
+ **Import:** `@futdevpro/fsm-dynamo/ci-tools`
453
+
454
+ Models and enums for tracking CI/CD pipeline results.
455
+
456
+ **Key Features:**
457
+ - Build, test, and deployment pipeline tracking
458
+ - Detailed step-by-step results
459
+ - Result code enums for standardized status reporting
460
+
461
+ **Example:**
462
+ ```typescript
463
+ import {
464
+ DyFM_CIT_CIResultCode,
465
+ DyFM_CIT_CIResultInfo
466
+ } from '@futdevpro/fsm-dynamo/ci-tools';
467
+
468
+ const ciResult: DyFM_CIT_CIResultInfo = {
469
+ resultCode: DyFM_CIT_CIResultCode.success,
470
+ // ... other properties
471
+ };
472
+ ```
473
+
474
+ ## Common Usage Patterns
475
+
476
+ ### Import Patterns
477
+
478
+ All exports use the `DyFM_` prefix (Dynamo Full Stack Module):
479
+
480
+ ```typescript
481
+ // Main module
482
+ import { DyFM_Array, DyFM_Log, DyFM_Error } from '@futdevpro/fsm-dynamo';
483
+
484
+ // Specific modules
485
+ import { DyFM_DataHandler } from '@futdevpro/fsm-dynamo/data-handler';
486
+ import { DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
487
+ import { DyFM_Crypto } from '@futdevpro/fsm-dynamo/crypto';
488
+ ```
489
+
490
+ ### Type Safety
491
+
492
+ Dynamo FSM provides full TypeScript support with strict typing:
493
+
494
+ ```typescript
495
+ import { DyFM_Metadata, DyFM_Error, DyFM_ErrorLevel } from '@futdevpro/fsm-dynamo';
496
+
497
+ interface User extends DyFM_Metadata {
498
+ name: string;
499
+ email: string;
500
+ }
501
+
502
+ // Type-safe error handling
503
+ const error = new DyFM_Error({
504
+ errorCode: 'VALIDATION_ERROR',
505
+ message: 'Invalid user data',
506
+ level: DyFM_ErrorLevel.warning
507
+ });
508
+ ```
509
+
510
+ ### Error Handling Pattern
511
+
512
+ ```typescript
513
+ import { DyFM_Error, DyFM_ErrorLevel, DyFM_Log } from '@futdevpro/fsm-dynamo';
514
+
515
+ try {
516
+ // Your code
517
+ } catch (err) {
518
+ if (err instanceof DyFM_Error && err.___handled) {
519
+ // Error already handled
520
+ return;
521
+ }
522
+
523
+ const error = new DyFM_Error({
524
+ errorCode: 'OPERATION_FAILED',
525
+ message: err.message,
526
+ userMessage: 'An error occurred',
527
+ level: DyFM_ErrorLevel.error
528
+ });
529
+
530
+ // Use logSimple for formatted error logging
531
+ error.logSimple('Operation failed');
532
+ // Or use static method
533
+ DyFM_Error.logSimple('Operation failed', error);
534
+
535
+ throw error;
536
+ }
537
+ ```
538
+
539
+ ### Special Logging Methods
540
+
541
+ Dynamo FSM provides specialized logging methods for different use cases:
542
+
543
+ ```typescript
544
+ import { DyFM_Log, DyFM_Error } from '@futdevpro/fsm-dynamo';
545
+
546
+ // Highlighted error - displays error with visual formatting
547
+ DyFM_Log.H_error('Critical error occurred', errorDetails);
548
+ // Alias: DyFM_Log.highlightedError()
549
+
550
+ // Test error - displays error with test-specific formatting
551
+ DyFM_Log.T_error('Test error message', testData);
552
+ // Alias: DyFM_Log.testError()
553
+
554
+ // Simple error logging - formatted error output with error code, message, stack
555
+ const error = new DyFM_Error({
556
+ errorCode: 'VALIDATION_ERROR',
557
+ message: 'Invalid input',
558
+ level: DyFM_ErrorLevel.error
559
+ });
560
+
561
+ // Static method for any error type
562
+ DyFM_Error.logSimple('Operation failed', error);
563
+ // Works with both DyFM_Error instances and regular Error objects
564
+ ```
565
+
566
+ ### Constants Usage
567
+
568
+ ```typescript
569
+ import { DyFM_times, DyFM_data_sizes, DyFM_numbers } from '@futdevpro/fsm-dynamo';
570
+
571
+ // Time constants
572
+ const oneHour = DyFM_times.hour;
573
+ const oneDay = DyFM_times.day;
574
+ const oneWeek = DyFM_times.week;
575
+
576
+ // Data size constants
577
+ const maxStringLength = DyFM_data_sizes.maxStringLength;
578
+
579
+ // Number constants
580
+ const maxSafeInteger = DyFM_numbers.maxSafeInteger;
581
+ ```
582
+
583
+ ## API Reference
584
+
585
+ ### Main Exports
586
+
587
+ The main module exports utilities, constants, enums, and models:
588
+
589
+ **Constants:**
590
+ - `DyFM_error_defaults` - Default error configuration
591
+ - `DyFM_global_settings` - Global framework settings
592
+ - `DyFM_numbers` - Standard numeric constants
593
+ - `DyFM_times` - Time constants (second, minute, hour, day, week, month, year)
594
+ - `DyFM_data_sizes` - Data size constants
595
+
596
+ **Utilities:**
597
+ - `DyFM_Array` - Array manipulation utilities
598
+ - `DyFM_String` - String manipulation utilities
599
+ - `DyFM_Log` - Logging utilities with special methods:
600
+ - `DyFM_Log.H_error` / `DyFM_Log.highlightedError` - Big Highlighted error logging
601
+ - `DyFM_Log.T_error` / `DyFM_Log.testError` - Mdium Highlighted error logging
602
+ - `DyFM_Log.S_error` / `DyFM_Log.smallError` - Small Highlighted error logging
603
+ - `DyFM_Time` - Time manipulation utilities
604
+ - `DyFM_UUID` - UUID generation utilities
605
+ - `DyFM_Data` - Data transformation utilities
606
+ - `DyFM_Math` - Mathematical operations
607
+ - `DyFM_Random` - Random number generation
608
+
609
+ **Enums:**
610
+ - `DyFM_ErrorLevel` - Error severity levels
611
+ - `DyFM_LogStyle` - Text styling options
612
+ - `DyFM_HttpCallType` - HTTP request methods
613
+ - `DyFM_HttpResponseType` - HTTP response data types
614
+ - `DyFM_EnvironmentFlag` - Environment types
615
+
616
+ **Models:**
617
+ - `DyFM_Error` - Error model with methods:
618
+ - `logSimple()` - Formatted error logging with error code, message, stack, and additional content
619
+ - `static logSimple()` - Static method for logging any error type
620
+ - `DyFM_Metadata` - Base metadata model
621
+ - `DyFM_SearchQuery` - Search query interface
622
+ - `DyFM_SearchResult` - Search result interface
623
+ - `DyFM_Paged` - Pagination interface
624
+
625
+ ### Module Export Paths
626
+
627
+ All modules can be imported directly:
628
+
629
+ ```typescript
630
+ // Main module
631
+ import { ... } from '@futdevpro/fsm-dynamo';
632
+
633
+ // Submodules
634
+ import { ... } from '@futdevpro/fsm-dynamo/ai';
635
+ import { ... } from '@futdevpro/fsm-dynamo/ai/open-ai';
636
+ import { ... } from '@futdevpro/fsm-dynamo/ai/anthropic';
637
+ import { ... } from '@futdevpro/fsm-dynamo/data-handler';
638
+ import { ... } from '@futdevpro/fsm-dynamo/location';
639
+ import { ... } from '@futdevpro/fsm-dynamo/messaging';
640
+ import { ... } from '@futdevpro/fsm-dynamo/socket';
641
+ import { ... } from '@futdevpro/fsm-dynamo/pipe';
642
+ import { ... } from '@futdevpro/fsm-dynamo/crypto';
643
+ import { ... } from '@futdevpro/fsm-dynamo/custom-data';
644
+ import { ... } from '@futdevpro/fsm-dynamo/test';
645
+ import { ... } from '@futdevpro/fsm-dynamo/usage';
646
+ import { ... } from '@futdevpro/fsm-dynamo/ci-tools';
647
+ ```
648
+
649
+ For detailed API documentation, refer to the [Dynamo FSM Documentation](https://futdevpro.hu/projects/dynamo).
650
+
651
+ ## Requirements
652
+
653
+ - **TypeScript**: 5.5.4 or higher
654
+ - **Node.js**: Compatible with Node.js LTS versions
655
+ - **Peer Dependencies**:
656
+ - `rxjs`: 7.8.1
657
+
658
+ ## Support & Contributing
659
+
660
+ ### Support
661
+
662
+ - **Donations**: [https://futdevpro.hu/support/dynamo](https://futdevpro.hu/support/dynamo) - Support page for project donations
663
+ - **Homepage**: [https://futdevpro.hu/projects/dynamo](https://futdevpro.hu/projects/dynamo)
664
+ - **Feedback & Contact**: For feature requests, bug reports, or questions, please use the feedback page or contact us at:
665
+ - contact@futdevpro.hu
666
+ - support@futdevpro.hu
667
+
668
+ ## License
669
+
670
+ MIT License
671
+
672
+ Copyright (c) Future Development Program Ltd. (HU)
673
+
674
+ Permission is hereby granted, free of charge, to any person obtaining a copy
675
+ of this software and associated documentation files (the "Software"), to deal
676
+ in the Software without restriction, including without limitation the rights
677
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
678
+ copies of the Software, and to permit persons to whom the Software is
679
+ furnished to do so, subject to the following conditions:
680
+
681
+ The above copyright notice and this permission notice shall be included in all
682
+ copies or substantial portions of the Software.
683
+
684
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
685
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
686
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
687
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
688
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
689
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
690
+ SOFTWARE.
@@ -20,6 +20,10 @@ export declare class DyFM_DataModel_Settings<T extends DyFM_Metadata> extends Dy
20
20
  * @default false
21
21
  */
22
22
  forbidDelete?: boolean;
23
+ /**
24
+ * from these settings we will set the data model properties for the DB.
25
+ * metadata properties will be added automatically to the data model.
26
+ */
23
27
  properties: DyFM_DataProperties<T>;
24
28
  }
25
29
  export declare class DyFM_DataModel_Params<T extends DyFM_Metadata> extends DyFM_DataModel_Settings<T> {
@@ -1 +1 @@
1
- {"version":3,"file":"data-model-params.control-model.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/data-model-params.control-model.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAKrG,qBAAa,uBAAuB,CAAC,CAAC,SAAS,aAAa,CAAE,SAAQ,aAAa;IACjF;;OAEG;IACH,QAAQ,EAAG,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAEhC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,UAAU,EAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACrC;AAcD,qBAAa,qBAAqB,CAAC,CAAC,SAAS,aAAa,CAAE,SAAQ,uBAAuB,CAAC,CAAC,CAAC;IAG5F,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;gBAG9B,GAAG,EAAE,uBAAuB,CAAC,CAAC,CAAC;IAiNjC,WAAW,CAAC,IAAI,OAAO;IAIvB,yBAAyB,CAAC,CAAC,QAAQ,EAAE,wBAAwB,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI;CA0B7E"}
1
+ {"version":3,"file":"data-model-params.control-model.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/data-model-params.control-model.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAKrG,qBAAa,uBAAuB,CAAC,CAAC,SAAS,aAAa,CAAE,SAAQ,aAAa;IACjF;;OAEG;IACH,QAAQ,EAAG,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAEhC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,UAAU,EAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACrC;AAcD,qBAAa,qBAAqB,CAAC,CAAC,SAAS,aAAa,CAAE,SAAQ,uBAAuB,CAAC,CAAC,CAAC;IAG5F,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;gBAG9B,GAAG,EAAE,uBAAuB,CAAC,CAAC,CAAC;IAiNjC,WAAW,CAAC,IAAI,OAAO;IAIvB,yBAAyB,CAAC,CAAC,QAAQ,EAAE,wBAAwB,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,IAAI;CA0B7E"}
@@ -31,6 +31,10 @@ class DyFM_DataModel_Settings extends metadata_data_model_1.DyFM_Metadata {
31
31
  * @default false
32
32
  */
33
33
  forbidDelete;
34
+ /**
35
+ * from these settings we will set the data model properties for the DB.
36
+ * metadata properties will be added automatically to the data model.
37
+ */
34
38
  properties;
35
39
  }
36
40
  exports.DyFM_DataModel_Settings = DyFM_DataModel_Settings;
@@ -1 +1 @@
1
- {"version":3,"file":"data-model-params.control-model.js","sourceRoot":"","sources":["../../../src/_models/control-models/data-model-params.control-model.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAC7D,sEAAmE;AACnE,oEAAwF;AACxF,4EAAoF;AACpF,oFAAgF;AAChF,4EAAwE;AACxE,4EAAmE;AACnE,6FAAqG;AACrG,+DAAmD;AAEnD;wFACwF;AACxF,MAAa,uBAAiD,SAAQ,mCAAa;IACjF;;OAEG;IACH,QAAQ,CAAU;IAClB,SAAS,CAAuB;IAEhC,UAAU,CAAW;IAErB;;;;OAIG;IACH,YAAY,CAAW;IAEvB;;;;OAIG;IACH,YAAY,CAAW;IAEvB,UAAU,CAA0B;CAC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uB,CAAC,eAAe,EAAE,CAAC;oBAC5C,IAAI,CAAC,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;gBAC1D,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AArPD,sDAqPC"}
1
+ {"version":3,"file":"data-model-params.control-model.js","sourceRoot":"","sources":["../../../src/_models/control-models/data-model-params.control-model.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAC7D,sEAAmE;AACnE,oEAAwF;AACxF,4EAAoF;AACpF,oFAAgF;AAChF,4EAAwE;AACxE,4EAAmE;AACnE,6FAAqG;AACrG,+DAAmD;AAEnD;wFACwF;AACxF,MAAa,uBAAiD,SAAQ,mCAAa;IACjF;;OAEG;IACH,QAAQ,CAAU;IAClB,SAAS,CAAuB;IAEhC,UAAU,CAAW;IAErB;;;;OAIG;IACH,YAAY,CAAW;IAEvB;;;;OAIG;IACH,YAAY,CAAW;IAEvB;;;OAGG;IACH,UAAU,CAA0B;CACrC;AA5BD,0DA4BC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,qBAA+C,SAAQ,uBAA0B;IAE5F,mDAAmD;IAC1C,aAAa,CAAU;IAEhC,YACE,GAA+B;QAE/B,KAAK,CAAC,GAAG,CAAC,CAAC;QAEX,IAAI,CAAC;YACH,IAAI,GAAG,EAAE,CAAC;gBACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAC3B,CAAC;YAED,IAAI,CAAC,aAAa,GAAG,IAAA,8CAAiC,GAAE,CAAC;YAEzD,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAC5D,mBAAQ,CAAC,KAAK,CACZ,qCAAqC;oBACrC,8BAA8B,IAAI,CAAC,QAAQ,UAAU;oBACrD,oBAAoB,IAAI,CAAC,aAAa,IAAI,CAC3C,CAAC;gBAEF,IAAI,CAAC,UAAU,GAAG,EAA4B,CAAC;YACj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AAC,CAAC,GAAW,EAAQ,EAAE;gBAClE,IAAI,CAAC,GAAG,EAAE,CAAC;oBACT,mBAAQ,CAAC,KAAK,CACZ,mDAAmD;wBACnD,wCAAwC,IAAI,CAAC,QAAQ,UAAU;wBAC/D,oBAAoB,IAAI,CAAC,aAAa,IAAI,CAC3C,CAAC;gBACJ,CAAC;gBAED,MAAM,uBAAuB,GAAqC,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;gBAEhG,uBAAuB,CAAC,GAAG,GAAG,GAAG,CAAC;gBAClC,MAAM,SAAS,GAA4B,IAAA,0CAAyB,EAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;gBACnG,IAAI,SAAS,KAAK,uBAAuB,CAAC,IAAI,EAAE,CAAC;oBAC/C,uBAAuB,CAAC,YAAY,GAAG,uBAAuB,CAAC,IAAI,CAAC;oBACpE,uBAAuB,CAAC,IAAI,GAAG,SAAS,CAAC;gBAC3C,CAAC;gBAED,IAAI,uBAAuB,CAAC,eAAe,EAAE,CAAC;oBAC5C,IAAI,CAAC,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;gBAC1D,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AArPD,sDAqPC"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-property-params.control-model.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/data-property-params.control-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,MAAM,MAAM,mBAAmB,CAAC,MAAM,IAAI;KACvC,CAAC,IAAI,MAAM,MAAM,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;CACjE,CAAA;AAID,qBAAa,0BAA0B,CAAC,UAAU,EAAE,MAAM;IACxD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,E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E/C,WAAW,CAAC,IAAI,OAAO;IAKvB,SAAS,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI;CAyBhF"}
1
+ {"version":3,"file":"data-property-params.control-model.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/data-property-params.control-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,MAAM,MAAM,mBAAmB,CAAC,MAAM,IAAI;KACvC,CAAC,IAAI,MAAM,MAAM,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;CACjE,CAAA;AAID,qBAAa,0BAA0B,CAAC,UAAU,EAAE,MAAM;IACxD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAG,uBAAuB,GAAG,MAAM,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,UAAU,CAAC;IAErB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,eAAe,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAE3C,oBAAoB,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC;CAC9E;AAKD;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAwB,CAAC,UAAU,EAAE,MAAM,CAAE,SAAQ,0BAA0B,CAAC,UAAU,EAAE,MAAM,CAAC;IAKrG,oBAAoB,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,EAAE,CAAM;gBAGzF,GAAG,EAAE,0BAA0B,CAAC,UAAU,EAAE,MAAM,CAAC,EACnD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC;IAqE/C,WAAW,CAAC,IAAI,OAAO;IAKvB,SAAS,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI;CAyBhF"}
@@ -114,9 +114,10 @@ class DyFM_DataProperty_Params extends DyFM_DataProperty_Settings {
114
114
  set.index = false;
115
115
  }
116
116
  if (!set.vectorizeUseIndex) {
117
- throw new Error(`\n vectorizeUseIndex is required if vectorizedFrom is set at "${set.key}" in ` +
118
- `"${parentDataParams?.dataName}" model.` +
117
+ log_util_1.DyFM_Log.S_warn('DYNAMO WARNING: ', `\n vectorizeUseIndex is required if vectorizedFrom is set at "${set.key}" in ` +
118
+ `"${parentDataParams?.dataName}" model. (It will be set to "${set.key}" by default)` +
119
119
  `\n stackLocation: ${(0, stack_util_1.DyFM_getConstructionStackLocation)(2)}`);
120
+ set.vectorizeUseIndex = set.key;
120
121
  }
121
122
  }
122
123
  Object.assign(this, set);
@@ -1 +1 @@
1
- {"version":3,"file":"data-property-params.control-model.js","sourceRoot":"","sources":["../../../src/_models/control-models/data-property-params.control-model.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAC7D,oEAAwF;AACxF,oFAAgF;AAQhF,qFAAqF;AAErF,MAAa,0BAA0B;IACrC,GAAG,CAAU;IACb,IAAI,CAAoC;IACxC,YAAY,CAAU;IACtB,OAAO,CAAc;IAErB,MAAM,CAAW;IACjB,QAAQ,CAAW;IACnB,QAAQ,CAAW;IACnB,KAAK,CAAW;IAChB,SAAS,CAAW;IAEpB,iCAAiC;IACjC;;;;;;;OAOG;IACH,kBAAkB,CAAU;IAC5B,WAAW,CAAW;IACtB,gBAAgB,CAAU;IAE1B;;;;;OAKG;IACH,cAAc,CAAY;IAC1B,2BAA2B;IAC3B,cAAc,CAAU,CAAC,2BAA2B;IACpD;;OAEG;IACH,eAAe,CAAW;IAC1B;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAU;IAE3B,SAAS,CAAU;IACnB,SAAS,CAAU;IAEnB,eAAe,CAA4B;IAE3C,oBAAoB,CAAyD;CAC9E;AA/DD,gEA+DC;AAGD;6DAC6D;AAC7D;;;;;;;;;;;GAWG;AACH,MAAa,wBAA6C,SAAQ,0BAA8C;IAE9G,mEAAmE;IACnE,0DAA0D;IAEjD,oBAAoB,GAA2D,EAAE,CAAC;IAE3F,YACE,GAAmD,EACnD,gBAA6C;QAE7C,KAAK,EAAE,CAAC;QAER,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;gBAChC,mBAAQ,CAAC,KAAK,CACZ,gBAAgB,EAChB,0DAA0D,GAAG,CAAC,GAAG,OAAO;oBACtE,IAAI,gBAAgB,EAAE,QAAQ,UAAU;oBAC1C,qBAAqB,IAAA,8CAAiC,EAAC,CAAC,CAAC,EAAE,CAC5D,CAAC;YACJ,CAAC;YAED,IAAI,GAAG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ED,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,mBAAQ,CAAC,KAAK,CACZ,gBAAgB,EAChB,8DAA8D,IAAI,CAAC,GAAG,IAAI;gBAC1E,qBAAqB,IAAA,8CAAiC,EAAC,CAAC,CAAC,EAAE,CAC5D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC;IACd,CAAC;IAED,sCAAsC;IACtC,SAAS;QACP,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,kDAAuB,CAAC,MAAM;gBACjC,OAAO,MAAM,CAAC;YAEhB,KAAK,kDAAuB,CAAC,MAAM;gBACjC,OAAO,MAAM,CAAC;YAEhB,KAAK,kDAAuB,CAAC,OAAO;gBAClC,OAAO,OAAO,CAAC;YAEjB,KAAK,kDAAuB,CAAC,IAAI;gBAC/B,OAAO,IAAI,CAAC;YAEd,KAAK,kDAAuB,CAAC,MAAM,CAAC;YACpC;gBACE,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC9B,OAAO,KAAK,CAAC;gBACf,CAAC;qBAAM,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBACxE,OAAO,QAAQ,CAAC;gBAClB,CAAC;qBAAM,CAAC;oBACN,OAAO,MAAM,CAAC;gBAChB,CAAC;QACL,CAAC;IACH,CAAC;CACF;AA1GD,4DA0GC"}
1
+ {"version":3,"file":"data-property-params.control-model.js","sourceRoot":"","sources":["../../../src/_models/control-models/data-property-params.control-model.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAC7D,oEAAwF;AACxF,oFAAgF;AAQhF,qFAAqF;AAErF,MAAa,0BAA0B;IACrC,GAAG,CAAU;IACb,IAAI,CAAoC;I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,EAChB,8DAA8D,IAAI,CAAC,GAAG,IAAI;gBAC1E,qBAAqB,IAAA,8CAAiC,EAAC,CAAC,CAAC,EAAE,CAC5D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC;IACd,CAAC;IAED,sCAAsC;IACtC,SAAS;QACP,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,kDAAuB,CAAC,MAAM;gBACjC,OAAO,MAAM,CAAC;YAEhB,KAAK,kDAAuB,CAAC,MAAM;gBACjC,OAAO,MAAM,CAAC;YAEhB,KAAK,kDAAuB,CAAC,OAAO;gBAClC,OAAO,OAAO,CAAC;YAEjB,KAAK,kDAAuB,CAAC,IAAI;gBAC/B,OAAO,IAAI,CAAC;YAEd,KAAK,kDAAuB,CAAC,MAAM,CAAC;YACpC;gBACE,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC9B,OAAO,KAAK,CAAC;gBACf,CAAC;qBAAM,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;oBACxE,OAAO,QAAQ,CAAC;gBAClB,CAAC;qBAAM,CAAC;oBACN,OAAO,MAAM,CAAC;gBAChB,CAAC;QACL,CAAC;IACH,CAAC;CACF;AA5GD,4DA4GC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/fsm-dynamo",
3
- "version": "01.14.27",
3
+ "version": "01.14.29",
4
4
  "description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
5
5
  "DyBu_settings": {
6
6
  "packageType": "full-stack-package",
@@ -9,6 +9,8 @@
9
9
  },
10
10
  "scripts": {
11
11
  "prep": "npm i -g pnpm rimraf nodemon jasmine && pnpm i",
12
+ "preprep-setup-safechain-windows": "iex (iwr \"https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.ps1\" -UseBasicParsing)",
13
+ "preprep-setup-safechain-linux": "curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh",
12
14
  "start": "npm run prep && nodemon",
13
15
 
14
16
  "deploy": "npm run build",
@@ -38,7 +40,7 @@
38
40
  "audit:eslintrc": "dynamo-eslintrc-audit",
39
41
  "fix": "dynamo-fix",
40
42
  "fix:return-types": "dynamo-fix-return-types"
41
- },
43
+ },
42
44
  "main": "./build/index.js",
43
45
  "module": "./build/index.js",
44
46
  "types": "./build/index.d.ts",
@@ -198,7 +200,7 @@
198
200
  "uuid": "11.1.0"
199
201
  },
200
202
  "devDependencies": {
201
- "@futdevpro/dynamo-eslint": "1.14.22",
203
+ "@futdevpro/dynamo-eslint": "1.14.24",
202
204
  "@types/jasmine": "~4.3.5",
203
205
  "@typescript-eslint/eslint-plugin": "^8.41.0",
204
206
  "@typescript-eslint/parser": "^8.41.0",
@@ -33,6 +33,10 @@ export class DyFM_DataModel_Settings<T extends DyFM_Metadata> extends DyFM_Metad
33
33
  */
34
34
  forbidDelete?: boolean;
35
35
 
36
+ /**
37
+ * from these settings we will set the data model properties for the DB.
38
+ * metadata properties will be added automatically to the data model.
39
+ */
36
40
  properties!: DyFM_DataProperties<T>;
37
41
  }
38
42
 
@@ -148,11 +148,13 @@ export class DyFM_DataProperty_Params<T_Property, T_Data> extends DyFM_DataPrope
148
148
  }
149
149
 
150
150
  if (!set.vectorizeUseIndex) {
151
- throw new Error(
151
+ DyFM_Log.S_warn(
152
+ 'DYNAMO WARNING: ',
152
153
  `\n vectorizeUseIndex is required if vectorizedFrom is set at "${set.key}" in ` +
153
- `"${parentDataParams?.dataName}" model.` +
154
+ `"${parentDataParams?.dataName}" model. (It will be set to "${set.key}" by default)` +
154
155
  `\n stackLocation: ${DyFM_getConstructionStackLocation(2)}`
155
156
  );
157
+ set.vectorizeUseIndex = set.key;
156
158
  }
157
159
  }
158
160
 
package/BuildPackage.bat DELETED
@@ -1 +0,0 @@
1
- cmd /k npm run build
package/HOWTO.md DELETED
@@ -1,15 +0,0 @@
1
-
2
-
3
-
4
- build n deploy:
5
-
6
- (npm login)
7
- npm run build
8
-
9
-
10
-
11
- build n deploy OLD:
12
-
13
- npx tsc
14
- npm login
15
- npm publish
Binary file