@dxs-ts/eveli-ide 0.0.7 → 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.
Files changed (3) hide show
  1. package/build/index.d.ts +445 -122
  2. package/build/index.js +649 -649
  3. 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 interface ServiceErrorMsg {
17
- id: string;
18
- value: string;
19
- }
20
-
21
- declare interface ServiceErrorProps {
22
- text: string;
23
- status: number;
24
- errors: ServiceErrorMsg[];
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 WrenchClient.Service {
667
+ export class ServiceImpl implements HdesApi.Service {
349
668
  private _store;
350
669
  private _branch;
351
670
  private _headers;
352
- constructor(store: WrenchClient.Store, branchName?: string);
353
- withBranch(branchName?: string): WrenchClient.ServiceImpl;
671
+ constructor(store: HdesApi.Store, branchName?: string);
672
+ withBranch(branchName?: string): ServiceImpl;
354
673
  get branch(): string | undefined;
355
- create(): WrenchClient.CreateBuilder;
356
- delete(): WrenchClient.DeleteBuilder;
357
- update(id: string, body: WrenchClient.AstCommand[]): Promise<WrenchClient.Site>;
358
- createAsset(name: string, desc: string | undefined, type: WrenchClient.AstBodyType | "SITE", body?: WrenchClient.AstCommand[]): Promise<WrenchClient.Site>;
359
- ast(id: string, body: WrenchClient.AstCommand[]): Promise<WrenchClient.Entity<any>>;
360
- getSite(): Promise<WrenchClient.Site>;
361
- debug(debug: WrenchClient.DebugRequest): Promise<WrenchClient.DebugResponse>;
362
- copy(id: string, name: string): Promise<WrenchClient.Site>;
363
- version(): Promise<WrenchClient.VersionEntity>;
364
- diff(input: WrenchClient.DiffRequest): Promise<WrenchClient.DiffResponse>;
365
- summary(tagId: string): Promise<WrenchClient.AstTagSummary>;
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: WrenchClient.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,27 +809,31 @@ 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 HdesClient.Service {
819
+ class ServiceImpl implements HdesApi.Service {
497
820
  private _store;
498
821
  private _branch;
499
822
  private _headers;
500
- constructor(store: HdesClient.Store, branchName?: string);
501
- withBranch(branchName?: string): HdesClient.ServiceImpl;
823
+ constructor(store: HdesApi.Store, branchName?: string);
824
+ withBranch(branchName?: string): ServiceImpl;
502
825
  get branch(): string | undefined;
503
- create(): HdesClient.CreateBuilder;
504
- delete(): HdesClient.DeleteBuilder;
505
- update(id: string, body: HdesClient.AstCommand[]): Promise<HdesClient.Site>;
506
- createAsset(name: string, desc: string | undefined, type: HdesClient.AstBodyType | "SITE", body?: HdesClient.AstCommand[]): Promise<HdesClient.Site>;
507
- ast(id: string, body: HdesClient.AstCommand[]): Promise<HdesClient.Entity<any>>;
508
- getSite(): Promise<HdesClient.Site>;
509
- debug(debug: HdesClient.DebugRequest): Promise<HdesClient.DebugResponse>;
510
- copy(id: string, name: string): Promise<HdesClient.Site>;
511
- version(): Promise<HdesClient.VersionEntity>;
512
- diff(input: HdesClient.DiffRequest): Promise<HdesClient.DiffResponse>;
513
- summary(tagId: string): Promise<HdesClient.AstTagSummary>;
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
 
@@ -546,7 +869,7 @@ declare namespace Composer {
546
869
  nav?: Nav;
547
870
  withNav(nav: Nav): TabData;
548
871
  }
549
- interface Tab extends Burger.TabSession<TabData> {
872
+ interface Tab extends BurgerApi.TabSession<TabData> {
550
873
  }
551
874
  interface PageUpdate {
552
875
  saved: boolean;
@@ -953,55 +1276,55 @@ declare namespace Composer {
953
1276
  nav?: Nav;
954
1277
  withNav(nav: Nav): TabData;
955
1278
  }
956
- interface Tab extends Burger.TabSession<TabData> {
1279
+ interface Tab extends BurgerApi.TabSession<TabData> {
957
1280
  }
958
1281
  interface DebugSession {
959
- error?: HdesClient.StoreError;
960
- debug?: HdesClient.DebugResponse;
1282
+ error?: HdesApi.StoreError;
1283
+ debug?: HdesApi.DebugResponse;
961
1284
  csv?: string;
962
1285
  json?: string;
963
- selected: HdesClient.EntityId;
1286
+ selected: HdesApi.EntityId;
964
1287
  inputType: DebugInputType;
965
1288
  }
966
1289
  type DebugInputType = "CSV" | "JSON";
967
1290
  interface DebugSessions {
968
- selected?: HdesClient.EntityId;
969
- values: Record<HdesClient.EntityId, DebugSession>;
1291
+ selected?: HdesApi.EntityId;
1292
+ values: Record<HdesApi.EntityId, DebugSession>;
970
1293
  }
971
1294
  interface PageUpdate {
972
1295
  saved: boolean;
973
- origin: HdesClient.Entity<any>;
974
- value: HdesClient.AstCommand[];
975
- withValue(value: HdesClient.AstCommand[]): PageUpdate;
1296
+ origin: HdesApi.Entity<any>;
1297
+ value: HdesApi.AstCommand[];
1298
+ withValue(value: HdesApi.AstCommand[]): PageUpdate;
976
1299
  }
977
1300
  interface Session {
978
- site: HdesClient.Site;
979
- pages: Record<HdesClient.EntityId, PageUpdate>;
1301
+ site: HdesApi.Site;
1302
+ pages: Record<HdesApi.EntityId, PageUpdate>;
980
1303
  debug: DebugSessions;
981
1304
  branchName?: string;
982
- getDecision(decisionName: string): undefined | HdesClient.Entity<HdesClient.AstDecision>;
983
- getFlow(flowName: string): undefined | HdesClient.Entity<HdesClient.AstFlow>;
984
- getService(serviceName: string): undefined | HdesClient.Entity<HdesClient.AstService>;
985
- getEntity(id: HdesClient.EntityId): undefined | HdesClient.Entity<any>;
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: HdesClient.EntityId): Session;
988
- withPageValue(page: HdesClient.EntityId, value: HdesClient.AstCommand[]): Session;
989
- withoutPages(pages: HdesClient.EntityId[]): Session;
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: HdesClient.Site): Session;
1314
+ withSite(site: HdesApi.Site): Session;
992
1315
  }
993
1316
  interface Actions {
994
1317
  handleLoad(): Promise<void>;
995
- handleLoadSite(site?: HdesClient.Site): Promise<void>;
1318
+ handleLoadSite(site?: HdesApi.Site): Promise<void>;
996
1319
  handleDebugUpdate(debug: DebugSession): void;
997
- handlePageUpdate(page: HdesClient.EntityId, value: HdesClient.AstCommand[]): void;
998
- handlePageUpdateRemove(pages: HdesClient.EntityId[]): void;
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: HdesClient.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?: HdesClient.Entity<any>;
1335
+ page?: HdesApi.Entity<any>;
1013
1336
  }) => ImmutableTabData;
1014
1337
  const ComposerContext: React.Context<ContextType>;
1015
- const useUnsaved: (entity: HdesClient.Entity<any>) => boolean;
1338
+ const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
1016
1339
  const useComposer: () => {
1017
1340
  session: Session;
1018
- service: HdesClient.Service;
1341
+ service: HdesApi.Service;
1019
1342
  actions: Actions;
1020
- site: HdesClient.Site;
1021
- isArticleSaved: (entity: HdesClient.Entity<any>) => boolean;
1343
+ site: HdesApi.Site;
1344
+ isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
1022
1345
  };
1023
- const useSite: () => HdesClient.Site;
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: HdesClient.Entity<any>;
1351
+ article: HdesApi.Entity<any>;
1029
1352
  }) => void;
1030
- findTab: (article: HdesClient.Entity<any>) => Composer.Tab | undefined;
1353
+ findTab: (article: HdesApi.Entity<any>) => Composer.Tab | undefined;
1031
1354
  };
1032
1355
  const useDebug: () => {
1033
- handleDebugInit: (selected: HdesClient.EntityId) => void;
1356
+ handleDebugInit: (selected: HdesApi.EntityId) => void;
1034
1357
  };
1035
1358
  const Provider: React.FC<{
1036
1359
  children: React.ReactNode;
1037
- service: HdesClient.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/api").AstDecision;
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/api").AstDecisionRow;
1050
- header: import("../../client/api").TypeDef;
1051
- cell: import("../../client/api").AstDecisionCell;
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/api").AstDecision;
1056
- headers: import("../../client/api").TypeDef[];
1378
+ ast: import("../../client").HdesApi.AstDecision;
1379
+ headers: import("../../client").HdesApi.TypeDef[];
1057
1380
  children: React.ReactNode;
1058
- onClick: (header: import("../../client/api").TypeDef) => void;
1381
+ onClick: (header: import("../../client").HdesApi.TypeDef) => void;
1059
1382
  }>;
1060
1383
  const Row: import("react").FC<{
1061
- row: import("../../client/api").AstDecisionRow;
1062
- headers: import("../../client/api").TypeDef[];
1384
+ row: import("../../client").HdesApi.AstDecisionRow;
1385
+ headers: import("../../client").HdesApi.TypeDef[];
1063
1386
  renderCell: (props: {
1064
- row: import("../../client/api").AstDecisionRow;
1065
- header: import("../../client/api").TypeDef;
1066
- cell: import("../../client/api").AstDecisionCell;
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
  }