@dxs-ts/eveli-ide 0.0.97 → 0.0.98

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 +140 -140
  2. package/build/index.js +32070 -30697
  3. package/package.json +1 -1
package/build/index.d.ts CHANGED
@@ -919,6 +919,51 @@ export declare const wrenchIntl: {
919
919
  export { }
920
920
 
921
921
 
922
+ declare namespace HdesClient {
923
+ }
924
+
925
+
926
+ declare namespace HdesClient {
927
+ class StoreErrorImpl extends Error {
928
+ private _props;
929
+ constructor(props: HdesApi.ServiceErrorProps);
930
+ get name(): string;
931
+ get status(): number;
932
+ get errors(): HdesApi.ServiceErrorMsg[];
933
+ }
934
+ class DefaultStore implements HdesApi.Store {
935
+ private _config;
936
+ private _updateStarted;
937
+ private _iapSessionRefreshWindow;
938
+ private _defRef;
939
+ constructor(config: HdesApi.StoreConfig);
940
+ iapRefresh(): Promise<void>;
941
+ iapLogin(): boolean;
942
+ handle401(): Promise<void>;
943
+ fetch<T>(path: string, req?: RequestInit): Promise<T>;
944
+ }
945
+ class ServiceImpl implements HdesApi.Service {
946
+ private _store;
947
+ private _branch;
948
+ private _headers;
949
+ constructor(store: HdesApi.Store, branchName?: string);
950
+ withBranch(branchName?: string): ServiceImpl;
951
+ get branch(): string | undefined;
952
+ create(): HdesApi.CreateBuilder;
953
+ delete(): HdesApi.DeleteBuilder;
954
+ update(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
955
+ createAsset(name: string, desc: string | undefined, type: HdesApi.AstBodyType | "SITE", body?: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
956
+ ast(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Entity<any>>;
957
+ getSite(): Promise<HdesApi.Site>;
958
+ debug(debug: HdesApi.DebugRequest): Promise<HdesApi.DebugResponse>;
959
+ copy(id: string, name: string): Promise<HdesApi.Site>;
960
+ version(): Promise<HdesApi.VersionEntity>;
961
+ diff(input: HdesApi.DiffRequest): Promise<HdesApi.DiffResponse>;
962
+ summary(tagId: string): Promise<HdesApi.AstTagSummary>;
963
+ }
964
+ }
965
+
966
+
922
967
  declare module 'react' {
923
968
  interface CSSProperties {
924
969
  '--tree-view-text-color'?: string;
@@ -971,48 +1016,105 @@ declare module '@mui/material/styles' {
971
1016
  }
972
1017
 
973
1018
 
974
- declare namespace HdesClient {
1019
+ declare namespace WrenchComposerApi {
1020
+ interface Nav {
1021
+ value?: string | null;
1022
+ }
1023
+ interface TabData {
1024
+ nav?: Nav;
1025
+ withNav(nav: Nav): TabData;
1026
+ }
1027
+ interface Tab extends BurgerApi.TabSession<TabData> {
1028
+ }
1029
+ interface DebugSession {
1030
+ error?: HdesApi.StoreError;
1031
+ debug?: HdesApi.DebugResponse;
1032
+ csv?: string;
1033
+ json?: string;
1034
+ selected: HdesApi.EntityId;
1035
+ inputType: DebugInputType;
1036
+ }
1037
+ type DebugInputType = "CSV" | "JSON";
1038
+ interface DebugSessions {
1039
+ selected?: HdesApi.EntityId;
1040
+ values: Record<HdesApi.EntityId, DebugSession>;
1041
+ }
1042
+ interface PageUpdate {
1043
+ saved: boolean;
1044
+ origin: HdesApi.Entity<any>;
1045
+ value: HdesApi.AstCommand[];
1046
+ withValue(value: HdesApi.AstCommand[]): PageUpdate;
1047
+ }
1048
+ interface Session {
1049
+ site: HdesApi.Site;
1050
+ pages: Record<HdesApi.EntityId, PageUpdate>;
1051
+ debug: DebugSessions;
1052
+ branchName?: string;
1053
+ getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
1054
+ getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
1055
+ getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
1056
+ getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
1057
+ withDebug(page: DebugSession): Session;
1058
+ withPage(page: HdesApi.EntityId): Session;
1059
+ withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
1060
+ withoutPages(pages: HdesApi.EntityId[]): Session;
1061
+ withBranch(branchName?: string): Session;
1062
+ withSite(site: HdesApi.Site): Session;
1063
+ }
1064
+ interface Actions {
1065
+ handleLoad(): Promise<void>;
1066
+ handleLoadSite(site?: HdesApi.Site): Promise<void>;
1067
+ handleDebugUpdate(debug: DebugSession): void;
1068
+ handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
1069
+ handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
1070
+ handleBranchUpdate(branchName?: string): void;
1071
+ }
1072
+ interface ContextType {
1073
+ session: Session;
1074
+ actions: Actions;
1075
+ service: HdesApi.Service;
1076
+ }
975
1077
  }
976
1078
 
977
1079
 
978
- declare namespace HdesClient {
979
- class StoreErrorImpl extends Error {
980
- private _props;
981
- constructor(props: HdesApi.ServiceErrorProps);
982
- get name(): string;
983
- get status(): number;
984
- get errors(): HdesApi.ServiceErrorMsg[];
985
- }
986
- class DefaultStore implements HdesApi.Store {
987
- private _config;
988
- private _updateStarted;
989
- private _iapSessionRefreshWindow;
990
- private _defRef;
991
- constructor(config: HdesApi.StoreConfig);
992
- iapRefresh(): Promise<void>;
993
- iapLogin(): boolean;
994
- handle401(): Promise<void>;
995
- fetch<T>(path: string, req?: RequestInit): Promise<T>;
996
- }
997
- class ServiceImpl implements HdesApi.Service {
998
- private _store;
999
- private _branch;
1000
- private _headers;
1001
- constructor(store: HdesApi.Store, branchName?: string);
1002
- withBranch(branchName?: string): ServiceImpl;
1003
- get branch(): string | undefined;
1004
- create(): HdesApi.CreateBuilder;
1005
- delete(): HdesApi.DeleteBuilder;
1006
- update(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
1007
- createAsset(name: string, desc: string | undefined, type: HdesApi.AstBodyType | "SITE", body?: HdesApi.AstCommand[]): Promise<HdesApi.Site>;
1008
- ast(id: string, body: HdesApi.AstCommand[]): Promise<HdesApi.Entity<any>>;
1009
- getSite(): Promise<HdesApi.Site>;
1010
- debug(debug: HdesApi.DebugRequest): Promise<HdesApi.DebugResponse>;
1011
- copy(id: string, name: string): Promise<HdesApi.Site>;
1012
- version(): Promise<HdesApi.VersionEntity>;
1013
- diff(input: HdesApi.DiffRequest): Promise<HdesApi.DiffResponse>;
1014
- summary(tagId: string): Promise<HdesApi.AstTagSummary>;
1080
+ declare namespace WrenchComposerApi {
1081
+ class ImmutableTabData implements TabData {
1082
+ private _nav;
1083
+ constructor(props: {
1084
+ nav: Nav;
1085
+ });
1086
+ get nav(): Nav;
1087
+ withNav(nav: Nav): ImmutableTabData;
1015
1088
  }
1089
+ const createTab: (props: {
1090
+ nav: Nav;
1091
+ page?: HdesApi.Entity<any>;
1092
+ }) => ImmutableTabData;
1093
+ const ComposerContext: React.Context<ContextType>;
1094
+ const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
1095
+ const useComposer: () => {
1096
+ session: Session;
1097
+ service: HdesApi.Service;
1098
+ actions: Actions;
1099
+ site: HdesApi.Site;
1100
+ isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
1101
+ };
1102
+ const useSite: () => HdesApi.Site;
1103
+ const useBranchName: () => string | undefined;
1104
+ const useSession: () => Session;
1105
+ const useNav: () => {
1106
+ handleInTab: (props: {
1107
+ article: HdesApi.Entity<any>;
1108
+ }) => void;
1109
+ findTab: (article: HdesApi.Entity<any>) => Tab | undefined;
1110
+ };
1111
+ const useDebug: () => {
1112
+ handleDebugInit: (selected: HdesApi.EntityId) => void;
1113
+ };
1114
+ const Provider: React.FC<{
1115
+ children: React.ReactNode;
1116
+ service: HdesApi.Service;
1117
+ }>;
1016
1118
  }
1017
1119
 
1018
1120
 
@@ -1173,108 +1275,6 @@ declare namespace StencilComposerApi {
1173
1275
  }>;
1174
1276
  }
1175
1277
 
1176
-
1177
- declare namespace WrenchComposerApi {
1178
- interface Nav {
1179
- value?: string | null;
1180
- }
1181
- interface TabData {
1182
- nav?: Nav;
1183
- withNav(nav: Nav): TabData;
1184
- }
1185
- interface Tab extends BurgerApi.TabSession<TabData> {
1186
- }
1187
- interface DebugSession {
1188
- error?: HdesApi.StoreError;
1189
- debug?: HdesApi.DebugResponse;
1190
- csv?: string;
1191
- json?: string;
1192
- selected: HdesApi.EntityId;
1193
- inputType: DebugInputType;
1194
- }
1195
- type DebugInputType = "CSV" | "JSON";
1196
- interface DebugSessions {
1197
- selected?: HdesApi.EntityId;
1198
- values: Record<HdesApi.EntityId, DebugSession>;
1199
- }
1200
- interface PageUpdate {
1201
- saved: boolean;
1202
- origin: HdesApi.Entity<any>;
1203
- value: HdesApi.AstCommand[];
1204
- withValue(value: HdesApi.AstCommand[]): PageUpdate;
1205
- }
1206
- interface Session {
1207
- site: HdesApi.Site;
1208
- pages: Record<HdesApi.EntityId, PageUpdate>;
1209
- debug: DebugSessions;
1210
- branchName?: string;
1211
- getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
1212
- getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
1213
- getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
1214
- getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
1215
- withDebug(page: DebugSession): Session;
1216
- withPage(page: HdesApi.EntityId): Session;
1217
- withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
1218
- withoutPages(pages: HdesApi.EntityId[]): Session;
1219
- withBranch(branchName?: string): Session;
1220
- withSite(site: HdesApi.Site): Session;
1221
- }
1222
- interface Actions {
1223
- handleLoad(): Promise<void>;
1224
- handleLoadSite(site?: HdesApi.Site): Promise<void>;
1225
- handleDebugUpdate(debug: DebugSession): void;
1226
- handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
1227
- handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
1228
- handleBranchUpdate(branchName?: string): void;
1229
- }
1230
- interface ContextType {
1231
- session: Session;
1232
- actions: Actions;
1233
- service: HdesApi.Service;
1234
- }
1235
- }
1236
-
1237
-
1238
- declare namespace WrenchComposerApi {
1239
- class ImmutableTabData implements TabData {
1240
- private _nav;
1241
- constructor(props: {
1242
- nav: Nav;
1243
- });
1244
- get nav(): Nav;
1245
- withNav(nav: Nav): ImmutableTabData;
1246
- }
1247
- const createTab: (props: {
1248
- nav: Nav;
1249
- page?: HdesApi.Entity<any>;
1250
- }) => ImmutableTabData;
1251
- const ComposerContext: React.Context<ContextType>;
1252
- const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
1253
- const useComposer: () => {
1254
- session: Session;
1255
- service: HdesApi.Service;
1256
- actions: Actions;
1257
- site: HdesApi.Site;
1258
- isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
1259
- };
1260
- const useSite: () => HdesApi.Site;
1261
- const useBranchName: () => string | undefined;
1262
- const useSession: () => Session;
1263
- const useNav: () => {
1264
- handleInTab: (props: {
1265
- article: HdesApi.Entity<any>;
1266
- }) => void;
1267
- findTab: (article: HdesApi.Entity<any>) => Tab | undefined;
1268
- };
1269
- const useDebug: () => {
1270
- handleDebugInit: (selected: HdesApi.EntityId) => void;
1271
- };
1272
- const Provider: React.FC<{
1273
- children: React.ReactNode;
1274
- service: HdesApi.Service;
1275
- }>;
1276
- }
1277
-
1278
1278
  declare namespace Decision {
1279
1279
  const Table: import("react").FC<{
1280
1280
  ast: import("../../client").HdesApi.AstDecision;