@dxs-ts/eveli-ide 0.0.8 → 0.0.12
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/build/index.d.ts +594 -271
- package/build/index.js +649 -649
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,27 +1,361 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
3
|
|
|
4
|
-
declare class DefaultStore implements Store {
|
|
4
|
+
declare class DefaultStore implements HdesApi.Store {
|
|
5
5
|
private _config;
|
|
6
6
|
private _updateStarted;
|
|
7
7
|
private _iapSessionRefreshWindow;
|
|
8
8
|
private _defRef;
|
|
9
|
-
constructor(config: StoreConfig);
|
|
9
|
+
constructor(config: HdesApi.StoreConfig);
|
|
10
10
|
iapRefresh(): Promise<void>;
|
|
11
11
|
iapLogin(): boolean;
|
|
12
12
|
handle401(): Promise<void>;
|
|
13
13
|
fetch<T>(path: string, req?: RequestInit): Promise<T>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
declare namespace HdesApi {
|
|
17
|
+
type TagId = string;
|
|
18
|
+
type EntityId = string;
|
|
19
|
+
type FlowId = string;
|
|
20
|
+
type ServiceId = string;
|
|
21
|
+
type DecisionId = string;
|
|
22
|
+
type BranchId = string;
|
|
23
|
+
type AstBodyType = "FLOW" | "FLOW_TASK" | "DT" | "TAG" | "BRANCH";
|
|
24
|
+
type Direction = "IN" | "OUT";
|
|
25
|
+
type ValueType = "TIME" | "DATE" | "DATE_TIME" | "INSTANT" | "PERIOD" | "DURATION" | "STRING" | "INTEGER" | "LONG" | "BOOLEAN" | "PERCENT" | "OBJECT" | "ARRAY" | "DECIMAL" | "MAP" | "FLOW_CONTEXT";
|
|
26
|
+
type ProgramStatus = "UP" | "AST_ERROR" | "PROGRAM_ERROR" | "DEPENDENCY_ERROR";
|
|
27
|
+
type HitPolicy = "FIRST" | "ALL";
|
|
28
|
+
type AssociationType = "ONE_TO_ONE" | "ONE_TO_MANY";
|
|
29
|
+
type ColumnExpressionType = "IN" | "EQUALS";
|
|
30
|
+
type FlowCommandMessageType = "ERROR" | "WARNING";
|
|
31
|
+
type AstCommandValue = ("SET" | "ADD" | "DELETE" | "SET_BODY" | "SET_NAME" | "SET_DESCRIPTION" | "IMPORT_CSV" | "IMPORT_ORDERED_CSV" | "MOVE_ROW" | "MOVE_HEADER" | "INSERT_ROW" | "COPY_ROW" | "SET_HEADER_TYPE" | "SET_HEADER_REF" | "SET_HEADER_NAME" | "SET_HEADER_SCRIPT" | "SET_HEADER_DIRECTION" | "SET_HEADER_EXPRESSION" | "SET_HIT_POLICY" | "SET_CELL_VALUE" | "DELETE_CELL" | "DELETE_HEADER" | "DELETE_ROW" | "ADD_LOG" | "ADD_HEADER_IN" | "ADD_HEADER_OUT" | "ADD_ROW" | "SET_VALUE_SET" | "CREATE_BRANCH" | "SET_BRANCH_NAME" | "SET_BRANCH_TAG" | "SET_BRANCH_CREATED");
|
|
32
|
+
interface CommandsAndChanges {
|
|
33
|
+
commands: AstCommand[];
|
|
34
|
+
src: AstChangeset[];
|
|
35
|
+
}
|
|
36
|
+
interface AstChangeset {
|
|
37
|
+
line: number;
|
|
38
|
+
value: string;
|
|
39
|
+
commands: AstCommand[];
|
|
40
|
+
}
|
|
41
|
+
interface ProgramMessage {
|
|
42
|
+
id: string;
|
|
43
|
+
msg: string;
|
|
44
|
+
}
|
|
45
|
+
interface AstCommand {
|
|
46
|
+
id?: string;
|
|
47
|
+
value?: string;
|
|
48
|
+
type: AstCommandValue;
|
|
49
|
+
}
|
|
50
|
+
interface TypeDef {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
order: number;
|
|
54
|
+
data: boolean;
|
|
55
|
+
direction: Direction;
|
|
56
|
+
valueType: ValueType;
|
|
57
|
+
required: boolean;
|
|
58
|
+
properties: TypeDef[];
|
|
59
|
+
values?: string;
|
|
60
|
+
valueSet?: string[];
|
|
61
|
+
}
|
|
62
|
+
interface AstBody {
|
|
63
|
+
name: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
headers: Headers;
|
|
66
|
+
bodyType: AstBodyType;
|
|
67
|
+
}
|
|
68
|
+
interface Headers {
|
|
69
|
+
acceptDefs: TypeDef[];
|
|
70
|
+
returnDefs: TypeDef[];
|
|
71
|
+
}
|
|
72
|
+
interface AstSource {
|
|
73
|
+
id: string;
|
|
74
|
+
hash: string;
|
|
75
|
+
bodyType: AstBodyType;
|
|
76
|
+
commands: AstCommand[];
|
|
77
|
+
}
|
|
78
|
+
interface ProgramAssociation {
|
|
79
|
+
id?: string;
|
|
80
|
+
ref: string;
|
|
81
|
+
refType: AstBodyType;
|
|
82
|
+
refStatus: ProgramStatus;
|
|
83
|
+
owner: string;
|
|
84
|
+
}
|
|
85
|
+
interface Site {
|
|
86
|
+
name: string;
|
|
87
|
+
contentType: "OK" | "NOT_CREATED" | "EMPTY" | "ERRORS" | "NO_CONNECTION";
|
|
88
|
+
tags: Record<TagId, Entity<AstTag>>;
|
|
89
|
+
flows: Record<FlowId, Entity<AstFlow>>;
|
|
90
|
+
services: Record<ServiceId, Entity<AstService>>;
|
|
91
|
+
decisions: Record<DecisionId, Entity<AstDecision>>;
|
|
92
|
+
branches: Record<BranchId, Entity<AstBranch>>;
|
|
93
|
+
}
|
|
94
|
+
interface Entity<A extends AstBody> {
|
|
95
|
+
id: EntityId;
|
|
96
|
+
ast?: A;
|
|
97
|
+
source: AstSource;
|
|
98
|
+
warnings: ProgramMessage[];
|
|
99
|
+
errors: ProgramMessage[];
|
|
100
|
+
associations: ProgramAssociation[];
|
|
101
|
+
status: ProgramStatus;
|
|
102
|
+
}
|
|
103
|
+
interface AstDecision extends AstBody {
|
|
104
|
+
headerTypes: string[];
|
|
105
|
+
headerExpressions: Record<ValueType, string[]>;
|
|
106
|
+
hitPolicy: HitPolicy;
|
|
107
|
+
rows: AstDecisionRow[];
|
|
108
|
+
}
|
|
109
|
+
interface AstDecisionRow {
|
|
110
|
+
id: string;
|
|
111
|
+
order: number;
|
|
112
|
+
cells: AstDecisionCell[];
|
|
113
|
+
}
|
|
114
|
+
interface AstDecisionCell {
|
|
115
|
+
id: string;
|
|
116
|
+
header: string;
|
|
117
|
+
value?: string;
|
|
118
|
+
}
|
|
119
|
+
interface AstFlow extends AstBody {
|
|
120
|
+
src: AstFlowRoot;
|
|
121
|
+
messages: FlowAstCommandMessage[];
|
|
122
|
+
}
|
|
123
|
+
interface FlowAstCommandMessage {
|
|
124
|
+
line: number;
|
|
125
|
+
value: string;
|
|
126
|
+
type: FlowCommandMessageType;
|
|
127
|
+
range?: FlowAstCommandRange;
|
|
128
|
+
}
|
|
129
|
+
interface FlowAstCommandRange {
|
|
130
|
+
start: number;
|
|
131
|
+
end: number;
|
|
132
|
+
}
|
|
133
|
+
interface AstFlowInputType {
|
|
134
|
+
name: string;
|
|
135
|
+
value: string;
|
|
136
|
+
ref?: string;
|
|
137
|
+
}
|
|
138
|
+
interface AstFlowRoot extends AstFlowNode {
|
|
139
|
+
id: AstFlowNode;
|
|
140
|
+
description: AstFlowNode;
|
|
141
|
+
types: AstFlowInputType[];
|
|
142
|
+
inputs: Record<string, AstFlowInputNode>;
|
|
143
|
+
tasks: Record<string, AstFlowTaskNode>;
|
|
144
|
+
}
|
|
145
|
+
interface AstFlowTaskNode extends Omit<AstFlowNode, "switch"> {
|
|
146
|
+
id: AstFlowNode;
|
|
147
|
+
order: number;
|
|
148
|
+
then: AstFlowNode;
|
|
149
|
+
ref: AstFlowRefNode;
|
|
150
|
+
userTask: AstFlowRefNode;
|
|
151
|
+
decisionTable: AstFlowRefNode;
|
|
152
|
+
service: AstFlowRefNode;
|
|
153
|
+
switch: Record<string, AstFlowSwitchNode>;
|
|
154
|
+
}
|
|
155
|
+
interface AstFlowRefNode extends AstFlowNode {
|
|
156
|
+
ref: AstFlowNode;
|
|
157
|
+
collection: AstFlowNode;
|
|
158
|
+
inputsNode: AstFlowNode;
|
|
159
|
+
inputs: Record<string, AstFlowNode>;
|
|
160
|
+
}
|
|
161
|
+
interface AstFlowSwitchNode extends AstFlowNode {
|
|
162
|
+
order: string;
|
|
163
|
+
when: AstFlowNode;
|
|
164
|
+
then: AstFlowNode;
|
|
165
|
+
}
|
|
166
|
+
interface AstFlowInputNode extends AstFlowNode {
|
|
167
|
+
required: AstFlowNode;
|
|
168
|
+
type: AstFlowNode;
|
|
169
|
+
debugValue: AstFlowNode;
|
|
170
|
+
}
|
|
171
|
+
interface AstFlowNode {
|
|
172
|
+
parent: AstFlowNode;
|
|
173
|
+
keyword: string;
|
|
174
|
+
children: Record<string, AstFlowNode>;
|
|
175
|
+
value: string;
|
|
176
|
+
source: AstChangeset;
|
|
177
|
+
start: number;
|
|
178
|
+
end: number;
|
|
179
|
+
service?: AstFlowNode | undefined;
|
|
180
|
+
decisionTable?: AstFlowNode | undefined;
|
|
181
|
+
then?: AstFlowNode | undefined;
|
|
182
|
+
id?: AstFlowNode | undefined;
|
|
183
|
+
switch?: AstFlowNode | undefined;
|
|
184
|
+
}
|
|
185
|
+
interface AstService extends AstBody {
|
|
186
|
+
executorType: "TYPE_0" | "TYPE_1" | "TYPE_2";
|
|
187
|
+
value: string;
|
|
188
|
+
}
|
|
189
|
+
interface AstTag extends AstBody {
|
|
190
|
+
name: string;
|
|
191
|
+
created: string;
|
|
192
|
+
values: AstTagValue[];
|
|
193
|
+
}
|
|
194
|
+
interface AstTagValue {
|
|
195
|
+
hash: string;
|
|
196
|
+
bodyType: AstBodyType;
|
|
197
|
+
commands: AstCommand[];
|
|
198
|
+
}
|
|
199
|
+
interface AstBranch extends AstBody {
|
|
200
|
+
name: string;
|
|
201
|
+
created: string;
|
|
202
|
+
tagId: string;
|
|
203
|
+
}
|
|
204
|
+
interface ServiceErrorMsg {
|
|
205
|
+
id: string;
|
|
206
|
+
value: string;
|
|
207
|
+
}
|
|
208
|
+
interface ServiceErrorProps {
|
|
209
|
+
text: string;
|
|
210
|
+
status: number;
|
|
211
|
+
errors: ServiceErrorMsg[];
|
|
212
|
+
}
|
|
213
|
+
interface DebugRequest {
|
|
214
|
+
id: string;
|
|
215
|
+
input?: string;
|
|
216
|
+
inputCSV?: string;
|
|
217
|
+
}
|
|
218
|
+
interface DebugResponse {
|
|
219
|
+
id: string;
|
|
220
|
+
body?: ProgramResult;
|
|
221
|
+
bodyCsv?: string;
|
|
222
|
+
}
|
|
223
|
+
interface ProgramResult {
|
|
224
|
+
}
|
|
225
|
+
interface ServiceResult extends ProgramResult {
|
|
226
|
+
value: any;
|
|
227
|
+
}
|
|
228
|
+
interface DecisionResult extends ProgramResult {
|
|
229
|
+
rejections: DecisionLog[];
|
|
230
|
+
matches: DecisionLog[];
|
|
231
|
+
}
|
|
232
|
+
interface DecisionLog {
|
|
233
|
+
match: boolean;
|
|
234
|
+
order: number;
|
|
235
|
+
accepts: DecisionLogEntry[];
|
|
236
|
+
returns: DecisionLogEntry[];
|
|
237
|
+
}
|
|
238
|
+
interface DecisionLogEntry {
|
|
239
|
+
match: boolean;
|
|
240
|
+
headerType: TypeDef;
|
|
241
|
+
expression: string;
|
|
242
|
+
usedValue?: any;
|
|
243
|
+
}
|
|
244
|
+
type FlowProgramStepPointerType = "SWITCH" | "THEN" | "END";
|
|
245
|
+
type FlowProgramStepRefType = "SERVICE" | "DT";
|
|
246
|
+
type FlowExecutionStatus = "COMPLETED" | "ERROR";
|
|
247
|
+
interface FlowResult extends ProgramResult {
|
|
248
|
+
stepId: string;
|
|
249
|
+
shortHistory: string;
|
|
250
|
+
logs: FlowResultLog[];
|
|
251
|
+
status: FlowExecutionStatus;
|
|
252
|
+
accepts: Record<string, any>;
|
|
253
|
+
returns: Record<string, any>;
|
|
254
|
+
}
|
|
255
|
+
interface FlowResultLog {
|
|
256
|
+
id: number;
|
|
257
|
+
stepId: string;
|
|
258
|
+
start: string | Date;
|
|
259
|
+
end: string | Date;
|
|
260
|
+
errors: FlowResultErrorLog[];
|
|
261
|
+
status: FlowExecutionStatus;
|
|
262
|
+
accepts: Record<string, any>;
|
|
263
|
+
returns: Record<string, any>;
|
|
264
|
+
}
|
|
265
|
+
interface FlowResultErrorLog {
|
|
266
|
+
id: string;
|
|
267
|
+
msg: string;
|
|
268
|
+
}
|
|
269
|
+
interface Input {
|
|
270
|
+
name: string | null | undefined;
|
|
271
|
+
value: string | null | undefined;
|
|
272
|
+
}
|
|
273
|
+
interface Output {
|
|
274
|
+
name: string | null | undefined;
|
|
275
|
+
value: string | null | undefined;
|
|
276
|
+
}
|
|
277
|
+
interface CsvRow {
|
|
278
|
+
id: string;
|
|
279
|
+
inputs: Input[];
|
|
280
|
+
outputs: Output[];
|
|
281
|
+
}
|
|
282
|
+
interface CreateBuilder {
|
|
283
|
+
site(): Promise<Site>;
|
|
284
|
+
importData(init: string): Promise<Site>;
|
|
285
|
+
tag(props: {
|
|
286
|
+
name: string;
|
|
287
|
+
desc: string;
|
|
288
|
+
}): Promise<Site>;
|
|
289
|
+
flow(name: string): Promise<Site>;
|
|
290
|
+
service(name: string): Promise<Site>;
|
|
291
|
+
decision(name: string): Promise<Site>;
|
|
292
|
+
branch(body: AstCommand[]): Promise<Site>;
|
|
293
|
+
}
|
|
294
|
+
interface DeleteBuilder {
|
|
295
|
+
tag(tagId: TagId): Promise<Site>;
|
|
296
|
+
flow(flowId: FlowId): Promise<Site>;
|
|
297
|
+
service(serviceId: ServiceId): Promise<Site>;
|
|
298
|
+
decision(decisionId: DecisionId): Promise<Site>;
|
|
299
|
+
branch(branchId: BranchId): Promise<Site>;
|
|
300
|
+
}
|
|
301
|
+
interface DiffRequest {
|
|
302
|
+
baseId: string;
|
|
303
|
+
targetId: string;
|
|
304
|
+
}
|
|
305
|
+
interface DiffResponse {
|
|
306
|
+
baseName: string;
|
|
307
|
+
targetName: string;
|
|
308
|
+
baseId: string;
|
|
309
|
+
targetId: string;
|
|
310
|
+
created: string;
|
|
311
|
+
body: string;
|
|
312
|
+
}
|
|
313
|
+
interface AstTagSummaryEntity {
|
|
314
|
+
id: string;
|
|
315
|
+
name: string;
|
|
316
|
+
body: string;
|
|
317
|
+
}
|
|
318
|
+
interface AstTagSummary {
|
|
319
|
+
tagName: string;
|
|
320
|
+
flows: AstTagSummaryEntity[];
|
|
321
|
+
services: AstTagSummaryEntity[];
|
|
322
|
+
decisions: AstTagSummaryEntity[];
|
|
323
|
+
}
|
|
324
|
+
interface VersionEntity {
|
|
325
|
+
version: string;
|
|
326
|
+
built: string;
|
|
327
|
+
}
|
|
328
|
+
interface Service {
|
|
329
|
+
withBranch(branchName?: string): Service;
|
|
330
|
+
branch: string | undefined;
|
|
331
|
+
delete(): DeleteBuilder;
|
|
332
|
+
create(): CreateBuilder;
|
|
333
|
+
update(id: string, body: AstCommand[]): Promise<Site>;
|
|
334
|
+
ast(id: string, body: AstCommand[]): Promise<Entity<any>>;
|
|
335
|
+
debug(input: DebugRequest): Promise<DebugResponse>;
|
|
336
|
+
getSite(): Promise<Site>;
|
|
337
|
+
copy(id: string, name: string): Promise<Site>;
|
|
338
|
+
version(): Promise<VersionEntity>;
|
|
339
|
+
diff(input: DiffRequest): Promise<DiffResponse>;
|
|
340
|
+
summary(tagId: string): Promise<AstTagSummary>;
|
|
341
|
+
}
|
|
342
|
+
interface Store {
|
|
343
|
+
fetch<T>(path: string, init?: RequestInit): Promise<T>;
|
|
344
|
+
}
|
|
345
|
+
interface StoreError extends Error {
|
|
346
|
+
text: string;
|
|
347
|
+
status: number;
|
|
348
|
+
errors: ServiceErrorMsg[];
|
|
349
|
+
}
|
|
350
|
+
interface StoreConfig {
|
|
351
|
+
url: string;
|
|
352
|
+
oidc?: string;
|
|
353
|
+
status?: string;
|
|
354
|
+
csrf?: {
|
|
355
|
+
key: string;
|
|
356
|
+
value: string;
|
|
357
|
+
};
|
|
358
|
+
}
|
|
25
359
|
}
|
|
26
360
|
|
|
27
361
|
export declare const siteTheme: Theme;
|
|
@@ -316,60 +650,45 @@ export declare const stencilIntl: {
|
|
|
316
650
|
[key: string]: any;
|
|
317
651
|
};
|
|
318
652
|
|
|
319
|
-
declare interface Store {
|
|
320
|
-
fetch<T>(path: string, init?: RequestInit): Promise<T>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
declare interface StoreConfig {
|
|
324
|
-
url: string;
|
|
325
|
-
oidc?: string;
|
|
326
|
-
status?: string;
|
|
327
|
-
csrf?: {
|
|
328
|
-
key: string;
|
|
329
|
-
value: string;
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
|
|
333
653
|
declare class StoreErrorImpl extends Error {
|
|
334
654
|
private _props;
|
|
335
|
-
constructor(props: ServiceErrorProps);
|
|
655
|
+
constructor(props: HdesApi.ServiceErrorProps);
|
|
336
656
|
get name(): string;
|
|
337
657
|
get status(): number;
|
|
338
|
-
get errors(): ServiceErrorMsg[];
|
|
658
|
+
get errors(): HdesApi.ServiceErrorMsg[];
|
|
339
659
|
}
|
|
340
660
|
|
|
341
661
|
export declare namespace WrenchClient {
|
|
342
|
-
export declare type { TagId, FlowId, ServiceId, DecisionId, AstBodyType, Direction, ValueType, ProgramStatus, HitPolicy, AssociationType, ColumnExpressionType, FlowCommandMessageType, AstCommandValue, CommandsAndChanges, AstChangeset, ProgramMessage, AstCommand, TypeDef, AstBody, Headers, AstSource, ProgramAssociation, Site, Entity, EntityId, CreateBuilder, DeleteBuilder, AstDecision, AstDecisionRow, AstDecisionCell, AstFlow, FlowAstCommandMessage, FlowAstCommandRange, AstFlowInputType, AstFlowRoot, AstFlowTaskNode, AstFlowRefNode, AstFlowSwitchNode, AstFlowInputNode, AstFlowNode, AstService, AstTag, AstTagValue, AstBranch, ServiceErrorMsg, ServiceErrorProps, Service, Store, StoreError, StoreConfig, DebugRequest, DebugResponse, ProgramResult, ServiceResult, DecisionResult, DecisionLog, DecisionLogEntry, FlowProgramStepPointerType, FlowProgramStepRefType, FlowExecutionStatus, FlowResult, FlowResultLog, FlowResultErrorLog, Input, Output, CsvRow, VersionEntity, DiffRequest, DiffResponse, AstTagSummaryEntity, AstTagSummary };
|
|
343
662
|
}
|
|
344
663
|
|
|
345
664
|
export declare namespace WrenchClient {
|
|
346
665
|
const StoreErrorImpl: typeof StoreErrorImpl;
|
|
347
666
|
const StoreImpl: typeof DefaultStore;
|
|
348
|
-
export class ServiceImpl implements
|
|
667
|
+
export class ServiceImpl implements HdesApi.Service {
|
|
349
668
|
private _store;
|
|
350
669
|
private _branch;
|
|
351
670
|
private _headers;
|
|
352
|
-
constructor(store:
|
|
353
|
-
withBranch(branchName?: string):
|
|
671
|
+
constructor(store: HdesApi.Store, branchName?: string);
|
|
672
|
+
withBranch(branchName?: string): ServiceImpl;
|
|
354
673
|
get branch(): string | undefined;
|
|
355
|
-
create():
|
|
356
|
-
delete():
|
|
357
|
-
update(id: string, body:
|
|
358
|
-
createAsset(name: string, desc: string | undefined, type:
|
|
359
|
-
ast(id: string, body:
|
|
360
|
-
getSite(): Promise<
|
|
361
|
-
debug(debug:
|
|
362
|
-
copy(id: string, name: string): Promise<
|
|
363
|
-
version(): Promise<
|
|
364
|
-
diff(input:
|
|
365
|
-
summary(tagId: string): Promise<
|
|
674
|
+
create(): HdesApi.CreateBuilder;
|
|
675
|
+
delete(): HdesApi.DeleteBuilder;
|
|
676
|
+
update(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
|
|
677
|
+
createAsset(name: string, desc: string | undefined, type: HdesApi.AstBodyType | "SITE", body?: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
|
|
678
|
+
ast(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Entity<any>>;
|
|
679
|
+
getSite(): Promise<HdesApi.Site>;
|
|
680
|
+
debug(debug: HdesApi.DebugRequest): Promise<HdesApi.DebugResponse>;
|
|
681
|
+
copy(id: string, name: string): Promise<HdesApi.Site>;
|
|
682
|
+
version(): Promise<HdesApi.VersionEntity>;
|
|
683
|
+
diff(input: HdesApi.DiffRequest): Promise<HdesApi.DiffResponse>;
|
|
684
|
+
summary(tagId: string): Promise<HdesApi.AstTagSummary>;
|
|
366
685
|
}
|
|
367
686
|
}
|
|
368
687
|
|
|
369
688
|
export declare const WrenchComposer: default_2.FC<WrenchComposerProps>;
|
|
370
689
|
|
|
371
690
|
declare interface WrenchComposerProps {
|
|
372
|
-
service:
|
|
691
|
+
service: HdesApi.Service;
|
|
373
692
|
locked?: boolean;
|
|
374
693
|
}
|
|
375
694
|
|
|
@@ -381,13 +700,13 @@ export { }
|
|
|
381
700
|
|
|
382
701
|
|
|
383
702
|
declare namespace Burger {
|
|
384
|
-
const Provider: import("react").FC<AppProviderProps>;
|
|
385
|
-
const useApps: () => AppContextType;
|
|
386
|
-
const useDrawer: () => DrawerContextType;
|
|
387
|
-
const useTabs: () => TabsContextType;
|
|
388
|
-
const useSecondary: () => SecondaryContextType;
|
|
389
|
-
const Dialog: import("react").FC<StyledDialogProps>;
|
|
390
|
-
const Select: import("react").FC<StyledSelectProps<string>>;
|
|
703
|
+
const Provider: import("react").FC<import("./context/AppContext").AppProviderProps>;
|
|
704
|
+
const useApps: () => import("./BurgerApi").BurgerApi.AppContextType;
|
|
705
|
+
const useDrawer: () => import("./BurgerApi").BurgerApi.DrawerContextType;
|
|
706
|
+
const useTabs: () => import("./BurgerApi").BurgerApi.TabsContextType;
|
|
707
|
+
const useSecondary: () => import("./BurgerApi").BurgerApi.SecondaryContextType;
|
|
708
|
+
const Dialog: import("react").FC<import("./styles/StyledDialog").StyledDialogProps>;
|
|
709
|
+
const Select: import("react").FC<import("./styles/StyledSelect").StyledSelectProps<string>>;
|
|
391
710
|
const SelectMultiple: import("react").FC<{
|
|
392
711
|
multiline?: boolean;
|
|
393
712
|
open?: boolean;
|
|
@@ -397,13 +716,13 @@ declare namespace Burger {
|
|
|
397
716
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
398
717
|
}[];
|
|
399
718
|
renderValue?: (values: string[]) => React.ReactNode;
|
|
400
|
-
} & StyledSelectProps<string[]>>;
|
|
401
|
-
const TextField: import("react").FC<StyledInputFieldProps<string>>;
|
|
402
|
-
const NumberField: import("react").FC<StyledInputFieldProps<number>>;
|
|
403
|
-
const FileField: import("react").FC<StyledInputFieldProps<string>>;
|
|
404
|
-
const DateField: import("react").FC<StyledInputFieldProps<string>>;
|
|
405
|
-
const DateTimeField: import("react").FC<StyledInputFieldProps<string>>;
|
|
406
|
-
const TreeItem: import("react").FC<StyledTreeItemProps>;
|
|
719
|
+
} & import("./styles/StyledSelect").StyledSelectProps<string[]>>;
|
|
720
|
+
const TextField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
|
|
721
|
+
const NumberField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<number>>;
|
|
722
|
+
const FileField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
|
|
723
|
+
const DateField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
|
|
724
|
+
const DateTimeField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
|
|
725
|
+
const TreeItem: import("react").FC<import("./styles/StyledTreeItem").StyledTreeItemProps>;
|
|
407
726
|
const TreeItemRoot: import("@emotion/styled").StyledComponent<import("@mui/lab/TreeItem").TreeItemProps & import("react").RefAttributes<HTMLLIElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
408
727
|
const TreeItemOption: import("react").FC<{
|
|
409
728
|
labelText: React.ReactNode;
|
|
@@ -412,8 +731,8 @@ declare namespace Burger {
|
|
|
412
731
|
icon?: React.ElementType<import("@mui/material").SvgIconProps>;
|
|
413
732
|
onClick: () => void;
|
|
414
733
|
}>;
|
|
415
|
-
const SearchField: import("react").FC<StyledInputFieldProps<string>>;
|
|
416
|
-
const TransferList: import("react").FC<StyledTransferListProps>;
|
|
734
|
+
const SearchField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
|
|
735
|
+
const TransferList: import("react").FC<import("./styles/StyledTransferList").StyledTransferListProps>;
|
|
417
736
|
const PrimaryButton: import("react").FC<{
|
|
418
737
|
label: string;
|
|
419
738
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -431,10 +750,10 @@ declare namespace Burger {
|
|
|
431
750
|
onChange?: (newValue: boolean) => void;
|
|
432
751
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
433
752
|
}>;
|
|
434
|
-
const Switch: import("react").FC<StyledSwitchProps>;
|
|
753
|
+
const Switch: import("react").FC<import("./styles/StyledSwitch").StyledSwitchProps>;
|
|
435
754
|
const RadioButton: import("@emotion/styled").StyledComponent<import("@mui/material").RadioProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
436
|
-
const DateTimeFormatter: import("react").FC<DateTimeFormatProps>;
|
|
437
|
-
const ReleaseTable: import("react").FC<ReleaseTableProps>;
|
|
755
|
+
const DateTimeFormatter: import("react").FC<import("./utils/DateTimeFormatter").DateTimeFormatProps>;
|
|
756
|
+
const ReleaseTable: import("react").FC<import("./releases/ReleaseTable").ReleaseTableProps>;
|
|
438
757
|
}
|
|
439
758
|
|
|
440
759
|
|
|
@@ -490,30 +809,184 @@ declare module '@mui/material/styles' {
|
|
|
490
809
|
}
|
|
491
810
|
|
|
492
811
|
|
|
812
|
+
declare namespace HdesClient {
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
|
|
493
816
|
declare namespace HdesClient {
|
|
494
817
|
const StoreErrorImpl: typeof StoreErrorImplAs;
|
|
495
818
|
const StoreImpl: typeof DefaultStore;
|
|
496
|
-
class ServiceImpl implements
|
|
819
|
+
class ServiceImpl implements HdesApi.Service {
|
|
497
820
|
private _store;
|
|
498
821
|
private _branch;
|
|
499
822
|
private _headers;
|
|
500
|
-
constructor(store:
|
|
501
|
-
withBranch(branchName?: string):
|
|
823
|
+
constructor(store: HdesApi.Store, branchName?: string);
|
|
824
|
+
withBranch(branchName?: string): ServiceImpl;
|
|
502
825
|
get branch(): string | undefined;
|
|
503
|
-
create():
|
|
504
|
-
delete():
|
|
505
|
-
update(id: string, body:
|
|
506
|
-
createAsset(name: string, desc: string | undefined, type:
|
|
507
|
-
ast(id: string, body:
|
|
508
|
-
getSite(): Promise<
|
|
509
|
-
debug(debug:
|
|
510
|
-
copy(id: string, name: string): Promise<
|
|
511
|
-
version(): Promise<
|
|
512
|
-
diff(input:
|
|
513
|
-
summary(tagId: string): Promise<
|
|
826
|
+
create(): HdesApi.CreateBuilder;
|
|
827
|
+
delete(): HdesApi.DeleteBuilder;
|
|
828
|
+
update(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
|
|
829
|
+
createAsset(name: string, desc: string | undefined, type: HdesApi.AstBodyType | "SITE", body?: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
|
|
830
|
+
ast(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Entity<any>>;
|
|
831
|
+
getSite(): Promise<HdesApi.Site>;
|
|
832
|
+
debug(debug: HdesApi.DebugRequest): Promise<HdesApi.DebugResponse>;
|
|
833
|
+
copy(id: string, name: string): Promise<HdesApi.Site>;
|
|
834
|
+
version(): Promise<HdesApi.VersionEntity>;
|
|
835
|
+
diff(input: HdesApi.DiffRequest): Promise<HdesApi.DiffResponse>;
|
|
836
|
+
summary(tagId: string): Promise<HdesApi.AstTagSummary>;
|
|
514
837
|
}
|
|
515
838
|
}
|
|
516
839
|
|
|
840
|
+
|
|
841
|
+
declare namespace Composer {
|
|
842
|
+
interface SearchData {
|
|
843
|
+
values: readonly SearchDataEntry[];
|
|
844
|
+
filterLinks(keyword: string): readonly SearchResult[];
|
|
845
|
+
filterWorkflows(keyword: string): readonly SearchResult[];
|
|
846
|
+
filterArticles(keyword: string): readonly SearchResult[];
|
|
847
|
+
}
|
|
848
|
+
interface SearchDataEntry {
|
|
849
|
+
id: string;
|
|
850
|
+
type: "ARTICLE" | "LINK" | "WORKFLOW";
|
|
851
|
+
values: readonly SearchableValue[];
|
|
852
|
+
}
|
|
853
|
+
interface SearchResult {
|
|
854
|
+
source: SearchDataEntry;
|
|
855
|
+
matches: SearchableValue[];
|
|
856
|
+
}
|
|
857
|
+
interface SearchableValue {
|
|
858
|
+
id: string;
|
|
859
|
+
value: string;
|
|
860
|
+
type: "ARTICLE_NAME" | "ARTICLE_PAGE" | "WORKFLOW_NAME" | "WORKFLOW_LABEL" | "LINK_VALUE" | "LINK_LABEL";
|
|
861
|
+
}
|
|
862
|
+
type NavType = "ARTICLE_LINKS" | "ARTICLE_WORKFLOWS" | "ARTICLE_PAGES";
|
|
863
|
+
interface Nav {
|
|
864
|
+
type: NavType;
|
|
865
|
+
value?: string | null;
|
|
866
|
+
value2?: string | null;
|
|
867
|
+
}
|
|
868
|
+
interface TabData {
|
|
869
|
+
nav?: Nav;
|
|
870
|
+
withNav(nav: Nav): TabData;
|
|
871
|
+
}
|
|
872
|
+
interface Tab extends BurgerApi.TabSession<TabData> {
|
|
873
|
+
}
|
|
874
|
+
interface PageUpdate {
|
|
875
|
+
saved: boolean;
|
|
876
|
+
origin: StencilClient.Page;
|
|
877
|
+
value: StencilClient.LocalisedContent;
|
|
878
|
+
withValue(value: StencilClient.LocalisedContent): PageUpdate;
|
|
879
|
+
}
|
|
880
|
+
interface SessionFilter {
|
|
881
|
+
locale?: StencilClient.LocaleId;
|
|
882
|
+
withLocale(locale?: StencilClient.LocaleId): SessionFilter;
|
|
883
|
+
}
|
|
884
|
+
interface Session {
|
|
885
|
+
site: StencilClient.Site;
|
|
886
|
+
pages: Record<StencilClient.PageId, PageUpdate>;
|
|
887
|
+
articles: ArticleView[];
|
|
888
|
+
workflows: WorkflowView[];
|
|
889
|
+
links: LinkView[];
|
|
890
|
+
search: SearchData;
|
|
891
|
+
filter: SessionFilter;
|
|
892
|
+
getArticleName(articleId: StencilClient.ArticleId): {
|
|
893
|
+
missing: boolean;
|
|
894
|
+
name: string;
|
|
895
|
+
};
|
|
896
|
+
getArticleView(articleId: StencilClient.ArticleId): ArticleView;
|
|
897
|
+
getLinkView(linkId: StencilClient.LinkId): LinkView;
|
|
898
|
+
getLinkName(linkId: StencilClient.LinkId): {
|
|
899
|
+
missing: boolean;
|
|
900
|
+
name: string;
|
|
901
|
+
};
|
|
902
|
+
getWorkflowView(workflowId: StencilClient.WorkflowId): WorkflowView;
|
|
903
|
+
getWorkflowName(workflowId: StencilClient.WorkflowId): {
|
|
904
|
+
missing: boolean;
|
|
905
|
+
name: string;
|
|
906
|
+
};
|
|
907
|
+
getArticlesForLocale(locale: StencilClient.LocaleId): StencilClient.Article[];
|
|
908
|
+
getArticlesForLocales(locales: StencilClient.LocaleId[]): StencilClient.Article[];
|
|
909
|
+
withPage(page: StencilClient.PageId): Session;
|
|
910
|
+
withPageValue(page: StencilClient.PageId, value: StencilClient.LocalisedContent): Session;
|
|
911
|
+
withoutPages(pages: StencilClient.PageId[]): Session;
|
|
912
|
+
withLocaleFilter(locale?: StencilClient.LocaleId): Session;
|
|
913
|
+
withSite(site: StencilClient.Site): Session;
|
|
914
|
+
}
|
|
915
|
+
interface Actions {
|
|
916
|
+
handleLoad(): Promise<void>;
|
|
917
|
+
handleLoadSite(): Promise<void>;
|
|
918
|
+
handlePageUpdate(page: StencilClient.PageId, value: StencilClient.LocalisedContent): void;
|
|
919
|
+
handlePageUpdateRemove(pages: StencilClient.PageId[]): void;
|
|
920
|
+
handleLocaleFilter(locale?: StencilClient.LocaleId): void;
|
|
921
|
+
}
|
|
922
|
+
interface ContextType {
|
|
923
|
+
session: Session;
|
|
924
|
+
actions: Actions;
|
|
925
|
+
service: StencilClient.Service;
|
|
926
|
+
}
|
|
927
|
+
interface ArticleView {
|
|
928
|
+
article: StencilClient.Article;
|
|
929
|
+
pages: PageView[];
|
|
930
|
+
canCreate: StencilClient.SiteLocale[];
|
|
931
|
+
links: LinkView[];
|
|
932
|
+
workflows: WorkflowView[];
|
|
933
|
+
children: Composer.ArticleView[];
|
|
934
|
+
displayOrder: number;
|
|
935
|
+
getPageById(pageId: StencilClient.PageId): PageView;
|
|
936
|
+
getPageByLocaleId(localeId: StencilClient.LocaleId): PageView;
|
|
937
|
+
findPageByLocaleId(localeId: StencilClient.LocaleId): PageView | undefined;
|
|
938
|
+
}
|
|
939
|
+
interface PageView {
|
|
940
|
+
title: string;
|
|
941
|
+
page: StencilClient.Page;
|
|
942
|
+
locale: StencilClient.SiteLocale;
|
|
943
|
+
}
|
|
944
|
+
interface LinkView {
|
|
945
|
+
link: StencilClient.Link;
|
|
946
|
+
labels: LabelView[];
|
|
947
|
+
}
|
|
948
|
+
interface WorkflowView {
|
|
949
|
+
workflow: StencilClient.Workflow;
|
|
950
|
+
labels: LabelView[];
|
|
951
|
+
}
|
|
952
|
+
interface LabelView {
|
|
953
|
+
label: StencilClient.LocaleLabel;
|
|
954
|
+
locale: StencilClient.SiteLocale;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
declare namespace Composer {
|
|
960
|
+
const createTab: (props: {
|
|
961
|
+
nav: Composer.Nav;
|
|
962
|
+
page?: StencilClient.Page;
|
|
963
|
+
}) => ImmutableTabData;
|
|
964
|
+
const ComposerContext: React.Context<ContextType>;
|
|
965
|
+
const useUnsaved: (article: StencilClient.Article) => boolean;
|
|
966
|
+
const useComposer: () => {
|
|
967
|
+
session: Session;
|
|
968
|
+
service: StencilClient.Service;
|
|
969
|
+
actions: Actions;
|
|
970
|
+
site: StencilClient.Site;
|
|
971
|
+
isArticleSaved: (article: StencilClient.Article) => boolean;
|
|
972
|
+
};
|
|
973
|
+
const useSite: () => StencilClient.Site;
|
|
974
|
+
const useSession: () => Session;
|
|
975
|
+
const useNav: () => {
|
|
976
|
+
handleInTab: (props: {
|
|
977
|
+
article: StencilClient.Article;
|
|
978
|
+
type: Composer.NavType;
|
|
979
|
+
locale?: string | null;
|
|
980
|
+
secondary?: boolean;
|
|
981
|
+
}) => void;
|
|
982
|
+
findTab: (article: StencilClient.Article) => Composer.Tab | undefined;
|
|
983
|
+
};
|
|
984
|
+
const Provider: React.FC<{
|
|
985
|
+
children: React.ReactNode;
|
|
986
|
+
service: StencilClient.Service;
|
|
987
|
+
}>;
|
|
988
|
+
}
|
|
989
|
+
|
|
517
990
|
declare namespace StencilClient {
|
|
518
991
|
type PageId = string;
|
|
519
992
|
type LinkId = string;
|
|
@@ -795,156 +1268,6 @@ declare namespace StencilClient {
|
|
|
795
1268
|
}
|
|
796
1269
|
|
|
797
1270
|
|
|
798
|
-
declare namespace Composer {
|
|
799
|
-
interface SearchData {
|
|
800
|
-
values: readonly SearchDataEntry[];
|
|
801
|
-
filterLinks(keyword: string): readonly SearchResult[];
|
|
802
|
-
filterWorkflows(keyword: string): readonly SearchResult[];
|
|
803
|
-
filterArticles(keyword: string): readonly SearchResult[];
|
|
804
|
-
}
|
|
805
|
-
interface SearchDataEntry {
|
|
806
|
-
id: string;
|
|
807
|
-
type: "ARTICLE" | "LINK" | "WORKFLOW";
|
|
808
|
-
values: readonly SearchableValue[];
|
|
809
|
-
}
|
|
810
|
-
interface SearchResult {
|
|
811
|
-
source: SearchDataEntry;
|
|
812
|
-
matches: SearchableValue[];
|
|
813
|
-
}
|
|
814
|
-
interface SearchableValue {
|
|
815
|
-
id: string;
|
|
816
|
-
value: string;
|
|
817
|
-
type: "ARTICLE_NAME" | "ARTICLE_PAGE" | "WORKFLOW_NAME" | "WORKFLOW_LABEL" | "LINK_VALUE" | "LINK_LABEL";
|
|
818
|
-
}
|
|
819
|
-
type NavType = "ARTICLE_LINKS" | "ARTICLE_WORKFLOWS" | "ARTICLE_PAGES";
|
|
820
|
-
interface Nav {
|
|
821
|
-
type: NavType;
|
|
822
|
-
value?: string | null;
|
|
823
|
-
value2?: string | null;
|
|
824
|
-
}
|
|
825
|
-
interface TabData {
|
|
826
|
-
nav?: Nav;
|
|
827
|
-
withNav(nav: Nav): TabData;
|
|
828
|
-
}
|
|
829
|
-
interface Tab extends Burger.TabSession<TabData> {
|
|
830
|
-
}
|
|
831
|
-
interface PageUpdate {
|
|
832
|
-
saved: boolean;
|
|
833
|
-
origin: StencilClient.Page;
|
|
834
|
-
value: StencilClient.LocalisedContent;
|
|
835
|
-
withValue(value: StencilClient.LocalisedContent): PageUpdate;
|
|
836
|
-
}
|
|
837
|
-
interface SessionFilter {
|
|
838
|
-
locale?: StencilClient.LocaleId;
|
|
839
|
-
withLocale(locale?: StencilClient.LocaleId): SessionFilter;
|
|
840
|
-
}
|
|
841
|
-
interface Session {
|
|
842
|
-
site: StencilClient.Site;
|
|
843
|
-
pages: Record<StencilClient.PageId, PageUpdate>;
|
|
844
|
-
articles: ArticleView[];
|
|
845
|
-
workflows: WorkflowView[];
|
|
846
|
-
links: LinkView[];
|
|
847
|
-
search: SearchData;
|
|
848
|
-
filter: SessionFilter;
|
|
849
|
-
getArticleName(articleId: StencilClient.ArticleId): {
|
|
850
|
-
missing: boolean;
|
|
851
|
-
name: string;
|
|
852
|
-
};
|
|
853
|
-
getArticleView(articleId: StencilClient.ArticleId): ArticleView;
|
|
854
|
-
getLinkView(linkId: StencilClient.LinkId): LinkView;
|
|
855
|
-
getLinkName(linkId: StencilClient.LinkId): {
|
|
856
|
-
missing: boolean;
|
|
857
|
-
name: string;
|
|
858
|
-
};
|
|
859
|
-
getWorkflowView(workflowId: StencilClient.WorkflowId): WorkflowView;
|
|
860
|
-
getWorkflowName(workflowId: StencilClient.WorkflowId): {
|
|
861
|
-
missing: boolean;
|
|
862
|
-
name: string;
|
|
863
|
-
};
|
|
864
|
-
getArticlesForLocale(locale: StencilClient.LocaleId): StencilClient.Article[];
|
|
865
|
-
getArticlesForLocales(locales: StencilClient.LocaleId[]): StencilClient.Article[];
|
|
866
|
-
withPage(page: StencilClient.PageId): Session;
|
|
867
|
-
withPageValue(page: StencilClient.PageId, value: StencilClient.LocalisedContent): Session;
|
|
868
|
-
withoutPages(pages: StencilClient.PageId[]): Session;
|
|
869
|
-
withLocaleFilter(locale?: StencilClient.LocaleId): Session;
|
|
870
|
-
withSite(site: StencilClient.Site): Session;
|
|
871
|
-
}
|
|
872
|
-
interface Actions {
|
|
873
|
-
handleLoad(): Promise<void>;
|
|
874
|
-
handleLoadSite(): Promise<void>;
|
|
875
|
-
handlePageUpdate(page: StencilClient.PageId, value: StencilClient.LocalisedContent): void;
|
|
876
|
-
handlePageUpdateRemove(pages: StencilClient.PageId[]): void;
|
|
877
|
-
handleLocaleFilter(locale?: StencilClient.LocaleId): void;
|
|
878
|
-
}
|
|
879
|
-
interface ContextType {
|
|
880
|
-
session: Session;
|
|
881
|
-
actions: Actions;
|
|
882
|
-
service: StencilClient.Service;
|
|
883
|
-
}
|
|
884
|
-
interface ArticleView {
|
|
885
|
-
article: StencilClient.Article;
|
|
886
|
-
pages: PageView[];
|
|
887
|
-
canCreate: StencilClient.SiteLocale[];
|
|
888
|
-
links: LinkView[];
|
|
889
|
-
workflows: WorkflowView[];
|
|
890
|
-
children: Composer.ArticleView[];
|
|
891
|
-
displayOrder: number;
|
|
892
|
-
getPageById(pageId: StencilClient.PageId): PageView;
|
|
893
|
-
getPageByLocaleId(localeId: StencilClient.LocaleId): PageView;
|
|
894
|
-
findPageByLocaleId(localeId: StencilClient.LocaleId): PageView | undefined;
|
|
895
|
-
}
|
|
896
|
-
interface PageView {
|
|
897
|
-
title: string;
|
|
898
|
-
page: StencilClient.Page;
|
|
899
|
-
locale: StencilClient.SiteLocale;
|
|
900
|
-
}
|
|
901
|
-
interface LinkView {
|
|
902
|
-
link: StencilClient.Link;
|
|
903
|
-
labels: LabelView[];
|
|
904
|
-
}
|
|
905
|
-
interface WorkflowView {
|
|
906
|
-
workflow: StencilClient.Workflow;
|
|
907
|
-
labels: LabelView[];
|
|
908
|
-
}
|
|
909
|
-
interface LabelView {
|
|
910
|
-
label: StencilClient.LocaleLabel;
|
|
911
|
-
locale: StencilClient.SiteLocale;
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
declare namespace Composer {
|
|
917
|
-
const createTab: (props: {
|
|
918
|
-
nav: Composer.Nav;
|
|
919
|
-
page?: StencilClient.Page;
|
|
920
|
-
}) => ImmutableTabData;
|
|
921
|
-
const ComposerContext: React.Context<ContextType>;
|
|
922
|
-
const useUnsaved: (article: StencilClient.Article) => boolean;
|
|
923
|
-
const useComposer: () => {
|
|
924
|
-
session: Session;
|
|
925
|
-
service: StencilClient.Service;
|
|
926
|
-
actions: Actions;
|
|
927
|
-
site: StencilClient.Site;
|
|
928
|
-
isArticleSaved: (article: StencilClient.Article) => boolean;
|
|
929
|
-
};
|
|
930
|
-
const useSite: () => StencilClient.Site;
|
|
931
|
-
const useSession: () => Session;
|
|
932
|
-
const useNav: () => {
|
|
933
|
-
handleInTab: (props: {
|
|
934
|
-
article: StencilClient.Article;
|
|
935
|
-
type: Composer.NavType;
|
|
936
|
-
locale?: string | null;
|
|
937
|
-
secondary?: boolean;
|
|
938
|
-
}) => void;
|
|
939
|
-
findTab: (article: StencilClient.Article) => Composer.Tab | undefined;
|
|
940
|
-
};
|
|
941
|
-
const Provider: React.FC<{
|
|
942
|
-
children: React.ReactNode;
|
|
943
|
-
service: StencilClient.Service;
|
|
944
|
-
}>;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
1271
|
declare namespace Composer {
|
|
949
1272
|
interface Nav {
|
|
950
1273
|
value?: string | null;
|
|
@@ -953,55 +1276,55 @@ declare namespace Composer {
|
|
|
953
1276
|
nav?: Nav;
|
|
954
1277
|
withNav(nav: Nav): TabData;
|
|
955
1278
|
}
|
|
956
|
-
interface Tab extends
|
|
1279
|
+
interface Tab extends BurgerApi.TabSession<TabData> {
|
|
957
1280
|
}
|
|
958
1281
|
interface DebugSession {
|
|
959
|
-
error?:
|
|
960
|
-
debug?:
|
|
1282
|
+
error?: HdesApi.StoreError;
|
|
1283
|
+
debug?: HdesApi.DebugResponse;
|
|
961
1284
|
csv?: string;
|
|
962
1285
|
json?: string;
|
|
963
|
-
selected:
|
|
1286
|
+
selected: HdesApi.EntityId;
|
|
964
1287
|
inputType: DebugInputType;
|
|
965
1288
|
}
|
|
966
1289
|
type DebugInputType = "CSV" | "JSON";
|
|
967
1290
|
interface DebugSessions {
|
|
968
|
-
selected?:
|
|
969
|
-
values: Record<
|
|
1291
|
+
selected?: HdesApi.EntityId;
|
|
1292
|
+
values: Record<HdesApi.EntityId, DebugSession>;
|
|
970
1293
|
}
|
|
971
1294
|
interface PageUpdate {
|
|
972
1295
|
saved: boolean;
|
|
973
|
-
origin:
|
|
974
|
-
value:
|
|
975
|
-
withValue(value:
|
|
1296
|
+
origin: HdesApi.Entity<any>;
|
|
1297
|
+
value: HdesApi.AstCommand[];
|
|
1298
|
+
withValue(value: HdesApi.AstCommand[]): PageUpdate;
|
|
976
1299
|
}
|
|
977
1300
|
interface Session {
|
|
978
|
-
site:
|
|
979
|
-
pages: Record<
|
|
1301
|
+
site: HdesApi.Site;
|
|
1302
|
+
pages: Record<HdesApi.EntityId, PageUpdate>;
|
|
980
1303
|
debug: DebugSessions;
|
|
981
1304
|
branchName?: string;
|
|
982
|
-
getDecision(decisionName: string): undefined |
|
|
983
|
-
getFlow(flowName: string): undefined |
|
|
984
|
-
getService(serviceName: string): undefined |
|
|
985
|
-
getEntity(id:
|
|
1305
|
+
getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
|
|
1306
|
+
getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
|
|
1307
|
+
getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
|
|
1308
|
+
getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
|
|
986
1309
|
withDebug(page: DebugSession): Session;
|
|
987
|
-
withPage(page:
|
|
988
|
-
withPageValue(page:
|
|
989
|
-
withoutPages(pages:
|
|
1310
|
+
withPage(page: HdesApi.EntityId): Session;
|
|
1311
|
+
withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
|
|
1312
|
+
withoutPages(pages: HdesApi.EntityId[]): Session;
|
|
990
1313
|
withBranch(branchName?: string): Session;
|
|
991
|
-
withSite(site:
|
|
1314
|
+
withSite(site: HdesApi.Site): Session;
|
|
992
1315
|
}
|
|
993
1316
|
interface Actions {
|
|
994
1317
|
handleLoad(): Promise<void>;
|
|
995
|
-
handleLoadSite(site?:
|
|
1318
|
+
handleLoadSite(site?: HdesApi.Site): Promise<void>;
|
|
996
1319
|
handleDebugUpdate(debug: DebugSession): void;
|
|
997
|
-
handlePageUpdate(page:
|
|
998
|
-
handlePageUpdateRemove(pages:
|
|
1320
|
+
handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
|
|
1321
|
+
handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
|
|
999
1322
|
handleBranchUpdate(branchName?: string): void;
|
|
1000
1323
|
}
|
|
1001
1324
|
interface ContextType {
|
|
1002
1325
|
session: Session;
|
|
1003
1326
|
actions: Actions;
|
|
1004
|
-
service:
|
|
1327
|
+
service: HdesApi.Service;
|
|
1005
1328
|
}
|
|
1006
1329
|
}
|
|
1007
1330
|
|
|
@@ -1009,61 +1332,61 @@ declare namespace Composer {
|
|
|
1009
1332
|
declare namespace Composer {
|
|
1010
1333
|
const createTab: (props: {
|
|
1011
1334
|
nav: Composer.Nav;
|
|
1012
|
-
page?:
|
|
1335
|
+
page?: HdesApi.Entity<any>;
|
|
1013
1336
|
}) => ImmutableTabData;
|
|
1014
1337
|
const ComposerContext: React.Context<ContextType>;
|
|
1015
|
-
const useUnsaved: (entity:
|
|
1338
|
+
const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
|
|
1016
1339
|
const useComposer: () => {
|
|
1017
1340
|
session: Session;
|
|
1018
|
-
service:
|
|
1341
|
+
service: HdesApi.Service;
|
|
1019
1342
|
actions: Actions;
|
|
1020
|
-
site:
|
|
1021
|
-
isArticleSaved: (entity:
|
|
1343
|
+
site: HdesApi.Site;
|
|
1344
|
+
isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
|
|
1022
1345
|
};
|
|
1023
|
-
const useSite: () =>
|
|
1346
|
+
const useSite: () => HdesApi.Site;
|
|
1024
1347
|
const useBranchName: () => string | undefined;
|
|
1025
1348
|
const useSession: () => Session;
|
|
1026
1349
|
const useNav: () => {
|
|
1027
1350
|
handleInTab: (props: {
|
|
1028
|
-
article:
|
|
1351
|
+
article: HdesApi.Entity<any>;
|
|
1029
1352
|
}) => void;
|
|
1030
|
-
findTab: (article:
|
|
1353
|
+
findTab: (article: HdesApi.Entity<any>) => Composer.Tab | undefined;
|
|
1031
1354
|
};
|
|
1032
1355
|
const useDebug: () => {
|
|
1033
|
-
handleDebugInit: (selected:
|
|
1356
|
+
handleDebugInit: (selected: HdesApi.EntityId) => void;
|
|
1034
1357
|
};
|
|
1035
1358
|
const Provider: React.FC<{
|
|
1036
1359
|
children: React.ReactNode;
|
|
1037
|
-
service:
|
|
1360
|
+
service: HdesApi.Service;
|
|
1038
1361
|
}>;
|
|
1039
1362
|
}
|
|
1040
1363
|
|
|
1041
1364
|
declare namespace Decision {
|
|
1042
1365
|
const Table: import("react").FC<{
|
|
1043
|
-
ast: import("../../client
|
|
1366
|
+
ast: import("../../client").HdesApi.AstDecision;
|
|
1044
1367
|
renderHeader: (props: import("./DecisionTable").RenderHeaderProps) => React.ReactNode;
|
|
1045
1368
|
renderRow: (props: import("./DecisionTable").RenderRowProps) => React.ReactNode;
|
|
1046
1369
|
renderCell: (props: import("./DecisionTable").RenderCellProps) => React.ReactNode;
|
|
1047
1370
|
}>;
|
|
1048
1371
|
const Cell: import("react").FC<{
|
|
1049
|
-
row: import("../../client
|
|
1050
|
-
header: import("../../client
|
|
1051
|
-
cell: import("../../client
|
|
1372
|
+
row: import("../../client").HdesApi.AstDecisionRow;
|
|
1373
|
+
header: import("../../client").HdesApi.TypeDef;
|
|
1374
|
+
cell: import("../../client").HdesApi.AstDecisionCell;
|
|
1052
1375
|
onClick: () => void;
|
|
1053
1376
|
}>;
|
|
1054
1377
|
const Header: import("react").FC<{
|
|
1055
|
-
ast: import("../../client
|
|
1056
|
-
headers: import("../../client
|
|
1378
|
+
ast: import("../../client").HdesApi.AstDecision;
|
|
1379
|
+
headers: import("../../client").HdesApi.TypeDef[];
|
|
1057
1380
|
children: React.ReactNode;
|
|
1058
|
-
onClick: (header: import("../../client
|
|
1381
|
+
onClick: (header: import("../../client").HdesApi.TypeDef) => void;
|
|
1059
1382
|
}>;
|
|
1060
1383
|
const Row: import("react").FC<{
|
|
1061
|
-
row: import("../../client
|
|
1062
|
-
headers: import("../../client
|
|
1384
|
+
row: import("../../client").HdesApi.AstDecisionRow;
|
|
1385
|
+
headers: import("../../client").HdesApi.TypeDef[];
|
|
1063
1386
|
renderCell: (props: {
|
|
1064
|
-
row: import("../../client
|
|
1065
|
-
header: import("../../client
|
|
1066
|
-
cell: import("../../client
|
|
1387
|
+
row: import("../../client").HdesApi.AstDecisionRow;
|
|
1388
|
+
header: import("../../client").HdesApi.TypeDef;
|
|
1389
|
+
cell: import("../../client").HdesApi.AstDecisionCell;
|
|
1067
1390
|
}) => React.ReactNode;
|
|
1068
1391
|
}>;
|
|
1069
1392
|
}
|