@hosterai/types 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -78
- package/dist/dtos/action.dto.d.ts.map +1 -0
- package/dist/dtos/attachment.dto.d.ts.map +1 -0
- package/dist/dtos/base-response.dto.d.ts.map +1 -0
- package/dist/dtos/company-data.dto.d.ts.map +1 -0
- package/dist/dtos/error-response.dto.d.ts.map +1 -0
- package/dist/dtos/field.dto.d.ts.map +1 -0
- package/dist/dtos/info/info-notification.dto.d.ts +1 -0
- package/dist/dtos/info/info-notification.dto.d.ts.map +1 -0
- package/dist/dtos/info/info.dto.d.ts +1 -0
- package/dist/dtos/info/info.dto.d.ts.map +1 -0
- package/dist/dtos/info.dto.d.ts +140 -0
- package/dist/dtos/info.dto.js +16 -0
- package/dist/dtos/jwt.dto.d.ts.map +1 -0
- package/dist/dtos/menu.dto.d.ts.map +1 -0
- package/dist/dtos/multilang-text.dto.d.ts.map +1 -0
- package/dist/dtos/notification/info-notification.dto.d.ts +5 -0
- package/dist/dtos/notification/info-notification.dto.js +7 -0
- package/dist/dtos/notification/notification-request.dto.d.ts +20 -0
- package/dist/dtos/notification/notification-request.dto.js +31 -0
- package/dist/dtos/notification/request.dto.d.ts +1 -0
- package/dist/dtos/notification/request.dto.d.ts.map +1 -0
- package/dist/dtos/receiver/receiver-email.dto.d.ts.map +1 -0
- package/dist/dtos/receiver/receiver-push.dto.d.ts.map +1 -0
- package/dist/dtos/receiver/receiver-sms.dto.d.ts.map +1 -0
- package/dist/dtos/response-data.dto.d.ts.map +1 -0
- package/dist/dtos/sender/sender-email.dto.d.ts.map +1 -0
- package/dist/dtos/sender/sender-push.dto.d.ts.map +1 -0
- package/dist/dtos/sender/sender-sms.dto.d.ts.map +1 -0
- package/dist/dtos/setup-status-response.dto.d.ts.map +1 -0
- package/dist/dtos/success-response.dto.d.ts.map +1 -0
- package/dist/dtos/tab.dto.d.ts.map +1 -0
- package/dist/dtos/task-response.dto.d.ts.map +1 -0
- package/dist/dtos/unit.dto.d.ts.map +1 -0
- package/dist/enums/actions.enum.d.ts.map +1 -0
- package/dist/enums/country.enum.d.ts.map +1 -0
- package/dist/enums/events.enum.d.ts.map +1 -0
- package/dist/enums/field-type.enum.d.ts.map +1 -0
- package/dist/enums/language.enum.d.ts.map +1 -0
- package/dist/enums/message-type.enum.d.ts.map +1 -0
- package/dist/enums/open-method.enum.d.ts.map +1 -0
- package/dist/enums/roles.enum.d.ts.map +1 -0
- package/dist/enums/setup-status.enum.d.ts.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -3
- package/dist/validators/notification-request-validator.d.ts +16 -0
- package/dist/validators/notification-request-validator.js +87 -0
- package/package.json +7 -9
package/README.md
CHANGED
|
@@ -1,59 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @hosterai/types
|
|
2
2
|
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
## Supported Languages
|
|
6
|
-
|
|
7
|
-
| Language | Status | Generator Script |
|
|
8
|
-
|------------|-------------|------------------------|
|
|
9
|
-
| Go | ✅ Complete | `generate-golang.ts` |
|
|
10
|
-
| Python | ✅ Complete | `generate-python.ts` |
|
|
11
|
-
| C# | ✅ Complete | `generate-csharp.ts` |
|
|
12
|
-
| Java | ✅ Complete | `generate-java.ts` |
|
|
13
|
-
| PHP | ✅ Complete | `generate-php.ts` |
|
|
14
|
-
| Ruby | ✅ Complete | `generate-ruby.ts` |
|
|
15
|
-
| Rust | ✅ Complete | `generate-rust.ts` |
|
|
16
|
-
| Swift | ✅ Complete | `generate-swift.ts` |
|
|
17
|
-
| Kotlin | ✅ Complete | `generate-kotlin.ts` |
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
**Important:** Before generating code for any language, you must first generate the JSON schemas by running:
|
|
22
|
-
```bash
|
|
23
|
-
npm run generate:schemas
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### Generate Code for All Supported Languages
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
npm run generate -- all
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Generate Code for a Specific Language
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
npm run generate -- <language>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
For example:
|
|
39
|
-
```bash
|
|
40
|
-
npm run generate -- golang
|
|
41
|
-
npm run generate -- python
|
|
42
|
-
npm run generate -- csharp
|
|
43
|
-
npm run generate -- java
|
|
44
|
-
```
|
|
3
|
+
This package contains TypeScript Data Transfer Objects (DTOs), enums, and validators for the Hoster.ai platform.
|
|
45
4
|
|
|
46
5
|
## Project Structure
|
|
47
6
|
|
|
48
7
|
- `/dtos/` - TypeScript DTO definitions
|
|
49
8
|
- `/enums/` - TypeScript Enum definitions
|
|
50
|
-
- `/
|
|
51
|
-
- `/golang/` - Generated Go code
|
|
52
|
-
- `/python/` - Generated Python code
|
|
53
|
-
- `/csharp/` - Generated C# code
|
|
54
|
-
- `/java/` - Generated Java code
|
|
55
|
-
- ... (other languages as implemented)
|
|
56
|
-
|
|
9
|
+
- `/validators/` - Programmatic validators for DTOs
|
|
57
10
|
|
|
58
11
|
## Core DTOs
|
|
59
12
|
|
|
@@ -72,44 +25,48 @@ The `ActionDto` defines the structure for an action that can be performed, typic
|
|
|
72
25
|
- `"large_iframe"`: Open in a large iframe.
|
|
73
26
|
- `url`: (string) The URL or endpoint for the action.
|
|
74
27
|
|
|
75
|
-
## Implementation Details
|
|
76
28
|
|
|
77
|
-
|
|
29
|
+
## Dependencies
|
|
78
30
|
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
31
|
+
- `typescript`: TypeScript language support
|
|
32
|
+
- `class-validator`: For DTO validation using decorators
|
|
33
|
+
- `class-transformer`: For transforming plain objects to class instances
|
|
82
34
|
|
|
83
|
-
|
|
35
|
+
## Validators
|
|
84
36
|
|
|
85
|
-
|
|
86
|
-
- Handles optional fields with Union types
|
|
87
|
-
- Properly converts TypeScript types to Python equivalents
|
|
37
|
+
This project includes programmatic validators for DTOs that can be used when class decorators don't work properly with imported DTOs from remote packages.
|
|
88
38
|
|
|
89
|
-
###
|
|
39
|
+
### Notification Request Validator
|
|
90
40
|
|
|
91
|
-
-
|
|
92
|
-
- Includes proper JSON attributes for serialization/deserialization
|
|
93
|
-
- Handles nullable types appropriately
|
|
41
|
+
The `validateNotificationRequestDto` function provides an alternative to class-validator decorators for validating `NotificationRequestDto` objects:
|
|
94
42
|
|
|
95
|
-
|
|
43
|
+
```typescript
|
|
44
|
+
import { validateNotificationRequestDto, validateNotificationRequestDtoOrThrow } from '../validators/notification-request-validator';
|
|
96
45
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
46
|
+
// Option 1: Get validation errors as array
|
|
47
|
+
const errors = validateNotificationRequestDto(dtoObject);
|
|
48
|
+
if (errors.length > 0) {
|
|
49
|
+
console.log('Validation failed:', errors);
|
|
50
|
+
}
|
|
100
51
|
|
|
101
|
-
|
|
52
|
+
// Option 2: Use the throw version for simpler handling
|
|
53
|
+
try {
|
|
54
|
+
validateNotificationRequestDtoOrThrow(dtoObject);
|
|
55
|
+
// Continue with valid object
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error(error.message);
|
|
58
|
+
}
|
|
59
|
+
```
|
|
102
60
|
|
|
103
|
-
|
|
61
|
+
The validator checks:
|
|
62
|
+
- `notificationId` is present and is a string
|
|
63
|
+
- `sender` is present and is an object
|
|
64
|
+
- `receiver` is present and is an object
|
|
104
65
|
|
|
105
|
-
|
|
106
|
-
2. Implement the translation from TypeScript to the target language
|
|
107
|
-
3. Ensure the generator follows the pattern of existing implementations
|
|
108
|
-
4. Update the language entry in the `LANGUAGES` object in `generate.ts`
|
|
66
|
+
### Running Tests
|
|
109
67
|
|
|
110
|
-
|
|
68
|
+
To run the validator tests:
|
|
111
69
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
- `glob`: For file pattern matching
|
|
70
|
+
```bash
|
|
71
|
+
npm test
|
|
72
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.dto.d.ts","sourceRoot":"","sources":["../../dtos/action.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,cAAc,CAAC;IAE3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.dto.d.ts","sourceRoot":"","sources":["../../dtos/attachment.dto.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,aAAa;IACxB;;OAEG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAIH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAGH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-response.dto.d.ts","sourceRoot":"","sources":["../../dtos/base-response.dto.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,YAAY;IACvB;;OAEG;IAGH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-data.dto.d.ts","sourceRoot":"","sources":["../../dtos/company-data.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,qBAAa,cAAc;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,YAAY,CAAC;IAC9B,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-response.dto.d.ts","sourceRoot":"","sources":["../../dtos/error-response.dto.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B;;;OAGG;IAGH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IAIH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.dto.d.ts","sourceRoot":"","sources":["../../dtos/field.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,qBAAa,QAAQ;IAEjB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAE1B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE7C;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,2BAA2B,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEjD;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,4BAA4B,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAElD;;OAEG;IACH,WAAW,EAAE,OAAO,CAAS;CAEhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info-notification.dto.d.ts","sourceRoot":"","sources":["../../../dtos/info/info-notification.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,qBAAa,mBAAoB,SAAQ,OAAO;IAC5C,IAAI,EAAE,eAAe,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.dto.d.ts","sourceRoot":"","sources":["../../../dtos/info/info.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,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tB,gCAAgC;YAChC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;YACnB,iCAAiC;YACjC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;SACrB,CAAC;QAEF,8EAA8E;QAC9E,IAAI,CAAC,EAAE,kBAAkB,GAAG,cAAc,CAAC;QAE3C,QAAQ,CAAC,EAAE;YACT,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,UAAU,EAAE,MAAM,CAAC;SACpB,GAAG,CACF;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,KAAK,CAAA;SAAE,GAAG,iDAAiD;QACjF;YAAE,GAAG,CAAC,EAAE,KAAK,CAAC;YAAC,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;SAAE,CAC7C,CAAA;KACF,CAAC;IAEF;;;OAGG;IACH,WAAW,CAAC,EAAE;QACZ,uCAAuC;QACvC,IAAI,CAAC,EAAE;YACL,6BAA6B;YAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;SAChB,CAAC;QAEF,wDAAwD;QACxD,WAAW,CAAC,EAAE;YACZ,gCAAgC;YAChC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;SACpB,CAAC;QAEF;;;;;WAKG;QACH,IAAI,CAAC,EAAE,kBAAkB,GAAG,cAAc,CAAC;KAC5C,CAAC;IAGF;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC;IAE3B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,eAAe,EAAE,MAAM,CAAC,CAAC;CAChE"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { ActionsEnum } from '../enums/actions.enum';
|
|
2
|
+
import { EventsEnum } from '../enums/events.enum';
|
|
3
|
+
import { FieldDto } from './field.dto';
|
|
4
|
+
import { ResponseDataDto } from './response-data.dto';
|
|
5
|
+
import { UnitDto } from './unit.dto';
|
|
6
|
+
import { LanguageEnum } from '../enums/language.enum';
|
|
7
|
+
import { RolesEnum } from '../enums/roles.enum';
|
|
8
|
+
import { ActionDto } from './action.dto';
|
|
9
|
+
import { TabDto } from './tab.dto';
|
|
10
|
+
import { MenuDtoWithSubmenu, MenuDtoWithUrl } from './menu.dto';
|
|
11
|
+
/**
|
|
12
|
+
* DTO for integration information
|
|
13
|
+
* Contains all information related to a service integration
|
|
14
|
+
*/
|
|
15
|
+
export declare class InfoDto {
|
|
16
|
+
/**
|
|
17
|
+
* The title of the integration
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* The logo of the integration (optional)
|
|
22
|
+
*/
|
|
23
|
+
logo?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Description of the integration and its services (optional)
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* List of supported languages for the integration.
|
|
30
|
+
*/
|
|
31
|
+
supported_languages: LanguageEnum[];
|
|
32
|
+
/**
|
|
33
|
+
* Custom attributes for products.
|
|
34
|
+
*/
|
|
35
|
+
product_attributes?: FieldDto[];
|
|
36
|
+
/**
|
|
37
|
+
* Custom attributes for items.
|
|
38
|
+
*/
|
|
39
|
+
item_attributes?: FieldDto[];
|
|
40
|
+
/**
|
|
41
|
+
* Events that the integration listens to.
|
|
42
|
+
*/
|
|
43
|
+
listen_events?: EventsEnum[];
|
|
44
|
+
/**
|
|
45
|
+
* The roles that need to be accepted by the company
|
|
46
|
+
*/
|
|
47
|
+
requiredRoles?: RolesEnum[];
|
|
48
|
+
/**
|
|
49
|
+
* Actions that are not supported by the integration.
|
|
50
|
+
*/
|
|
51
|
+
unsupportedActions?: ActionsEnum[];
|
|
52
|
+
/**
|
|
53
|
+
* Configuration for the admin panel.
|
|
54
|
+
* Contains all UI and action configuration for the admin interface.
|
|
55
|
+
*/
|
|
56
|
+
adminPanel?: {
|
|
57
|
+
/** Tab groups for different admin panel sections in the admin panel. */
|
|
58
|
+
tabs?: {
|
|
59
|
+
/** Tabs related to products. */
|
|
60
|
+
product: TabDto[];
|
|
61
|
+
/** Tabs related to items. */
|
|
62
|
+
item: TabDto[];
|
|
63
|
+
/** Tabs related to clients. */
|
|
64
|
+
client: TabDto[];
|
|
65
|
+
/** Tabs related to users. */
|
|
66
|
+
user: TabDto[];
|
|
67
|
+
/** Tabs related to orders. */
|
|
68
|
+
order: TabDto[];
|
|
69
|
+
};
|
|
70
|
+
/** Additional actions available in the admin panel. */
|
|
71
|
+
moreActions?: {
|
|
72
|
+
/** Actions related to clients. */
|
|
73
|
+
client?: ActionDto[];
|
|
74
|
+
/** Actions related to items. */
|
|
75
|
+
item?: ActionDto[];
|
|
76
|
+
/** Actions related to invoices. */
|
|
77
|
+
invoice?: ActionDto[];
|
|
78
|
+
/** Actions related to users. */
|
|
79
|
+
user?: ActionDto[];
|
|
80
|
+
/** Actions related to orders. */
|
|
81
|
+
order?: ActionDto[];
|
|
82
|
+
};
|
|
83
|
+
/** Main menu for the admin panel. Extends TabDto and adds icon information */
|
|
84
|
+
menu?: MenuDtoWithSubmenu | MenuDtoWithUrl;
|
|
85
|
+
settings?: {
|
|
86
|
+
label: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
descrition: string;
|
|
89
|
+
} & ({
|
|
90
|
+
url: string;
|
|
91
|
+
tabs?: never;
|
|
92
|
+
} | // If url is provided, tabs should not be present
|
|
93
|
+
{
|
|
94
|
+
url?: never;
|
|
95
|
+
tabs: [TabDto, ...TabDto[]];
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Configuration for the client panel.
|
|
100
|
+
* Contains all UI and action configuration for the client interface.
|
|
101
|
+
*/
|
|
102
|
+
clientPanel?: {
|
|
103
|
+
/** Tab groups for the client panel. */
|
|
104
|
+
tabs?: {
|
|
105
|
+
/** Tabs related to items. */
|
|
106
|
+
item: TabDto[];
|
|
107
|
+
};
|
|
108
|
+
/** Additional actions available in the client panel. */
|
|
109
|
+
moreActions?: {
|
|
110
|
+
/** Actions related to items. */
|
|
111
|
+
item?: ActionDto[];
|
|
112
|
+
};
|
|
113
|
+
/** Main menu for the client panel.
|
|
114
|
+
* Each menu must have at least one TabDto.
|
|
115
|
+
* If there are no submenus, the label of the TabDto will be displayed in the panel.
|
|
116
|
+
* If there are submenus, the label of the MenuDto and the TabDtos of the MenuDto will be displayed in the panel.
|
|
117
|
+
* The TabDtos of the MenuDto will be the submenus of the MenuDto.
|
|
118
|
+
*/
|
|
119
|
+
menu?: MenuDtoWithSubmenu | MenuDtoWithUrl;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* The url for the onboarding process after installation of the integration
|
|
123
|
+
* Will be displayed either as a popup or as a side sheet containing an iframe
|
|
124
|
+
* with this url and the jwt in the url
|
|
125
|
+
*/
|
|
126
|
+
onboardingUrl?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Units for pay-per-use billing.
|
|
129
|
+
* e.g. id: ram, unitDescription: MB, intervalDescription: month
|
|
130
|
+
* With the above in the admin the administrator will be able to set a price for
|
|
131
|
+
* MB per month (the id is the unit's unique identifier)
|
|
132
|
+
*/
|
|
133
|
+
payPerUseUnits?: UnitDto[];
|
|
134
|
+
/**
|
|
135
|
+
* Here we need to specify the fields (keys) that a successful create will return
|
|
136
|
+
* In other words, we want to know the information that a successful create will
|
|
137
|
+
* return, before the create is executed
|
|
138
|
+
*/
|
|
139
|
+
responseDataFieldNames?: Record<keyof ResponseDataDto, string>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfoDto = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* DTO for integration information
|
|
6
|
+
* Contains all information related to a service integration
|
|
7
|
+
*/
|
|
8
|
+
class InfoDto {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Actions that are not supported by the integration.
|
|
12
|
+
*/
|
|
13
|
+
this.unsupportedActions = [];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.InfoDto = InfoDto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt.dto.d.ts","sourceRoot":"","sources":["../../dtos/jwt.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD;;;GAGG;AACH,qBAAa,MAAM;IACjB;;;;OAIG;IACH,GAAG,EAAE;QAEH;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,EAAE,SAAS,EAAE,CAAC;KAC5B,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.dto.d.ts","sourceRoot":"","sources":["../../dtos/menu.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,UAAU,WAAW;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,IAAI,EAAE,UAAU,CAAC;IACjB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC;IAEZ;;;OAGG;IACH,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multilang-text.dto.d.ts","sourceRoot":"","sources":["../../dtos/multilang-text.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,qBAAa,gBAAgB;IAGzB,QAAQ,EAAE,YAAY,CAAC;IAIvB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfoNotificationDto = void 0;
|
|
4
|
+
const info_dto_1 = require("../info.dto");
|
|
5
|
+
class InfoNotificationDto extends info_dto_1.InfoDto {
|
|
6
|
+
}
|
|
7
|
+
exports.InfoNotificationDto = InfoNotificationDto;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EmailReceiverDto } from '../receiver/receiver-email.dto';
|
|
2
|
+
import { EmailSenderDto } from '../sender/sender-email.dto';
|
|
3
|
+
import { PushSenderDto } from '../sender/sender-push.dto';
|
|
4
|
+
import { SmsSenderDto } from '../sender/sender-sms.dto';
|
|
5
|
+
import { PushReceiverDto } from '../receiver/receiver-push.dto';
|
|
6
|
+
import { SmsReceiverDto } from '../receiver/receiver-sms.dto';
|
|
7
|
+
export declare class NotificationRequestDto {
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier of the hoster message
|
|
10
|
+
*/
|
|
11
|
+
notificationId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sender details according to the integration's notification type
|
|
14
|
+
*/
|
|
15
|
+
sender: EmailSenderDto | SmsSenderDto | PushSenderDto;
|
|
16
|
+
/**
|
|
17
|
+
* Recipient details according to the integration's notification type
|
|
18
|
+
*/
|
|
19
|
+
receiver: EmailReceiverDto | SmsReceiverDto | PushReceiverDto;
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationRequestDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class NotificationRequestDto {
|
|
15
|
+
}
|
|
16
|
+
exports.NotificationRequestDto = NotificationRequestDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], NotificationRequestDto.prototype, "notificationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsObject)(),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], NotificationRequestDto.prototype, "sender", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.IsObject)(),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], NotificationRequestDto.prototype, "receiver", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.dto.d.ts","sourceRoot":"","sources":["../../../dtos/notification/request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,qBAAa,sBAAsB;IACjC;;OAEG;IAGH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IAGH,MAAM,EAAE,cAAc,GAAG,YAAY,GAAG,aAAa,CAAC;IAEtD;;OAEG;IAGH,QAAQ,EAAE,gBAAgB,GAAG,cAAc,GAAG,eAAe,CAAC;CAC/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiver-email.dto.d.ts","sourceRoot":"","sources":["../../../dtos/receiver/receiver-email.dto.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IAGH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IAKH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IAEd;;;OAGG;IAKH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiver-push.dto.d.ts","sourceRoot":"","sources":["../../../dtos/receiver/receiver-push.dto.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAIH,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiver-sms.dto.d.ts","sourceRoot":"","sources":["../../../dtos/receiver/receiver-sms.dto.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,cAAc;IACzB;;;OAGG;IAIH,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-data.dto.d.ts","sourceRoot":"","sources":["../../dtos/response-data.dto.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAe;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sender-email.dto.d.ts","sourceRoot":"","sources":["../../../dtos/sender/sender-email.dto.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;GAGG;AACH,qBAAa,cAAc;IACzB;;OAEG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAIH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAIH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAKH,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sender-push.dto.d.ts","sourceRoot":"","sources":["../../../dtos/sender/sender-push.dto.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,aAAa;IACxB;;;OAGG;IAIH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAIH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAIH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAIH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAIH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sender-sms.dto.d.ts","sourceRoot":"","sources":["../../../dtos/sender/sender-sms.dto.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,YAAY;IACvB;;;OAGG;IAGH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-status-response.dto.d.ts","sourceRoot":"","sources":["../../dtos/setup-status-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,qBAAa,sBAAuB,SAAQ,YAAY;IACpD,MAAM,EAAE,eAAe,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"success-response.dto.d.ts","sourceRoot":"","sources":["../../dtos/success-response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,kBAAkB;IAC7B;;OAEG;IAEH,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab.dto.d.ts","sourceRoot":"","sources":["../../dtos/tab.dto.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,MAAM;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,qBAAa,UAAW,SAAQ,MAAM;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-response.dto.d.ts","sourceRoot":"","sources":["../../dtos/task-response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,eAAe;IAC1B;;OAEG;IAEH,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.dto.d.ts","sourceRoot":"","sources":["../../dtos/unit.dto.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;IAChB,EAAE,EAAE,MAAM,CAAC;IAEX,eAAe,EAAE,MAAM,CAAA;IAEvB,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.enum.d.ts","sourceRoot":"","sources":["../../enums/actions.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IAEnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country.enum.d.ts","sourceRoot":"","sources":["../../enums/country.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACnB,WAAW,OAAO;IAClB,OAAO,OAAO;IACd,OAAO,OAAO;IACd,cAAc,OAAO;IACrB,OAAO,OAAO;IACd,MAAM,OAAO;IACb,QAAQ,OAAO;IACf,UAAU,OAAO;IACjB,mBAAmB,OAAO;IAC1B,SAAS,OAAO;IAChB,OAAO,OAAO;IACd,KAAK,OAAO;IACZ,SAAS,OAAO;IAChB,OAAO,OAAO;IACd,UAAU,OAAO;IACjB,OAAO,OAAO;IACd,OAAO,OAAO;IACd,UAAU,OAAO;IACjB,QAAQ,OAAO;IACf,OAAO,OAAO;IACd,OAAO,OAAO;IACd,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,OAAO,OAAO;IACd,MAAM,OAAO;IACb,8BAA8B,OAAO;IACrC,+BAA+B,OAAO;IACtC,sBAAsB,OAAO;IAC7B,QAAQ,OAAO;IACf,aAAa,OAAO;IACpB,MAAM,OAAO;IACb,8BAA8B,OAAO;IACrC,iBAAiB,OAAO;IACxB,QAAQ,OAAO;IACf,YAAY,OAAO;IACnB,OAAO,OAAO;IACd,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,MAAM,OAAO;IACb,UAAU,OAAO;IACjB,cAAc,OAAO;IACrB,wBAAwB,OAAO;IAC/B,IAAI,OAAO;IACX,KAAK,OAAO;IACZ,KAAK,OAAO;IACZ,gB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BAA6B;IACrD,2BAA2B,gCAAgC;IAC3D,8BAA8B,mCAAmC;IAEjE,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,wBAAwB,6BAA6B;IACrD,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,gBAAgB,qBAAoB;IACpC,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,cAAc,mBAAmB;IACjC,gBAAgB,sBAAsB;IACtC,cAAc,mBAAmB;IAEjC,UAAU,eAAe;IAEzB,IAAI,SAAS;IAEb,WAAW,mBAAkB;IAC7B,UAAU,eAAc;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-type.enum.d.ts","sourceRoot":"","sources":["../../enums/field-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IAErB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.enum.d.ts","sourceRoot":"","sources":["../../enums/language.enum.ts"],"names":[],"mappings":"AACA,oBAAY,YAAY;IACpB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,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;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CAyLZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-type.enum.d.ts","sourceRoot":"","sources":["../../enums/message-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-method.enum.d.ts","sourceRoot":"","sources":["../../enums/open-method.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACtB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.enum.d.ts","sourceRoot":"","sources":["../../enums/roles.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAE3B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAEnC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAE/B,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAE7B,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAE/C,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAE7C,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IAEvC,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAE/C,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAE/B,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAEnC,QAAQ,aAAa;IACrB,SAAS,cAAc;IAEvB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAE7B,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IAErD,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IAEzC,SAAS,cAAc;IACvB,UAAU,eAAe;IAEzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAE3B,gBAAgB,qBAAqB;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-status.enum.d.ts","sourceRoot":"","sources":["../../enums/setup-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ export * from './dtos/base-response.dto';
|
|
|
3
3
|
export * from './dtos/company-data.dto';
|
|
4
4
|
export * from './dtos/error-response.dto';
|
|
5
5
|
export * from './dtos/jwt.dto';
|
|
6
|
-
export * from './dtos/notification/request.dto';
|
|
6
|
+
export * from './dtos/notification/notification-request.dto';
|
|
7
7
|
export * from './dtos/setup-status-response.dto';
|
|
8
8
|
export * from './dtos/success-response.dto';
|
|
9
9
|
export * from './dtos/task-response.dto';
|
|
10
10
|
export * from './dtos/action.dto';
|
|
11
11
|
export * from './dtos/field.dto';
|
|
12
|
-
export * from './dtos/
|
|
13
|
-
export * from './dtos/info
|
|
12
|
+
export * from './dtos/notification/info-notification.dto';
|
|
13
|
+
export * from './dtos/info.dto';
|
|
14
14
|
export * from './dtos/multilang-text.dto';
|
|
15
15
|
export * from './dtos/response-data.dto';
|
|
16
16
|
export * from './dtos/unit.dto';
|
|
@@ -28,3 +28,4 @@ export * from './enums/setup-status.enum';
|
|
|
28
28
|
export * from './enums/actions.enum';
|
|
29
29
|
export * from './enums/events.enum';
|
|
30
30
|
export * from './enums/field-type.enum';
|
|
31
|
+
export * from './validators/notification-request-validator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AAGjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAG7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,14 +20,14 @@ __exportStar(require("./dtos/base-response.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./dtos/company-data.dto"), exports);
|
|
21
21
|
__exportStar(require("./dtos/error-response.dto"), exports);
|
|
22
22
|
__exportStar(require("./dtos/jwt.dto"), exports);
|
|
23
|
-
__exportStar(require("./dtos/notification/request.dto"), exports);
|
|
23
|
+
__exportStar(require("./dtos/notification/notification-request.dto"), exports);
|
|
24
24
|
__exportStar(require("./dtos/setup-status-response.dto"), exports);
|
|
25
25
|
__exportStar(require("./dtos/success-response.dto"), exports);
|
|
26
26
|
__exportStar(require("./dtos/task-response.dto"), exports);
|
|
27
27
|
__exportStar(require("./dtos/action.dto"), exports);
|
|
28
28
|
__exportStar(require("./dtos/field.dto"), exports);
|
|
29
|
-
__exportStar(require("./dtos/
|
|
30
|
-
__exportStar(require("./dtos/info
|
|
29
|
+
__exportStar(require("./dtos/notification/info-notification.dto"), exports);
|
|
30
|
+
__exportStar(require("./dtos/info.dto"), exports);
|
|
31
31
|
__exportStar(require("./dtos/multilang-text.dto"), exports);
|
|
32
32
|
__exportStar(require("./dtos/response-data.dto"), exports);
|
|
33
33
|
__exportStar(require("./dtos/unit.dto"), exports);
|
|
@@ -48,3 +48,5 @@ __exportStar(require("./enums/setup-status.enum"), exports);
|
|
|
48
48
|
__exportStar(require("./enums/actions.enum"), exports);
|
|
49
49
|
__exportStar(require("./enums/events.enum"), exports);
|
|
50
50
|
__exportStar(require("./enums/field-type.enum"), exports);
|
|
51
|
+
// Export validators
|
|
52
|
+
__exportStar(require("./validators/notification-request-validator"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ValidationError } from 'class-validator';
|
|
2
|
+
/**
|
|
3
|
+
* Validates a NotificationRequestDto object programmatically without relying on decorators.
|
|
4
|
+
* This function can be used for DTOs imported from remote packages where decorators don't work.
|
|
5
|
+
*
|
|
6
|
+
* @param data The object to validate as a NotificationRequestDto
|
|
7
|
+
* @returns An array of validation errors, empty if validation succeeds
|
|
8
|
+
*/
|
|
9
|
+
export declare function validateNotificationRequestDto(data: any): ValidationError[];
|
|
10
|
+
/**
|
|
11
|
+
* A convenience wrapper that throws an error if validation fails
|
|
12
|
+
*
|
|
13
|
+
* @param data The object to validate as a NotificationRequestDto
|
|
14
|
+
* @throws Error if validation fails, with error message containing all validation errors
|
|
15
|
+
*/
|
|
16
|
+
export declare function validateNotificationRequestDtoOrThrow(data: any): void;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateNotificationRequestDto = validateNotificationRequestDto;
|
|
4
|
+
exports.validateNotificationRequestDtoOrThrow = validateNotificationRequestDtoOrThrow;
|
|
5
|
+
const class_validator_1 = require("class-validator");
|
|
6
|
+
const class_transformer_1 = require("class-transformer");
|
|
7
|
+
const notification_request_dto_1 = require("../dtos/notification/notification-request.dto");
|
|
8
|
+
/**
|
|
9
|
+
* Validates a NotificationRequestDto object programmatically without relying on decorators.
|
|
10
|
+
* This function can be used for DTOs imported from remote packages where decorators don't work.
|
|
11
|
+
*
|
|
12
|
+
* @param data The object to validate as a NotificationRequestDto
|
|
13
|
+
* @returns An array of validation errors, empty if validation succeeds
|
|
14
|
+
*/
|
|
15
|
+
function validateNotificationRequestDto(data) {
|
|
16
|
+
// First, transform plain object to instance if needed
|
|
17
|
+
const dto = (0, class_transformer_1.plainToInstance)(notification_request_dto_1.NotificationRequestDto, data);
|
|
18
|
+
const errors = [];
|
|
19
|
+
// Ensure notificationId exists and is a string
|
|
20
|
+
if (!dto.notificationId) {
|
|
21
|
+
const error = new class_validator_1.ValidationError();
|
|
22
|
+
error.property = 'notificationId';
|
|
23
|
+
error.constraints = { isNotEmpty: 'notificationId should not be empty' };
|
|
24
|
+
errors.push(error);
|
|
25
|
+
}
|
|
26
|
+
else if (typeof dto.notificationId !== 'string') {
|
|
27
|
+
const error = new class_validator_1.ValidationError();
|
|
28
|
+
error.property = 'notificationId';
|
|
29
|
+
error.constraints = { isString: 'notificationId must be a string' };
|
|
30
|
+
errors.push(error);
|
|
31
|
+
}
|
|
32
|
+
// Ensure sender exists and is an object
|
|
33
|
+
if (dto.sender === null) {
|
|
34
|
+
const error = new class_validator_1.ValidationError();
|
|
35
|
+
error.property = 'sender';
|
|
36
|
+
error.constraints = { isObject: 'sender must be an object' };
|
|
37
|
+
errors.push(error);
|
|
38
|
+
}
|
|
39
|
+
else if (!dto.sender) {
|
|
40
|
+
const error = new class_validator_1.ValidationError();
|
|
41
|
+
error.property = 'sender';
|
|
42
|
+
error.constraints = { isNotEmpty: 'sender should not be empty' };
|
|
43
|
+
errors.push(error);
|
|
44
|
+
}
|
|
45
|
+
else if (typeof dto.sender !== 'object') {
|
|
46
|
+
const error = new class_validator_1.ValidationError();
|
|
47
|
+
error.property = 'sender';
|
|
48
|
+
error.constraints = { isObject: 'sender must be an object' };
|
|
49
|
+
errors.push(error);
|
|
50
|
+
}
|
|
51
|
+
// Ensure receiver exists and is an object
|
|
52
|
+
if (dto.receiver === null) {
|
|
53
|
+
const error = new class_validator_1.ValidationError();
|
|
54
|
+
error.property = 'receiver';
|
|
55
|
+
error.constraints = { isObject: 'receiver must be an object' };
|
|
56
|
+
errors.push(error);
|
|
57
|
+
}
|
|
58
|
+
else if (!dto.receiver) {
|
|
59
|
+
const error = new class_validator_1.ValidationError();
|
|
60
|
+
error.property = 'receiver';
|
|
61
|
+
error.constraints = { isNotEmpty: 'receiver should not be empty' };
|
|
62
|
+
errors.push(error);
|
|
63
|
+
}
|
|
64
|
+
else if (typeof dto.receiver !== 'object') {
|
|
65
|
+
const error = new class_validator_1.ValidationError();
|
|
66
|
+
error.property = 'receiver';
|
|
67
|
+
error.constraints = { isObject: 'receiver must be an object' };
|
|
68
|
+
errors.push(error);
|
|
69
|
+
}
|
|
70
|
+
return errors;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* A convenience wrapper that throws an error if validation fails
|
|
74
|
+
*
|
|
75
|
+
* @param data The object to validate as a NotificationRequestDto
|
|
76
|
+
* @throws Error if validation fails, with error message containing all validation errors
|
|
77
|
+
*/
|
|
78
|
+
function validateNotificationRequestDtoOrThrow(data) {
|
|
79
|
+
const errors = validateNotificationRequestDto(data);
|
|
80
|
+
if (errors.length > 0) {
|
|
81
|
+
const errorMessages = errors.map(error => {
|
|
82
|
+
const constraintValues = error.constraints ? Object.values(error.constraints) : [];
|
|
83
|
+
return `${error.property}: ${constraintValues.join(', ')}`;
|
|
84
|
+
}).join('; ');
|
|
85
|
+
throw new Error(`Validation failed: ${errorMessages}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hosterai/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"generate:all": "./generators/generate.ts all",
|
|
10
|
-
"build": "tsc"
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"test": "jest"
|
|
11
9
|
},
|
|
12
10
|
"keywords": [],
|
|
13
11
|
"author": "",
|
|
@@ -15,12 +13,12 @@
|
|
|
15
13
|
"description": "",
|
|
16
14
|
"devDependencies": {
|
|
17
15
|
"@types/fs-extra": "^11.0.4",
|
|
16
|
+
"@types/jest": "^30.0.0",
|
|
18
17
|
"fs-extra": "^11.3.0",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"jest": "^30.0.2",
|
|
19
|
+
"ts-jest": "^29.4.0",
|
|
21
20
|
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.8.3"
|
|
23
|
-
"typescript-json-schema": "^0.65.1"
|
|
21
|
+
"typescript": "^5.8.3"
|
|
24
22
|
},
|
|
25
23
|
"dependencies": {
|
|
26
24
|
"class-transformer": "^0.5.1",
|