@fluxo-dev/api-client-base 25.3.8 → 25.4.0
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/index.cjs.js +106 -7
- package/package.json +2 -2
- package/src/lib/korebi/documentation/documentation.service.d.ts +12 -1
- package/src/lib/korebi/documentation/models/collection-types.d.ts +55 -0
- package/src/lib/korebi/documentation/models/index.d.ts +1 -0
- package/src/lib/korebi/documentation/models/type-specs.d.ts +1 -0
- package/src/lib/korebi/dynamic-configuration/model/command-json-configuration.d.ts +19 -1
- package/src/lib/korebi/dynamic-configuration/model/instruction-json-configuration.d.ts +6 -0
package/index.cjs.js
CHANGED
|
@@ -4810,13 +4810,8 @@ class SecurityFacade {
|
|
|
4810
4810
|
|
|
4811
4811
|
class DocumentationService {
|
|
4812
4812
|
constructor() {
|
|
4813
|
-
this.
|
|
4814
|
-
|
|
4815
|
-
const tNameSplitted = (_a = typeFullName.split(',')[0]) === null || _a === void 0 ? void 0 : _a.split('.');
|
|
4816
|
-
if (tNameSplitted) {
|
|
4817
|
-
return tNameSplitted[tNameSplitted.length - 1];
|
|
4818
|
-
}
|
|
4819
|
-
return 'ERROR';
|
|
4813
|
+
this.getTypeDisplayName = typeFullName => {
|
|
4814
|
+
return HttpClient$1.Instance().client.get(`korebi/typedisplayname?typeFullyQualifiedName=${encodeURIComponent(typeFullName)}`);
|
|
4820
4815
|
};
|
|
4821
4816
|
}
|
|
4822
4817
|
getRestApiDocumentation() {
|
|
@@ -4828,8 +4823,96 @@ class DocumentationService {
|
|
|
4828
4823
|
searchType(typeName) {
|
|
4829
4824
|
return HttpClient$1.Instance().client.get(`korebi/searchtypes?type=${encodeURIComponent(typeName)}`);
|
|
4830
4825
|
}
|
|
4826
|
+
searchListTypes(typeFullyQualifiedName, collectionType, concreteCollectionType) {
|
|
4827
|
+
return HttpClient$1.Instance().client.get(`korebi/searchlisttypes?typeFullyQualifiedName=${encodeURIComponent(typeFullyQualifiedName)}&collectionType=${collectionType}&concreteCollectionType=${concreteCollectionType}`);
|
|
4828
|
+
}
|
|
4829
|
+
searchDictionaryTypes(keyFullyQualifiedName, valueFullyQualifiedName, dictionaryInterfaceType, dictionaryConcreteType) {
|
|
4830
|
+
return HttpClient$1.Instance().client.get(`korebi/searchdictionarytypes?keyTypeFullyQualifiedName=${encodeURIComponent(keyFullyQualifiedName)}&valueTypeFullyQualifiedName=${encodeURIComponent(valueFullyQualifiedName)}&dictionaryInterfaceType=${dictionaryInterfaceType}&dictionaryConcreteType=${dictionaryConcreteType}`);
|
|
4831
|
+
}
|
|
4832
|
+
getInputSchemaForDebugger(instruction) {
|
|
4833
|
+
return HttpClient$1.Instance().client.post(`korebi/instructioninputsforts`, instruction);
|
|
4834
|
+
}
|
|
4831
4835
|
}
|
|
4832
4836
|
|
|
4837
|
+
/**
|
|
4838
|
+
* Tipo di interfaccia di collezione da utilizzare
|
|
4839
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
4840
|
+
*/
|
|
4841
|
+
exports.CollectionInterfaceType = void 0;
|
|
4842
|
+
(function (CollectionInterfaceType) {
|
|
4843
|
+
CollectionInterfaceType[CollectionInterfaceType["IEnumerable"] = 0] = "IEnumerable";
|
|
4844
|
+
CollectionInterfaceType[CollectionInterfaceType["ICollection"] = 1] = "ICollection";
|
|
4845
|
+
CollectionInterfaceType[CollectionInterfaceType["IList"] = 2] = "IList";
|
|
4846
|
+
})(exports.CollectionInterfaceType || (exports.CollectionInterfaceType = {}));
|
|
4847
|
+
/**
|
|
4848
|
+
* Tipo concreto di collezione da utilizzare
|
|
4849
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
4850
|
+
*/
|
|
4851
|
+
exports.ConcreteCollectionType = void 0;
|
|
4852
|
+
(function (ConcreteCollectionType) {
|
|
4853
|
+
ConcreteCollectionType[ConcreteCollectionType["List"] = 0] = "List";
|
|
4854
|
+
ConcreteCollectionType[ConcreteCollectionType["HashSet"] = 1] = "HashSet";
|
|
4855
|
+
ConcreteCollectionType[ConcreteCollectionType["LinkedList"] = 2] = "LinkedList";
|
|
4856
|
+
ConcreteCollectionType[ConcreteCollectionType["Queue"] = 3] = "Queue";
|
|
4857
|
+
ConcreteCollectionType[ConcreteCollectionType["Stack"] = 4] = "Stack";
|
|
4858
|
+
ConcreteCollectionType[ConcreteCollectionType["Array"] = 5] = "Array";
|
|
4859
|
+
})(exports.ConcreteCollectionType || (exports.ConcreteCollectionType = {}));
|
|
4860
|
+
/**
|
|
4861
|
+
* Tipo di interfaccia di dictionary da utilizzare
|
|
4862
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
4863
|
+
*/
|
|
4864
|
+
exports.DictionaryInterfaceType = void 0;
|
|
4865
|
+
(function (DictionaryInterfaceType) {
|
|
4866
|
+
DictionaryInterfaceType[DictionaryInterfaceType["IDictionary"] = 0] = "IDictionary";
|
|
4867
|
+
DictionaryInterfaceType[DictionaryInterfaceType["IReadOnlyDictionary"] = 1] = "IReadOnlyDictionary";
|
|
4868
|
+
})(exports.DictionaryInterfaceType || (exports.DictionaryInterfaceType = {}));
|
|
4869
|
+
/**
|
|
4870
|
+
* Tipo concreto di dictionary da utilizzare
|
|
4871
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
4872
|
+
*/
|
|
4873
|
+
exports.ConcreteDictionaryType = void 0;
|
|
4874
|
+
(function (ConcreteDictionaryType) {
|
|
4875
|
+
ConcreteDictionaryType[ConcreteDictionaryType["Dictionary"] = 0] = "Dictionary";
|
|
4876
|
+
ConcreteDictionaryType[ConcreteDictionaryType["SortedDictionary"] = 1] = "SortedDictionary";
|
|
4877
|
+
ConcreteDictionaryType[ConcreteDictionaryType["SortedList"] = 2] = "SortedList";
|
|
4878
|
+
ConcreteDictionaryType[ConcreteDictionaryType["ConcurrentDictionary"] = 3] = "ConcurrentDictionary";
|
|
4879
|
+
})(exports.ConcreteDictionaryType || (exports.ConcreteDictionaryType = {}));
|
|
4880
|
+
/**
|
|
4881
|
+
* Etichette user-friendly per CollectionInterfaceType
|
|
4882
|
+
*/
|
|
4883
|
+
const CollectionInterfaceTypeLabels = {
|
|
4884
|
+
[exports.CollectionInterfaceType.IEnumerable]: 'IEnumerable',
|
|
4885
|
+
[exports.CollectionInterfaceType.ICollection]: 'ICollection',
|
|
4886
|
+
[exports.CollectionInterfaceType.IList]: 'IList'
|
|
4887
|
+
};
|
|
4888
|
+
/**
|
|
4889
|
+
* Etichette user-friendly per ConcreteCollectionType
|
|
4890
|
+
*/
|
|
4891
|
+
const ConcreteCollectionTypeLabels = {
|
|
4892
|
+
[exports.ConcreteCollectionType.List]: 'List<T>',
|
|
4893
|
+
[exports.ConcreteCollectionType.HashSet]: 'HashSet<T>',
|
|
4894
|
+
[exports.ConcreteCollectionType.LinkedList]: 'LinkedList<T>',
|
|
4895
|
+
[exports.ConcreteCollectionType.Queue]: 'Queue<T>',
|
|
4896
|
+
[exports.ConcreteCollectionType.Stack]: 'Stack<T>',
|
|
4897
|
+
[exports.ConcreteCollectionType.Array]: 'T[]'
|
|
4898
|
+
};
|
|
4899
|
+
/**
|
|
4900
|
+
* Etichette user-friendly per DictionaryInterfaceType
|
|
4901
|
+
*/
|
|
4902
|
+
const DictionaryInterfaceTypeLabels = {
|
|
4903
|
+
[exports.DictionaryInterfaceType.IDictionary]: 'IDictionary<TKey, TValue>',
|
|
4904
|
+
[exports.DictionaryInterfaceType.IReadOnlyDictionary]: 'IReadOnlyDictionary<TKey, TValue>'
|
|
4905
|
+
};
|
|
4906
|
+
/**
|
|
4907
|
+
* Etichette user-friendly per ConcreteDictionaryType
|
|
4908
|
+
*/
|
|
4909
|
+
const ConcreteDictionaryTypeLabels = {
|
|
4910
|
+
[exports.ConcreteDictionaryType.Dictionary]: 'Dictionary<TKey, TValue>',
|
|
4911
|
+
[exports.ConcreteDictionaryType.SortedDictionary]: 'SortedDictionary<TKey, TValue>',
|
|
4912
|
+
[exports.ConcreteDictionaryType.SortedList]: 'SortedList<TKey, TValue>',
|
|
4913
|
+
[exports.ConcreteDictionaryType.ConcurrentDictionary]: 'ConcurrentDictionary<TKey, TValue>'
|
|
4914
|
+
};
|
|
4915
|
+
|
|
4833
4916
|
class IntellisenseService {
|
|
4834
4917
|
complete(payload) {
|
|
4835
4918
|
return HttpClient$1.Instance().client.post('korebi/intellisense/complete', payload);
|
|
@@ -4851,6 +4934,18 @@ class AppServiceService {
|
|
|
4851
4934
|
}
|
|
4852
4935
|
}
|
|
4853
4936
|
|
|
4937
|
+
exports.BindingLocation = void 0;
|
|
4938
|
+
(function (BindingLocation) {
|
|
4939
|
+
BindingLocation[BindingLocation["None"] = 0] = "None";
|
|
4940
|
+
BindingLocation[BindingLocation["FromBody"] = 1] = "FromBody";
|
|
4941
|
+
BindingLocation[BindingLocation["FromHeader"] = 2] = "FromHeader";
|
|
4942
|
+
BindingLocation[BindingLocation["FromQuery"] = 3] = "FromQuery";
|
|
4943
|
+
BindingLocation[BindingLocation["FromRoute"] = 4] = "FromRoute";
|
|
4944
|
+
BindingLocation[BindingLocation["FromForm"] = 5] = "FromForm";
|
|
4945
|
+
BindingLocation[BindingLocation["FromServices"] = 6] = "FromServices";
|
|
4946
|
+
BindingLocation[BindingLocation["FromContext"] = 7] = "FromContext";
|
|
4947
|
+
})(exports.BindingLocation || (exports.BindingLocation = {}));
|
|
4948
|
+
|
|
4854
4949
|
class DynamicConfigurationService {
|
|
4855
4950
|
getDynamicConfiguration() {
|
|
4856
4951
|
return HttpClient$1.Instance().client.get('korebi/dynamicconfiguration');
|
|
@@ -10568,9 +10663,13 @@ exports.AppService = AppService;
|
|
|
10568
10663
|
exports.AppServiceService = AppServiceService;
|
|
10569
10664
|
exports.BaseCommonService = BaseCommonService;
|
|
10570
10665
|
exports.BiFacade = BiFacade;
|
|
10666
|
+
exports.CollectionInterfaceTypeLabels = CollectionInterfaceTypeLabels;
|
|
10571
10667
|
exports.CommunicationFacade = CommunicationFacade;
|
|
10668
|
+
exports.ConcreteCollectionTypeLabels = ConcreteCollectionTypeLabels;
|
|
10669
|
+
exports.ConcreteDictionaryTypeLabels = ConcreteDictionaryTypeLabels;
|
|
10572
10670
|
exports.CurrentUser = CurrentUser;
|
|
10573
10671
|
exports.DeviceIdManager = DeviceIdManager;
|
|
10672
|
+
exports.DictionaryInterfaceTypeLabels = DictionaryInterfaceTypeLabels;
|
|
10574
10673
|
exports.DocumentationService = DocumentationService;
|
|
10575
10674
|
exports.DomainRoleService = DomainRoleService;
|
|
10576
10675
|
exports.DynamicConfigurationService = DynamicConfigurationService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/api-client-base",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"react": "^18.3.1",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"react-router-dom": "^6.11.2",
|
|
9
9
|
"react-redux": "^8.0.5",
|
|
10
10
|
"@reduxjs/toolkit": "^1.9.1",
|
|
11
|
-
"@fluxo-dev/state": "^25.
|
|
11
|
+
"@fluxo-dev/state": "^25.4.0"
|
|
12
12
|
},
|
|
13
13
|
"main": "./index.cjs.js",
|
|
14
14
|
"types": "./index.cjs.d.ts"
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Documentation } from "./models";
|
|
2
2
|
import { TypeSpecs } from "./models/type-specs";
|
|
3
|
+
import { CollectionInterfaceType, ConcreteCollectionType, DictionaryInterfaceType, ConcreteDictionaryType } from "./models/collection-types";
|
|
4
|
+
import { InstructionJsonConfiguration } from '../dynamic-configuration';
|
|
5
|
+
export interface InstructionInputForTypescript {
|
|
6
|
+
name: string;
|
|
7
|
+
fullyQualifiedName: string;
|
|
8
|
+
tsType: string;
|
|
9
|
+
index: number;
|
|
10
|
+
}
|
|
3
11
|
export declare class DocumentationService {
|
|
4
12
|
getRestApiDocumentation(): Promise<Documentation>;
|
|
5
13
|
getTypeSchema(typeFullyQualifiedName: string): Promise<any>;
|
|
6
14
|
searchType(typeName: string): Promise<TypeSpecs[]>;
|
|
7
|
-
|
|
15
|
+
searchListTypes(typeFullyQualifiedName: string, collectionType: CollectionInterfaceType, concreteCollectionType: ConcreteCollectionType): Promise<TypeSpecs>;
|
|
16
|
+
searchDictionaryTypes(keyFullyQualifiedName: string, valueFullyQualifiedName: string, dictionaryInterfaceType: DictionaryInterfaceType, dictionaryConcreteType: ConcreteDictionaryType): Promise<TypeSpecs>;
|
|
17
|
+
getInputSchemaForDebugger(instruction: InstructionJsonConfiguration): Promise<InstructionInputForTypescript[]>;
|
|
18
|
+
getTypeDisplayName: (typeFullName: string) => Promise<string>;
|
|
8
19
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipo di interfaccia di collezione da utilizzare
|
|
3
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
4
|
+
*/
|
|
5
|
+
export declare enum CollectionInterfaceType {
|
|
6
|
+
IEnumerable = 0,
|
|
7
|
+
ICollection = 1,
|
|
8
|
+
IList = 2
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Tipo concreto di collezione da utilizzare
|
|
12
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
13
|
+
*/
|
|
14
|
+
export declare enum ConcreteCollectionType {
|
|
15
|
+
List = 0,
|
|
16
|
+
HashSet = 1,
|
|
17
|
+
LinkedList = 2,
|
|
18
|
+
Queue = 3,
|
|
19
|
+
Stack = 4,
|
|
20
|
+
Array = 5
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Tipo di interfaccia di dictionary da utilizzare
|
|
24
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
25
|
+
*/
|
|
26
|
+
export declare enum DictionaryInterfaceType {
|
|
27
|
+
IDictionary = 0,
|
|
28
|
+
IReadOnlyDictionary = 1
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Tipo concreto di dictionary da utilizzare
|
|
32
|
+
* IMPORTANTE: L'ordine deve corrispondere esattamente all'enum del backend C#
|
|
33
|
+
*/
|
|
34
|
+
export declare enum ConcreteDictionaryType {
|
|
35
|
+
Dictionary = 0,
|
|
36
|
+
SortedDictionary = 1,
|
|
37
|
+
SortedList = 2,
|
|
38
|
+
ConcurrentDictionary = 3
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Etichette user-friendly per CollectionInterfaceType
|
|
42
|
+
*/
|
|
43
|
+
export declare const CollectionInterfaceTypeLabels: Record<CollectionInterfaceType, string>;
|
|
44
|
+
/**
|
|
45
|
+
* Etichette user-friendly per ConcreteCollectionType
|
|
46
|
+
*/
|
|
47
|
+
export declare const ConcreteCollectionTypeLabels: Record<ConcreteCollectionType, string>;
|
|
48
|
+
/**
|
|
49
|
+
* Etichette user-friendly per DictionaryInterfaceType
|
|
50
|
+
*/
|
|
51
|
+
export declare const DictionaryInterfaceTypeLabels: Record<DictionaryInterfaceType, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Etichette user-friendly per ConcreteDictionaryType
|
|
54
|
+
*/
|
|
55
|
+
export declare const ConcreteDictionaryTypeLabels: Record<ConcreteDictionaryType, string>;
|
|
@@ -19,7 +19,25 @@ export interface CommandJsonConfiguration {
|
|
|
19
19
|
commandConstants?: {
|
|
20
20
|
[key: string]: any;
|
|
21
21
|
};
|
|
22
|
-
inputTypes?:
|
|
22
|
+
inputTypes?: InputTypeJsonConfiguration[];
|
|
23
23
|
restAdapterInfo?: RestAdapterInfo;
|
|
24
24
|
attributeMarkerLocation?: AttributeMarkerLocation;
|
|
25
25
|
}
|
|
26
|
+
export interface InputTypeJsonConfiguration {
|
|
27
|
+
index: number;
|
|
28
|
+
typeName: string;
|
|
29
|
+
inputName: string;
|
|
30
|
+
bindingLocation: BindingLocation;
|
|
31
|
+
bindingPropertyName: string;
|
|
32
|
+
description: string;
|
|
33
|
+
}
|
|
34
|
+
export declare enum BindingLocation {
|
|
35
|
+
None = 0,
|
|
36
|
+
FromBody = 1,
|
|
37
|
+
FromHeader = 2,
|
|
38
|
+
FromQuery = 3,
|
|
39
|
+
FromRoute = 4,
|
|
40
|
+
FromForm = 5,
|
|
41
|
+
FromServices = 6,
|
|
42
|
+
FromContext = 7
|
|
43
|
+
}
|
|
@@ -16,4 +16,10 @@ export interface InstructionJsonConfiguration {
|
|
|
16
16
|
complexScriptCode?: string;
|
|
17
17
|
isAsync: boolean;
|
|
18
18
|
throwExceptionIfOperationResultIsDefault?: boolean;
|
|
19
|
+
input1DisplayName: string;
|
|
20
|
+
input2DisplayName: string;
|
|
21
|
+
input3DisplayName: string;
|
|
22
|
+
input4DisplayName: string;
|
|
23
|
+
serviceDisplayName: string;
|
|
24
|
+
outputDisplayName: string;
|
|
19
25
|
}
|