grexx-api 1.0.2 → 12.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/core/OpenAPI.js +2 -2
- package/dist/generated/core/request.d.ts +1 -1
- package/dist/generated/models/AdditionalAggregateColumn.js +1 -1
- package/dist/generated/models/AdditionalDataHistoryColumn.js +1 -1
- package/dist/generated/models/AdditionalDerivedColumn.js +1 -1
- package/dist/generated/models/AdditionalExternalColumn.js +1 -1
- package/dist/generated/models/AdditionalGroupbyColumn.js +1 -1
- package/dist/generated/models/AdditionalMetaColumn.js +1 -1
- package/dist/generated/models/AdditionalTemplateColumn.js +1 -1
- package/dist/generated/models/BaseMessage.js +1 -1
- package/dist/generated/models/CatchPattern.js +1 -1
- package/dist/generated/models/ColumnIdentifier.js +1 -1
- package/dist/generated/models/ConditionOperatorType.js +1 -1
- package/dist/generated/models/FieldType.js +1 -1
- package/dist/generated/models/FormFieldConditionList.js +1 -1
- package/dist/generated/models/FormFieldSimpleCondition.js +1 -1
- package/dist/generated/models/InterfaceConditionListType.js +1 -1
- package/dist/generated/models/PrimitiveType.js +1 -1
- package/dist/generated/models/ReturnTypeFlags.js +1 -1
- package/dist/generated/models/SortConfigSearchCondition.js +1 -1
- package/dist/generated/models/SortConfigSearchList.js +1 -1
- package/dist/generated/models/SortConfigSort.js +1 -1
- package/dist/generated/services/CaseService.d.ts +6 -6
- package/dist/generated/services/CaseService.js +12 -12
- package/generate-spec.ts +17 -0
- package/{openapi.yaml → openapi-spec.yaml} +9 -9
- package/package.json +12 -8
- package/tsconfig.json +2 -1
- package/typedoc.json +19 -0
- package/.idea/grexx-api.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/openapitools.json +0 -7
- package/src/generated/core/ApiError.ts +0 -25
- package/src/generated/core/ApiRequestOptions.ts +0 -17
- package/src/generated/core/ApiResult.ts +0 -11
- package/src/generated/core/CancelablePromise.ts +0 -131
- package/src/generated/core/OpenAPI.ts +0 -32
- package/src/generated/core/request.ts +0 -322
- package/src/generated/index.ts +0 -73
- package/src/generated/models/AbstractCondition.ts +0 -11
- package/src/generated/models/AbstractReference.ts +0 -8
- package/src/generated/models/AbstractRule.ts +0 -19
- package/src/generated/models/Activity.ts +0 -7
- package/src/generated/models/AdditionalAggregateColumn.ts +0 -20
- package/src/generated/models/AdditionalDataHistoryColumn.ts +0 -17
- package/src/generated/models/AdditionalDerivedColumn.ts +0 -24
- package/src/generated/models/AdditionalExternalColumn.ts +0 -16
- package/src/generated/models/AdditionalGroupbyColumn.ts +0 -18
- package/src/generated/models/AdditionalMetaColumn.ts +0 -34
- package/src/generated/models/AdditionalTemplateColumn.ts +0 -22
- package/src/generated/models/AnalyseDependency.ts +0 -39
- package/src/generated/models/BaseMessage.ts +0 -26
- package/src/generated/models/CaseReference.ts +0 -8
- package/src/generated/models/CasetypeAttribute.ts +0 -7
- package/src/generated/models/CasetypeCss.ts +0 -10
- package/src/generated/models/CatchBlock.ts +0 -7
- package/src/generated/models/CatchPattern.ts +0 -7
- package/src/generated/models/ColumnId.ts +0 -5
- package/src/generated/models/ColumnIdentifier.ts +0 -10
- package/src/generated/models/ConditionList.ts +0 -7
- package/src/generated/models/ConditionOperatorType.ts +0 -26
- package/src/generated/models/CustomThrow.ts +0 -7
- package/src/generated/models/Dataset.ts +0 -7
- package/src/generated/models/DatasetColumn.ts +0 -7
- package/src/generated/models/DatasetCondition.ts +0 -7
- package/src/generated/models/DatasetResult.ts +0 -20
- package/src/generated/models/FieldType.ts +0 -16
- package/src/generated/models/FileUploadProfile.ts +0 -7
- package/src/generated/models/ForEach.ts +0 -7
- package/src/generated/models/FormAction.ts +0 -7
- package/src/generated/models/FormActionInlineJavascript.ts +0 -7
- package/src/generated/models/FormField.ts +0 -7
- package/src/generated/models/FormFieldConditionList.ts +0 -19
- package/src/generated/models/FormFieldNotCondition.ts +0 -12
- package/src/generated/models/FormFieldSimpleCondition.ts +0 -27
- package/src/generated/models/FormGroup.ts +0 -7
- package/src/generated/models/GrexxComplexDatatype.ts +0 -11
- package/src/generated/models/HasRoleCondition.ts +0 -7
- package/src/generated/models/IfThenElse.ts +0 -7
- package/src/generated/models/Instant.ts +0 -5
- package/src/generated/models/InterfaceConditionListType.ts +0 -8
- package/src/generated/models/MapStringObject.ts +0 -5
- package/src/generated/models/Mapping.ts +0 -7
- package/src/generated/models/NotCondition.ts +0 -7
- package/src/generated/models/ParallelBlock.ts +0 -7
- package/src/generated/models/Picklist.ts +0 -7
- package/src/generated/models/PrimitiveType.ts +0 -35
- package/src/generated/models/RequestContext.ts +0 -7
- package/src/generated/models/ReturnTypeFlags.ts +0 -19
- package/src/generated/models/RuleList.ts +0 -7
- package/src/generated/models/SimpleCondition.ts +0 -7
- package/src/generated/models/SortConfigSearchCondition.ts +0 -24
- package/src/generated/models/SortConfigSearchList.ts +0 -17
- package/src/generated/models/SortConfigSort.ts +0 -16
- package/src/generated/models/Trigger.ts +0 -7
- package/src/generated/models/TryBlock.ts +0 -7
- package/src/generated/models/UUID.ts +0 -5
- package/src/generated/models/UnversionedReference.ts +0 -8
- package/src/generated/models/VersionedReference.ts +0 -8
- package/src/generated/models/While.ts +0 -7
- package/src/generated/services/CaseService.ts +0 -800
- package/src/generated/services/PlatformService.ts +0 -26
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OpenAPI = void 0;
|
|
4
4
|
exports.OpenAPI = {
|
|
5
|
-
BASE: 'https://
|
|
6
|
-
VERSION: '12.6.
|
|
5
|
+
BASE: 'https://name.grexx.today/api/v1',
|
|
6
|
+
VERSION: '12.6.6',
|
|
7
7
|
WITH_CREDENTIALS: false,
|
|
8
8
|
CREDENTIALS: 'include',
|
|
9
9
|
TOKEN: undefined,
|
|
@@ -12,7 +12,7 @@ export declare const base64: (str: string) => string;
|
|
|
12
12
|
export declare const getQueryString: (params: Record<string, any>) => string;
|
|
13
13
|
export declare const getFormData: (options: ApiRequestOptions) => FormData | undefined;
|
|
14
14
|
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
15
|
-
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>
|
|
15
|
+
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>;
|
|
16
16
|
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>;
|
|
17
17
|
export declare const getRequestBody: (options: ApiRequestOptions) => any;
|
|
18
18
|
export declare const sendRequest: (config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: FormData | undefined, headers: Headers, onCancel: OnCancel) => Promise<Response>;
|
|
@@ -7,4 +7,4 @@ var AdditionalAggregateColumn;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["AGGREGATED"] = "aggregated";
|
|
9
9
|
})(type = AdditionalAggregateColumn.type || (AdditionalAggregateColumn.type = {}));
|
|
10
|
-
})(AdditionalAggregateColumn
|
|
10
|
+
})(AdditionalAggregateColumn || (exports.AdditionalAggregateColumn = AdditionalAggregateColumn = {}));
|
|
@@ -7,4 +7,4 @@ var AdditionalDataHistoryColumn;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["DATA_HISTORY"] = "dataHistory";
|
|
9
9
|
})(type = AdditionalDataHistoryColumn.type || (AdditionalDataHistoryColumn.type = {}));
|
|
10
|
-
})(AdditionalDataHistoryColumn
|
|
10
|
+
})(AdditionalDataHistoryColumn || (exports.AdditionalDataHistoryColumn = AdditionalDataHistoryColumn = {}));
|
|
@@ -13,4 +13,4 @@ var AdditionalDerivedColumn;
|
|
|
13
13
|
(function (type) {
|
|
14
14
|
type["DERIVED"] = "derived";
|
|
15
15
|
})(type = AdditionalDerivedColumn.type || (AdditionalDerivedColumn.type = {}));
|
|
16
|
-
})(AdditionalDerivedColumn
|
|
16
|
+
})(AdditionalDerivedColumn || (exports.AdditionalDerivedColumn = AdditionalDerivedColumn = {}));
|
|
@@ -7,4 +7,4 @@ var AdditionalExternalColumn;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["EXTERNAL"] = "external";
|
|
9
9
|
})(type = AdditionalExternalColumn.type || (AdditionalExternalColumn.type = {}));
|
|
10
|
-
})(AdditionalExternalColumn
|
|
10
|
+
})(AdditionalExternalColumn || (exports.AdditionalExternalColumn = AdditionalExternalColumn = {}));
|
|
@@ -7,4 +7,4 @@ var AdditionalGroupbyColumn;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["GROUPBY"] = "groupby";
|
|
9
9
|
})(type = AdditionalGroupbyColumn.type || (AdditionalGroupbyColumn.type = {}));
|
|
10
|
-
})(AdditionalGroupbyColumn
|
|
10
|
+
})(AdditionalGroupbyColumn || (exports.AdditionalGroupbyColumn = AdditionalGroupbyColumn = {}));
|
|
@@ -24,4 +24,4 @@ var AdditionalMetaColumn;
|
|
|
24
24
|
(function (type) {
|
|
25
25
|
type["META"] = "meta";
|
|
26
26
|
})(type = AdditionalMetaColumn.type || (AdditionalMetaColumn.type = {}));
|
|
27
|
-
})(AdditionalMetaColumn
|
|
27
|
+
})(AdditionalMetaColumn || (exports.AdditionalMetaColumn = AdditionalMetaColumn = {}));
|
|
@@ -7,4 +7,4 @@ var AdditionalTemplateColumn;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["TEMPLATE"] = "template";
|
|
9
9
|
})(type = AdditionalTemplateColumn.type || (AdditionalTemplateColumn.type = {}));
|
|
10
|
-
})(AdditionalTemplateColumn
|
|
10
|
+
})(AdditionalTemplateColumn || (exports.AdditionalTemplateColumn = AdditionalTemplateColumn = {}));
|
|
@@ -11,4 +11,4 @@ var BaseMessage;
|
|
|
11
11
|
level["ERROR"] = "ERROR";
|
|
12
12
|
level["CRITICAL"] = "CRITICAL";
|
|
13
13
|
})(level = BaseMessage.level || (BaseMessage.level = {}));
|
|
14
|
-
})(BaseMessage
|
|
14
|
+
})(BaseMessage || (exports.BaseMessage = BaseMessage = {}));
|
|
@@ -11,4 +11,4 @@ var ColumnIdentifier;
|
|
|
11
11
|
ColumnIdentifier["COLUMN_CASEID"] = "columnCaseid";
|
|
12
12
|
ColumnIdentifier["EXTERNAL_REFERENCE"] = "externalReference";
|
|
13
13
|
ColumnIdentifier["ALIAS"] = "alias";
|
|
14
|
-
})(ColumnIdentifier
|
|
14
|
+
})(ColumnIdentifier || (exports.ColumnIdentifier = ColumnIdentifier = {}));
|
|
@@ -27,4 +27,4 @@ var ConditionOperatorType;
|
|
|
27
27
|
ConditionOperatorType["NOTBEGINSWITH"] = "notbeginswith";
|
|
28
28
|
ConditionOperatorType["ENDSWITH"] = "endswith";
|
|
29
29
|
ConditionOperatorType["NOTENDSWITH"] = "notendswith";
|
|
30
|
-
})(ConditionOperatorType
|
|
30
|
+
})(ConditionOperatorType || (exports.ConditionOperatorType = ConditionOperatorType = {}));
|
|
@@ -17,4 +17,4 @@ var FieldType;
|
|
|
17
17
|
FieldType["STATIC_PICKLIST_ITEM"] = "staticPicklistItem";
|
|
18
18
|
FieldType["TASKDATA"] = "taskdata";
|
|
19
19
|
FieldType["FORMFIELD"] = "formfield";
|
|
20
|
-
})(FieldType
|
|
20
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
@@ -7,4 +7,4 @@ var FormFieldConditionList;
|
|
|
7
7
|
(function (listType) {
|
|
8
8
|
listType["LIST"] = "list";
|
|
9
9
|
})(listType = FormFieldConditionList.listType || (FormFieldConditionList.listType = {}));
|
|
10
|
-
})(FormFieldConditionList
|
|
10
|
+
})(FormFieldConditionList || (exports.FormFieldConditionList = FormFieldConditionList = {}));
|
|
@@ -7,4 +7,4 @@ var FormFieldSimpleCondition;
|
|
|
7
7
|
(function (listType) {
|
|
8
8
|
listType["SIMPLE"] = "simple";
|
|
9
9
|
})(listType = FormFieldSimpleCondition.listType || (FormFieldSimpleCondition.listType = {}));
|
|
10
|
-
})(FormFieldSimpleCondition
|
|
10
|
+
})(FormFieldSimpleCondition || (exports.FormFieldSimpleCondition = FormFieldSimpleCondition = {}));
|
|
@@ -9,4 +9,4 @@ var InterfaceConditionListType;
|
|
|
9
9
|
(function (InterfaceConditionListType) {
|
|
10
10
|
InterfaceConditionListType["AND"] = "AND";
|
|
11
11
|
InterfaceConditionListType["OR"] = "OR";
|
|
12
|
-
})(InterfaceConditionListType
|
|
12
|
+
})(InterfaceConditionListType || (exports.InterfaceConditionListType = InterfaceConditionListType = {}));
|
|
@@ -36,4 +36,4 @@ var PrimitiveType;
|
|
|
36
36
|
PrimitiveType["POINT2D"] = "point2d";
|
|
37
37
|
PrimitiveType["POLYGON2D"] = "polygon2d";
|
|
38
38
|
PrimitiveType["GREXXBLOB"] = "grexxblob";
|
|
39
|
-
})(PrimitiveType
|
|
39
|
+
})(PrimitiveType || (exports.PrimitiveType = PrimitiveType = {}));
|
|
@@ -8,4 +8,4 @@ var ReturnTypeFlags;
|
|
|
8
8
|
multivalueType["SET"] = "set";
|
|
9
9
|
multivalueType["LIST"] = "list";
|
|
10
10
|
})(multivalueType = ReturnTypeFlags.multivalueType || (ReturnTypeFlags.multivalueType = {}));
|
|
11
|
-
})(ReturnTypeFlags
|
|
11
|
+
})(ReturnTypeFlags || (exports.ReturnTypeFlags = ReturnTypeFlags = {}));
|
|
@@ -7,4 +7,4 @@ var SortConfigSearchCondition;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["SIMPLE_CONDITION"] = "simpleCondition";
|
|
9
9
|
})(type = SortConfigSearchCondition.type || (SortConfigSearchCondition.type = {}));
|
|
10
|
-
})(SortConfigSearchCondition
|
|
10
|
+
})(SortConfigSearchCondition || (exports.SortConfigSearchCondition = SortConfigSearchCondition = {}));
|
|
@@ -7,4 +7,4 @@ var SortConfigSearchList;
|
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["CONDITION_LIST"] = "conditionList";
|
|
9
9
|
})(type = SortConfigSearchList.type || (SortConfigSearchList.type = {}));
|
|
10
|
-
})(SortConfigSearchList
|
|
10
|
+
})(SortConfigSearchList || (exports.SortConfigSearchList = SortConfigSearchList = {}));
|
|
@@ -8,4 +8,4 @@ var SortConfigSort;
|
|
|
8
8
|
direction["ASC"] = "asc";
|
|
9
9
|
direction["DESC"] = "desc";
|
|
10
10
|
})(direction = SortConfigSort.direction || (SortConfigSort.direction = {}));
|
|
11
|
-
})(SortConfigSort
|
|
11
|
+
})(SortConfigSort || (exports.SortConfigSort = SortConfigSort = {}));
|
|
@@ -93,13 +93,13 @@ export declare class CaseService {
|
|
|
93
93
|
/**
|
|
94
94
|
* Retrieve the contents of a form, rights are checked via form rights
|
|
95
95
|
* @param casePath Path or Id of case
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
96
|
+
* @param formId ID of form
|
|
97
|
+
* @param form Set form
|
|
98
98
|
* @param format Format of the result
|
|
99
99
|
* @returns any Retrieve the contents of a form, rights are checked via form rights
|
|
100
100
|
* @throws ApiError
|
|
101
101
|
*/
|
|
102
|
-
static formRetrieve(casePath: string,
|
|
102
|
+
static formRetrieve(casePath: string, formId: UnversionedReference, form?: any, format?: 'simple' | 'extended' | 'full'): CancelablePromise<any>;
|
|
103
103
|
/**
|
|
104
104
|
* Retrieve the contents of a dataset, rights are checked via widget rights
|
|
105
105
|
* @param casePath Path or Id of case
|
|
@@ -335,13 +335,13 @@ export declare class CaseService {
|
|
|
335
335
|
* @deprecated
|
|
336
336
|
* Retrieve the contents of a form, rights are checked via form rights
|
|
337
337
|
* @param caseId ID of case
|
|
338
|
-
* @param
|
|
339
|
-
* @param
|
|
338
|
+
* @param formId ID of form
|
|
339
|
+
* @param form Set form
|
|
340
340
|
* @param format Format of the result
|
|
341
341
|
* @returns any Retrieve the contents of a form, rights are checked via form rights
|
|
342
342
|
* @throws ApiError
|
|
343
343
|
*/
|
|
344
|
-
static formGet(caseId: UnversionedReference,
|
|
344
|
+
static formGet(caseId: UnversionedReference, formId: UnversionedReference, form?: any, format?: 'simple' | 'extended' | 'full'): CancelablePromise<any>;
|
|
345
345
|
/**
|
|
346
346
|
* @deprecated
|
|
347
347
|
* Retrieve the contents of a dataset, rights are checked via widget rights
|
|
@@ -54,22 +54,22 @@ class CaseService {
|
|
|
54
54
|
/**
|
|
55
55
|
* Retrieve the contents of a form, rights are checked via form rights
|
|
56
56
|
* @param casePath Path or Id of case
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
57
|
+
* @param formId ID of form
|
|
58
|
+
* @param form Set form
|
|
59
59
|
* @param format Format of the result
|
|
60
60
|
* @returns any Retrieve the contents of a form, rights are checked via form rights
|
|
61
61
|
* @throws ApiError
|
|
62
62
|
*/
|
|
63
|
-
static formRetrieve(casePath,
|
|
63
|
+
static formRetrieve(casePath, formId, form, format = 'simple') {
|
|
64
64
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
65
65
|
method: 'GET',
|
|
66
|
-
url: '/form/{
|
|
66
|
+
url: '/form/{formId}/{casePath}',
|
|
67
67
|
path: {
|
|
68
68
|
'casePath': casePath,
|
|
69
|
-
'
|
|
69
|
+
'formId': formId,
|
|
70
70
|
},
|
|
71
71
|
query: {
|
|
72
|
-
'
|
|
72
|
+
'form': form,
|
|
73
73
|
'format': format,
|
|
74
74
|
},
|
|
75
75
|
});
|
|
@@ -238,22 +238,22 @@ class CaseService {
|
|
|
238
238
|
* @deprecated
|
|
239
239
|
* Retrieve the contents of a form, rights are checked via form rights
|
|
240
240
|
* @param caseId ID of case
|
|
241
|
-
* @param
|
|
242
|
-
* @param
|
|
241
|
+
* @param formId ID of form
|
|
242
|
+
* @param form Set form
|
|
243
243
|
* @param format Format of the result
|
|
244
244
|
* @returns any Retrieve the contents of a form, rights are checked via form rights
|
|
245
245
|
* @throws ApiError
|
|
246
246
|
*/
|
|
247
|
-
static formGet(caseId,
|
|
247
|
+
static formGet(caseId, formId, form, format = 'simple') {
|
|
248
248
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
249
249
|
method: 'GET',
|
|
250
|
-
url: '/case/{caseId}/form/{
|
|
250
|
+
url: '/case/{caseId}/form/{formId}',
|
|
251
251
|
path: {
|
|
252
252
|
'caseId': caseId,
|
|
253
|
-
'
|
|
253
|
+
'formId': formId,
|
|
254
254
|
},
|
|
255
255
|
query: {
|
|
256
|
-
'
|
|
256
|
+
'form': form,
|
|
257
257
|
'format': format,
|
|
258
258
|
},
|
|
259
259
|
});
|
package/generate-spec.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import yaml from 'js-yaml';
|
|
3
|
+
import { OpenAPIGenerator } from '../src/server/utils/openapi-generator';
|
|
4
|
+
|
|
5
|
+
const packageJSON = fs.readFileSync(__dirname + '/../package.json', 'utf8');
|
|
6
|
+
const version = JSON.parse(packageJSON).version;
|
|
7
|
+
|
|
8
|
+
// Ensure the version is always the same as our root project version
|
|
9
|
+
const apiPackagePath = __dirname + '/package.json';
|
|
10
|
+
const apiPackage = JSON.parse(fs.readFileSync(apiPackagePath, 'utf8'));
|
|
11
|
+
fs.writeFileSync(__dirname + '/package.json', JSON.stringify({ ...apiPackage, version }, null, 2), 'utf8');
|
|
12
|
+
|
|
13
|
+
const generator = new OpenAPIGenerator(version);
|
|
14
|
+
|
|
15
|
+
const spec = generator.getSchema();
|
|
16
|
+
fs.writeFileSync('./openapi-spec.yaml', yaml.dump(spec), 'utf8');
|
|
17
|
+
console.log('OpenAPI spec saved to openapi-spec.yaml');
|
|
@@ -5,7 +5,7 @@ info:
|
|
|
5
5
|
contact:
|
|
6
6
|
name: Grexx Platform Documentation
|
|
7
7
|
url: https://docs.grexx.io/
|
|
8
|
-
version: 12.6.
|
|
8
|
+
version: 12.6.6
|
|
9
9
|
externalDocs:
|
|
10
10
|
description: Read the documentation about the usage of this API
|
|
11
11
|
url: https://docs.grexx.io/connect/api/
|
|
@@ -13,7 +13,7 @@ servers:
|
|
|
13
13
|
- url: https://{hostname}/api/v1
|
|
14
14
|
variables:
|
|
15
15
|
hostname:
|
|
16
|
-
default:
|
|
16
|
+
default: name.grexx.today
|
|
17
17
|
description: The hostname for your Grexx platform.
|
|
18
18
|
tags:
|
|
19
19
|
- name: case
|
|
@@ -463,11 +463,11 @@ paths:
|
|
|
463
463
|
Retrieve the contents of a dataset, rights are checked via dataset
|
|
464
464
|
rights
|
|
465
465
|
operationId: dataset-retrieve
|
|
466
|
-
/form/{
|
|
466
|
+
/form/{formId}/{casePath}:
|
|
467
467
|
get:
|
|
468
468
|
parameters:
|
|
469
469
|
- in: query
|
|
470
|
-
name:
|
|
470
|
+
name: form
|
|
471
471
|
description: Set form
|
|
472
472
|
required: false
|
|
473
473
|
schema: {}
|
|
@@ -479,7 +479,7 @@ paths:
|
|
|
479
479
|
type: string
|
|
480
480
|
- in: path
|
|
481
481
|
required: true
|
|
482
|
-
name:
|
|
482
|
+
name: formId
|
|
483
483
|
description: ID of form
|
|
484
484
|
schema:
|
|
485
485
|
$ref: '#/components/schemas/UnversionedReference'
|
|
@@ -1164,11 +1164,11 @@ paths:
|
|
|
1164
1164
|
rights
|
|
1165
1165
|
operationId: dataset-get
|
|
1166
1166
|
deprecated: true
|
|
1167
|
-
/case/{caseId}/form/{
|
|
1167
|
+
/case/{caseId}/form/{formId}:
|
|
1168
1168
|
get:
|
|
1169
1169
|
parameters:
|
|
1170
1170
|
- in: query
|
|
1171
|
-
name:
|
|
1171
|
+
name: form
|
|
1172
1172
|
description: Set form
|
|
1173
1173
|
required: false
|
|
1174
1174
|
schema: {}
|
|
@@ -1180,7 +1180,7 @@ paths:
|
|
|
1180
1180
|
$ref: '#/components/schemas/UnversionedReference'
|
|
1181
1181
|
- in: path
|
|
1182
1182
|
required: true
|
|
1183
|
-
name:
|
|
1183
|
+
name: formId
|
|
1184
1184
|
description: ID of form
|
|
1185
1185
|
schema:
|
|
1186
1186
|
$ref: '#/components/schemas/UnversionedReference'
|
|
@@ -4467,4 +4467,4 @@ components:
|
|
|
4467
4467
|
_ruleType:
|
|
4468
4468
|
type: string
|
|
4469
4469
|
MapStringObject:
|
|
4470
|
-
type: object
|
|
4470
|
+
type: object
|
package/package.json
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grexx-api",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "12.6.6",
|
|
4
|
+
"description": "Grexx platform API javascript library",
|
|
5
5
|
"main": "dist/generated/index.js",
|
|
6
6
|
"types": "dist/generated/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
|
-
"generate": "npx openapi-typescript-codegen --input openapi.yaml --output ./src/generated"
|
|
9
|
+
"generate": "ts-node ./generate-spec.ts && npx openapi-typescript-codegen --input openapi-spec.yaml --output ./src/generated",
|
|
10
|
+
"docs": "typedoc",
|
|
11
|
+
"build-and-publish": "npm run generate && npm run build && npm publish"
|
|
10
12
|
},
|
|
11
13
|
"devDependencies": {
|
|
12
14
|
"openapi-typescript-codegen": "^0.29.0",
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
15
|
+
"ts-node": "^10.9.2",
|
|
16
|
+
"typedoc": "^0.27",
|
|
17
|
+
"typedoc-material-theme": "1.3",
|
|
18
|
+
"typedoc-plugin-merge-modules": "6",
|
|
19
|
+
"typedoc-plugin-rename-defaults": "0.7",
|
|
20
|
+
"typescript": "^5.8.3"
|
|
17
21
|
}
|
|
18
|
-
}
|
|
22
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"target": "ESNext",
|
|
4
4
|
"module": "commonjs",
|
|
5
5
|
"strict": true,
|
|
6
|
+
"noImplicitAny": false,
|
|
6
7
|
"esModuleInterop": true,
|
|
7
8
|
"skipLibCheck": true,
|
|
8
9
|
"outDir": "./dist",
|
|
@@ -11,4 +12,4 @@
|
|
|
11
12
|
},
|
|
12
13
|
"include": ["src/**/*.ts"],
|
|
13
14
|
"exclude": ["node_modules"]
|
|
14
|
-
}
|
|
15
|
+
}
|
package/typedoc.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://typedoc.org/schema.json",
|
|
3
|
+
"name": "Grexx platform javascript library",
|
|
4
|
+
"entryPoints": ["src/generated/index.ts"],
|
|
5
|
+
"out": "docs",
|
|
6
|
+
"sidebarLinks": {
|
|
7
|
+
"JavaScript Browser API documentation": "/docs/api/js",
|
|
8
|
+
"Exit documentation": "/home"
|
|
9
|
+
},
|
|
10
|
+
"exclude": ["**/*.test.ts", "**/__tests__/**"],
|
|
11
|
+
"tsconfig": "tsconfig.json",
|
|
12
|
+
"plugin": ["typedoc-material-theme", "typedoc-plugin-rename-defaults", "typedoc-plugin-merge-modules"],
|
|
13
|
+
"themeColor": "#ffffff",
|
|
14
|
+
"excludeNotDocumented": true,
|
|
15
|
+
"excludeInternal": true,
|
|
16
|
+
"excludeReferences": true,
|
|
17
|
+
"includeVersion": true,
|
|
18
|
+
"excludeNotDocumentedKinds": ["Property", "Interface", "TypeAlias", "Namespace"]
|
|
19
|
+
}
|
package/.idea/grexx-api.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/grexx-api.iml" filepath="$PROJECT_DIR$/.idea/grexx-api.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/openapitools.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
6
|
-
import type { ApiResult } from './ApiResult';
|
|
7
|
-
|
|
8
|
-
export class ApiError extends Error {
|
|
9
|
-
public readonly url: string;
|
|
10
|
-
public readonly status: number;
|
|
11
|
-
public readonly statusText: string;
|
|
12
|
-
public readonly body: any;
|
|
13
|
-
public readonly request: ApiRequestOptions;
|
|
14
|
-
|
|
15
|
-
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
|
16
|
-
super(message);
|
|
17
|
-
|
|
18
|
-
this.name = 'ApiError';
|
|
19
|
-
this.url = response.url;
|
|
20
|
-
this.status = response.status;
|
|
21
|
-
this.statusText = response.statusText;
|
|
22
|
-
this.body = response.body;
|
|
23
|
-
this.request = request;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export type ApiRequestOptions = {
|
|
6
|
-
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
7
|
-
readonly url: string;
|
|
8
|
-
readonly path?: Record<string, any>;
|
|
9
|
-
readonly cookies?: Record<string, any>;
|
|
10
|
-
readonly headers?: Record<string, any>;
|
|
11
|
-
readonly query?: Record<string, any>;
|
|
12
|
-
readonly formData?: Record<string, any>;
|
|
13
|
-
readonly body?: any;
|
|
14
|
-
readonly mediaType?: string;
|
|
15
|
-
readonly responseHeader?: string;
|
|
16
|
-
readonly errors?: Record<number, string>;
|
|
17
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export type ApiResult = {
|
|
6
|
-
readonly url: string;
|
|
7
|
-
readonly ok: boolean;
|
|
8
|
-
readonly status: number;
|
|
9
|
-
readonly statusText: string;
|
|
10
|
-
readonly body: any;
|
|
11
|
-
};
|