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.
Files changed (103) hide show
  1. package/dist/generated/core/OpenAPI.js +2 -2
  2. package/dist/generated/core/request.d.ts +1 -1
  3. package/dist/generated/models/AdditionalAggregateColumn.js +1 -1
  4. package/dist/generated/models/AdditionalDataHistoryColumn.js +1 -1
  5. package/dist/generated/models/AdditionalDerivedColumn.js +1 -1
  6. package/dist/generated/models/AdditionalExternalColumn.js +1 -1
  7. package/dist/generated/models/AdditionalGroupbyColumn.js +1 -1
  8. package/dist/generated/models/AdditionalMetaColumn.js +1 -1
  9. package/dist/generated/models/AdditionalTemplateColumn.js +1 -1
  10. package/dist/generated/models/BaseMessage.js +1 -1
  11. package/dist/generated/models/CatchPattern.js +1 -1
  12. package/dist/generated/models/ColumnIdentifier.js +1 -1
  13. package/dist/generated/models/ConditionOperatorType.js +1 -1
  14. package/dist/generated/models/FieldType.js +1 -1
  15. package/dist/generated/models/FormFieldConditionList.js +1 -1
  16. package/dist/generated/models/FormFieldSimpleCondition.js +1 -1
  17. package/dist/generated/models/InterfaceConditionListType.js +1 -1
  18. package/dist/generated/models/PrimitiveType.js +1 -1
  19. package/dist/generated/models/ReturnTypeFlags.js +1 -1
  20. package/dist/generated/models/SortConfigSearchCondition.js +1 -1
  21. package/dist/generated/models/SortConfigSearchList.js +1 -1
  22. package/dist/generated/models/SortConfigSort.js +1 -1
  23. package/dist/generated/services/CaseService.d.ts +6 -6
  24. package/dist/generated/services/CaseService.js +12 -12
  25. package/generate-spec.ts +17 -0
  26. package/{openapi.yaml → openapi-spec.yaml} +9 -9
  27. package/package.json +12 -8
  28. package/tsconfig.json +2 -1
  29. package/typedoc.json +19 -0
  30. package/.idea/grexx-api.iml +0 -12
  31. package/.idea/modules.xml +0 -8
  32. package/.idea/vcs.xml +0 -6
  33. package/openapitools.json +0 -7
  34. package/src/generated/core/ApiError.ts +0 -25
  35. package/src/generated/core/ApiRequestOptions.ts +0 -17
  36. package/src/generated/core/ApiResult.ts +0 -11
  37. package/src/generated/core/CancelablePromise.ts +0 -131
  38. package/src/generated/core/OpenAPI.ts +0 -32
  39. package/src/generated/core/request.ts +0 -322
  40. package/src/generated/index.ts +0 -73
  41. package/src/generated/models/AbstractCondition.ts +0 -11
  42. package/src/generated/models/AbstractReference.ts +0 -8
  43. package/src/generated/models/AbstractRule.ts +0 -19
  44. package/src/generated/models/Activity.ts +0 -7
  45. package/src/generated/models/AdditionalAggregateColumn.ts +0 -20
  46. package/src/generated/models/AdditionalDataHistoryColumn.ts +0 -17
  47. package/src/generated/models/AdditionalDerivedColumn.ts +0 -24
  48. package/src/generated/models/AdditionalExternalColumn.ts +0 -16
  49. package/src/generated/models/AdditionalGroupbyColumn.ts +0 -18
  50. package/src/generated/models/AdditionalMetaColumn.ts +0 -34
  51. package/src/generated/models/AdditionalTemplateColumn.ts +0 -22
  52. package/src/generated/models/AnalyseDependency.ts +0 -39
  53. package/src/generated/models/BaseMessage.ts +0 -26
  54. package/src/generated/models/CaseReference.ts +0 -8
  55. package/src/generated/models/CasetypeAttribute.ts +0 -7
  56. package/src/generated/models/CasetypeCss.ts +0 -10
  57. package/src/generated/models/CatchBlock.ts +0 -7
  58. package/src/generated/models/CatchPattern.ts +0 -7
  59. package/src/generated/models/ColumnId.ts +0 -5
  60. package/src/generated/models/ColumnIdentifier.ts +0 -10
  61. package/src/generated/models/ConditionList.ts +0 -7
  62. package/src/generated/models/ConditionOperatorType.ts +0 -26
  63. package/src/generated/models/CustomThrow.ts +0 -7
  64. package/src/generated/models/Dataset.ts +0 -7
  65. package/src/generated/models/DatasetColumn.ts +0 -7
  66. package/src/generated/models/DatasetCondition.ts +0 -7
  67. package/src/generated/models/DatasetResult.ts +0 -20
  68. package/src/generated/models/FieldType.ts +0 -16
  69. package/src/generated/models/FileUploadProfile.ts +0 -7
  70. package/src/generated/models/ForEach.ts +0 -7
  71. package/src/generated/models/FormAction.ts +0 -7
  72. package/src/generated/models/FormActionInlineJavascript.ts +0 -7
  73. package/src/generated/models/FormField.ts +0 -7
  74. package/src/generated/models/FormFieldConditionList.ts +0 -19
  75. package/src/generated/models/FormFieldNotCondition.ts +0 -12
  76. package/src/generated/models/FormFieldSimpleCondition.ts +0 -27
  77. package/src/generated/models/FormGroup.ts +0 -7
  78. package/src/generated/models/GrexxComplexDatatype.ts +0 -11
  79. package/src/generated/models/HasRoleCondition.ts +0 -7
  80. package/src/generated/models/IfThenElse.ts +0 -7
  81. package/src/generated/models/Instant.ts +0 -5
  82. package/src/generated/models/InterfaceConditionListType.ts +0 -8
  83. package/src/generated/models/MapStringObject.ts +0 -5
  84. package/src/generated/models/Mapping.ts +0 -7
  85. package/src/generated/models/NotCondition.ts +0 -7
  86. package/src/generated/models/ParallelBlock.ts +0 -7
  87. package/src/generated/models/Picklist.ts +0 -7
  88. package/src/generated/models/PrimitiveType.ts +0 -35
  89. package/src/generated/models/RequestContext.ts +0 -7
  90. package/src/generated/models/ReturnTypeFlags.ts +0 -19
  91. package/src/generated/models/RuleList.ts +0 -7
  92. package/src/generated/models/SimpleCondition.ts +0 -7
  93. package/src/generated/models/SortConfigSearchCondition.ts +0 -24
  94. package/src/generated/models/SortConfigSearchList.ts +0 -17
  95. package/src/generated/models/SortConfigSort.ts +0 -16
  96. package/src/generated/models/Trigger.ts +0 -7
  97. package/src/generated/models/TryBlock.ts +0 -7
  98. package/src/generated/models/UUID.ts +0 -5
  99. package/src/generated/models/UnversionedReference.ts +0 -8
  100. package/src/generated/models/VersionedReference.ts +0 -8
  101. package/src/generated/models/While.ts +0 -7
  102. package/src/generated/services/CaseService.ts +0 -800
  103. 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://daanpaardekooper-studio.local.grexx.io/api/v1',
6
- VERSION: '12.6.1',
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> | undefined) => Promise<T | undefined>;
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 = exports.AdditionalAggregateColumn || (exports.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 = exports.AdditionalDataHistoryColumn || (exports.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 = exports.AdditionalDerivedColumn || (exports.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 = exports.AdditionalExternalColumn || (exports.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 = exports.AdditionalGroupbyColumn || (exports.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 = exports.AdditionalMetaColumn || (exports.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 = exports.AdditionalTemplateColumn || (exports.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 = exports.BaseMessage || (exports.BaseMessage = {}));
14
+ })(BaseMessage || (exports.BaseMessage = BaseMessage = {}));
@@ -8,4 +8,4 @@ exports.CatchPattern = void 0;
8
8
  var CatchPattern;
9
9
  (function (CatchPattern) {
10
10
  CatchPattern["EMAIL_1001"] = "EMAIL-1001";
11
- })(CatchPattern = exports.CatchPattern || (exports.CatchPattern = {}));
11
+ })(CatchPattern || (exports.CatchPattern = CatchPattern = {}));
@@ -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 = exports.ColumnIdentifier || (exports.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 = exports.ConditionOperatorType || (exports.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 = exports.FieldType || (exports.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 = exports.FormFieldConditionList || (exports.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 = exports.FormFieldSimpleCondition || (exports.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 = exports.InterfaceConditionListType || (exports.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 = exports.PrimitiveType || (exports.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 = exports.ReturnTypeFlags || (exports.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 = exports.SortConfigSearchCondition || (exports.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 = exports.SortConfigSearchList || (exports.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 = exports.SortConfigSort || (exports.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 form ID of form
97
- * @param formId Set form
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, form: UnversionedReference, formId?: any, format?: 'simple' | 'extended' | 'full'): CancelablePromise<any>;
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 form ID of form
339
- * @param formId Set form
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, form: UnversionedReference, formId?: any, format?: 'simple' | 'extended' | 'full'): CancelablePromise<any>;
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 form ID of form
58
- * @param formId Set form
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, form, formId, format = 'simple') {
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/{form}/{casePath}',
66
+ url: '/form/{formId}/{casePath}',
67
67
  path: {
68
68
  'casePath': casePath,
69
- 'form': form,
69
+ 'formId': formId,
70
70
  },
71
71
  query: {
72
- 'formId': formId,
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 form ID of form
242
- * @param formId Set form
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, form, formId, format = 'simple') {
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/{form}',
250
+ url: '/case/{caseId}/form/{formId}',
251
251
  path: {
252
252
  'caseId': caseId,
253
- 'form': form,
253
+ 'formId': formId,
254
254
  },
255
255
  query: {
256
- 'formId': formId,
256
+ 'form': form,
257
257
  'format': format,
258
258
  },
259
259
  });
@@ -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.1
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: daanpaardekooper-studio.local.grexx.io
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/{form}/{casePath}:
466
+ /form/{formId}/{casePath}:
467
467
  get:
468
468
  parameters:
469
469
  - in: query
470
- name: formId
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: form
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/{form}:
1167
+ /case/{caseId}/form/{formId}:
1168
1168
  get:
1169
1169
  parameters:
1170
1170
  - in: query
1171
- name: formId
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: form
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": "1.0.2",
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
- "typescript": "4.9.5"
14
- },
15
- "dependencies": {
16
- "grexx-api": "^1.0.0"
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
+ }
@@ -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
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
package/openapitools.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3
- "spaces": 2,
4
- "generator-cli": {
5
- "version": "7.12.0"
6
- }
7
- }
@@ -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
- };