grexx-api 1.0.1 → 1.0.2
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.
|
@@ -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 form ID of form
|
|
97
|
+
* @param formId 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, form: UnversionedReference, formId?: 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 form ID of form
|
|
339
|
+
* @param formId 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, form: UnversionedReference, formId?: 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 form ID of form
|
|
58
|
+
* @param formId 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, form, formId, format = 'simple') {
|
|
64
64
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
65
65
|
method: 'GET',
|
|
66
66
|
url: '/form/{form}/{casePath}',
|
|
67
67
|
path: {
|
|
68
68
|
'casePath': casePath,
|
|
69
|
-
'
|
|
69
|
+
'form': form,
|
|
70
70
|
},
|
|
71
71
|
query: {
|
|
72
|
-
'
|
|
72
|
+
'formId': formId,
|
|
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 form ID of form
|
|
242
|
+
* @param formId 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, form, formId, format = 'simple') {
|
|
248
248
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
249
249
|
method: 'GET',
|
|
250
250
|
url: '/case/{caseId}/form/{form}',
|
|
251
251
|
path: {
|
|
252
252
|
'caseId': caseId,
|
|
253
|
-
'
|
|
253
|
+
'form': form,
|
|
254
254
|
},
|
|
255
255
|
query: {
|
|
256
|
-
'
|
|
256
|
+
'formId': formId,
|
|
257
257
|
'format': format,
|
|
258
258
|
},
|
|
259
259
|
});
|
package/openapi.yaml
CHANGED
|
@@ -467,7 +467,7 @@ paths:
|
|
|
467
467
|
get:
|
|
468
468
|
parameters:
|
|
469
469
|
- in: query
|
|
470
|
-
name:
|
|
470
|
+
name: formId
|
|
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: form
|
|
483
483
|
description: ID of form
|
|
484
484
|
schema:
|
|
485
485
|
$ref: '#/components/schemas/UnversionedReference'
|
|
@@ -1168,7 +1168,7 @@ paths:
|
|
|
1168
1168
|
get:
|
|
1169
1169
|
parameters:
|
|
1170
1170
|
- in: query
|
|
1171
|
-
name:
|
|
1171
|
+
name: formId
|
|
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: form
|
|
1184
1184
|
description: ID of form
|
|
1185
1185
|
schema:
|
|
1186
1186
|
$ref: '#/components/schemas/UnversionedReference'
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grexx-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/generated/index.js",
|
|
6
6
|
"types": "dist/generated/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
|
-
"generate": "openapi-typescript-codegen --input openapi.yaml --output ./src/generated"
|
|
9
|
+
"generate": "npx openapi-typescript-codegen --input openapi.yaml --output ./src/generated"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"openapi-typescript-codegen": "^0.29.0",
|
|
@@ -136,16 +136,16 @@ export class CaseService {
|
|
|
136
136
|
/**
|
|
137
137
|
* Retrieve the contents of a form, rights are checked via form rights
|
|
138
138
|
* @param casePath Path or Id of case
|
|
139
|
-
* @param
|
|
140
|
-
* @param
|
|
139
|
+
* @param form ID of form
|
|
140
|
+
* @param formId Set form
|
|
141
141
|
* @param format Format of the result
|
|
142
142
|
* @returns any Retrieve the contents of a form, rights are checked via form rights
|
|
143
143
|
* @throws ApiError
|
|
144
144
|
*/
|
|
145
145
|
public static formRetrieve(
|
|
146
146
|
casePath: string,
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
form: UnversionedReference,
|
|
148
|
+
formId?: any,
|
|
149
149
|
format: 'simple' | 'extended' | 'full' = 'simple',
|
|
150
150
|
): CancelablePromise<any> {
|
|
151
151
|
return __request(OpenAPI, {
|
|
@@ -153,10 +153,10 @@ export class CaseService {
|
|
|
153
153
|
url: '/form/{form}/{casePath}',
|
|
154
154
|
path: {
|
|
155
155
|
'casePath': casePath,
|
|
156
|
-
'
|
|
156
|
+
'form': form,
|
|
157
157
|
},
|
|
158
158
|
query: {
|
|
159
|
-
'
|
|
159
|
+
'formId': formId,
|
|
160
160
|
'format': format,
|
|
161
161
|
},
|
|
162
162
|
});
|
|
@@ -519,16 +519,16 @@ export class CaseService {
|
|
|
519
519
|
* @deprecated
|
|
520
520
|
* Retrieve the contents of a form, rights are checked via form rights
|
|
521
521
|
* @param caseId ID of case
|
|
522
|
-
* @param
|
|
523
|
-
* @param
|
|
522
|
+
* @param form ID of form
|
|
523
|
+
* @param formId Set form
|
|
524
524
|
* @param format Format of the result
|
|
525
525
|
* @returns any Retrieve the contents of a form, rights are checked via form rights
|
|
526
526
|
* @throws ApiError
|
|
527
527
|
*/
|
|
528
528
|
public static formGet(
|
|
529
529
|
caseId: UnversionedReference,
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
form: UnversionedReference,
|
|
531
|
+
formId?: any,
|
|
532
532
|
format: 'simple' | 'extended' | 'full' = 'simple',
|
|
533
533
|
): CancelablePromise<any> {
|
|
534
534
|
return __request(OpenAPI, {
|
|
@@ -536,10 +536,10 @@ export class CaseService {
|
|
|
536
536
|
url: '/case/{caseId}/form/{form}',
|
|
537
537
|
path: {
|
|
538
538
|
'caseId': caseId,
|
|
539
|
-
'
|
|
539
|
+
'form': form,
|
|
540
540
|
},
|
|
541
541
|
query: {
|
|
542
|
-
'
|
|
542
|
+
'formId': formId,
|
|
543
543
|
'format': format,
|
|
544
544
|
},
|
|
545
545
|
});
|