@hosterai/types 0.0.1 → 0.0.2
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/dist/dtos/action.dto.d.ts +8 -1
- package/dist/dtos/info/info.dto.d.ts +140 -40
- package/dist/dtos/info/info.dto.js +207 -25
- package/package.json +3 -2
|
@@ -8,9 +8,16 @@ export declare class ActionDto {
|
|
|
8
8
|
* The label of the action (optional).
|
|
9
9
|
*/
|
|
10
10
|
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Defines how the URL will open when the user clicks on it
|
|
13
|
+
* AJAX_CALL: Makes an AJAX call and displays the response to the user
|
|
14
|
+
* SMALL_IFRAME: Opens the URL in a small side sheet
|
|
15
|
+
* MEDIUM_IFRAME: Opens the URL in a medium side sheet
|
|
16
|
+
* LARGE_IFRAME: Opens the URL in a large side sheet
|
|
17
|
+
*/
|
|
11
18
|
openMethod: OpenMethodEnum;
|
|
12
19
|
/**
|
|
13
|
-
* The
|
|
20
|
+
* The URL that will open when the user clicks on it
|
|
14
21
|
*/
|
|
15
22
|
url: string;
|
|
16
23
|
}
|
|
@@ -6,6 +6,68 @@ import { UnitDto } from '../unit.dto';
|
|
|
6
6
|
import { LanguageEnum } from '../../enums/language.enum';
|
|
7
7
|
import { RolesEnum } from '../../enums/roles.enum';
|
|
8
8
|
import { ActionDto } from '../action.dto';
|
|
9
|
+
/**
|
|
10
|
+
* DTO for integration information
|
|
11
|
+
* Contains all information related to a service integration
|
|
12
|
+
*/
|
|
13
|
+
export declare class InfoDto {
|
|
14
|
+
/**
|
|
15
|
+
* The title of the integration
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* The logo of the integration (optional)
|
|
20
|
+
*/
|
|
21
|
+
logo?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Description of the integration and its services (optional)
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* List of supported languages for the integration.
|
|
28
|
+
*/
|
|
29
|
+
supported_languages: LanguageEnum[];
|
|
30
|
+
/**
|
|
31
|
+
* Custom attributes for products.
|
|
32
|
+
*/
|
|
33
|
+
product_attributes?: FieldDto[];
|
|
34
|
+
/**
|
|
35
|
+
* Custom attributes for items.
|
|
36
|
+
*/
|
|
37
|
+
item_attributes?: FieldDto[];
|
|
38
|
+
/**
|
|
39
|
+
* Events that the integration listens to.
|
|
40
|
+
*/
|
|
41
|
+
listen_events?: EventsEnum[];
|
|
42
|
+
/**
|
|
43
|
+
* The roles that need to be accepted by the company
|
|
44
|
+
*/
|
|
45
|
+
requiredRoles?: RolesEnum[];
|
|
46
|
+
/**
|
|
47
|
+
* Actions that are not supported by the integration.
|
|
48
|
+
*/
|
|
49
|
+
unsupportedActions?: ActionsEnum[];
|
|
50
|
+
/**
|
|
51
|
+
* Configuration for the admin panel.
|
|
52
|
+
*/
|
|
53
|
+
adminPanel?: AdminPanelDto;
|
|
54
|
+
/**
|
|
55
|
+
* Configuration for the client panel.
|
|
56
|
+
*/
|
|
57
|
+
clientPanel?: ClientPanelDto;
|
|
58
|
+
/**
|
|
59
|
+
* The url for the onboarding process after installation of the integration
|
|
60
|
+
*/
|
|
61
|
+
onboardingUrl?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Units for pay-per-use billing.
|
|
64
|
+
*/
|
|
65
|
+
payPerUseUnits?: UnitDto[];
|
|
66
|
+
/**
|
|
67
|
+
* Mapping of response data field names.
|
|
68
|
+
*/
|
|
69
|
+
responseDataFieldNames?: Record<keyof ResponseDataDto, string>;
|
|
70
|
+
}
|
|
9
71
|
/**
|
|
10
72
|
* DTO for tabs
|
|
11
73
|
* Used for defining tabs in the user interface
|
|
@@ -42,55 +104,93 @@ declare class MenuDto {
|
|
|
42
104
|
tabs: TabDto[];
|
|
43
105
|
}
|
|
44
106
|
/**
|
|
45
|
-
* DTO for
|
|
46
|
-
* Contains all information related to a service integration
|
|
107
|
+
* DTO for the tabs in the admin panel.
|
|
47
108
|
*/
|
|
48
|
-
|
|
109
|
+
declare class AdminPanelTabsDto {
|
|
49
110
|
/**
|
|
50
|
-
*
|
|
111
|
+
* Tabs related to products.
|
|
51
112
|
*/
|
|
52
|
-
|
|
113
|
+
product: TabDto[];
|
|
53
114
|
/**
|
|
54
|
-
*
|
|
115
|
+
* Tabs related to items.
|
|
55
116
|
*/
|
|
56
|
-
|
|
117
|
+
item: TabDto[];
|
|
57
118
|
/**
|
|
58
|
-
*
|
|
119
|
+
* Tabs related to clients.
|
|
59
120
|
*/
|
|
60
|
-
|
|
61
|
-
supported_languages: LanguageEnum[];
|
|
62
|
-
product_attributes?: FieldDto[];
|
|
63
|
-
item_attributes?: FieldDto[];
|
|
64
|
-
listen_events?: EventsEnum[];
|
|
121
|
+
client: TabDto[];
|
|
65
122
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
item?: ActionDto[];
|
|
75
|
-
};
|
|
76
|
-
menu?: MenuDto;
|
|
77
|
-
/**
|
|
78
|
-
* Option that will appear in the "Settings" section (optional)
|
|
79
|
-
*/
|
|
80
|
-
settings?: MenuDto;
|
|
81
|
-
};
|
|
82
|
-
clientPanel?: {
|
|
83
|
-
productTabs?: TabDto[];
|
|
84
|
-
actions?: {
|
|
85
|
-
item?: ActionDto[];
|
|
86
|
-
};
|
|
87
|
-
menu?: MenuDto;
|
|
88
|
-
};
|
|
123
|
+
* Tabs related to orders.
|
|
124
|
+
*/
|
|
125
|
+
order: TabDto[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* DTO for actions available in a panel.
|
|
129
|
+
*/
|
|
130
|
+
declare class PanelActionsDto {
|
|
89
131
|
/**
|
|
90
|
-
*
|
|
132
|
+
* Actions related to clients.
|
|
91
133
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
134
|
+
client?: ActionDto[];
|
|
135
|
+
/**
|
|
136
|
+
* Actions related to items.
|
|
137
|
+
*/
|
|
138
|
+
item?: ActionDto[];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* DTO for the admin panel configuration.
|
|
142
|
+
*/
|
|
143
|
+
declare class AdminPanelDto {
|
|
144
|
+
/**
|
|
145
|
+
* Configuration for the tabs in the admin panel.
|
|
146
|
+
*/
|
|
147
|
+
tabs?: AdminPanelTabsDto;
|
|
148
|
+
/**
|
|
149
|
+
* Additional actions available in the admin panel.
|
|
150
|
+
*/
|
|
151
|
+
moreActions?: PanelActionsDto;
|
|
152
|
+
/**
|
|
153
|
+
* Main menu for the admin panel.
|
|
154
|
+
*/
|
|
155
|
+
menu?: MenuDto;
|
|
156
|
+
/**
|
|
157
|
+
* Settings menu for the admin panel.
|
|
158
|
+
*/
|
|
159
|
+
settings?: MenuDto;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* DTO for the tabs in the client panel.
|
|
163
|
+
*/
|
|
164
|
+
declare class ClientPanelTabsDto {
|
|
165
|
+
/**
|
|
166
|
+
* Tabs related to items.
|
|
167
|
+
*/
|
|
168
|
+
item: TabDto[];
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* DTO for actions available in the client panel.
|
|
172
|
+
*/
|
|
173
|
+
declare class ClientPanelActionsDto {
|
|
174
|
+
/**
|
|
175
|
+
* Actions related to items.
|
|
176
|
+
*/
|
|
177
|
+
item?: ActionDto[];
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* DTO for the client panel configuration.
|
|
181
|
+
*/
|
|
182
|
+
declare class ClientPanelDto {
|
|
183
|
+
/**
|
|
184
|
+
* Configuration for the tabs in the client panel.
|
|
185
|
+
*/
|
|
186
|
+
tabs?: ClientPanelTabsDto;
|
|
187
|
+
/**
|
|
188
|
+
* Additional actions available in the client panel.
|
|
189
|
+
*/
|
|
190
|
+
moreActions?: ClientPanelActionsDto;
|
|
191
|
+
/**
|
|
192
|
+
* Main menu for the client panel.
|
|
193
|
+
*/
|
|
194
|
+
menu?: MenuDto;
|
|
95
195
|
}
|
|
96
196
|
export {};
|
|
@@ -12,8 +12,107 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.InfoDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const actions_enum_1 = require("../../enums/actions.enum");
|
|
16
|
+
const events_enum_1 = require("../../enums/events.enum");
|
|
17
|
+
const field_dto_1 = require("../field.dto");
|
|
18
|
+
const unit_dto_1 = require("../unit.dto");
|
|
15
19
|
const language_enum_1 = require("../../enums/language.enum");
|
|
16
20
|
const roles_enum_1 = require("../../enums/roles.enum");
|
|
21
|
+
const action_dto_1 = require("../action.dto");
|
|
22
|
+
/**
|
|
23
|
+
* DTO for integration information
|
|
24
|
+
* Contains all information related to a service integration
|
|
25
|
+
*/
|
|
26
|
+
class InfoDto {
|
|
27
|
+
constructor() {
|
|
28
|
+
/**
|
|
29
|
+
* Actions that are not supported by the integration.
|
|
30
|
+
*/
|
|
31
|
+
this.unsupportedActions = [];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.InfoDto = InfoDto;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], InfoDto.prototype, "title", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], InfoDto.prototype, "logo", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], InfoDto.prototype, "description", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.IsEnum)(language_enum_1.LanguageEnum, { each: true }),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], InfoDto.prototype, "supported_languages", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsArray)(),
|
|
57
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
58
|
+
(0, class_transformer_1.Type)(() => field_dto_1.FieldDto),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], InfoDto.prototype, "product_attributes", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsArray)(),
|
|
64
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
65
|
+
(0, class_transformer_1.Type)(() => field_dto_1.FieldDto),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], InfoDto.prototype, "item_attributes", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_validator_1.IsEnum)(events_enum_1.EventsEnum, { each: true }),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
__metadata("design:type", Array)
|
|
74
|
+
], InfoDto.prototype, "listen_events", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsArray)(),
|
|
77
|
+
(0, class_validator_1.IsEnum)(roles_enum_1.RolesEnum, { each: true }),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], InfoDto.prototype, "requiredRoles", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsArray)(),
|
|
83
|
+
(0, class_validator_1.IsEnum)(actions_enum_1.ActionsEnum, { each: true }),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], InfoDto.prototype, "unsupportedActions", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.ValidateNested)(),
|
|
90
|
+
(0, class_transformer_1.Type)(() => AdminPanelDto),
|
|
91
|
+
__metadata("design:type", AdminPanelDto)
|
|
92
|
+
], InfoDto.prototype, "adminPanel", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
(0, class_validator_1.ValidateNested)(),
|
|
96
|
+
(0, class_transformer_1.Type)(() => ClientPanelDto),
|
|
97
|
+
__metadata("design:type", ClientPanelDto)
|
|
98
|
+
], InfoDto.prototype, "clientPanel", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsUrl)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], InfoDto.prototype, "onboardingUrl", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsArray)(),
|
|
106
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
107
|
+
(0, class_transformer_1.Type)(() => unit_dto_1.UnitDto),
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
__metadata("design:type", Array)
|
|
110
|
+
], InfoDto.prototype, "payPerUseUnits", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_validator_1.IsObject)(),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], InfoDto.prototype, "responseDataFieldNames", void 0);
|
|
17
116
|
/**
|
|
18
117
|
* DTO for tabs
|
|
19
118
|
* Used for defining tabs in the user interface
|
|
@@ -55,42 +154,125 @@ __decorate([
|
|
|
55
154
|
__metadata("design:type", Array)
|
|
56
155
|
], MenuDto.prototype, "tabs", void 0);
|
|
57
156
|
/**
|
|
58
|
-
* DTO for
|
|
59
|
-
* Contains all information related to a service integration
|
|
157
|
+
* DTO for the tabs in the admin panel.
|
|
60
158
|
*/
|
|
61
|
-
class
|
|
62
|
-
constructor() {
|
|
63
|
-
this.unsupportedActions = [];
|
|
64
|
-
}
|
|
159
|
+
class AdminPanelTabsDto {
|
|
65
160
|
}
|
|
66
|
-
exports.InfoDto = InfoDto;
|
|
67
161
|
__decorate([
|
|
68
|
-
(0, class_validator_1.
|
|
69
|
-
(0, class_validator_1.
|
|
70
|
-
|
|
71
|
-
|
|
162
|
+
(0, class_validator_1.IsArray)(),
|
|
163
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
164
|
+
(0, class_transformer_1.Type)(() => TabDto),
|
|
165
|
+
__metadata("design:type", Array)
|
|
166
|
+
], AdminPanelTabsDto.prototype, "product", void 0);
|
|
72
167
|
__decorate([
|
|
73
|
-
(0, class_validator_1.
|
|
168
|
+
(0, class_validator_1.IsArray)(),
|
|
169
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
170
|
+
(0, class_transformer_1.Type)(() => TabDto),
|
|
171
|
+
__metadata("design:type", Array)
|
|
172
|
+
], AdminPanelTabsDto.prototype, "item", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, class_validator_1.IsArray)(),
|
|
175
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
176
|
+
(0, class_transformer_1.Type)(() => TabDto),
|
|
177
|
+
__metadata("design:type", Array)
|
|
178
|
+
], AdminPanelTabsDto.prototype, "client", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, class_validator_1.IsArray)(),
|
|
181
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
182
|
+
(0, class_transformer_1.Type)(() => TabDto),
|
|
183
|
+
__metadata("design:type", Array)
|
|
184
|
+
], AdminPanelTabsDto.prototype, "order", void 0);
|
|
185
|
+
/**
|
|
186
|
+
* DTO for actions available in a panel.
|
|
187
|
+
*/
|
|
188
|
+
class PanelActionsDto {
|
|
189
|
+
}
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, class_validator_1.IsArray)(),
|
|
192
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
193
|
+
(0, class_transformer_1.Type)(() => action_dto_1.ActionDto),
|
|
74
194
|
(0, class_validator_1.IsOptional)(),
|
|
75
|
-
__metadata("design:type",
|
|
76
|
-
],
|
|
195
|
+
__metadata("design:type", Array)
|
|
196
|
+
], PanelActionsDto.prototype, "client", void 0);
|
|
77
197
|
__decorate([
|
|
78
|
-
(0, class_validator_1.
|
|
198
|
+
(0, class_validator_1.IsArray)(),
|
|
199
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
200
|
+
(0, class_transformer_1.Type)(() => action_dto_1.ActionDto),
|
|
79
201
|
(0, class_validator_1.IsOptional)(),
|
|
80
|
-
__metadata("design:type",
|
|
81
|
-
],
|
|
202
|
+
__metadata("design:type", Array)
|
|
203
|
+
], PanelActionsDto.prototype, "item", void 0);
|
|
204
|
+
/**
|
|
205
|
+
* DTO for the admin panel configuration.
|
|
206
|
+
*/
|
|
207
|
+
class AdminPanelDto {
|
|
208
|
+
}
|
|
82
209
|
__decorate([
|
|
83
|
-
(0, class_validator_1.
|
|
84
|
-
(0, class_validator_1.
|
|
210
|
+
(0, class_validator_1.IsOptional)(),
|
|
211
|
+
(0, class_validator_1.ValidateNested)(),
|
|
212
|
+
(0, class_transformer_1.Type)(() => AdminPanelTabsDto),
|
|
213
|
+
__metadata("design:type", AdminPanelTabsDto)
|
|
214
|
+
], AdminPanelDto.prototype, "tabs", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, class_validator_1.IsOptional)(),
|
|
217
|
+
(0, class_validator_1.ValidateNested)(),
|
|
218
|
+
(0, class_transformer_1.Type)(() => PanelActionsDto),
|
|
219
|
+
__metadata("design:type", PanelActionsDto)
|
|
220
|
+
], AdminPanelDto.prototype, "moreActions", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, class_validator_1.IsOptional)(),
|
|
223
|
+
(0, class_validator_1.ValidateNested)(),
|
|
224
|
+
(0, class_transformer_1.Type)(() => MenuDto),
|
|
225
|
+
__metadata("design:type", MenuDto)
|
|
226
|
+
], AdminPanelDto.prototype, "menu", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, class_validator_1.IsOptional)(),
|
|
229
|
+
(0, class_validator_1.ValidateNested)(),
|
|
230
|
+
(0, class_transformer_1.Type)(() => MenuDto),
|
|
231
|
+
__metadata("design:type", MenuDto)
|
|
232
|
+
], AdminPanelDto.prototype, "settings", void 0);
|
|
233
|
+
/**
|
|
234
|
+
* DTO for the tabs in the client panel.
|
|
235
|
+
*/
|
|
236
|
+
class ClientPanelTabsDto {
|
|
237
|
+
}
|
|
238
|
+
__decorate([
|
|
239
|
+
(0, class_validator_1.IsArray)(),
|
|
240
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
241
|
+
(0, class_transformer_1.Type)(() => TabDto),
|
|
85
242
|
__metadata("design:type", Array)
|
|
86
|
-
],
|
|
243
|
+
], ClientPanelTabsDto.prototype, "item", void 0);
|
|
244
|
+
/**
|
|
245
|
+
* DTO for actions available in the client panel.
|
|
246
|
+
*/
|
|
247
|
+
class ClientPanelActionsDto {
|
|
248
|
+
}
|
|
87
249
|
__decorate([
|
|
88
250
|
(0, class_validator_1.IsArray)(),
|
|
89
|
-
(0, class_validator_1.
|
|
251
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
252
|
+
(0, class_transformer_1.Type)(() => action_dto_1.ActionDto),
|
|
253
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
254
|
__metadata("design:type", Array)
|
|
91
|
-
],
|
|
255
|
+
], ClientPanelActionsDto.prototype, "item", void 0);
|
|
256
|
+
/**
|
|
257
|
+
* DTO for the client panel configuration.
|
|
258
|
+
*/
|
|
259
|
+
class ClientPanelDto {
|
|
260
|
+
}
|
|
92
261
|
__decorate([
|
|
93
262
|
(0, class_validator_1.IsOptional)(),
|
|
94
|
-
(0, class_validator_1.
|
|
95
|
-
|
|
96
|
-
|
|
263
|
+
(0, class_validator_1.ValidateNested)(),
|
|
264
|
+
(0, class_transformer_1.Type)(() => ClientPanelTabsDto),
|
|
265
|
+
__metadata("design:type", ClientPanelTabsDto)
|
|
266
|
+
], ClientPanelDto.prototype, "tabs", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
(0, class_validator_1.IsOptional)(),
|
|
269
|
+
(0, class_validator_1.ValidateNested)(),
|
|
270
|
+
(0, class_transformer_1.Type)(() => ClientPanelActionsDto),
|
|
271
|
+
__metadata("design:type", ClientPanelActionsDto)
|
|
272
|
+
], ClientPanelDto.prototype, "moreActions", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
(0, class_validator_1.IsOptional)(),
|
|
275
|
+
(0, class_validator_1.ValidateNested)(),
|
|
276
|
+
(0, class_transformer_1.Type)(() => MenuDto),
|
|
277
|
+
__metadata("design:type", MenuDto)
|
|
278
|
+
], ClientPanelDto.prototype, "menu", void 0);
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hosterai/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"generate:schemas": "./generators/generate-schemas.sh && ./generators/post-process-schemas.js",
|
|
8
8
|
"generate": "./generators/generate.ts",
|
|
9
9
|
"generate:all": "./generators/generate.ts all",
|
|
10
|
-
"build": "tsc"
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"publish": "npm run build && npm publish"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [],
|
|
13
14
|
"author": "",
|