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 formId ID of form
97
- * @param form Set form
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, formId: UnversionedReference, form?: any, format?: 'simple' | 'extended' | 'full'): CancelablePromise<any>;
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 formId ID of form
339
- * @param form Set form
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, formId: UnversionedReference, form?: any, format?: 'simple' | 'extended' | 'full'): CancelablePromise<any>;
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 formId ID of form
58
- * @param form Set form
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, formId, form, format = 'simple') {
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
- 'formId': formId,
69
+ 'form': form,
70
70
  },
71
71
  query: {
72
- 'form': form,
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 formId ID of form
242
- * @param form Set form
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, formId, form, format = 'simple') {
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
- 'formId': formId,
253
+ 'form': form,
254
254
  },
255
255
  query: {
256
- 'form': form,
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: form
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: formId
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: form
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: formId
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.1",
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 formId ID of form
140
- * @param form Set form
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
- formId: UnversionedReference,
148
- form?: any,
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
- 'formId': formId,
156
+ 'form': form,
157
157
  },
158
158
  query: {
159
- 'form': form,
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 formId ID of form
523
- * @param form Set form
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
- formId: UnversionedReference,
531
- form?: any,
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
- 'formId': formId,
539
+ 'form': form,
540
540
  },
541
541
  query: {
542
- 'form': form,
542
+ 'formId': formId,
543
543
  'format': format,
544
544
  },
545
545
  });