@futdevpro/fsm-dynamo 1.14.27 → 1.14.28
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/.github/workflows/main.yml +9 -1
- package/README.md +667 -8
- package/build/_models/control-models/data-model-params.control-model.d.ts +4 -0
- package/build/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.js +4 -0
- package/build/_models/control-models/data-model-params.control-model.js.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.js +3 -2
- package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/futdevpro-fsm-dynamo-01.14.28.tgz +0 -0
- package/package.json +5 -3
- package/src/_models/control-models/data-model-params.control-model.ts +4 -0
- package/src/_models/control-models/data-property-params.control-model.ts +4 -2
- package/BuildPackage.bat +0 -1
- package/HOWTO.md +0 -15
- package/futdevpro-fsm-dynamo-01.14.27.tgz +0 -0
|
@@ -149,9 +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
|
|
159
|
+
|
|
160
|
+
# - name: TEST safe-chain (this should fail the build)
|
|
161
|
+
# run: |
|
|
162
|
+
# pnpm i safe-chain-test
|
|
155
163
|
|
|
156
164
|
- name: Install Packages
|
|
157
165
|
run: |
|
package/README.md
CHANGED
|
@@ -1,17 +1,676 @@
|
|
|
1
|
+
# @futdevpro/fsm-dynamo
|
|
1
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@futdevpro/fsm-dynamo)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
**Full Stack Model Collection for Dynamic (NodeJS-TypeScript) Framework**
|
|
4
7
|
|
|
5
|
-
|
|
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
|
+
## Table of Contents
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
- [Introduction](#introduction)
|
|
13
|
+
- [Features](#features)
|
|
14
|
+
- [Installation](#installation)
|
|
15
|
+
- [Quick Start](#quick-start)
|
|
16
|
+
- [Modules](#modules)
|
|
17
|
+
- [Common Usage Patterns](#common-usage-patterns)
|
|
18
|
+
- [API Reference](#api-reference)
|
|
19
|
+
- [Requirements](#requirements)
|
|
20
|
+
- [Support & Contributing](#support--contributing)
|
|
21
|
+
- [License](#license)
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
## Introduction
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
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.
|
|
13
26
|
|
|
14
|
-
|
|
27
|
+
### Key Characteristics
|
|
15
28
|
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
- **Zero Dependencies**: The foundational package has no dependencies (except peer dependencies), making it the base upon which all other Dynamo packages are built
|
|
30
|
+
- **Type-Safe Full-Stack Development**: Shared interfaces and models ensure data structures, API contracts, and business logic remain consistent from database to UI
|
|
31
|
+
- **Comprehensive Utility Library**: Utilities for arrays, strings, dates, UUIDs, error handling, logging, and more
|
|
32
|
+
- **Modular Architecture**: Import only what you need, keeping bundle sizes small while providing access to a comprehensive toolkit
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
|
|
36
|
+
### Core Utilities
|
|
37
|
+
- **Array Manipulation**: Advanced array operations with async support (`DyFM_Array`)
|
|
38
|
+
- **String Operations**: Comprehensive string manipulation utilities (`DyFM_String`)
|
|
39
|
+
- **Time & Date**: Advanced time manipulation and formatting (`DyFM_Time`)
|
|
40
|
+
- **UUID Generation**: Secure UUID generation utilities (`DyFM_UUID`)
|
|
41
|
+
- **Logging**: Advanced logging with customizable styling (`DyFM_Log`)
|
|
42
|
+
- **Error Handling**: Standardized error handling with configurable severity levels (`DyFM_Error`)
|
|
43
|
+
- **Data Transformation**: Type-safe cloning and data manipulation utilities
|
|
44
|
+
|
|
45
|
+
### Specialized Modules
|
|
46
|
+
- **AI Integration**: Unified interface for multiple AI providers (OpenAI, Anthropic, Google, Local AI)
|
|
47
|
+
- **Reactive Data Management**: RxJS-based data handlers for single items, lists, and searchable data
|
|
48
|
+
- **Real-Time Communication**: Socket.IO integration for bidirectional communication
|
|
49
|
+
- **Location Services**: Comprehensive geographical data handling with country information
|
|
50
|
+
- **Messaging System**: Unified messaging for user↔user and user↔AI communication
|
|
51
|
+
- **Data Transformation**: Specialized pipes for geographic data, string manipulation, and formatting
|
|
52
|
+
- **Crypto Utilities**: Deterministic encryption/decryption using AES-256-CBC
|
|
53
|
+
- **Testing Tools**: Comprehensive HTTP endpoint testing utilities
|
|
54
|
+
- **Analytics**: User behavior tracking and usage analytics
|
|
55
|
+
|
|
56
|
+
## Installation
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm install @futdevpro/fsm-dynamo
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
or
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pnpm add @futdevpro/fsm-dynamo
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Quick Start
|
|
69
|
+
|
|
70
|
+
### Basic Utility Usage
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import { DyFM_Array, DyFM_String, DyFM_Log, DyFM_Error, DyFM_ErrorLevel } from '@futdevpro/fsm-dynamo';
|
|
74
|
+
|
|
75
|
+
// Array operations
|
|
76
|
+
const numbers = [1, 2, 3, 4, 5];
|
|
77
|
+
const doubled = DyFM_Array.map(numbers, (n) => n * 2);
|
|
78
|
+
|
|
79
|
+
// String operations
|
|
80
|
+
const formatted = DyFM_String.capitalize('hello world'); // "Hello World"
|
|
81
|
+
|
|
82
|
+
// Logging
|
|
83
|
+
DyFM_Log.info('Application started');
|
|
84
|
+
DyFM_Log.warn('This is a warning');
|
|
85
|
+
DyFM_Log.error('An error occurred');
|
|
86
|
+
|
|
87
|
+
// Special logging methods
|
|
88
|
+
DyFM_Log.H_error('Highlighted error message'); // Highlighted error with visual formatting
|
|
89
|
+
DyFM_Log.T_error('Test error message'); // Test error with special formatting
|
|
90
|
+
|
|
91
|
+
// Error handling
|
|
92
|
+
const error = new DyFM_Error({
|
|
93
|
+
errorCode: 'USER_NOT_FOUND',
|
|
94
|
+
message: 'User with ID 123 not found',
|
|
95
|
+
userMessage: 'User not found',
|
|
96
|
+
level: DyFM_ErrorLevel.error
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
// Or use static method for any error type
|
|
100
|
+
DyFM_Error.logSimple('Operation failed', error);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Data Handler Example
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
import { DyFM_DataHandler } from '@futdevpro/fsm-dynamo/data-handler';
|
|
107
|
+
import { DyFM_Metadata } from '@futdevpro/fsm-dynamo';
|
|
108
|
+
|
|
109
|
+
interface User extends DyFM_Metadata {
|
|
110
|
+
name: string;
|
|
111
|
+
email: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
class UserHandler extends DyFM_DataHandler<User> {
|
|
115
|
+
constructor(apiService: any) {
|
|
116
|
+
super({
|
|
117
|
+
name: 'UserHandler',
|
|
118
|
+
get: async (userId: string) => {
|
|
119
|
+
return await apiService.getUser(userId);
|
|
120
|
+
},
|
|
121
|
+
set: async (user: User) => {
|
|
122
|
+
return await apiService.updateUser(user);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Usage
|
|
129
|
+
const userHandler = new UserHandler(apiService);
|
|
130
|
+
await userHandler.reload('user-123');
|
|
131
|
+
userHandler.data$.subscribe(user => {
|
|
132
|
+
console.log('User loaded:', user);
|
|
133
|
+
});
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### AI Module Example
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import { DyFM_AI_Provider, DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
|
|
140
|
+
import { DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
141
|
+
|
|
142
|
+
// Configure AI provider
|
|
143
|
+
const aiConfig = {
|
|
144
|
+
provider: DyFM_AI_Provider.OpenAI,
|
|
145
|
+
apiKey: process.env.OPENAI_API_KEY,
|
|
146
|
+
model: DyFM_OAI_Model.gpt_4o_latest
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// Create AI request
|
|
150
|
+
const aiRequest = {
|
|
151
|
+
messages: [
|
|
152
|
+
{
|
|
153
|
+
role: DyFM_AI_MessageRole.user,
|
|
154
|
+
content: 'Hello, how are you?'
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
settings: aiConfig
|
|
158
|
+
};
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Modules
|
|
162
|
+
|
|
163
|
+
Dynamo FSM is organized into 12 specialized modules, each providing focused functionality for specific use cases.
|
|
164
|
+
|
|
165
|
+
### 1. Main Module
|
|
166
|
+
|
|
167
|
+
**Import:** `@futdevpro/fsm-dynamo`
|
|
168
|
+
|
|
169
|
+
The core foundation providing essential utilities, constants, enums, and models for state management and data handling.
|
|
170
|
+
|
|
171
|
+
**Key Features:**
|
|
172
|
+
- Core utilities for array manipulation, logging, string operations, and type-safe data handling
|
|
173
|
+
- Constants for times, data sizes, numbers, and global settings
|
|
174
|
+
- Enums for error levels, HTTP types, log styles, and more
|
|
175
|
+
- Models for error handling, data properties, and service endpoints
|
|
176
|
+
|
|
177
|
+
**Example:**
|
|
178
|
+
```typescript
|
|
179
|
+
import {
|
|
180
|
+
DyFM_Array,
|
|
181
|
+
DyFM_Log,
|
|
182
|
+
DyFM_Error,
|
|
183
|
+
DyFM_times,
|
|
184
|
+
DyFM_ErrorLevel
|
|
185
|
+
} from '@futdevpro/fsm-dynamo';
|
|
186
|
+
|
|
187
|
+
// Use time constants
|
|
188
|
+
const oneDay = DyFM_times.day; // 86400000 milliseconds
|
|
189
|
+
|
|
190
|
+
// Array operations
|
|
191
|
+
const result = DyFM_Array.filter([1, 2, 3, 4], n => n > 2);
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### 2. AI Module
|
|
195
|
+
|
|
196
|
+
**Import:** `@futdevpro/fsm-dynamo/ai`
|
|
197
|
+
|
|
198
|
+
Unified interface for interacting with multiple AI providers (OpenAI, Anthropic, Google, Local AI).
|
|
199
|
+
|
|
200
|
+
**Key Features:**
|
|
201
|
+
- Standardized models and interfaces for LLM operations
|
|
202
|
+
- Embedding support across providers
|
|
203
|
+
- Provider capability detection
|
|
204
|
+
- Flexible configuration options
|
|
205
|
+
|
|
206
|
+
**Submodules:**
|
|
207
|
+
- `@futdevpro/fsm-dynamo/ai/open-ai` - OpenAI-specific implementations
|
|
208
|
+
- `@futdevpro/fsm-dynamo/ai/anthropic` - Anthropic (Claude) implementations
|
|
209
|
+
- `@futdevpro/fsm-dynamo/ai/google` - Google AI implementations
|
|
210
|
+
- `@futdevpro/fsm-dynamo/ai/local` - Local AI implementations
|
|
211
|
+
|
|
212
|
+
**Example:**
|
|
213
|
+
```typescript
|
|
214
|
+
import { DyFM_AI_Provider, DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
|
|
215
|
+
import { DyFM_OAI_Model } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
216
|
+
|
|
217
|
+
const config = {
|
|
218
|
+
provider: DyFM_AI_Provider.OpenAI,
|
|
219
|
+
model: DyFM_OAI_Model.gpt_4o_latest
|
|
220
|
+
};
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### 3. Data Handler Module
|
|
224
|
+
|
|
225
|
+
**Import:** `@futdevpro/fsm-dynamo/data-handler`
|
|
226
|
+
|
|
227
|
+
Reactive data management utilities using RxJS BehaviorSubjects and Observables.
|
|
228
|
+
|
|
229
|
+
**Key Features:**
|
|
230
|
+
- Automatic loading prevention (prevents multiple simultaneous load calls)
|
|
231
|
+
- Post-processing support for data transformation
|
|
232
|
+
- Dependency management for dependent data handlers
|
|
233
|
+
- Specialized handlers for lists, searchable data, and pagination
|
|
234
|
+
|
|
235
|
+
**Classes:**
|
|
236
|
+
- `DyFM_DataHandler` - Base handler for single data items
|
|
237
|
+
- `DyFM_DataListHandler` - Handler for array data
|
|
238
|
+
- `DyFM_DataSearchHandler` - Handler for searchable data with pagination
|
|
239
|
+
- `DyFM_ListCollectorDataHandler` - Handler for list collections within parent objects
|
|
240
|
+
|
|
241
|
+
**Example:**
|
|
242
|
+
```typescript
|
|
243
|
+
import { DyFM_DataListHandler } from '@futdevpro/fsm-dynamo/data-handler';
|
|
244
|
+
|
|
245
|
+
const listHandler = new DyFM_DataListHandler({
|
|
246
|
+
name: 'UsersList',
|
|
247
|
+
get: async () => await apiService.getUsers(),
|
|
248
|
+
setItem: async (user) => await apiService.updateUser(user),
|
|
249
|
+
deleteItem: async (userId) => await apiService.deleteUser(userId)
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
listHandler.dataList$.subscribe(users => {
|
|
253
|
+
console.log('Users updated:', users);
|
|
254
|
+
});
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### 4. Location Module
|
|
258
|
+
|
|
259
|
+
**Import:** `@futdevpro/fsm-dynamo/location`
|
|
260
|
+
|
|
261
|
+
Comprehensive suite for handling geographical data and location-based functionality.
|
|
262
|
+
|
|
263
|
+
**Key Features:**
|
|
264
|
+
- Country information management with ISO codes
|
|
265
|
+
- Administrative divisions data
|
|
266
|
+
- Geographical utilities for coordinates and distance calculations
|
|
267
|
+
- Region classification and IP-based location services
|
|
268
|
+
- Phone code integration
|
|
269
|
+
|
|
270
|
+
**Example:**
|
|
271
|
+
```typescript
|
|
272
|
+
import {
|
|
273
|
+
DyFM_CountryISOs,
|
|
274
|
+
DyFM_LocationUtils,
|
|
275
|
+
DyFM_RegionsUtils
|
|
276
|
+
} from '@futdevpro/fsm-dynamo/location';
|
|
277
|
+
|
|
278
|
+
const country = DyFM_CountryISOs.getByISO('US');
|
|
279
|
+
const distance = DyFM_LocationUtils.calculateDistance(
|
|
280
|
+
{ lat: 40.7128, lng: -74.0060 },
|
|
281
|
+
{ lat: 34.0522, lng: -118.2437 }
|
|
282
|
+
);
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### 5. Messaging Module
|
|
286
|
+
|
|
287
|
+
**Import:** `@futdevpro/fsm-dynamo/messaging`
|
|
288
|
+
|
|
289
|
+
Unified messaging system for user↔user and user↔AI communication.
|
|
290
|
+
|
|
291
|
+
**Key Features:**
|
|
292
|
+
- Support for direct, group, assistant chat, and channel conversations
|
|
293
|
+
- Message types: text, attachments, reactions, mentions, threads
|
|
294
|
+
- Real-time capabilities with socket integration
|
|
295
|
+
- Agent process visualization for AI reasoning
|
|
296
|
+
- Participant role management
|
|
297
|
+
|
|
298
|
+
**Example:**
|
|
299
|
+
```typescript
|
|
300
|
+
import {
|
|
301
|
+
DyFM_Msg_Message,
|
|
302
|
+
DyFM_Msg_Type,
|
|
303
|
+
DyFM_Msg_Status
|
|
304
|
+
} from '@futdevpro/fsm-dynamo/messaging';
|
|
305
|
+
|
|
306
|
+
const message = new DyFM_Msg_Message({
|
|
307
|
+
conversationId: 'conv-123',
|
|
308
|
+
senderId: 'user-456',
|
|
309
|
+
content: 'Hello, world!',
|
|
310
|
+
type: DyFM_Msg_Type.text,
|
|
311
|
+
status: DyFM_Msg_Status.sent
|
|
312
|
+
});
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### 6. Socket Module
|
|
316
|
+
|
|
317
|
+
**Import:** `@futdevpro/fsm-dynamo/socket`
|
|
318
|
+
|
|
319
|
+
Real-time bidirectional communication using Socket.IO.
|
|
320
|
+
|
|
321
|
+
**Key Features:**
|
|
322
|
+
- Event management with predefined event keys
|
|
323
|
+
- Client configuration and connection management
|
|
324
|
+
- Automatic reconnection logic
|
|
325
|
+
- Observable properties for connection and subscription states
|
|
326
|
+
- Base service class for custom socket clients
|
|
327
|
+
|
|
328
|
+
**Example:**
|
|
329
|
+
```typescript
|
|
330
|
+
import {
|
|
331
|
+
DyFM_SocketClient_ServiceBase,
|
|
332
|
+
DyFM_SocketEvent_Key
|
|
333
|
+
} from '@futdevpro/fsm-dynamo/socket';
|
|
334
|
+
|
|
335
|
+
class MySocketClient extends DyFM_SocketClient_ServiceBase {
|
|
336
|
+
// Implementation
|
|
337
|
+
}
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### 7. Pipe Module
|
|
341
|
+
|
|
342
|
+
**Import:** `@futdevpro/fsm-dynamo/pipe`
|
|
343
|
+
|
|
344
|
+
Data transformation utilities for manipulating and formatting data.
|
|
345
|
+
|
|
346
|
+
**Key Features:**
|
|
347
|
+
- Specialized pipes for geographic data, string manipulation, and data formatting
|
|
348
|
+
- UI component support with Angular pipe integration
|
|
349
|
+
- Multi-pipe functionality for complex transformations
|
|
350
|
+
- Country, region, and division formatting
|
|
351
|
+
|
|
352
|
+
**Example:**
|
|
353
|
+
```typescript
|
|
354
|
+
import { DyFM_pipeTransforms } from '@futdevpro/fsm-dynamo/pipe';
|
|
355
|
+
|
|
356
|
+
const formatted = DyFM_pipeTransforms.country('US'); // "United States"
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### 8. Crypto Module
|
|
360
|
+
|
|
361
|
+
**Import:** `@futdevpro/fsm-dynamo/crypto`
|
|
362
|
+
|
|
363
|
+
Deterministic encryption and decryption utilities using AES-256-CBC.
|
|
364
|
+
|
|
365
|
+
**Key Features:**
|
|
366
|
+
- Deterministic encryption (same input + key = same output)
|
|
367
|
+
- Cross-platform compatibility
|
|
368
|
+
- URL-safe base64 encoding
|
|
369
|
+
- Secure random key generation
|
|
370
|
+
|
|
371
|
+
**Important:** This implementation produces identical encrypted output for identical input data and key. Use when consistency across systems is more important than cryptographic security.
|
|
372
|
+
|
|
373
|
+
**Example:**
|
|
374
|
+
```typescript
|
|
375
|
+
import { DyFM_Crypto } from '@futdevpro/fsm-dynamo/crypto';
|
|
376
|
+
|
|
377
|
+
const encrypted = DyFM_Crypto.encrypt('sensitive data', 'my-secret-key');
|
|
378
|
+
const decrypted = DyFM_Crypto.decrypt(encrypted, 'my-secret-key');
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### 9. Custom Data Module
|
|
382
|
+
|
|
383
|
+
**Import:** `@futdevpro/fsm-dynamo/custom-data`
|
|
384
|
+
|
|
385
|
+
Flexible storage and management of custom data with metadata support.
|
|
386
|
+
|
|
387
|
+
**Key Features:**
|
|
388
|
+
- Type-safe data containers with validation rules
|
|
389
|
+
- RESTful API endpoints for data operations
|
|
390
|
+
- Metadata support for tracking and organization
|
|
391
|
+
|
|
392
|
+
**Example:**
|
|
393
|
+
```typescript
|
|
394
|
+
import { DyFM_CustomData } from '@futdevpro/fsm-dynamo/custom-data';
|
|
395
|
+
|
|
396
|
+
const customData = new DyFM_CustomData({
|
|
397
|
+
key: 'user-preferences',
|
|
398
|
+
value: { theme: 'dark', language: 'en' },
|
|
399
|
+
__createdBy: 'user-123'
|
|
400
|
+
});
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### 10. Test Module
|
|
404
|
+
|
|
405
|
+
**Import:** `@futdevpro/fsm-dynamo/test`
|
|
406
|
+
|
|
407
|
+
Comprehensive testing tools for HTTP endpoints.
|
|
408
|
+
|
|
409
|
+
**Key Features:**
|
|
410
|
+
- Complete suite of HTTP method test endpoints
|
|
411
|
+
- Server status monitoring
|
|
412
|
+
- Structured response handling
|
|
413
|
+
|
|
414
|
+
### 11. Usage Module
|
|
415
|
+
|
|
416
|
+
**Import:** `@futdevpro/fsm-dynamo/usage`
|
|
417
|
+
|
|
418
|
+
User behavior tracking and analytics tools.
|
|
419
|
+
|
|
420
|
+
**Key Features:**
|
|
421
|
+
- Session management
|
|
422
|
+
- Usage analytics and geographic insights
|
|
423
|
+
- Daily statistics and action tracking
|
|
424
|
+
|
|
425
|
+
**Example:**
|
|
426
|
+
```typescript
|
|
427
|
+
import { DyFM_UsageSession } from '@futdevpro/fsm-dynamo/usage';
|
|
428
|
+
|
|
429
|
+
const session = new DyFM_UsageSession({
|
|
430
|
+
userId: 'user-123',
|
|
431
|
+
startTime: new Date(),
|
|
432
|
+
__createdBy: 'system'
|
|
433
|
+
});
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
### 12. CI Tools Module
|
|
437
|
+
|
|
438
|
+
**Import:** `@futdevpro/fsm-dynamo/ci-tools`
|
|
439
|
+
|
|
440
|
+
Models and enums for tracking CI/CD pipeline results.
|
|
441
|
+
|
|
442
|
+
**Key Features:**
|
|
443
|
+
- Build, test, and deployment pipeline tracking
|
|
444
|
+
- Detailed step-by-step results
|
|
445
|
+
- Result code enums for standardized status reporting
|
|
446
|
+
|
|
447
|
+
**Example:**
|
|
448
|
+
```typescript
|
|
449
|
+
import {
|
|
450
|
+
DyFM_CIT_CIResultCode,
|
|
451
|
+
DyFM_CIT_CIResultInfo
|
|
452
|
+
} from '@futdevpro/fsm-dynamo/ci-tools';
|
|
453
|
+
|
|
454
|
+
const ciResult: DyFM_CIT_CIResultInfo = {
|
|
455
|
+
resultCode: DyFM_CIT_CIResultCode.success,
|
|
456
|
+
// ... other properties
|
|
457
|
+
};
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
## Common Usage Patterns
|
|
461
|
+
|
|
462
|
+
### Import Patterns
|
|
463
|
+
|
|
464
|
+
All exports use the `DyFM_` prefix (Dynamo Full Stack Module):
|
|
465
|
+
|
|
466
|
+
```typescript
|
|
467
|
+
// Main module
|
|
468
|
+
import { DyFM_Array, DyFM_Log, DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
469
|
+
|
|
470
|
+
// Specific modules
|
|
471
|
+
import { DyFM_DataHandler } from '@futdevpro/fsm-dynamo/data-handler';
|
|
472
|
+
import { DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
473
|
+
import { DyFM_Crypto } from '@futdevpro/fsm-dynamo/crypto';
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### Type Safety
|
|
477
|
+
|
|
478
|
+
Dynamo FSM provides full TypeScript support with strict typing:
|
|
479
|
+
|
|
480
|
+
```typescript
|
|
481
|
+
import { DyFM_Metadata, DyFM_Error, DyFM_ErrorLevel } from '@futdevpro/fsm-dynamo';
|
|
482
|
+
|
|
483
|
+
interface User extends DyFM_Metadata {
|
|
484
|
+
name: string;
|
|
485
|
+
email: string;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// Type-safe error handling
|
|
489
|
+
const error = new DyFM_Error({
|
|
490
|
+
errorCode: 'VALIDATION_ERROR',
|
|
491
|
+
message: 'Invalid user data',
|
|
492
|
+
level: DyFM_ErrorLevel.warning
|
|
493
|
+
});
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
### Error Handling Pattern
|
|
497
|
+
|
|
498
|
+
```typescript
|
|
499
|
+
import { DyFM_Error, DyFM_ErrorLevel, DyFM_Log } from '@futdevpro/fsm-dynamo';
|
|
500
|
+
|
|
501
|
+
try {
|
|
502
|
+
// Your code
|
|
503
|
+
} catch (err) {
|
|
504
|
+
if (err instanceof DyFM_Error && err.___handled) {
|
|
505
|
+
// Error already handled
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
const error = new DyFM_Error({
|
|
510
|
+
errorCode: 'OPERATION_FAILED',
|
|
511
|
+
message: err.message,
|
|
512
|
+
userMessage: 'An error occurred',
|
|
513
|
+
level: DyFM_ErrorLevel.error
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
// Use logSimple for formatted error logging
|
|
517
|
+
error.logSimple('Operation failed');
|
|
518
|
+
// Or use static method
|
|
519
|
+
DyFM_Error.logSimple('Operation failed', error);
|
|
520
|
+
|
|
521
|
+
throw error;
|
|
522
|
+
}
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
### Special Logging Methods
|
|
526
|
+
|
|
527
|
+
Dynamo FSM provides specialized logging methods for different use cases:
|
|
528
|
+
|
|
529
|
+
```typescript
|
|
530
|
+
import { DyFM_Log, DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
531
|
+
|
|
532
|
+
// Highlighted error - displays error with visual formatting
|
|
533
|
+
DyFM_Log.H_error('Critical error occurred', errorDetails);
|
|
534
|
+
// Alias: DyFM_Log.highlightedError()
|
|
535
|
+
|
|
536
|
+
// Test error - displays error with test-specific formatting
|
|
537
|
+
DyFM_Log.T_error('Test error message', testData);
|
|
538
|
+
// Alias: DyFM_Log.testError()
|
|
539
|
+
|
|
540
|
+
// Simple error logging - formatted error output with error code, message, stack
|
|
541
|
+
const error = new DyFM_Error({
|
|
542
|
+
errorCode: 'VALIDATION_ERROR',
|
|
543
|
+
message: 'Invalid input',
|
|
544
|
+
level: DyFM_ErrorLevel.error
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
// Static method for any error type
|
|
548
|
+
DyFM_Error.logSimple('Operation failed', error);
|
|
549
|
+
// Works with both DyFM_Error instances and regular Error objects
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
### Constants Usage
|
|
553
|
+
|
|
554
|
+
```typescript
|
|
555
|
+
import { DyFM_times, DyFM_data_sizes, DyFM_numbers } from '@futdevpro/fsm-dynamo';
|
|
556
|
+
|
|
557
|
+
// Time constants
|
|
558
|
+
const oneHour = DyFM_times.hour;
|
|
559
|
+
const oneDay = DyFM_times.day;
|
|
560
|
+
const oneWeek = DyFM_times.week;
|
|
561
|
+
|
|
562
|
+
// Data size constants
|
|
563
|
+
const maxStringLength = DyFM_data_sizes.maxStringLength;
|
|
564
|
+
|
|
565
|
+
// Number constants
|
|
566
|
+
const maxSafeInteger = DyFM_numbers.maxSafeInteger;
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
## API Reference
|
|
570
|
+
|
|
571
|
+
### Main Exports
|
|
572
|
+
|
|
573
|
+
The main module exports utilities, constants, enums, and models:
|
|
574
|
+
|
|
575
|
+
**Constants:**
|
|
576
|
+
- `DyFM_error_defaults` - Default error configuration
|
|
577
|
+
- `DyFM_global_settings` - Global framework settings
|
|
578
|
+
- `DyFM_numbers` - Standard numeric constants
|
|
579
|
+
- `DyFM_times` - Time constants (second, minute, hour, day, week, month, year)
|
|
580
|
+
- `DyFM_data_sizes` - Data size constants
|
|
581
|
+
|
|
582
|
+
**Utilities:**
|
|
583
|
+
- `DyFM_Array` - Array manipulation utilities
|
|
584
|
+
- `DyFM_String` - String manipulation utilities
|
|
585
|
+
- `DyFM_Log` - Logging utilities with special methods:
|
|
586
|
+
- `DyFM_Log.H_error` / `DyFM_Log.highlightedError` - Big Highlighted error logging
|
|
587
|
+
- `DyFM_Log.T_error` / `DyFM_Log.testError` - Mdium Highlighted error logging
|
|
588
|
+
- `DyFM_Log.S_error` / `DyFM_Log.smallError` - Small Highlighted error logging
|
|
589
|
+
- `DyFM_Time` - Time manipulation utilities
|
|
590
|
+
- `DyFM_UUID` - UUID generation utilities
|
|
591
|
+
- `DyFM_Data` - Data transformation utilities
|
|
592
|
+
- `DyFM_Math` - Mathematical operations
|
|
593
|
+
- `DyFM_Random` - Random number generation
|
|
594
|
+
|
|
595
|
+
**Enums:**
|
|
596
|
+
- `DyFM_ErrorLevel` - Error severity levels
|
|
597
|
+
- `DyFM_LogStyle` - Text styling options
|
|
598
|
+
- `DyFM_HttpCallType` - HTTP request methods
|
|
599
|
+
- `DyFM_HttpResponseType` - HTTP response data types
|
|
600
|
+
- `DyFM_EnvironmentFlag` - Environment types
|
|
601
|
+
|
|
602
|
+
**Models:**
|
|
603
|
+
- `DyFM_Error` - Error model with methods:
|
|
604
|
+
- `logSimple()` - Formatted error logging with error code, message, stack, and additional content
|
|
605
|
+
- `static logSimple()` - Static method for logging any error type
|
|
606
|
+
- `DyFM_Metadata` - Base metadata model
|
|
607
|
+
- `DyFM_SearchQuery` - Search query interface
|
|
608
|
+
- `DyFM_SearchResult` - Search result interface
|
|
609
|
+
- `DyFM_Paged` - Pagination interface
|
|
610
|
+
|
|
611
|
+
### Module Export Paths
|
|
612
|
+
|
|
613
|
+
All modules can be imported directly:
|
|
614
|
+
|
|
615
|
+
```typescript
|
|
616
|
+
// Main module
|
|
617
|
+
import { ... } from '@futdevpro/fsm-dynamo';
|
|
618
|
+
|
|
619
|
+
// Submodules
|
|
620
|
+
import { ... } from '@futdevpro/fsm-dynamo/ai';
|
|
621
|
+
import { ... } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
622
|
+
import { ... } from '@futdevpro/fsm-dynamo/ai/anthropic';
|
|
623
|
+
import { ... } from '@futdevpro/fsm-dynamo/data-handler';
|
|
624
|
+
import { ... } from '@futdevpro/fsm-dynamo/location';
|
|
625
|
+
import { ... } from '@futdevpro/fsm-dynamo/messaging';
|
|
626
|
+
import { ... } from '@futdevpro/fsm-dynamo/socket';
|
|
627
|
+
import { ... } from '@futdevpro/fsm-dynamo/pipe';
|
|
628
|
+
import { ... } from '@futdevpro/fsm-dynamo/crypto';
|
|
629
|
+
import { ... } from '@futdevpro/fsm-dynamo/custom-data';
|
|
630
|
+
import { ... } from '@futdevpro/fsm-dynamo/test';
|
|
631
|
+
import { ... } from '@futdevpro/fsm-dynamo/usage';
|
|
632
|
+
import { ... } from '@futdevpro/fsm-dynamo/ci-tools';
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
For detailed API documentation, refer to the [Dynamo FSM Documentation](https://futdevpro.hu/projects/dynamo).
|
|
636
|
+
|
|
637
|
+
## Requirements
|
|
638
|
+
|
|
639
|
+
- **TypeScript**: 5.5.4 or higher
|
|
640
|
+
- **Node.js**: Compatible with Node.js LTS versions
|
|
641
|
+
- **Peer Dependencies**:
|
|
642
|
+
- `rxjs`: 7.8.1
|
|
643
|
+
|
|
644
|
+
## Support & Contributing
|
|
645
|
+
|
|
646
|
+
### Support
|
|
647
|
+
|
|
648
|
+
- **Donations**: [https://futdevpro.hu/support/dynamo](https://futdevpro.hu/support/dynamo) - Support page for project donations
|
|
649
|
+
- **Homepage**: [https://futdevpro.hu/projects/dynamo](https://futdevpro.hu/projects/dynamo)
|
|
650
|
+
- **Feedback & Contact**: For feature requests, bug reports, or questions, please use the feedback page or contact us at:
|
|
651
|
+
- contact@futdevpro.hu
|
|
652
|
+
- support@futdevpro.hu
|
|
653
|
+
|
|
654
|
+
## License
|
|
655
|
+
|
|
656
|
+
MIT License
|
|
657
|
+
|
|
658
|
+
Copyright (c) Future Development Program Ltd. (HU)
|
|
659
|
+
|
|
660
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
661
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
662
|
+
in the Software without restriction, including without limitation the rights
|
|
663
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
664
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
665
|
+
furnished to do so, subject to the following conditions:
|
|
666
|
+
|
|
667
|
+
The above copyright notice and this permission notice shall be included in all
|
|
668
|
+
copies or substantial portions of the Software.
|
|
669
|
+
|
|
670
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
671
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
672
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
673
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
674
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
675
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
676
|
+
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;CACrC;
|
|
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;;;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3C,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,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;
|
|
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,CA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AK,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
|
-
|
|
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,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B,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;oBACd,mBAAQ,CAAC,IAAI,CACX,kBAAkB,EAClB,kFAAkF,GAAG,CAAC,GAAG,OAAO;wBAC9F,IAAI,gBAAgB,EAAE,QAAQ,UAAU;wBAC1C,8DAA8D;wBAC9D,qBAAqB,IAAA,8CAAiC,EAAC,CAAC,CAAC,EAAE,CAC5D,CAAC;oBAEF,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC;gBACpB,CAAC;gBAED,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;oBAC3B,
|
|
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,EAC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I,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"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "01.14.
|
|
3
|
+
"version": "01.14.28",
|
|
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.
|
|
203
|
+
"@futdevpro/dynamo-eslint": "1.14.23",
|
|
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
|
-
|
|
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
|
Binary file
|