grexx-api 1.0.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.
Files changed (193) hide show
  1. package/.idea/grexx-api.iml +12 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/dist/api.js +2508 -0
  5. package/dist/base.js +68 -0
  6. package/dist/common.js +161 -0
  7. package/dist/configuration.js +44 -0
  8. package/dist/generated/api.js +2448 -0
  9. package/dist/generated/apis/CaseApi.js +745 -0
  10. package/dist/generated/apis/PlatformApi.js +82 -0
  11. package/dist/generated/apis/index.js +20 -0
  12. package/dist/generated/base.js +71 -0
  13. package/dist/generated/common.js +145 -0
  14. package/dist/generated/configuration.js +104 -0
  15. package/dist/generated/core/ApiError.js +20 -0
  16. package/dist/generated/core/ApiRequestOptions.js +2 -0
  17. package/dist/generated/core/ApiResult.js +2 -0
  18. package/dist/generated/core/CancelablePromise.js +104 -0
  19. package/dist/generated/core/OpenAPI.js +14 -0
  20. package/dist/generated/core/request.js +294 -0
  21. package/dist/generated/index.js +58 -0
  22. package/dist/generated/models/AbstractCondition.js +2 -0
  23. package/dist/generated/models/AbstractReference.js +2 -0
  24. package/dist/generated/models/AbstractRule.js +2 -0
  25. package/dist/generated/models/Activity.js +2 -0
  26. package/dist/generated/models/ActivityDirectSubmit200Response.js +74 -0
  27. package/dist/generated/models/AdditionalAggregateColumn.js +10 -0
  28. package/dist/generated/models/AdditionalDataHistoryColumn.js +10 -0
  29. package/dist/generated/models/AdditionalDerivedColumn.js +16 -0
  30. package/dist/generated/models/AdditionalExternalColumn.js +10 -0
  31. package/dist/generated/models/AdditionalGroupbyColumn.js +10 -0
  32. package/dist/generated/models/AdditionalMetaColumn.js +27 -0
  33. package/dist/generated/models/AdditionalTemplateColumn.js +10 -0
  34. package/dist/generated/models/AnalyseDependency.js +2 -0
  35. package/dist/generated/models/BaseMessage.js +14 -0
  36. package/dist/generated/models/CaseInfo200Response.js +88 -0
  37. package/dist/generated/models/CaseInfo200ResponseCasetype.js +63 -0
  38. package/dist/generated/models/CaseInfo200ResponseCasetypePlatformTheme.js +84 -0
  39. package/dist/generated/models/CaseInfo200ResponseCasetypePlatformThemeCssVariables.js +98 -0
  40. package/dist/generated/models/CaseInfo200ResponseCasetypeViewsInner.js +96 -0
  41. package/dist/generated/models/CaseInfo200ResponseRootlineInner.js +52 -0
  42. package/dist/generated/models/CaseReference.js +2 -0
  43. package/dist/generated/models/CasetypeAttribute.js +2 -0
  44. package/dist/generated/models/CasetypeAttributeCurrency.js +48 -0
  45. package/dist/generated/models/CasetypeCss.js +2 -0
  46. package/dist/generated/models/CatchBlock.js +2 -0
  47. package/dist/generated/models/CatchPattern.js +11 -0
  48. package/dist/generated/models/ColumnId.js +2 -0
  49. package/dist/generated/models/ColumnIdentifier.js +14 -0
  50. package/dist/generated/models/ConditionList.js +2 -0
  51. package/dist/generated/models/ConditionOperatorType.js +30 -0
  52. package/dist/generated/models/CustomThrow.js +2 -0
  53. package/dist/generated/models/Dataset.js +2 -0
  54. package/dist/generated/models/DatasetColumn.js +2 -0
  55. package/dist/generated/models/DatasetCondition.js +2 -0
  56. package/dist/generated/models/DatasetResult.js +2 -0
  57. package/dist/generated/models/DatasetResultDatasetDefinition.js +54 -0
  58. package/dist/generated/models/DatasetResultDatasetDefinitionSortConfig.js +50 -0
  59. package/dist/generated/models/DatasetRetrieveRequest.js +80 -0
  60. package/dist/generated/models/DatasetRetrieveRequestAdditionalColumnsInner.js +120 -0
  61. package/dist/generated/models/DatasetRetrieveRequestSearch.js +73 -0
  62. package/dist/generated/models/DatasetRetrieveViaWidgetRequest.js +86 -0
  63. package/dist/generated/models/FieldType.js +20 -0
  64. package/dist/generated/models/FileUploadProfile.js +2 -0
  65. package/dist/generated/models/ForEach.js +2 -0
  66. package/dist/generated/models/FormAction.js +2 -0
  67. package/dist/generated/models/FormActionInlineJavascript.js +2 -0
  68. package/dist/generated/models/FormField.js +2 -0
  69. package/dist/generated/models/FormFieldConditionList.js +10 -0
  70. package/dist/generated/models/FormFieldMultitaskPlatformAttribute.js +184 -0
  71. package/dist/generated/models/FormFieldNotCondition.js +2 -0
  72. package/dist/generated/models/FormFieldSimpleCondition.js +10 -0
  73. package/dist/generated/models/FormFieldValueInner.js +58 -0
  74. package/dist/generated/models/FormGroup.js +2 -0
  75. package/dist/generated/models/FormRetrieve200Response.js +95 -0
  76. package/dist/generated/models/GrexxComplexDatatype.js +2 -0
  77. package/dist/generated/models/HasRoleCondition.js +2 -0
  78. package/dist/generated/models/IfThenElse.js +2 -0
  79. package/dist/generated/models/Instant.js +2 -0
  80. package/dist/generated/models/InterfaceConditionListType.js +12 -0
  81. package/dist/generated/models/MapStringObject.js +2 -0
  82. package/dist/generated/models/Mapping.js +2 -0
  83. package/dist/generated/models/ModelRequestContext.js +107 -0
  84. package/dist/generated/models/NotCondition.js +2 -0
  85. package/dist/generated/models/ParallelBlock.js +2 -0
  86. package/dist/generated/models/Picklist.js +2 -0
  87. package/dist/generated/models/PicklistTemplate.js +78 -0
  88. package/dist/generated/models/PlatformVersion200Response.js +54 -0
  89. package/dist/generated/models/PrimitiveType.js +39 -0
  90. package/dist/generated/models/RequestContext.js +2 -0
  91. package/dist/generated/models/ReturnTypeFlags.js +11 -0
  92. package/dist/generated/models/RuleList.js +2 -0
  93. package/dist/generated/models/SimpleCondition.js +2 -0
  94. package/dist/generated/models/SortConfigSearchCondition.js +10 -0
  95. package/dist/generated/models/SortConfigSearchConditionValueDatatype.js +52 -0
  96. package/dist/generated/models/SortConfigSearchList.js +10 -0
  97. package/dist/generated/models/SortConfigSort.js +11 -0
  98. package/dist/generated/models/TaskCreate200Response.js +63 -0
  99. package/dist/generated/models/TaskCreate200ResponseFormCondition.js +79 -0
  100. package/dist/generated/models/TaskCreateRequest.js +74 -0
  101. package/dist/generated/models/TaskCreateRequestAnyOf.js +65 -0
  102. package/dist/generated/models/TaskCreateRequestAnyOf1.js +65 -0
  103. package/dist/generated/models/TaskCreateRequestAnyOf2.js +64 -0
  104. package/dist/generated/models/TaskSubmitRequest.js +71 -0
  105. package/dist/generated/models/TaskSubmitRequestAnyOf.js +67 -0
  106. package/dist/generated/models/TaskSubmitRequestAnyOf1.js +66 -0
  107. package/dist/generated/models/TaskSubmitRequestAnyOf1FieldsInner.js +56 -0
  108. package/dist/generated/models/TaskSubmitRequestAnyOf2.js +65 -0
  109. package/dist/generated/models/Trigger.js +2 -0
  110. package/dist/generated/models/TryBlock.js +2 -0
  111. package/dist/generated/models/UUID.js +2 -0
  112. package/dist/generated/models/UnversionedReference.js +2 -0
  113. package/dist/generated/models/VersionedReference.js +2 -0
  114. package/dist/generated/models/While.js +2 -0
  115. package/dist/generated/models/index.js +102 -0
  116. package/dist/generated/runtime.js +345 -0
  117. package/dist/generated/services/CaseService.js +378 -0
  118. package/dist/generated/services/PlatformService.js +19 -0
  119. package/dist/index.js +31 -0
  120. package/openapi.yaml +4470 -0
  121. package/openapitools.json +7 -0
  122. package/package.json +15 -0
  123. package/src/generated/core/ApiError.ts +25 -0
  124. package/src/generated/core/ApiRequestOptions.ts +17 -0
  125. package/src/generated/core/ApiResult.ts +11 -0
  126. package/src/generated/core/CancelablePromise.ts +131 -0
  127. package/src/generated/core/OpenAPI.ts +32 -0
  128. package/src/generated/core/request.ts +322 -0
  129. package/src/generated/index.ts +73 -0
  130. package/src/generated/models/AbstractCondition.ts +11 -0
  131. package/src/generated/models/AbstractReference.ts +8 -0
  132. package/src/generated/models/AbstractRule.ts +19 -0
  133. package/src/generated/models/Activity.ts +7 -0
  134. package/src/generated/models/AdditionalAggregateColumn.ts +20 -0
  135. package/src/generated/models/AdditionalDataHistoryColumn.ts +17 -0
  136. package/src/generated/models/AdditionalDerivedColumn.ts +24 -0
  137. package/src/generated/models/AdditionalExternalColumn.ts +16 -0
  138. package/src/generated/models/AdditionalGroupbyColumn.ts +18 -0
  139. package/src/generated/models/AdditionalMetaColumn.ts +34 -0
  140. package/src/generated/models/AdditionalTemplateColumn.ts +22 -0
  141. package/src/generated/models/AnalyseDependency.ts +39 -0
  142. package/src/generated/models/BaseMessage.ts +26 -0
  143. package/src/generated/models/CaseReference.ts +8 -0
  144. package/src/generated/models/CasetypeAttribute.ts +7 -0
  145. package/src/generated/models/CasetypeCss.ts +10 -0
  146. package/src/generated/models/CatchBlock.ts +7 -0
  147. package/src/generated/models/CatchPattern.ts +7 -0
  148. package/src/generated/models/ColumnId.ts +5 -0
  149. package/src/generated/models/ColumnIdentifier.ts +10 -0
  150. package/src/generated/models/ConditionList.ts +7 -0
  151. package/src/generated/models/ConditionOperatorType.ts +26 -0
  152. package/src/generated/models/CustomThrow.ts +7 -0
  153. package/src/generated/models/Dataset.ts +7 -0
  154. package/src/generated/models/DatasetColumn.ts +7 -0
  155. package/src/generated/models/DatasetCondition.ts +7 -0
  156. package/src/generated/models/DatasetResult.ts +20 -0
  157. package/src/generated/models/FieldType.ts +16 -0
  158. package/src/generated/models/FileUploadProfile.ts +7 -0
  159. package/src/generated/models/ForEach.ts +7 -0
  160. package/src/generated/models/FormAction.ts +7 -0
  161. package/src/generated/models/FormActionInlineJavascript.ts +7 -0
  162. package/src/generated/models/FormField.ts +7 -0
  163. package/src/generated/models/FormFieldConditionList.ts +19 -0
  164. package/src/generated/models/FormFieldNotCondition.ts +12 -0
  165. package/src/generated/models/FormFieldSimpleCondition.ts +27 -0
  166. package/src/generated/models/FormGroup.ts +7 -0
  167. package/src/generated/models/GrexxComplexDatatype.ts +11 -0
  168. package/src/generated/models/HasRoleCondition.ts +7 -0
  169. package/src/generated/models/IfThenElse.ts +7 -0
  170. package/src/generated/models/Instant.ts +5 -0
  171. package/src/generated/models/InterfaceConditionListType.ts +8 -0
  172. package/src/generated/models/MapStringObject.ts +5 -0
  173. package/src/generated/models/Mapping.ts +7 -0
  174. package/src/generated/models/NotCondition.ts +7 -0
  175. package/src/generated/models/ParallelBlock.ts +7 -0
  176. package/src/generated/models/Picklist.ts +7 -0
  177. package/src/generated/models/PrimitiveType.ts +35 -0
  178. package/src/generated/models/RequestContext.ts +7 -0
  179. package/src/generated/models/ReturnTypeFlags.ts +19 -0
  180. package/src/generated/models/RuleList.ts +7 -0
  181. package/src/generated/models/SimpleCondition.ts +7 -0
  182. package/src/generated/models/SortConfigSearchCondition.ts +24 -0
  183. package/src/generated/models/SortConfigSearchList.ts +17 -0
  184. package/src/generated/models/SortConfigSort.ts +16 -0
  185. package/src/generated/models/Trigger.ts +7 -0
  186. package/src/generated/models/TryBlock.ts +7 -0
  187. package/src/generated/models/UUID.ts +5 -0
  188. package/src/generated/models/UnversionedReference.ts +8 -0
  189. package/src/generated/models/VersionedReference.ts +8 -0
  190. package/src/generated/models/While.ts +7 -0
  191. package/src/generated/services/CaseService.ts +800 -0
  192. package/src/generated/services/PlatformService.ts +26 -0
  193. package/tsconfig.json +13 -0
@@ -0,0 +1,2448 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Grexx Platform API
6
+ * This is the Grexx Platform API
7
+ *
8
+ * The version of the OpenAPI document: 12.4.44
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.ReturnTypeFlagsMultivalueTypeEnum = exports.RequestContextContexttypeEnum = exports.PrimitiveType = exports.PicklistSpecialPicklistEnum = exports.MappingFromAttributeTypeEnum = exports.MappingOperatorEnum = exports.MappingToAttributeTypeEnum = exports.InterfaceConditionListType = exports.FormFieldSimpleConditionListTypeEnum = exports.FormFieldMultitaskPlatformAttributeMultivalueTypeEnum = exports.FormFieldMultitaskPlatformAttributeTypeEnum = exports.FormFieldConditionListListTypeEnum = exports.FormFieldOperatorEnum = exports.FormFieldMultivalueTypeEnum = exports.FormFieldTypeEnum = exports.FieldType = exports.DatasetRetrieveRequestSearchTypeEnum = exports.DatasetRetrieveRequestAdditionalColumnsInnerDerivationEnum = exports.DatasetRetrieveRequestAdditionalColumnsInnerFieldtypeEnum = exports.DatasetRetrieveRequestAdditionalColumnsInnerTypeEnum = exports.DatasetConditionOperatorEnum = exports.DatasetSpecialDatasetEnum = exports.DatasetTypeEnum = exports.ConditionOperatorType = exports.ConditionListTypeEnum = exports.ColumnIdentifier = exports.CatchPattern = exports.CasetypeAttributeMultivalueTypeEnum = exports.CasetypeAttributeTypeEnum = exports.BaseMessageLevelEnum = exports.AdditionalTemplateColumnTypeEnum = exports.AdditionalMetaColumnTypeEnum = exports.AdditionalMetaColumnFieldtypeEnum = exports.AdditionalGroupbyColumnTypeEnum = exports.AdditionalExternalColumnTypeEnum = exports.AdditionalDerivedColumnTypeEnum = exports.AdditionalDerivedColumnDerivationEnum = exports.AdditionalDataHistoryColumnTypeEnum = exports.AdditionalAggregateColumnTypeEnum = exports.ActivityMultitaskTypeEnum = exports.ActivityProcessBlockTypeEnum = exports.ActivityTypeEnum = exports.AbstractRuleContexttypeEnum = exports.AbstractRuleFromAttributeTypeEnum = exports.AbstractRuleOperatorEnum = exports.AbstractRuleToAttributeTypeEnum = exports.AbstractConditionRightFieldTypeEnum = exports.AbstractConditionLeftFieldTypeEnum = exports.AbstractConditionOperatorEnum = exports.AbstractConditionTypeEnum = void 0;
20
+ exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.TaskInfoFormatEnum = exports.TaskCreateFormatEnum = exports.FormRetrieveFormatEnum = exports.FormGetFormatEnum = exports.DatasetRetrieveViaWidgetFormatEnum = exports.DatasetRetrieveFormatEnum = exports.DatasetGetViaWidgetFormatEnum = exports.DatasetGetFormatEnum = exports.CaseTaskGetFormatEnum = exports.CaseTaskCreateFormatEnum = exports.CaseApi = exports.CaseApiFactory = exports.CaseApiFp = exports.CaseApiAxiosParamCreator = exports.TriggerTypeEnum = exports.TaskSubmitRequestAnyOf2TypeEnum = exports.TaskSubmitRequestAnyOf1TypeEnum = exports.TaskSubmitRequestAnyOfTypeEnum = exports.TaskSubmitRequestTypeEnum = exports.TaskCreateRequestAnyOf2TypeEnum = exports.TaskCreateRequestAnyOf1TypeEnum = exports.TaskCreateRequestAnyOfTypeEnum = exports.TaskCreateRequestTypeEnum = exports.SortConfigSortDirectionEnum = exports.SortConfigSearchListTypeEnum = exports.SortConfigSearchConditionTypeEnum = exports.SimpleConditionRightFieldTypeEnum = exports.SimpleConditionOperatorEnum = exports.SimpleConditionLeftFieldTypeEnum = void 0;
21
+ const axios_1 = __importDefault(require("axios"));
22
+ // Some imports not used depending on template conditions
23
+ // @ts-ignore
24
+ const common_1 = require("./common");
25
+ // @ts-ignore
26
+ const base_1 = require("./base");
27
+ exports.AbstractConditionTypeEnum = {
28
+ And: 'AND',
29
+ Or: 'OR'
30
+ };
31
+ exports.AbstractConditionOperatorEnum = {
32
+ DoubleEqual: '==',
33
+ Text: '==text==',
34
+ Text2: '!==text!==',
35
+ };
36
+ '!==',
37
+ GreaterThanOrEqualTo;
38
+ '>=',
39
+ GreaterThan;
40
+ '>',
41
+ LessThanOrEqualTo;
42
+ '<=',
43
+ LessThan;
44
+ '<',
45
+ Contains;
46
+ 'contains',
47
+ Notcontains;
48
+ 'notcontains',
49
+ Stringcontains;
50
+ 'stringcontains',
51
+ Notstringcontains;
52
+ 'notstringcontains',
53
+ Multivaluecontains;
54
+ 'multivaluecontains',
55
+ Notmultivaluecontains;
56
+ 'notmultivaluecontains',
57
+ Anyin;
58
+ 'anyin',
59
+ Notanyin;
60
+ 'notanyin',
61
+ Allin;
62
+ 'allin',
63
+ Notallin;
64
+ 'notallin',
65
+ In;
66
+ 'in',
67
+ Notin;
68
+ 'notin',
69
+ Like;
70
+ 'like',
71
+ Notlike;
72
+ 'notlike',
73
+ Beginswith;
74
+ 'beginswith',
75
+ Notbeginswith;
76
+ 'notbeginswith',
77
+ Endswith;
78
+ 'endswith',
79
+ Notendswith;
80
+ 'notendswith';
81
+ as;
82
+ const ;
83
+ exports.AbstractConditionLeftFieldTypeEnum = {
84
+ TaskIn: 'taskIn',
85
+ TaskOut: 'taskOut',
86
+ Taskinformfield: 'taskinformfield',
87
+ Taskoutformfield: 'taskoutformfield',
88
+ CaseData: 'caseData',
89
+ Inlinetemplate: 'inlinetemplate',
90
+ Value: 'value',
91
+ StaticPicklistItem: 'staticPicklistItem',
92
+ Taskdata: 'taskdata',
93
+ Formfield: 'formfield'
94
+ };
95
+ exports.AbstractConditionRightFieldTypeEnum = {
96
+ TaskIn: 'taskIn',
97
+ TaskOut: 'taskOut',
98
+ Taskinformfield: 'taskinformfield',
99
+ Taskoutformfield: 'taskoutformfield',
100
+ CaseData: 'caseData',
101
+ Inlinetemplate: 'inlinetemplate',
102
+ Value: 'value',
103
+ StaticPicklistItem: 'staticPicklistItem',
104
+ Taskdata: 'taskdata',
105
+ Formfield: 'formfield'
106
+ };
107
+ exports.AbstractRuleToAttributeTypeEnum = {
108
+ Casedata: 'casedata',
109
+ Casedataplatformattribute: 'casedataplatformattribute',
110
+ Taskin: 'taskin',
111
+ Taskinformfield: 'taskinformfield',
112
+ Taskdata: 'taskdata',
113
+ Usersession: 'usersession'
114
+ };
115
+ exports.AbstractRuleOperatorEnum = {
116
+ Equal: '=',
117
+ };
118
+ '+=',
119
+ 2;
120
+ '-=',
121
+ 3;
122
+ '*=',
123
+ 4;
124
+ '/=';
125
+ as;
126
+ const ;
127
+ exports.AbstractRuleFromAttributeTypeEnum = {
128
+ Casedata: 'casedata',
129
+ Casedataplatformattribute: 'casedataplatformattribute',
130
+ Casemetadata: 'casemetadata',
131
+ Currentitem: 'currentitem',
132
+ Inlinetemplate: 'inlinetemplate',
133
+ Newcasemetadata: 'newcasemetadata',
134
+ Taskout: 'taskout',
135
+ Taskoutformfield: 'taskoutformfield',
136
+ Taskdata: 'taskdata',
137
+ Value: 'value'
138
+ };
139
+ exports.AbstractRuleContexttypeEnum = {
140
+ Context: 'context',
141
+ Usersession: 'usersession',
142
+ Additionalsecurityprofile: 'additionalsecurityprofile',
143
+ Impersonate: 'impersonate',
144
+ Resetimpersonate: 'resetimpersonate'
145
+ };
146
+ exports.ActivityTypeEnum = {
147
+ Form: 'form',
148
+ Casetype: 'casetype',
149
+ Processblock: 'processblock',
150
+ Event: 'event',
151
+ Multitask: 'multitask',
152
+ Unknown: 'unknown'
153
+ };
154
+ exports.ActivityProcessBlockTypeEnum = {
155
+ Dummy: 'dummy',
156
+ Recalculate: 'recalculate',
157
+ DeleteInvalidatePaths: 'delete-invalidate-paths',
158
+ AndJoin: 'and-join',
159
+ NJoin: 'n-join',
160
+ OrJoin: 'or-join',
161
+ StartModule: 'start-module',
162
+ FinishModule: 'finish-module',
163
+ FinishCase: 'finish-case',
164
+ ReopenCase: 'reopen-case',
165
+ CommitAll: 'commit-all'
166
+ };
167
+ exports.ActivityMultitaskTypeEnum = {
168
+ SubmitEach: 'submitEach',
169
+ SubmitAll: 'submitAll'
170
+ };
171
+ exports.AdditionalAggregateColumnTypeEnum = {
172
+ Aggregated: 'aggregated'
173
+ };
174
+ exports.AdditionalDataHistoryColumnTypeEnum = {
175
+ DataHistory: 'dataHistory'
176
+ };
177
+ exports.AdditionalDerivedColumnDerivationEnum = {
178
+ Picklistlabel: 'PICKLISTLABEL',
179
+ Fastpicklistlabel: 'FASTPICKLISTLABEL',
180
+ Reference: 'REFERENCE'
181
+ };
182
+ exports.AdditionalDerivedColumnTypeEnum = {
183
+ Derived: 'derived'
184
+ };
185
+ exports.AdditionalExternalColumnTypeEnum = {
186
+ External: 'external'
187
+ };
188
+ exports.AdditionalGroupbyColumnTypeEnum = {
189
+ Groupby: 'groupby'
190
+ };
191
+ exports.AdditionalMetaColumnFieldtypeEnum = {
192
+ CaseData: 'caseData',
193
+ CaseMetaData: 'caseMetaData',
194
+ InlineTemplate: 'inlineTemplate',
195
+ Value: 'value',
196
+ TaskMetaData: 'taskMetaData',
197
+ TaskqueueMetaData: 'taskqueueMetaData',
198
+ ActivityMetadata: 'activityMetadata',
199
+ External: 'external',
200
+ DataHistory: 'dataHistory',
201
+ PlatformAttribute: 'platformAttribute',
202
+ CaseMetaId: 'caseMetaId',
203
+ JoinDataset1: 'joinDataset1',
204
+ JoinDataset2: 'joinDataset2',
205
+ Testing: 'testing'
206
+ };
207
+ exports.AdditionalMetaColumnTypeEnum = {
208
+ Meta: 'meta'
209
+ };
210
+ exports.AdditionalTemplateColumnTypeEnum = {
211
+ Template: 'template'
212
+ };
213
+ exports.BaseMessageLevelEnum = {
214
+ Debug: 'DEBUG',
215
+ Info: 'INFO',
216
+ Warning: 'WARNING',
217
+ Error: 'ERROR',
218
+ Critical: 'CRITICAL'
219
+ };
220
+ exports.CasetypeAttributeTypeEnum = {
221
+ Boolean: 'boolean',
222
+ Date: 'date',
223
+ Datetime: 'datetime',
224
+ Integer: 'integer',
225
+ Long: 'long',
226
+ Double: 'double',
227
+ String: 'string',
228
+ Mediumstring: 'mediumstring',
229
+ Smallstring: 'smallstring',
230
+ Tinystring: 'tinystring',
231
+ Case: 'case',
232
+ Internalexternalcaseid: 'internalexternalcaseid',
233
+ Task: 'task',
234
+ Json: 'json',
235
+ File: 'file',
236
+ Inlinetemplate: 'inlinetemplate',
237
+ Money: 'money',
238
+ Uuid: 'uuid',
239
+ Datasetrow: 'datasetrow',
240
+ Versionedid: 'versionedid',
241
+ Point2d: 'point2d',
242
+ Polygon2d: 'polygon2d',
243
+ Grexxblob: 'grexxblob',
244
+ Singlecurrencymoney: 'singlecurrencymoney'
245
+ };
246
+ exports.CasetypeAttributeMultivalueTypeEnum = {
247
+ Set: 'set',
248
+ List: 'list'
249
+ };
250
+ /**
251
+ *
252
+ * @export
253
+ * @enum {string}
254
+ */
255
+ exports.CatchPattern = {
256
+ Email1001: 'EMAIL-1001'
257
+ };
258
+ /**
259
+ *
260
+ * @export
261
+ * @enum {string}
262
+ */
263
+ exports.ColumnIdentifier = {
264
+ Legacy: 'legacy',
265
+ ColumnCaseid: 'columnCaseid',
266
+ ExternalReference: 'externalReference',
267
+ Alias: 'alias'
268
+ };
269
+ exports.ConditionListTypeEnum = {
270
+ And: 'AND',
271
+ Or: 'OR'
272
+ };
273
+ /**
274
+ *
275
+ * @export
276
+ * @enum {string}
277
+ */
278
+ exports.ConditionOperatorType = {
279
+ DoubleEqual: '==',
280
+ Text: '==text==',
281
+ Text2: '!==text!==',
282
+ };
283
+ '!==',
284
+ GreaterThanOrEqualTo;
285
+ '>=',
286
+ GreaterThan;
287
+ '>',
288
+ LessThanOrEqualTo;
289
+ '<=',
290
+ LessThan;
291
+ '<',
292
+ Contains;
293
+ 'contains',
294
+ Notcontains;
295
+ 'notcontains',
296
+ Stringcontains;
297
+ 'stringcontains',
298
+ Notstringcontains;
299
+ 'notstringcontains',
300
+ Multivaluecontains;
301
+ 'multivaluecontains',
302
+ Notmultivaluecontains;
303
+ 'notmultivaluecontains',
304
+ Anyin;
305
+ 'anyin',
306
+ Notanyin;
307
+ 'notanyin',
308
+ Allin;
309
+ 'allin',
310
+ Notallin;
311
+ 'notallin',
312
+ In;
313
+ 'in',
314
+ Notin;
315
+ 'notin',
316
+ Like;
317
+ 'like',
318
+ Notlike;
319
+ 'notlike',
320
+ Beginswith;
321
+ 'beginswith',
322
+ Notbeginswith;
323
+ 'notbeginswith',
324
+ Endswith;
325
+ 'endswith',
326
+ Notendswith;
327
+ 'notendswith';
328
+ as;
329
+ const ;
330
+ exports.DatasetTypeEnum = {
331
+ MandatoryTasks: 'mandatoryTasks',
332
+ MandatoryTasksNoRightsCheck: 'mandatoryTasksNoRightsCheck',
333
+ MandatoryTasksPlatform: 'mandatoryTasksPlatform',
334
+ MandatoryPlatformNoRightsCheck: 'mandatoryPlatformNoRightsCheck',
335
+ AllTasks: 'allTasks',
336
+ AllTasksIncludingNew: 'allTasksIncludingNew',
337
+ AllTasksPlatform: 'allTasksPlatform',
338
+ AllTasksPlatformIncludingNew: 'allTasksPlatformIncludingNew',
339
+ QueuedTasks: 'queuedTasks',
340
+ OptionalTasks: 'optionalTasks',
341
+ OptionalTasksNoRightsCheck: 'optionalTasksNoRightsCheck',
342
+ Cases: 'cases',
343
+ Casespostprocess: 'casespostprocess',
344
+ Externalcases: 'externalcases',
345
+ MultivalueAttribute: 'multivalueAttribute',
346
+ TaskHistory: 'taskHistory',
347
+ ExternalUrl: 'externalUrl',
348
+ Json: 'json',
349
+ KibanaPerformance: 'kibanaPerformance',
350
+ ElasticPerformance: 'elasticPerformance',
351
+ ElasticPerformanceClient: 'elasticPerformanceClient',
352
+ ElasticPerformanceUnion: 'elasticPerformanceUnion',
353
+ ElasticError: 'elasticError',
354
+ ElasticUsage: 'elasticUsage',
355
+ ElasticGcMessages: 'elasticGcMessages',
356
+ ElasticPlatformMessages: 'elasticPlatformMessages',
357
+ ElasticGui: 'elasticGui',
358
+ ElasticApiRequestV2: 'elasticApiRequestV2',
359
+ Aggregate: 'aggregate',
360
+ Special: 'special',
361
+ Join: 'join',
362
+ CasedataHistory: 'casedataHistory',
363
+ Casepath: 'casepath',
364
+ Size: 'size',
365
+ Sizeaggregated: 'sizeaggregated',
366
+ Filter: 'filter'
367
+ };
368
+ exports.DatasetSpecialDatasetEnum = {
369
+ Special: 'special',
370
+ Datatype: 'datatype',
371
+ Systemservice: 'systemservice',
372
+ GitDataCommits: 'gitDataCommits',
373
+ GitDataBranches: 'gitDataBranches',
374
+ GitDefinitionBranches: 'gitDefinitionBranches',
375
+ Eventtype: 'eventtype',
376
+ ReleaseRings: 'releaseRings',
377
+ AvailableLocales: 'availableLocales',
378
+ WebhookEvent: 'webhookEvent',
379
+ WebhookDatatype: 'webhookDatatype',
380
+ JobStep: 'jobStep',
381
+ JobDefinition: 'jobDefinition'
382
+ };
383
+ exports.DatasetConditionOperatorEnum = {
384
+ DoubleEqual: '==',
385
+ Text: '==text==',
386
+ Text2: '!==text!==',
387
+ };
388
+ '!==',
389
+ GreaterThanOrEqualTo;
390
+ '>=',
391
+ GreaterThan;
392
+ '>',
393
+ LessThanOrEqualTo;
394
+ '<=',
395
+ LessThan;
396
+ '<',
397
+ Contains;
398
+ 'contains',
399
+ Notcontains;
400
+ 'notcontains',
401
+ Stringcontains;
402
+ 'stringcontains',
403
+ Notstringcontains;
404
+ 'notstringcontains',
405
+ Multivaluecontains;
406
+ 'multivaluecontains',
407
+ Notmultivaluecontains;
408
+ 'notmultivaluecontains',
409
+ Anyin;
410
+ 'anyin',
411
+ Notanyin;
412
+ 'notanyin',
413
+ Allin;
414
+ 'allin',
415
+ Notallin;
416
+ 'notallin',
417
+ In;
418
+ 'in',
419
+ Notin;
420
+ 'notin',
421
+ Like;
422
+ 'like',
423
+ Notlike;
424
+ 'notlike',
425
+ Beginswith;
426
+ 'beginswith',
427
+ Notbeginswith;
428
+ 'notbeginswith',
429
+ Endswith;
430
+ 'endswith',
431
+ Notendswith;
432
+ 'notendswith';
433
+ as;
434
+ const ;
435
+ exports.DatasetRetrieveRequestAdditionalColumnsInnerTypeEnum = {
436
+ Template: 'template',
437
+ Meta: 'meta',
438
+ Aggregated: 'aggregated',
439
+ Groupby: 'groupby',
440
+ DataHistory: 'dataHistory',
441
+ External: 'external',
442
+ Derived: 'derived'
443
+ };
444
+ exports.DatasetRetrieveRequestAdditionalColumnsInnerFieldtypeEnum = {
445
+ CaseData: 'caseData',
446
+ CaseMetaData: 'caseMetaData',
447
+ InlineTemplate: 'inlineTemplate',
448
+ Value: 'value',
449
+ TaskMetaData: 'taskMetaData',
450
+ TaskqueueMetaData: 'taskqueueMetaData',
451
+ ActivityMetadata: 'activityMetadata',
452
+ External: 'external',
453
+ DataHistory: 'dataHistory',
454
+ PlatformAttribute: 'platformAttribute',
455
+ CaseMetaId: 'caseMetaId',
456
+ JoinDataset1: 'joinDataset1',
457
+ JoinDataset2: 'joinDataset2',
458
+ Testing: 'testing'
459
+ };
460
+ exports.DatasetRetrieveRequestAdditionalColumnsInnerDerivationEnum = {
461
+ Picklistlabel: 'PICKLISTLABEL',
462
+ Fastpicklistlabel: 'FASTPICKLISTLABEL',
463
+ Reference: 'REFERENCE'
464
+ };
465
+ exports.DatasetRetrieveRequestSearchTypeEnum = {
466
+ ConditionList: 'conditionList',
467
+ SimpleCondition: 'simpleCondition'
468
+ };
469
+ /**
470
+ *
471
+ * @export
472
+ * @enum {string}
473
+ */
474
+ exports.FieldType = {
475
+ TaskIn: 'taskIn',
476
+ TaskOut: 'taskOut',
477
+ Taskinformfield: 'taskinformfield',
478
+ Taskoutformfield: 'taskoutformfield',
479
+ CaseData: 'caseData',
480
+ Inlinetemplate: 'inlinetemplate',
481
+ Value: 'value',
482
+ StaticPicklistItem: 'staticPicklistItem',
483
+ Taskdata: 'taskdata',
484
+ Formfield: 'formfield'
485
+ };
486
+ exports.FormFieldTypeEnum = {
487
+ Boolean: 'boolean',
488
+ Date: 'date',
489
+ Datetime: 'datetime',
490
+ Integer: 'integer',
491
+ Long: 'long',
492
+ Double: 'double',
493
+ String: 'string',
494
+ Mediumstring: 'mediumstring',
495
+ Smallstring: 'smallstring',
496
+ Tinystring: 'tinystring',
497
+ Case: 'case',
498
+ Internalexternalcaseid: 'internalexternalcaseid',
499
+ Task: 'task',
500
+ Json: 'json',
501
+ File: 'file',
502
+ Inlinetemplate: 'inlinetemplate',
503
+ Money: 'money',
504
+ Uuid: 'uuid',
505
+ Datasetrow: 'datasetrow',
506
+ Versionedid: 'versionedid',
507
+ Point2d: 'point2d',
508
+ Polygon2d: 'polygon2d',
509
+ Grexxblob: 'grexxblob',
510
+ Singlecurrencymoney: 'singlecurrencymoney'
511
+ };
512
+ exports.FormFieldMultivalueTypeEnum = {
513
+ Set: 'set',
514
+ List: 'list'
515
+ };
516
+ exports.FormFieldOperatorEnum = {
517
+ DoubleEqual: '==',
518
+ Text: '==text==',
519
+ Text2: '!==text!==',
520
+ };
521
+ '!==',
522
+ GreaterThanOrEqualTo;
523
+ '>=',
524
+ GreaterThan;
525
+ '>',
526
+ LessThanOrEqualTo;
527
+ '<=',
528
+ LessThan;
529
+ '<',
530
+ Contains;
531
+ 'contains',
532
+ Notcontains;
533
+ 'notcontains',
534
+ Stringcontains;
535
+ 'stringcontains',
536
+ Notstringcontains;
537
+ 'notstringcontains',
538
+ Multivaluecontains;
539
+ 'multivaluecontains',
540
+ Notmultivaluecontains;
541
+ 'notmultivaluecontains',
542
+ Anyin;
543
+ 'anyin',
544
+ Notanyin;
545
+ 'notanyin',
546
+ Allin;
547
+ 'allin',
548
+ Notallin;
549
+ 'notallin',
550
+ In;
551
+ 'in',
552
+ Notin;
553
+ 'notin',
554
+ Like;
555
+ 'like',
556
+ Notlike;
557
+ 'notlike',
558
+ Beginswith;
559
+ 'beginswith',
560
+ Notbeginswith;
561
+ 'notbeginswith',
562
+ Endswith;
563
+ 'endswith',
564
+ Notendswith;
565
+ 'notendswith';
566
+ as;
567
+ const ;
568
+ exports.FormFieldConditionListListTypeEnum = {
569
+ List: 'list'
570
+ };
571
+ exports.FormFieldMultitaskPlatformAttributeTypeEnum = {
572
+ Boolean: 'boolean',
573
+ Date: 'date',
574
+ Datetime: 'datetime',
575
+ Integer: 'integer',
576
+ Long: 'long',
577
+ Double: 'double',
578
+ String: 'string',
579
+ Mediumstring: 'mediumstring',
580
+ Smallstring: 'smallstring',
581
+ Tinystring: 'tinystring',
582
+ Case: 'case',
583
+ Internalexternalcaseid: 'internalexternalcaseid',
584
+ Task: 'task',
585
+ Json: 'json',
586
+ File: 'file',
587
+ Inlinetemplate: 'inlinetemplate',
588
+ Money: 'money',
589
+ Uuid: 'uuid',
590
+ Datasetrow: 'datasetrow',
591
+ Versionedid: 'versionedid',
592
+ Point2d: 'point2d',
593
+ Polygon2d: 'polygon2d',
594
+ Grexxblob: 'grexxblob',
595
+ Singlecurrencymoney: 'singlecurrencymoney'
596
+ };
597
+ exports.FormFieldMultitaskPlatformAttributeMultivalueTypeEnum = {
598
+ Set: 'set',
599
+ List: 'list'
600
+ };
601
+ exports.FormFieldSimpleConditionListTypeEnum = {
602
+ Simple: 'simple'
603
+ };
604
+ /**
605
+ *
606
+ * @export
607
+ * @enum {string}
608
+ */
609
+ exports.InterfaceConditionListType = {
610
+ And: 'AND',
611
+ Or: 'OR'
612
+ };
613
+ exports.MappingToAttributeTypeEnum = {
614
+ Casedata: 'casedata',
615
+ Casedataplatformattribute: 'casedataplatformattribute',
616
+ Taskin: 'taskin',
617
+ Taskinformfield: 'taskinformfield',
618
+ Taskdata: 'taskdata',
619
+ Usersession: 'usersession'
620
+ };
621
+ exports.MappingOperatorEnum = {
622
+ Equal: '=',
623
+ };
624
+ '+=',
625
+ 2;
626
+ '-=',
627
+ 3;
628
+ '*=',
629
+ 4;
630
+ '/=';
631
+ as;
632
+ const ;
633
+ exports.MappingFromAttributeTypeEnum = {
634
+ Casedata: 'casedata',
635
+ Casedataplatformattribute: 'casedataplatformattribute',
636
+ Casemetadata: 'casemetadata',
637
+ Currentitem: 'currentitem',
638
+ Inlinetemplate: 'inlinetemplate',
639
+ Newcasemetadata: 'newcasemetadata',
640
+ Taskout: 'taskout',
641
+ Taskoutformfield: 'taskoutformfield',
642
+ Taskdata: 'taskdata',
643
+ Value: 'value'
644
+ };
645
+ exports.PicklistSpecialPicklistEnum = {
646
+ Special: 'special',
647
+ Datatype: 'datatype',
648
+ Systemservice: 'systemservice',
649
+ GitDataCommits: 'gitDataCommits',
650
+ GitDataBranches: 'gitDataBranches',
651
+ GitDefinitionBranches: 'gitDefinitionBranches',
652
+ Eventtype: 'eventtype',
653
+ ReleaseRings: 'releaseRings',
654
+ AvailableLocales: 'availableLocales',
655
+ WebhookEvent: 'webhookEvent',
656
+ WebhookDatatype: 'webhookDatatype',
657
+ JobStep: 'jobStep',
658
+ JobDefinition: 'jobDefinition'
659
+ };
660
+ /**
661
+ *
662
+ * @export
663
+ * @enum {string}
664
+ */
665
+ exports.PrimitiveType = {
666
+ Auto: 'auto',
667
+ String: 'string',
668
+ Case: 'case',
669
+ Internalexternalcaseid: 'internalexternalcaseid',
670
+ Caseid: 'caseid',
671
+ Integer: 'integer',
672
+ Double: 'double',
673
+ Date: 'date',
674
+ Datetime: 'datetime',
675
+ Boolean: 'boolean',
676
+ Inlinetemplate: 'inlinetemplate',
677
+ File: 'file',
678
+ Text: 'text',
679
+ Mediumstring: 'mediumstring',
680
+ Smallstring: 'smallstring',
681
+ Tinystring: 'tinystring',
682
+ Task: 'task',
683
+ Taskid: 'taskid',
684
+ Long: 'long',
685
+ Json: 'json',
686
+ Jsonobject: 'jsonobject',
687
+ Money: 'money',
688
+ Singlecurrencymoney: 'singlecurrencymoney',
689
+ Uuid: 'uuid',
690
+ Datasetrow: 'datasetrow',
691
+ Versionedid: 'versionedid',
692
+ Point2d: 'point2d',
693
+ Polygon2d: 'polygon2d',
694
+ Grexxblob: 'grexxblob'
695
+ };
696
+ exports.RequestContextContexttypeEnum = {
697
+ Context: 'context',
698
+ Usersession: 'usersession',
699
+ Additionalsecurityprofile: 'additionalsecurityprofile',
700
+ Impersonate: 'impersonate',
701
+ Resetimpersonate: 'resetimpersonate'
702
+ };
703
+ exports.ReturnTypeFlagsMultivalueTypeEnum = {
704
+ Set: 'set',
705
+ List: 'list'
706
+ };
707
+ exports.SimpleConditionLeftFieldTypeEnum = {
708
+ TaskIn: 'taskIn',
709
+ TaskOut: 'taskOut',
710
+ Taskinformfield: 'taskinformfield',
711
+ Taskoutformfield: 'taskoutformfield',
712
+ CaseData: 'caseData',
713
+ Inlinetemplate: 'inlinetemplate',
714
+ Value: 'value',
715
+ StaticPicklistItem: 'staticPicklistItem',
716
+ Taskdata: 'taskdata',
717
+ Formfield: 'formfield'
718
+ };
719
+ exports.SimpleConditionOperatorEnum = {
720
+ DoubleEqual: '==',
721
+ Text: '==text==',
722
+ Text2: '!==text!==',
723
+ };
724
+ '!==',
725
+ GreaterThanOrEqualTo;
726
+ '>=',
727
+ GreaterThan;
728
+ '>',
729
+ LessThanOrEqualTo;
730
+ '<=',
731
+ LessThan;
732
+ '<',
733
+ Contains;
734
+ 'contains',
735
+ Notcontains;
736
+ 'notcontains',
737
+ Stringcontains;
738
+ 'stringcontains',
739
+ Notstringcontains;
740
+ 'notstringcontains',
741
+ Multivaluecontains;
742
+ 'multivaluecontains',
743
+ Notmultivaluecontains;
744
+ 'notmultivaluecontains',
745
+ Anyin;
746
+ 'anyin',
747
+ Notanyin;
748
+ 'notanyin',
749
+ Allin;
750
+ 'allin',
751
+ Notallin;
752
+ 'notallin',
753
+ In;
754
+ 'in',
755
+ Notin;
756
+ 'notin',
757
+ Like;
758
+ 'like',
759
+ Notlike;
760
+ 'notlike',
761
+ Beginswith;
762
+ 'beginswith',
763
+ Notbeginswith;
764
+ 'notbeginswith',
765
+ Endswith;
766
+ 'endswith',
767
+ Notendswith;
768
+ 'notendswith';
769
+ as;
770
+ const ;
771
+ exports.SimpleConditionRightFieldTypeEnum = {
772
+ TaskIn: 'taskIn',
773
+ TaskOut: 'taskOut',
774
+ Taskinformfield: 'taskinformfield',
775
+ Taskoutformfield: 'taskoutformfield',
776
+ CaseData: 'caseData',
777
+ Inlinetemplate: 'inlinetemplate',
778
+ Value: 'value',
779
+ StaticPicklistItem: 'staticPicklistItem',
780
+ Taskdata: 'taskdata',
781
+ Formfield: 'formfield'
782
+ };
783
+ exports.SortConfigSearchConditionTypeEnum = {
784
+ SimpleCondition: 'simpleCondition'
785
+ };
786
+ exports.SortConfigSearchListTypeEnum = {
787
+ ConditionList: 'conditionList'
788
+ };
789
+ exports.SortConfigSortDirectionEnum = {
790
+ Asc: 'asc',
791
+ Desc: 'desc'
792
+ };
793
+ exports.TaskCreateRequestTypeEnum = {
794
+ Optional: 'optional',
795
+ OptionalByTag: 'optionalByTag',
796
+ Mandatory: 'mandatory',
797
+ Required: 'required'
798
+ };
799
+ exports.TaskCreateRequestAnyOfTypeEnum = {
800
+ Optional: 'optional'
801
+ };
802
+ exports.TaskCreateRequestAnyOf1TypeEnum = {
803
+ OptionalByTag: 'optionalByTag'
804
+ };
805
+ exports.TaskCreateRequestAnyOf2TypeEnum = {
806
+ Mandatory: 'mandatory',
807
+ Required: 'required'
808
+ };
809
+ exports.TaskSubmitRequestTypeEnum = {
810
+ Optional: 'optional',
811
+ TaskArray: 'task-array',
812
+ TaskJson: 'task-json'
813
+ };
814
+ exports.TaskSubmitRequestAnyOfTypeEnum = {
815
+ Optional: 'optional'
816
+ };
817
+ exports.TaskSubmitRequestAnyOf1TypeEnum = {
818
+ TaskArray: 'task-array'
819
+ };
820
+ exports.TaskSubmitRequestAnyOf2TypeEnum = {
821
+ TaskJson: 'task-json'
822
+ };
823
+ exports.TriggerTypeEnum = {
824
+ Execute: 'execute',
825
+ ExecuteAndSubmit: 'execute and submit',
826
+ Enable: 'enable',
827
+ Disable: 'disable',
828
+ Cancel: 'cancel',
829
+ Finish: 'finish',
830
+ Submit: 'submit'
831
+ };
832
+ /**
833
+ * CaseApi - axios parameter creator
834
+ * @export
835
+ */
836
+ const CaseApiAxiosParamCreator = function (configuration) {
837
+ return {
838
+ /**
839
+ *
840
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
841
+ * @param {string} casePath Path or Id of case
842
+ * @param {string} activity ID of activity
843
+ * @param {object} [body]
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ activityDirectSubmit: async (casePath, activity, body, options = {}) => {
848
+ // verify required parameter 'casePath' is not null or undefined
849
+ (0, common_1.assertParamExists)('activityDirectSubmit', 'casePath', casePath);
850
+ // verify required parameter 'activity' is not null or undefined
851
+ (0, common_1.assertParamExists)('activityDirectSubmit', 'activity', activity);
852
+ const localVarPath = `/activity/{activity}/{casePath}`
853
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
854
+ .replace(`{${"activity"}}`, encodeURIComponent(String(activity)));
855
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
856
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
857
+ let baseOptions;
858
+ if (configuration) {
859
+ baseOptions = configuration.baseOptions;
860
+ }
861
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
862
+ const localVarHeaderParameter = {};
863
+ const localVarQueryParameter = {};
864
+ // authentication id-and-key required
865
+ // oauth required
866
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
867
+ localVarHeaderParameter['Content-Type'] = 'application/json';
868
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
869
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
870
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
871
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
872
+ return {
873
+ url: (0, common_1.toPathString)(localVarUrlObj),
874
+ options: localVarRequestOptions,
875
+ };
876
+ },
877
+ /**
878
+ *
879
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
880
+ * @param {string} caseId ID of case
881
+ * @param {string} activity ID of activity
882
+ * @param {object} [body]
883
+ * @param {*} [options] Override http request option.
884
+ * @deprecated
885
+ * @throws {RequiredError}
886
+ */
887
+ activitySubmit: async (caseId, activity, body, options = {}) => {
888
+ // verify required parameter 'caseId' is not null or undefined
889
+ (0, common_1.assertParamExists)('activitySubmit', 'caseId', caseId);
890
+ // verify required parameter 'activity' is not null or undefined
891
+ (0, common_1.assertParamExists)('activitySubmit', 'activity', activity);
892
+ const localVarPath = `/case/{caseId}/activity/{activity}`
893
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
894
+ .replace(`{${"activity"}}`, encodeURIComponent(String(activity)));
895
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
896
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
897
+ let baseOptions;
898
+ if (configuration) {
899
+ baseOptions = configuration.baseOptions;
900
+ }
901
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
902
+ const localVarHeaderParameter = {};
903
+ const localVarQueryParameter = {};
904
+ // authentication id-and-key required
905
+ // oauth required
906
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
907
+ localVarHeaderParameter['Content-Type'] = 'application/json';
908
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
909
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
910
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
911
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
912
+ return {
913
+ url: (0, common_1.toPathString)(localVarUrlObj),
914
+ options: localVarRequestOptions,
915
+ };
916
+ },
917
+ /**
918
+ *
919
+ * @summary Retrieve information on a case
920
+ * @param {string} casePath Path or Id of case
921
+ * @param {boolean} [css] Set css
922
+ * @param {boolean} [rootline] Set rootline
923
+ * @param {boolean} [views] Set views
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ caseInfo: async (casePath, css, rootline, views, options = {}) => {
928
+ // verify required parameter 'casePath' is not null or undefined
929
+ (0, common_1.assertParamExists)('caseInfo', 'casePath', casePath);
930
+ const localVarPath = `/case-info/{casePath}`
931
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)));
932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
933
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
934
+ let baseOptions;
935
+ if (configuration) {
936
+ baseOptions = configuration.baseOptions;
937
+ }
938
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
939
+ const localVarHeaderParameter = {};
940
+ const localVarQueryParameter = {};
941
+ // authentication id-and-key required
942
+ // oauth required
943
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
944
+ if (css !== undefined) {
945
+ localVarQueryParameter['css'] = css;
946
+ }
947
+ if (rootline !== undefined) {
948
+ localVarQueryParameter['rootline'] = rootline;
949
+ }
950
+ if (views !== undefined) {
951
+ localVarQueryParameter['views'] = views;
952
+ }
953
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
955
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
956
+ return {
957
+ url: (0, common_1.toPathString)(localVarUrlObj),
958
+ options: localVarRequestOptions,
959
+ };
960
+ },
961
+ /**
962
+ *
963
+ * @summary Create a new optional task based on an activity ID
964
+ * @param {string} caseId ID of case
965
+ * @param {string} activity ID of activity
966
+ * @param {CaseTaskCreateFormatEnum} format Format of the result
967
+ * @param {TaskCreateRequest} [taskCreateRequest]
968
+ * @param {*} [options] Override http request option.
969
+ * @deprecated
970
+ * @throws {RequiredError}
971
+ */
972
+ caseTaskCreate: async (caseId, activity, format, taskCreateRequest, options = {}) => {
973
+ // verify required parameter 'caseId' is not null or undefined
974
+ (0, common_1.assertParamExists)('caseTaskCreate', 'caseId', caseId);
975
+ // verify required parameter 'activity' is not null or undefined
976
+ (0, common_1.assertParamExists)('caseTaskCreate', 'activity', activity);
977
+ // verify required parameter 'format' is not null or undefined
978
+ (0, common_1.assertParamExists)('caseTaskCreate', 'format', format);
979
+ const localVarPath = `/case/{caseId}/task/create/{activity}`
980
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
981
+ .replace(`{${"activity"}}`, encodeURIComponent(String(activity)));
982
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
983
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
984
+ let baseOptions;
985
+ if (configuration) {
986
+ baseOptions = configuration.baseOptions;
987
+ }
988
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
989
+ const localVarHeaderParameter = {};
990
+ const localVarQueryParameter = {};
991
+ // authentication id-and-key required
992
+ // oauth required
993
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
994
+ if (format !== undefined) {
995
+ localVarQueryParameter['format'] = format;
996
+ }
997
+ localVarHeaderParameter['Content-Type'] = 'application/json';
998
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
999
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1000
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1001
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(taskCreateRequest, localVarRequestOptions, configuration);
1002
+ return {
1003
+ url: (0, common_1.toPathString)(localVarUrlObj),
1004
+ options: localVarRequestOptions,
1005
+ };
1006
+ },
1007
+ /**
1008
+ *
1009
+ * @summary Retrieve an existing task based on the task ID
1010
+ * @param {string} caseId ID of case
1011
+ * @param {number} task ID of task
1012
+ * @param {CaseTaskGetFormatEnum} format Format of the result
1013
+ * @param {*} [options] Override http request option.
1014
+ * @deprecated
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ caseTaskGet: async (caseId, task, format, options = {}) => {
1018
+ // verify required parameter 'caseId' is not null or undefined
1019
+ (0, common_1.assertParamExists)('caseTaskGet', 'caseId', caseId);
1020
+ // verify required parameter 'task' is not null or undefined
1021
+ (0, common_1.assertParamExists)('caseTaskGet', 'task', task);
1022
+ // verify required parameter 'format' is not null or undefined
1023
+ (0, common_1.assertParamExists)('caseTaskGet', 'format', format);
1024
+ const localVarPath = `/case/{caseId}/task/{task}`
1025
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
1026
+ .replace(`{${"task"}}`, encodeURIComponent(String(task)));
1027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1028
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1029
+ let baseOptions;
1030
+ if (configuration) {
1031
+ baseOptions = configuration.baseOptions;
1032
+ }
1033
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1034
+ const localVarHeaderParameter = {};
1035
+ const localVarQueryParameter = {};
1036
+ // authentication id-and-key required
1037
+ // oauth required
1038
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1039
+ if (format !== undefined) {
1040
+ localVarQueryParameter['format'] = format;
1041
+ }
1042
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1043
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1044
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1045
+ return {
1046
+ url: (0, common_1.toPathString)(localVarUrlObj),
1047
+ options: localVarRequestOptions,
1048
+ };
1049
+ },
1050
+ /**
1051
+ *
1052
+ * @summary Submit an existing task based on the task ID and filled in fields
1053
+ * @param {string} caseId ID of case
1054
+ * @param {number} task ID of task
1055
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
1056
+ * @param {*} [options] Override http request option.
1057
+ * @deprecated
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ caseTaskSubmit: async (caseId, task, taskSubmitRequest, options = {}) => {
1061
+ // verify required parameter 'caseId' is not null or undefined
1062
+ (0, common_1.assertParamExists)('caseTaskSubmit', 'caseId', caseId);
1063
+ // verify required parameter 'task' is not null or undefined
1064
+ (0, common_1.assertParamExists)('caseTaskSubmit', 'task', task);
1065
+ const localVarPath = `/case/{caseId}/task/{task}`
1066
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
1067
+ .replace(`{${"task"}}`, encodeURIComponent(String(task)));
1068
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1069
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1070
+ let baseOptions;
1071
+ if (configuration) {
1072
+ baseOptions = configuration.baseOptions;
1073
+ }
1074
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1075
+ const localVarHeaderParameter = {};
1076
+ const localVarQueryParameter = {};
1077
+ // authentication id-and-key required
1078
+ // oauth required
1079
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1080
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1081
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1082
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1083
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1084
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(taskSubmitRequest, localVarRequestOptions, configuration);
1085
+ return {
1086
+ url: (0, common_1.toPathString)(localVarUrlObj),
1087
+ options: localVarRequestOptions,
1088
+ };
1089
+ },
1090
+ /**
1091
+ *
1092
+ * @summary Retrieve information on a case
1093
+ * @param {string} caseId ID of case
1094
+ * @param {boolean} [css] Set css
1095
+ * @param {boolean} [rootline] Set rootline
1096
+ * @param {boolean} [views] Set views
1097
+ * @param {*} [options] Override http request option.
1098
+ * @deprecated
1099
+ * @throws {RequiredError}
1100
+ */
1101
+ caseView: async (caseId, css, rootline, views, options = {}) => {
1102
+ // verify required parameter 'caseId' is not null or undefined
1103
+ (0, common_1.assertParamExists)('caseView', 'caseId', caseId);
1104
+ const localVarPath = `/case/{caseId}`
1105
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)));
1106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1107
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1108
+ let baseOptions;
1109
+ if (configuration) {
1110
+ baseOptions = configuration.baseOptions;
1111
+ }
1112
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1113
+ const localVarHeaderParameter = {};
1114
+ const localVarQueryParameter = {};
1115
+ // authentication id-and-key required
1116
+ // oauth required
1117
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1118
+ if (css !== undefined) {
1119
+ localVarQueryParameter['css'] = css;
1120
+ }
1121
+ if (rootline !== undefined) {
1122
+ localVarQueryParameter['rootline'] = rootline;
1123
+ }
1124
+ if (views !== undefined) {
1125
+ localVarQueryParameter['views'] = views;
1126
+ }
1127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1129
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1130
+ return {
1131
+ url: (0, common_1.toPathString)(localVarUrlObj),
1132
+ options: localVarRequestOptions,
1133
+ };
1134
+ },
1135
+ /**
1136
+ *
1137
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
1138
+ * @param {string} caseId ID of case
1139
+ * @param {string} dataset ID of dataset
1140
+ * @param {DatasetGetFormatEnum} format Format of the result
1141
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
1142
+ * @param {*} [options] Override http request option.
1143
+ * @deprecated
1144
+ * @throws {RequiredError}
1145
+ */
1146
+ datasetGet: async (caseId, dataset, format, datasetRetrieveRequest, options = {}) => {
1147
+ // verify required parameter 'caseId' is not null or undefined
1148
+ (0, common_1.assertParamExists)('datasetGet', 'caseId', caseId);
1149
+ // verify required parameter 'dataset' is not null or undefined
1150
+ (0, common_1.assertParamExists)('datasetGet', 'dataset', dataset);
1151
+ // verify required parameter 'format' is not null or undefined
1152
+ (0, common_1.assertParamExists)('datasetGet', 'format', format);
1153
+ const localVarPath = `/case/{caseId}/dataset/{dataset}`
1154
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
1155
+ .replace(`{${"dataset"}}`, encodeURIComponent(String(dataset)));
1156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1158
+ let baseOptions;
1159
+ if (configuration) {
1160
+ baseOptions = configuration.baseOptions;
1161
+ }
1162
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1163
+ const localVarHeaderParameter = {};
1164
+ const localVarQueryParameter = {};
1165
+ // authentication id-and-key required
1166
+ // oauth required
1167
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1168
+ if (format !== undefined) {
1169
+ localVarQueryParameter['format'] = format;
1170
+ }
1171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1174
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1175
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(datasetRetrieveRequest, localVarRequestOptions, configuration);
1176
+ return {
1177
+ url: (0, common_1.toPathString)(localVarUrlObj),
1178
+ options: localVarRequestOptions,
1179
+ };
1180
+ },
1181
+ /**
1182
+ *
1183
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
1184
+ * @param {string} caseId ID of case
1185
+ * @param {string} dataset ID of dataset
1186
+ * @param {string} widget ID of widget
1187
+ * @param {DatasetGetViaWidgetFormatEnum} format Format of the result
1188
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
1189
+ * @param {*} [options] Override http request option.
1190
+ * @deprecated
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ datasetGetViaWidget: async (caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options = {}) => {
1194
+ // verify required parameter 'caseId' is not null or undefined
1195
+ (0, common_1.assertParamExists)('datasetGetViaWidget', 'caseId', caseId);
1196
+ // verify required parameter 'dataset' is not null or undefined
1197
+ (0, common_1.assertParamExists)('datasetGetViaWidget', 'dataset', dataset);
1198
+ // verify required parameter 'widget' is not null or undefined
1199
+ (0, common_1.assertParamExists)('datasetGetViaWidget', 'widget', widget);
1200
+ // verify required parameter 'format' is not null or undefined
1201
+ (0, common_1.assertParamExists)('datasetGetViaWidget', 'format', format);
1202
+ const localVarPath = `/case/{caseId}/dataset/{dataset}/widget/{widget}`
1203
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
1204
+ .replace(`{${"dataset"}}`, encodeURIComponent(String(dataset)))
1205
+ .replace(`{${"widget"}}`, encodeURIComponent(String(widget)));
1206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1207
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1208
+ let baseOptions;
1209
+ if (configuration) {
1210
+ baseOptions = configuration.baseOptions;
1211
+ }
1212
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1213
+ const localVarHeaderParameter = {};
1214
+ const localVarQueryParameter = {};
1215
+ // authentication id-and-key required
1216
+ // oauth required
1217
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1218
+ if (format !== undefined) {
1219
+ localVarQueryParameter['format'] = format;
1220
+ }
1221
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1222
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1224
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1225
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(datasetRetrieveViaWidgetRequest, localVarRequestOptions, configuration);
1226
+ return {
1227
+ url: (0, common_1.toPathString)(localVarUrlObj),
1228
+ options: localVarRequestOptions,
1229
+ };
1230
+ },
1231
+ /**
1232
+ *
1233
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
1234
+ * @param {string} casePath Path or Id of case
1235
+ * @param {string} dataset ID of dataset
1236
+ * @param {DatasetRetrieveFormatEnum} format Format of the result
1237
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ datasetRetrieve: async (casePath, dataset, format, datasetRetrieveRequest, options = {}) => {
1242
+ // verify required parameter 'casePath' is not null or undefined
1243
+ (0, common_1.assertParamExists)('datasetRetrieve', 'casePath', casePath);
1244
+ // verify required parameter 'dataset' is not null or undefined
1245
+ (0, common_1.assertParamExists)('datasetRetrieve', 'dataset', dataset);
1246
+ // verify required parameter 'format' is not null or undefined
1247
+ (0, common_1.assertParamExists)('datasetRetrieve', 'format', format);
1248
+ const localVarPath = `/dataset/{dataset}/{casePath}`
1249
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
1250
+ .replace(`{${"dataset"}}`, encodeURIComponent(String(dataset)));
1251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1252
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1253
+ let baseOptions;
1254
+ if (configuration) {
1255
+ baseOptions = configuration.baseOptions;
1256
+ }
1257
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1258
+ const localVarHeaderParameter = {};
1259
+ const localVarQueryParameter = {};
1260
+ // authentication id-and-key required
1261
+ // oauth required
1262
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1263
+ if (format !== undefined) {
1264
+ localVarQueryParameter['format'] = format;
1265
+ }
1266
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1267
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1269
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1270
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(datasetRetrieveRequest, localVarRequestOptions, configuration);
1271
+ return {
1272
+ url: (0, common_1.toPathString)(localVarUrlObj),
1273
+ options: localVarRequestOptions,
1274
+ };
1275
+ },
1276
+ /**
1277
+ *
1278
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
1279
+ * @param {string} casePath Path or Id of case
1280
+ * @param {string} dataset ID of dataset
1281
+ * @param {string} widget ID of widget
1282
+ * @param {DatasetRetrieveViaWidgetFormatEnum} format Format of the result
1283
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
1284
+ * @param {*} [options] Override http request option.
1285
+ * @throws {RequiredError}
1286
+ */
1287
+ datasetRetrieveViaWidget: async (casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options = {}) => {
1288
+ // verify required parameter 'casePath' is not null or undefined
1289
+ (0, common_1.assertParamExists)('datasetRetrieveViaWidget', 'casePath', casePath);
1290
+ // verify required parameter 'dataset' is not null or undefined
1291
+ (0, common_1.assertParamExists)('datasetRetrieveViaWidget', 'dataset', dataset);
1292
+ // verify required parameter 'widget' is not null or undefined
1293
+ (0, common_1.assertParamExists)('datasetRetrieveViaWidget', 'widget', widget);
1294
+ // verify required parameter 'format' is not null or undefined
1295
+ (0, common_1.assertParamExists)('datasetRetrieveViaWidget', 'format', format);
1296
+ const localVarPath = `/widget-dataset/{dataset}/{widget}/{casePath}`
1297
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
1298
+ .replace(`{${"dataset"}}`, encodeURIComponent(String(dataset)))
1299
+ .replace(`{${"widget"}}`, encodeURIComponent(String(widget)));
1300
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1301
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1302
+ let baseOptions;
1303
+ if (configuration) {
1304
+ baseOptions = configuration.baseOptions;
1305
+ }
1306
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1307
+ const localVarHeaderParameter = {};
1308
+ const localVarQueryParameter = {};
1309
+ // authentication id-and-key required
1310
+ // oauth required
1311
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1312
+ if (format !== undefined) {
1313
+ localVarQueryParameter['format'] = format;
1314
+ }
1315
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1316
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1318
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1319
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(datasetRetrieveViaWidgetRequest, localVarRequestOptions, configuration);
1320
+ return {
1321
+ url: (0, common_1.toPathString)(localVarUrlObj),
1322
+ options: localVarRequestOptions,
1323
+ };
1324
+ },
1325
+ /**
1326
+ *
1327
+ * @summary Retrieve the contents of a form, rights are checked via form rights
1328
+ * @param {string} caseId ID of case
1329
+ * @param {string} form2 ID of form
1330
+ * @param {FormGetFormatEnum} format Format of the result
1331
+ * @param {any} [form] Set form
1332
+ * @param {*} [options] Override http request option.
1333
+ * @deprecated
1334
+ * @throws {RequiredError}
1335
+ */
1336
+ formGet: async (caseId, form2, format, form, options = {}) => {
1337
+ // verify required parameter 'caseId' is not null or undefined
1338
+ (0, common_1.assertParamExists)('formGet', 'caseId', caseId);
1339
+ // verify required parameter 'form2' is not null or undefined
1340
+ (0, common_1.assertParamExists)('formGet', 'form2', form2);
1341
+ // verify required parameter 'format' is not null or undefined
1342
+ (0, common_1.assertParamExists)('formGet', 'format', format);
1343
+ const localVarPath = `/case/{caseId}/form/{form}`
1344
+ .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId)))
1345
+ .replace(`{${"form"}}`, encodeURIComponent(String(form2)));
1346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1347
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1348
+ let baseOptions;
1349
+ if (configuration) {
1350
+ baseOptions = configuration.baseOptions;
1351
+ }
1352
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1353
+ const localVarHeaderParameter = {};
1354
+ const localVarQueryParameter = {};
1355
+ // authentication id-and-key required
1356
+ // oauth required
1357
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1358
+ if (form !== undefined) {
1359
+ for (const [key, value] of Object.entries(form)) {
1360
+ localVarQueryParameter[key] = value;
1361
+ }
1362
+ }
1363
+ if (format !== undefined) {
1364
+ localVarQueryParameter['format'] = format;
1365
+ }
1366
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1368
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1369
+ return {
1370
+ url: (0, common_1.toPathString)(localVarUrlObj),
1371
+ options: localVarRequestOptions,
1372
+ };
1373
+ },
1374
+ /**
1375
+ *
1376
+ * @summary Retrieve the contents of a form, rights are checked via form rights
1377
+ * @param {string} casePath Path or Id of case
1378
+ * @param {string} form2 ID of form
1379
+ * @param {FormRetrieveFormatEnum} format Format of the result
1380
+ * @param {any} [form] Set form
1381
+ * @param {*} [options] Override http request option.
1382
+ * @throws {RequiredError}
1383
+ */
1384
+ formRetrieve: async (casePath, form2, format, form, options = {}) => {
1385
+ // verify required parameter 'casePath' is not null or undefined
1386
+ (0, common_1.assertParamExists)('formRetrieve', 'casePath', casePath);
1387
+ // verify required parameter 'form2' is not null or undefined
1388
+ (0, common_1.assertParamExists)('formRetrieve', 'form2', form2);
1389
+ // verify required parameter 'format' is not null or undefined
1390
+ (0, common_1.assertParamExists)('formRetrieve', 'format', format);
1391
+ const localVarPath = `/form/{form}/{casePath}`
1392
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
1393
+ .replace(`{${"form"}}`, encodeURIComponent(String(form2)));
1394
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1395
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1396
+ let baseOptions;
1397
+ if (configuration) {
1398
+ baseOptions = configuration.baseOptions;
1399
+ }
1400
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1401
+ const localVarHeaderParameter = {};
1402
+ const localVarQueryParameter = {};
1403
+ // authentication id-and-key required
1404
+ // oauth required
1405
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1406
+ if (form !== undefined) {
1407
+ for (const [key, value] of Object.entries(form)) {
1408
+ localVarQueryParameter[key] = value;
1409
+ }
1410
+ }
1411
+ if (format !== undefined) {
1412
+ localVarQueryParameter['format'] = format;
1413
+ }
1414
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1415
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1416
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1417
+ return {
1418
+ url: (0, common_1.toPathString)(localVarUrlObj),
1419
+ options: localVarRequestOptions,
1420
+ };
1421
+ },
1422
+ /**
1423
+ *
1424
+ * @summary Create a new optional task based on an activity ID
1425
+ * @param {string} casePath Path or Id of case
1426
+ * @param {string} activity ID of activity
1427
+ * @param {TaskCreateFormatEnum} format Format of the result
1428
+ * @param {TaskCreateRequest} [taskCreateRequest]
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ */
1432
+ taskCreate: async (casePath, activity, format, taskCreateRequest, options = {}) => {
1433
+ // verify required parameter 'casePath' is not null or undefined
1434
+ (0, common_1.assertParamExists)('taskCreate', 'casePath', casePath);
1435
+ // verify required parameter 'activity' is not null or undefined
1436
+ (0, common_1.assertParamExists)('taskCreate', 'activity', activity);
1437
+ // verify required parameter 'format' is not null or undefined
1438
+ (0, common_1.assertParamExists)('taskCreate', 'format', format);
1439
+ const localVarPath = `/task-create/{activity}/{casePath}`
1440
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
1441
+ .replace(`{${"activity"}}`, encodeURIComponent(String(activity)));
1442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1443
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1444
+ let baseOptions;
1445
+ if (configuration) {
1446
+ baseOptions = configuration.baseOptions;
1447
+ }
1448
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1449
+ const localVarHeaderParameter = {};
1450
+ const localVarQueryParameter = {};
1451
+ // authentication id-and-key required
1452
+ // oauth required
1453
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1454
+ if (format !== undefined) {
1455
+ localVarQueryParameter['format'] = format;
1456
+ }
1457
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1458
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1459
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1460
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1461
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(taskCreateRequest, localVarRequestOptions, configuration);
1462
+ return {
1463
+ url: (0, common_1.toPathString)(localVarUrlObj),
1464
+ options: localVarRequestOptions,
1465
+ };
1466
+ },
1467
+ /**
1468
+ *
1469
+ * @summary Retrieve an existing task based on the task ID
1470
+ * @param {string} casePath Path or Id of case
1471
+ * @param {number} task ID of task
1472
+ * @param {TaskInfoFormatEnum} format Format of the result
1473
+ * @param {*} [options] Override http request option.
1474
+ * @throws {RequiredError}
1475
+ */
1476
+ taskInfo: async (casePath, task, format, options = {}) => {
1477
+ // verify required parameter 'casePath' is not null or undefined
1478
+ (0, common_1.assertParamExists)('taskInfo', 'casePath', casePath);
1479
+ // verify required parameter 'task' is not null or undefined
1480
+ (0, common_1.assertParamExists)('taskInfo', 'task', task);
1481
+ // verify required parameter 'format' is not null or undefined
1482
+ (0, common_1.assertParamExists)('taskInfo', 'format', format);
1483
+ const localVarPath = `/task-info/{task}/{casePath}`
1484
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
1485
+ .replace(`{${"task"}}`, encodeURIComponent(String(task)));
1486
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1487
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1488
+ let baseOptions;
1489
+ if (configuration) {
1490
+ baseOptions = configuration.baseOptions;
1491
+ }
1492
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1493
+ const localVarHeaderParameter = {};
1494
+ const localVarQueryParameter = {};
1495
+ // authentication id-and-key required
1496
+ // oauth required
1497
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1498
+ if (format !== undefined) {
1499
+ localVarQueryParameter['format'] = format;
1500
+ }
1501
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1502
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1503
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1504
+ return {
1505
+ url: (0, common_1.toPathString)(localVarUrlObj),
1506
+ options: localVarRequestOptions,
1507
+ };
1508
+ },
1509
+ /**
1510
+ *
1511
+ * @summary Submit an existing task based on the task ID and filled in fields
1512
+ * @param {string} casePath Path or Id of case
1513
+ * @param {number} task ID of task
1514
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
1515
+ * @param {*} [options] Override http request option.
1516
+ * @throws {RequiredError}
1517
+ */
1518
+ taskSubmit: async (casePath, task, taskSubmitRequest, options = {}) => {
1519
+ // verify required parameter 'casePath' is not null or undefined
1520
+ (0, common_1.assertParamExists)('taskSubmit', 'casePath', casePath);
1521
+ // verify required parameter 'task' is not null or undefined
1522
+ (0, common_1.assertParamExists)('taskSubmit', 'task', task);
1523
+ const localVarPath = `/task-submit/{task}/{casePath}`
1524
+ .replace(`{${"casePath"}}`, encodeURIComponent(String(casePath)))
1525
+ .replace(`{${"task"}}`, encodeURIComponent(String(task)));
1526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1527
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1528
+ let baseOptions;
1529
+ if (configuration) {
1530
+ baseOptions = configuration.baseOptions;
1531
+ }
1532
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1533
+ const localVarHeaderParameter = {};
1534
+ const localVarQueryParameter = {};
1535
+ // authentication id-and-key required
1536
+ // oauth required
1537
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
1538
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1539
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1541
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1542
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(taskSubmitRequest, localVarRequestOptions, configuration);
1543
+ return {
1544
+ url: (0, common_1.toPathString)(localVarUrlObj),
1545
+ options: localVarRequestOptions,
1546
+ };
1547
+ },
1548
+ };
1549
+ };
1550
+ exports.CaseApiAxiosParamCreator = CaseApiAxiosParamCreator;
1551
+ /**
1552
+ * CaseApi - functional programming interface
1553
+ * @export
1554
+ */
1555
+ const CaseApiFp = function (configuration) {
1556
+ const localVarAxiosParamCreator = (0, exports.CaseApiAxiosParamCreator)(configuration);
1557
+ return {
1558
+ /**
1559
+ *
1560
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
1561
+ * @param {string} casePath Path or Id of case
1562
+ * @param {string} activity ID of activity
1563
+ * @param {object} [body]
1564
+ * @param {*} [options] Override http request option.
1565
+ * @throws {RequiredError}
1566
+ */
1567
+ async activityDirectSubmit(casePath, activity, body, options) {
1568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activityDirectSubmit(casePath, activity, body, options);
1569
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1570
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.activityDirectSubmit']?.[localVarOperationServerIndex]?.url;
1571
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1572
+ },
1573
+ /**
1574
+ *
1575
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
1576
+ * @param {string} caseId ID of case
1577
+ * @param {string} activity ID of activity
1578
+ * @param {object} [body]
1579
+ * @param {*} [options] Override http request option.
1580
+ * @deprecated
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ async activitySubmit(caseId, activity, body, options) {
1584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activitySubmit(caseId, activity, body, options);
1585
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1586
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.activitySubmit']?.[localVarOperationServerIndex]?.url;
1587
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1588
+ },
1589
+ /**
1590
+ *
1591
+ * @summary Retrieve information on a case
1592
+ * @param {string} casePath Path or Id of case
1593
+ * @param {boolean} [css] Set css
1594
+ * @param {boolean} [rootline] Set rootline
1595
+ * @param {boolean} [views] Set views
1596
+ * @param {*} [options] Override http request option.
1597
+ * @throws {RequiredError}
1598
+ */
1599
+ async caseInfo(casePath, css, rootline, views, options) {
1600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.caseInfo(casePath, css, rootline, views, options);
1601
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1602
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.caseInfo']?.[localVarOperationServerIndex]?.url;
1603
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1604
+ },
1605
+ /**
1606
+ *
1607
+ * @summary Create a new optional task based on an activity ID
1608
+ * @param {string} caseId ID of case
1609
+ * @param {string} activity ID of activity
1610
+ * @param {CaseTaskCreateFormatEnum} format Format of the result
1611
+ * @param {TaskCreateRequest} [taskCreateRequest]
1612
+ * @param {*} [options] Override http request option.
1613
+ * @deprecated
1614
+ * @throws {RequiredError}
1615
+ */
1616
+ async caseTaskCreate(caseId, activity, format, taskCreateRequest, options) {
1617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.caseTaskCreate(caseId, activity, format, taskCreateRequest, options);
1618
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1619
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.caseTaskCreate']?.[localVarOperationServerIndex]?.url;
1620
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1621
+ },
1622
+ /**
1623
+ *
1624
+ * @summary Retrieve an existing task based on the task ID
1625
+ * @param {string} caseId ID of case
1626
+ * @param {number} task ID of task
1627
+ * @param {CaseTaskGetFormatEnum} format Format of the result
1628
+ * @param {*} [options] Override http request option.
1629
+ * @deprecated
1630
+ * @throws {RequiredError}
1631
+ */
1632
+ async caseTaskGet(caseId, task, format, options) {
1633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.caseTaskGet(caseId, task, format, options);
1634
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1635
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.caseTaskGet']?.[localVarOperationServerIndex]?.url;
1636
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1637
+ },
1638
+ /**
1639
+ *
1640
+ * @summary Submit an existing task based on the task ID and filled in fields
1641
+ * @param {string} caseId ID of case
1642
+ * @param {number} task ID of task
1643
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
1644
+ * @param {*} [options] Override http request option.
1645
+ * @deprecated
1646
+ * @throws {RequiredError}
1647
+ */
1648
+ async caseTaskSubmit(caseId, task, taskSubmitRequest, options) {
1649
+ const localVarAxiosArgs = await localVarAxiosParamCreator.caseTaskSubmit(caseId, task, taskSubmitRequest, options);
1650
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1651
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.caseTaskSubmit']?.[localVarOperationServerIndex]?.url;
1652
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1653
+ },
1654
+ /**
1655
+ *
1656
+ * @summary Retrieve information on a case
1657
+ * @param {string} caseId ID of case
1658
+ * @param {boolean} [css] Set css
1659
+ * @param {boolean} [rootline] Set rootline
1660
+ * @param {boolean} [views] Set views
1661
+ * @param {*} [options] Override http request option.
1662
+ * @deprecated
1663
+ * @throws {RequiredError}
1664
+ */
1665
+ async caseView(caseId, css, rootline, views, options) {
1666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.caseView(caseId, css, rootline, views, options);
1667
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1668
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.caseView']?.[localVarOperationServerIndex]?.url;
1669
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1670
+ },
1671
+ /**
1672
+ *
1673
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
1674
+ * @param {string} caseId ID of case
1675
+ * @param {string} dataset ID of dataset
1676
+ * @param {DatasetGetFormatEnum} format Format of the result
1677
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
1678
+ * @param {*} [options] Override http request option.
1679
+ * @deprecated
1680
+ * @throws {RequiredError}
1681
+ */
1682
+ async datasetGet(caseId, dataset, format, datasetRetrieveRequest, options) {
1683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.datasetGet(caseId, dataset, format, datasetRetrieveRequest, options);
1684
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1685
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.datasetGet']?.[localVarOperationServerIndex]?.url;
1686
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1687
+ },
1688
+ /**
1689
+ *
1690
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
1691
+ * @param {string} caseId ID of case
1692
+ * @param {string} dataset ID of dataset
1693
+ * @param {string} widget ID of widget
1694
+ * @param {DatasetGetViaWidgetFormatEnum} format Format of the result
1695
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
1696
+ * @param {*} [options] Override http request option.
1697
+ * @deprecated
1698
+ * @throws {RequiredError}
1699
+ */
1700
+ async datasetGetViaWidget(caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options) {
1701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.datasetGetViaWidget(caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options);
1702
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1703
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.datasetGetViaWidget']?.[localVarOperationServerIndex]?.url;
1704
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1705
+ },
1706
+ /**
1707
+ *
1708
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
1709
+ * @param {string} casePath Path or Id of case
1710
+ * @param {string} dataset ID of dataset
1711
+ * @param {DatasetRetrieveFormatEnum} format Format of the result
1712
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
1713
+ * @param {*} [options] Override http request option.
1714
+ * @throws {RequiredError}
1715
+ */
1716
+ async datasetRetrieve(casePath, dataset, format, datasetRetrieveRequest, options) {
1717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.datasetRetrieve(casePath, dataset, format, datasetRetrieveRequest, options);
1718
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1719
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.datasetRetrieve']?.[localVarOperationServerIndex]?.url;
1720
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1721
+ },
1722
+ /**
1723
+ *
1724
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
1725
+ * @param {string} casePath Path or Id of case
1726
+ * @param {string} dataset ID of dataset
1727
+ * @param {string} widget ID of widget
1728
+ * @param {DatasetRetrieveViaWidgetFormatEnum} format Format of the result
1729
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
1730
+ * @param {*} [options] Override http request option.
1731
+ * @throws {RequiredError}
1732
+ */
1733
+ async datasetRetrieveViaWidget(casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options) {
1734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.datasetRetrieveViaWidget(casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options);
1735
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1736
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.datasetRetrieveViaWidget']?.[localVarOperationServerIndex]?.url;
1737
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1738
+ },
1739
+ /**
1740
+ *
1741
+ * @summary Retrieve the contents of a form, rights are checked via form rights
1742
+ * @param {string} caseId ID of case
1743
+ * @param {string} form2 ID of form
1744
+ * @param {FormGetFormatEnum} format Format of the result
1745
+ * @param {any} [form] Set form
1746
+ * @param {*} [options] Override http request option.
1747
+ * @deprecated
1748
+ * @throws {RequiredError}
1749
+ */
1750
+ async formGet(caseId, form2, format, form, options) {
1751
+ const localVarAxiosArgs = await localVarAxiosParamCreator.formGet(caseId, form2, format, form, options);
1752
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1753
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.formGet']?.[localVarOperationServerIndex]?.url;
1754
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1755
+ },
1756
+ /**
1757
+ *
1758
+ * @summary Retrieve the contents of a form, rights are checked via form rights
1759
+ * @param {string} casePath Path or Id of case
1760
+ * @param {string} form2 ID of form
1761
+ * @param {FormRetrieveFormatEnum} format Format of the result
1762
+ * @param {any} [form] Set form
1763
+ * @param {*} [options] Override http request option.
1764
+ * @throws {RequiredError}
1765
+ */
1766
+ async formRetrieve(casePath, form2, format, form, options) {
1767
+ const localVarAxiosArgs = await localVarAxiosParamCreator.formRetrieve(casePath, form2, format, form, options);
1768
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1769
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.formRetrieve']?.[localVarOperationServerIndex]?.url;
1770
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1771
+ },
1772
+ /**
1773
+ *
1774
+ * @summary Create a new optional task based on an activity ID
1775
+ * @param {string} casePath Path or Id of case
1776
+ * @param {string} activity ID of activity
1777
+ * @param {TaskCreateFormatEnum} format Format of the result
1778
+ * @param {TaskCreateRequest} [taskCreateRequest]
1779
+ * @param {*} [options] Override http request option.
1780
+ * @throws {RequiredError}
1781
+ */
1782
+ async taskCreate(casePath, activity, format, taskCreateRequest, options) {
1783
+ const localVarAxiosArgs = await localVarAxiosParamCreator.taskCreate(casePath, activity, format, taskCreateRequest, options);
1784
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1785
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.taskCreate']?.[localVarOperationServerIndex]?.url;
1786
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1787
+ },
1788
+ /**
1789
+ *
1790
+ * @summary Retrieve an existing task based on the task ID
1791
+ * @param {string} casePath Path or Id of case
1792
+ * @param {number} task ID of task
1793
+ * @param {TaskInfoFormatEnum} format Format of the result
1794
+ * @param {*} [options] Override http request option.
1795
+ * @throws {RequiredError}
1796
+ */
1797
+ async taskInfo(casePath, task, format, options) {
1798
+ const localVarAxiosArgs = await localVarAxiosParamCreator.taskInfo(casePath, task, format, options);
1799
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1800
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.taskInfo']?.[localVarOperationServerIndex]?.url;
1801
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1802
+ },
1803
+ /**
1804
+ *
1805
+ * @summary Submit an existing task based on the task ID and filled in fields
1806
+ * @param {string} casePath Path or Id of case
1807
+ * @param {number} task ID of task
1808
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ */
1812
+ async taskSubmit(casePath, task, taskSubmitRequest, options) {
1813
+ const localVarAxiosArgs = await localVarAxiosParamCreator.taskSubmit(casePath, task, taskSubmitRequest, options);
1814
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1815
+ const localVarOperationServerBasePath = base_1.operationServerMap['CaseApi.taskSubmit']?.[localVarOperationServerIndex]?.url;
1816
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1817
+ },
1818
+ };
1819
+ };
1820
+ exports.CaseApiFp = CaseApiFp;
1821
+ /**
1822
+ * CaseApi - factory interface
1823
+ * @export
1824
+ */
1825
+ const CaseApiFactory = function (configuration, basePath, axios) {
1826
+ const localVarFp = (0, exports.CaseApiFp)(configuration);
1827
+ return {
1828
+ /**
1829
+ *
1830
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
1831
+ * @param {string} casePath Path or Id of case
1832
+ * @param {string} activity ID of activity
1833
+ * @param {object} [body]
1834
+ * @param {*} [options] Override http request option.
1835
+ * @throws {RequiredError}
1836
+ */
1837
+ activityDirectSubmit(casePath, activity, body, options) {
1838
+ return localVarFp.activityDirectSubmit(casePath, activity, body, options).then((request) => request(axios, basePath));
1839
+ },
1840
+ /**
1841
+ *
1842
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
1843
+ * @param {string} caseId ID of case
1844
+ * @param {string} activity ID of activity
1845
+ * @param {object} [body]
1846
+ * @param {*} [options] Override http request option.
1847
+ * @deprecated
1848
+ * @throws {RequiredError}
1849
+ */
1850
+ activitySubmit(caseId, activity, body, options) {
1851
+ return localVarFp.activitySubmit(caseId, activity, body, options).then((request) => request(axios, basePath));
1852
+ },
1853
+ /**
1854
+ *
1855
+ * @summary Retrieve information on a case
1856
+ * @param {string} casePath Path or Id of case
1857
+ * @param {boolean} [css] Set css
1858
+ * @param {boolean} [rootline] Set rootline
1859
+ * @param {boolean} [views] Set views
1860
+ * @param {*} [options] Override http request option.
1861
+ * @throws {RequiredError}
1862
+ */
1863
+ caseInfo(casePath, css, rootline, views, options) {
1864
+ return localVarFp.caseInfo(casePath, css, rootline, views, options).then((request) => request(axios, basePath));
1865
+ },
1866
+ /**
1867
+ *
1868
+ * @summary Create a new optional task based on an activity ID
1869
+ * @param {string} caseId ID of case
1870
+ * @param {string} activity ID of activity
1871
+ * @param {CaseTaskCreateFormatEnum} format Format of the result
1872
+ * @param {TaskCreateRequest} [taskCreateRequest]
1873
+ * @param {*} [options] Override http request option.
1874
+ * @deprecated
1875
+ * @throws {RequiredError}
1876
+ */
1877
+ caseTaskCreate(caseId, activity, format, taskCreateRequest, options) {
1878
+ return localVarFp.caseTaskCreate(caseId, activity, format, taskCreateRequest, options).then((request) => request(axios, basePath));
1879
+ },
1880
+ /**
1881
+ *
1882
+ * @summary Retrieve an existing task based on the task ID
1883
+ * @param {string} caseId ID of case
1884
+ * @param {number} task ID of task
1885
+ * @param {CaseTaskGetFormatEnum} format Format of the result
1886
+ * @param {*} [options] Override http request option.
1887
+ * @deprecated
1888
+ * @throws {RequiredError}
1889
+ */
1890
+ caseTaskGet(caseId, task, format, options) {
1891
+ return localVarFp.caseTaskGet(caseId, task, format, options).then((request) => request(axios, basePath));
1892
+ },
1893
+ /**
1894
+ *
1895
+ * @summary Submit an existing task based on the task ID and filled in fields
1896
+ * @param {string} caseId ID of case
1897
+ * @param {number} task ID of task
1898
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
1899
+ * @param {*} [options] Override http request option.
1900
+ * @deprecated
1901
+ * @throws {RequiredError}
1902
+ */
1903
+ caseTaskSubmit(caseId, task, taskSubmitRequest, options) {
1904
+ return localVarFp.caseTaskSubmit(caseId, task, taskSubmitRequest, options).then((request) => request(axios, basePath));
1905
+ },
1906
+ /**
1907
+ *
1908
+ * @summary Retrieve information on a case
1909
+ * @param {string} caseId ID of case
1910
+ * @param {boolean} [css] Set css
1911
+ * @param {boolean} [rootline] Set rootline
1912
+ * @param {boolean} [views] Set views
1913
+ * @param {*} [options] Override http request option.
1914
+ * @deprecated
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ caseView(caseId, css, rootline, views, options) {
1918
+ return localVarFp.caseView(caseId, css, rootline, views, options).then((request) => request(axios, basePath));
1919
+ },
1920
+ /**
1921
+ *
1922
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
1923
+ * @param {string} caseId ID of case
1924
+ * @param {string} dataset ID of dataset
1925
+ * @param {DatasetGetFormatEnum} format Format of the result
1926
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
1927
+ * @param {*} [options] Override http request option.
1928
+ * @deprecated
1929
+ * @throws {RequiredError}
1930
+ */
1931
+ datasetGet(caseId, dataset, format, datasetRetrieveRequest, options) {
1932
+ return localVarFp.datasetGet(caseId, dataset, format, datasetRetrieveRequest, options).then((request) => request(axios, basePath));
1933
+ },
1934
+ /**
1935
+ *
1936
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
1937
+ * @param {string} caseId ID of case
1938
+ * @param {string} dataset ID of dataset
1939
+ * @param {string} widget ID of widget
1940
+ * @param {DatasetGetViaWidgetFormatEnum} format Format of the result
1941
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
1942
+ * @param {*} [options] Override http request option.
1943
+ * @deprecated
1944
+ * @throws {RequiredError}
1945
+ */
1946
+ datasetGetViaWidget(caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options) {
1947
+ return localVarFp.datasetGetViaWidget(caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options).then((request) => request(axios, basePath));
1948
+ },
1949
+ /**
1950
+ *
1951
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
1952
+ * @param {string} casePath Path or Id of case
1953
+ * @param {string} dataset ID of dataset
1954
+ * @param {DatasetRetrieveFormatEnum} format Format of the result
1955
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
1956
+ * @param {*} [options] Override http request option.
1957
+ * @throws {RequiredError}
1958
+ */
1959
+ datasetRetrieve(casePath, dataset, format, datasetRetrieveRequest, options) {
1960
+ return localVarFp.datasetRetrieve(casePath, dataset, format, datasetRetrieveRequest, options).then((request) => request(axios, basePath));
1961
+ },
1962
+ /**
1963
+ *
1964
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
1965
+ * @param {string} casePath Path or Id of case
1966
+ * @param {string} dataset ID of dataset
1967
+ * @param {string} widget ID of widget
1968
+ * @param {DatasetRetrieveViaWidgetFormatEnum} format Format of the result
1969
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
1970
+ * @param {*} [options] Override http request option.
1971
+ * @throws {RequiredError}
1972
+ */
1973
+ datasetRetrieveViaWidget(casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options) {
1974
+ return localVarFp.datasetRetrieveViaWidget(casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options).then((request) => request(axios, basePath));
1975
+ },
1976
+ /**
1977
+ *
1978
+ * @summary Retrieve the contents of a form, rights are checked via form rights
1979
+ * @param {string} caseId ID of case
1980
+ * @param {string} form2 ID of form
1981
+ * @param {FormGetFormatEnum} format Format of the result
1982
+ * @param {any} [form] Set form
1983
+ * @param {*} [options] Override http request option.
1984
+ * @deprecated
1985
+ * @throws {RequiredError}
1986
+ */
1987
+ formGet(caseId, form2, format, form, options) {
1988
+ return localVarFp.formGet(caseId, form2, format, form, options).then((request) => request(axios, basePath));
1989
+ },
1990
+ /**
1991
+ *
1992
+ * @summary Retrieve the contents of a form, rights are checked via form rights
1993
+ * @param {string} casePath Path or Id of case
1994
+ * @param {string} form2 ID of form
1995
+ * @param {FormRetrieveFormatEnum} format Format of the result
1996
+ * @param {any} [form] Set form
1997
+ * @param {*} [options] Override http request option.
1998
+ * @throws {RequiredError}
1999
+ */
2000
+ formRetrieve(casePath, form2, format, form, options) {
2001
+ return localVarFp.formRetrieve(casePath, form2, format, form, options).then((request) => request(axios, basePath));
2002
+ },
2003
+ /**
2004
+ *
2005
+ * @summary Create a new optional task based on an activity ID
2006
+ * @param {string} casePath Path or Id of case
2007
+ * @param {string} activity ID of activity
2008
+ * @param {TaskCreateFormatEnum} format Format of the result
2009
+ * @param {TaskCreateRequest} [taskCreateRequest]
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ taskCreate(casePath, activity, format, taskCreateRequest, options) {
2014
+ return localVarFp.taskCreate(casePath, activity, format, taskCreateRequest, options).then((request) => request(axios, basePath));
2015
+ },
2016
+ /**
2017
+ *
2018
+ * @summary Retrieve an existing task based on the task ID
2019
+ * @param {string} casePath Path or Id of case
2020
+ * @param {number} task ID of task
2021
+ * @param {TaskInfoFormatEnum} format Format of the result
2022
+ * @param {*} [options] Override http request option.
2023
+ * @throws {RequiredError}
2024
+ */
2025
+ taskInfo(casePath, task, format, options) {
2026
+ return localVarFp.taskInfo(casePath, task, format, options).then((request) => request(axios, basePath));
2027
+ },
2028
+ /**
2029
+ *
2030
+ * @summary Submit an existing task based on the task ID and filled in fields
2031
+ * @param {string} casePath Path or Id of case
2032
+ * @param {number} task ID of task
2033
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ taskSubmit(casePath, task, taskSubmitRequest, options) {
2038
+ return localVarFp.taskSubmit(casePath, task, taskSubmitRequest, options).then((request) => request(axios, basePath));
2039
+ },
2040
+ };
2041
+ };
2042
+ exports.CaseApiFactory = CaseApiFactory;
2043
+ /**
2044
+ * CaseApi - object-oriented interface
2045
+ * @export
2046
+ * @class CaseApi
2047
+ * @extends {BaseAPI}
2048
+ */
2049
+ class CaseApi extends base_1.BaseAPI {
2050
+ /**
2051
+ *
2052
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
2053
+ * @param {string} casePath Path or Id of case
2054
+ * @param {string} activity ID of activity
2055
+ * @param {object} [body]
2056
+ * @param {*} [options] Override http request option.
2057
+ * @throws {RequiredError}
2058
+ * @memberof CaseApi
2059
+ */
2060
+ activityDirectSubmit(casePath, activity, body, options) {
2061
+ return (0, exports.CaseApiFp)(this.configuration).activityDirectSubmit(casePath, activity, body, options).then((request) => request(this.axios, this.basePath));
2062
+ }
2063
+ /**
2064
+ *
2065
+ * @summary Submit (create and submit) an activity based on the activity ID and filled in fields
2066
+ * @param {string} caseId ID of case
2067
+ * @param {string} activity ID of activity
2068
+ * @param {object} [body]
2069
+ * @param {*} [options] Override http request option.
2070
+ * @deprecated
2071
+ * @throws {RequiredError}
2072
+ * @memberof CaseApi
2073
+ */
2074
+ activitySubmit(caseId, activity, body, options) {
2075
+ return (0, exports.CaseApiFp)(this.configuration).activitySubmit(caseId, activity, body, options).then((request) => request(this.axios, this.basePath));
2076
+ }
2077
+ /**
2078
+ *
2079
+ * @summary Retrieve information on a case
2080
+ * @param {string} casePath Path or Id of case
2081
+ * @param {boolean} [css] Set css
2082
+ * @param {boolean} [rootline] Set rootline
2083
+ * @param {boolean} [views] Set views
2084
+ * @param {*} [options] Override http request option.
2085
+ * @throws {RequiredError}
2086
+ * @memberof CaseApi
2087
+ */
2088
+ caseInfo(casePath, css, rootline, views, options) {
2089
+ return (0, exports.CaseApiFp)(this.configuration).caseInfo(casePath, css, rootline, views, options).then((request) => request(this.axios, this.basePath));
2090
+ }
2091
+ /**
2092
+ *
2093
+ * @summary Create a new optional task based on an activity ID
2094
+ * @param {string} caseId ID of case
2095
+ * @param {string} activity ID of activity
2096
+ * @param {CaseTaskCreateFormatEnum} format Format of the result
2097
+ * @param {TaskCreateRequest} [taskCreateRequest]
2098
+ * @param {*} [options] Override http request option.
2099
+ * @deprecated
2100
+ * @throws {RequiredError}
2101
+ * @memberof CaseApi
2102
+ */
2103
+ caseTaskCreate(caseId, activity, format, taskCreateRequest, options) {
2104
+ return (0, exports.CaseApiFp)(this.configuration).caseTaskCreate(caseId, activity, format, taskCreateRequest, options).then((request) => request(this.axios, this.basePath));
2105
+ }
2106
+ /**
2107
+ *
2108
+ * @summary Retrieve an existing task based on the task ID
2109
+ * @param {string} caseId ID of case
2110
+ * @param {number} task ID of task
2111
+ * @param {CaseTaskGetFormatEnum} format Format of the result
2112
+ * @param {*} [options] Override http request option.
2113
+ * @deprecated
2114
+ * @throws {RequiredError}
2115
+ * @memberof CaseApi
2116
+ */
2117
+ caseTaskGet(caseId, task, format, options) {
2118
+ return (0, exports.CaseApiFp)(this.configuration).caseTaskGet(caseId, task, format, options).then((request) => request(this.axios, this.basePath));
2119
+ }
2120
+ /**
2121
+ *
2122
+ * @summary Submit an existing task based on the task ID and filled in fields
2123
+ * @param {string} caseId ID of case
2124
+ * @param {number} task ID of task
2125
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
2126
+ * @param {*} [options] Override http request option.
2127
+ * @deprecated
2128
+ * @throws {RequiredError}
2129
+ * @memberof CaseApi
2130
+ */
2131
+ caseTaskSubmit(caseId, task, taskSubmitRequest, options) {
2132
+ return (0, exports.CaseApiFp)(this.configuration).caseTaskSubmit(caseId, task, taskSubmitRequest, options).then((request) => request(this.axios, this.basePath));
2133
+ }
2134
+ /**
2135
+ *
2136
+ * @summary Retrieve information on a case
2137
+ * @param {string} caseId ID of case
2138
+ * @param {boolean} [css] Set css
2139
+ * @param {boolean} [rootline] Set rootline
2140
+ * @param {boolean} [views] Set views
2141
+ * @param {*} [options] Override http request option.
2142
+ * @deprecated
2143
+ * @throws {RequiredError}
2144
+ * @memberof CaseApi
2145
+ */
2146
+ caseView(caseId, css, rootline, views, options) {
2147
+ return (0, exports.CaseApiFp)(this.configuration).caseView(caseId, css, rootline, views, options).then((request) => request(this.axios, this.basePath));
2148
+ }
2149
+ /**
2150
+ *
2151
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
2152
+ * @param {string} caseId ID of case
2153
+ * @param {string} dataset ID of dataset
2154
+ * @param {DatasetGetFormatEnum} format Format of the result
2155
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
2156
+ * @param {*} [options] Override http request option.
2157
+ * @deprecated
2158
+ * @throws {RequiredError}
2159
+ * @memberof CaseApi
2160
+ */
2161
+ datasetGet(caseId, dataset, format, datasetRetrieveRequest, options) {
2162
+ return (0, exports.CaseApiFp)(this.configuration).datasetGet(caseId, dataset, format, datasetRetrieveRequest, options).then((request) => request(this.axios, this.basePath));
2163
+ }
2164
+ /**
2165
+ *
2166
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
2167
+ * @param {string} caseId ID of case
2168
+ * @param {string} dataset ID of dataset
2169
+ * @param {string} widget ID of widget
2170
+ * @param {DatasetGetViaWidgetFormatEnum} format Format of the result
2171
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
2172
+ * @param {*} [options] Override http request option.
2173
+ * @deprecated
2174
+ * @throws {RequiredError}
2175
+ * @memberof CaseApi
2176
+ */
2177
+ datasetGetViaWidget(caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options) {
2178
+ return (0, exports.CaseApiFp)(this.configuration).datasetGetViaWidget(caseId, dataset, widget, format, datasetRetrieveViaWidgetRequest, options).then((request) => request(this.axios, this.basePath));
2179
+ }
2180
+ /**
2181
+ *
2182
+ * @summary Retrieve the contents of a dataset, rights are checked via dataset rights
2183
+ * @param {string} casePath Path or Id of case
2184
+ * @param {string} dataset ID of dataset
2185
+ * @param {DatasetRetrieveFormatEnum} format Format of the result
2186
+ * @param {DatasetRetrieveRequest} [datasetRetrieveRequest]
2187
+ * @param {*} [options] Override http request option.
2188
+ * @throws {RequiredError}
2189
+ * @memberof CaseApi
2190
+ */
2191
+ datasetRetrieve(casePath, dataset, format, datasetRetrieveRequest, options) {
2192
+ return (0, exports.CaseApiFp)(this.configuration).datasetRetrieve(casePath, dataset, format, datasetRetrieveRequest, options).then((request) => request(this.axios, this.basePath));
2193
+ }
2194
+ /**
2195
+ *
2196
+ * @summary Retrieve the contents of a dataset, rights are checked via widget rights
2197
+ * @param {string} casePath Path or Id of case
2198
+ * @param {string} dataset ID of dataset
2199
+ * @param {string} widget ID of widget
2200
+ * @param {DatasetRetrieveViaWidgetFormatEnum} format Format of the result
2201
+ * @param {DatasetRetrieveViaWidgetRequest} [datasetRetrieveViaWidgetRequest]
2202
+ * @param {*} [options] Override http request option.
2203
+ * @throws {RequiredError}
2204
+ * @memberof CaseApi
2205
+ */
2206
+ datasetRetrieveViaWidget(casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options) {
2207
+ return (0, exports.CaseApiFp)(this.configuration).datasetRetrieveViaWidget(casePath, dataset, widget, format, datasetRetrieveViaWidgetRequest, options).then((request) => request(this.axios, this.basePath));
2208
+ }
2209
+ /**
2210
+ *
2211
+ * @summary Retrieve the contents of a form, rights are checked via form rights
2212
+ * @param {string} caseId ID of case
2213
+ * @param {string} form2 ID of form
2214
+ * @param {FormGetFormatEnum} format Format of the result
2215
+ * @param {any} [form] Set form
2216
+ * @param {*} [options] Override http request option.
2217
+ * @deprecated
2218
+ * @throws {RequiredError}
2219
+ * @memberof CaseApi
2220
+ */
2221
+ formGet(caseId, form2, format, form, options) {
2222
+ return (0, exports.CaseApiFp)(this.configuration).formGet(caseId, form2, format, form, options).then((request) => request(this.axios, this.basePath));
2223
+ }
2224
+ /**
2225
+ *
2226
+ * @summary Retrieve the contents of a form, rights are checked via form rights
2227
+ * @param {string} casePath Path or Id of case
2228
+ * @param {string} form2 ID of form
2229
+ * @param {FormRetrieveFormatEnum} format Format of the result
2230
+ * @param {any} [form] Set form
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ * @memberof CaseApi
2234
+ */
2235
+ formRetrieve(casePath, form2, format, form, options) {
2236
+ return (0, exports.CaseApiFp)(this.configuration).formRetrieve(casePath, form2, format, form, options).then((request) => request(this.axios, this.basePath));
2237
+ }
2238
+ /**
2239
+ *
2240
+ * @summary Create a new optional task based on an activity ID
2241
+ * @param {string} casePath Path or Id of case
2242
+ * @param {string} activity ID of activity
2243
+ * @param {TaskCreateFormatEnum} format Format of the result
2244
+ * @param {TaskCreateRequest} [taskCreateRequest]
2245
+ * @param {*} [options] Override http request option.
2246
+ * @throws {RequiredError}
2247
+ * @memberof CaseApi
2248
+ */
2249
+ taskCreate(casePath, activity, format, taskCreateRequest, options) {
2250
+ return (0, exports.CaseApiFp)(this.configuration).taskCreate(casePath, activity, format, taskCreateRequest, options).then((request) => request(this.axios, this.basePath));
2251
+ }
2252
+ /**
2253
+ *
2254
+ * @summary Retrieve an existing task based on the task ID
2255
+ * @param {string} casePath Path or Id of case
2256
+ * @param {number} task ID of task
2257
+ * @param {TaskInfoFormatEnum} format Format of the result
2258
+ * @param {*} [options] Override http request option.
2259
+ * @throws {RequiredError}
2260
+ * @memberof CaseApi
2261
+ */
2262
+ taskInfo(casePath, task, format, options) {
2263
+ return (0, exports.CaseApiFp)(this.configuration).taskInfo(casePath, task, format, options).then((request) => request(this.axios, this.basePath));
2264
+ }
2265
+ /**
2266
+ *
2267
+ * @summary Submit an existing task based on the task ID and filled in fields
2268
+ * @param {string} casePath Path or Id of case
2269
+ * @param {number} task ID of task
2270
+ * @param {TaskSubmitRequest} [taskSubmitRequest]
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ * @memberof CaseApi
2274
+ */
2275
+ taskSubmit(casePath, task, taskSubmitRequest, options) {
2276
+ return (0, exports.CaseApiFp)(this.configuration).taskSubmit(casePath, task, taskSubmitRequest, options).then((request) => request(this.axios, this.basePath));
2277
+ }
2278
+ }
2279
+ exports.CaseApi = CaseApi;
2280
+ /**
2281
+ * @export
2282
+ */
2283
+ exports.CaseTaskCreateFormatEnum = {
2284
+ Simple: 'simple',
2285
+ Full: 'full'
2286
+ };
2287
+ /**
2288
+ * @export
2289
+ */
2290
+ exports.CaseTaskGetFormatEnum = {
2291
+ Simple: 'simple',
2292
+ Full: 'full'
2293
+ };
2294
+ /**
2295
+ * @export
2296
+ */
2297
+ exports.DatasetGetFormatEnum = {
2298
+ Simple: 'simple',
2299
+ Full: 'full'
2300
+ };
2301
+ /**
2302
+ * @export
2303
+ */
2304
+ exports.DatasetGetViaWidgetFormatEnum = {
2305
+ Simple: 'simple',
2306
+ Full: 'full'
2307
+ };
2308
+ /**
2309
+ * @export
2310
+ */
2311
+ exports.DatasetRetrieveFormatEnum = {
2312
+ Simple: 'simple',
2313
+ Full: 'full'
2314
+ };
2315
+ /**
2316
+ * @export
2317
+ */
2318
+ exports.DatasetRetrieveViaWidgetFormatEnum = {
2319
+ Simple: 'simple',
2320
+ Full: 'full'
2321
+ };
2322
+ /**
2323
+ * @export
2324
+ */
2325
+ exports.FormGetFormatEnum = {
2326
+ Simple: 'simple',
2327
+ Extended: 'extended',
2328
+ Full: 'full'
2329
+ };
2330
+ /**
2331
+ * @export
2332
+ */
2333
+ exports.FormRetrieveFormatEnum = {
2334
+ Simple: 'simple',
2335
+ Extended: 'extended',
2336
+ Full: 'full'
2337
+ };
2338
+ /**
2339
+ * @export
2340
+ */
2341
+ exports.TaskCreateFormatEnum = {
2342
+ Simple: 'simple',
2343
+ Full: 'full'
2344
+ };
2345
+ /**
2346
+ * @export
2347
+ */
2348
+ exports.TaskInfoFormatEnum = {
2349
+ Simple: 'simple',
2350
+ Full: 'full'
2351
+ };
2352
+ /**
2353
+ * PlatformApi - axios parameter creator
2354
+ * @export
2355
+ */
2356
+ const PlatformApiAxiosParamCreator = function (configuration) {
2357
+ return {
2358
+ /**
2359
+ *
2360
+ * @summary Get version, compile and reload information
2361
+ * @param {*} [options] Override http request option.
2362
+ * @throws {RequiredError}
2363
+ */
2364
+ platformVersion: async (options = {}) => {
2365
+ const localVarPath = `/platform/version`;
2366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2367
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2368
+ let baseOptions;
2369
+ if (configuration) {
2370
+ baseOptions = configuration.baseOptions;
2371
+ }
2372
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2373
+ const localVarHeaderParameter = {};
2374
+ const localVarQueryParameter = {};
2375
+ // authentication id-and-key required
2376
+ // oauth required
2377
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, "id-and-key", [], configuration);
2378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2379
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2380
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2381
+ return {
2382
+ url: (0, common_1.toPathString)(localVarUrlObj),
2383
+ options: localVarRequestOptions,
2384
+ };
2385
+ },
2386
+ };
2387
+ };
2388
+ exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
2389
+ /**
2390
+ * PlatformApi - functional programming interface
2391
+ * @export
2392
+ */
2393
+ const PlatformApiFp = function (configuration) {
2394
+ const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
2395
+ return {
2396
+ /**
2397
+ *
2398
+ * @summary Get version, compile and reload information
2399
+ * @param {*} [options] Override http request option.
2400
+ * @throws {RequiredError}
2401
+ */
2402
+ async platformVersion(options) {
2403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.platformVersion(options);
2404
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2405
+ const localVarOperationServerBasePath = base_1.operationServerMap['PlatformApi.platformVersion']?.[localVarOperationServerIndex]?.url;
2406
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2407
+ },
2408
+ };
2409
+ };
2410
+ exports.PlatformApiFp = PlatformApiFp;
2411
+ /**
2412
+ * PlatformApi - factory interface
2413
+ * @export
2414
+ */
2415
+ const PlatformApiFactory = function (configuration, basePath, axios) {
2416
+ const localVarFp = (0, exports.PlatformApiFp)(configuration);
2417
+ return {
2418
+ /**
2419
+ *
2420
+ * @summary Get version, compile and reload information
2421
+ * @param {*} [options] Override http request option.
2422
+ * @throws {RequiredError}
2423
+ */
2424
+ platformVersion(options) {
2425
+ return localVarFp.platformVersion(options).then((request) => request(axios, basePath));
2426
+ },
2427
+ };
2428
+ };
2429
+ exports.PlatformApiFactory = PlatformApiFactory;
2430
+ /**
2431
+ * PlatformApi - object-oriented interface
2432
+ * @export
2433
+ * @class PlatformApi
2434
+ * @extends {BaseAPI}
2435
+ */
2436
+ class PlatformApi extends base_1.BaseAPI {
2437
+ /**
2438
+ *
2439
+ * @summary Get version, compile and reload information
2440
+ * @param {*} [options] Override http request option.
2441
+ * @throws {RequiredError}
2442
+ * @memberof PlatformApi
2443
+ */
2444
+ platformVersion(options) {
2445
+ return (0, exports.PlatformApiFp)(this.configuration).platformVersion(options).then((request) => request(this.axios, this.basePath));
2446
+ }
2447
+ }
2448
+ exports.PlatformApi = PlatformApi;