@product-live/api-sdk 2.23.0 → 2.38.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.
- package/package.json +4 -39
- package/.openapi-generator/FILES +0 -74
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/DataFactoryFileApi.md +0 -182
- package/DefaultApi.md +0 -105
- package/ItemApi.md +0 -125
- package/JobApi.md +0 -333
- package/JobExecutionApi.md +0 -185
- package/README.md +0 -80
- package/TaskApi.md +0 -375
- package/TaskExecutionApi.md +0 -130
- package/VariableApi.md +0 -315
- package/apis/DataFactoryFileApi.ts +0 -307
- package/apis/DefaultApi.ts +0 -117
- package/apis/ItemApi.ts +0 -197
- package/apis/JobApi.ts +0 -507
- package/apis/JobExecutionApi.ts +0 -289
- package/apis/TaskApi.ts +0 -558
- package/apis/TaskExecutionApi.ts +0 -212
- package/apis/VariableApi.ts +0 -495
- package/apis/baseapi.ts +0 -37
- package/apis/exception.ts +0 -15
- package/auth/auth.ts +0 -107
- package/configuration.ts +0 -82
- package/dist/apis/DataFactoryFileApi.d.ts +0 -15
- package/dist/apis/DataFactoryFileApi.js +0 -359
- package/dist/apis/DataFactoryFileApi.js.map +0 -1
- package/dist/apis/DefaultApi.d.ts +0 -11
- package/dist/apis/DefaultApi.js +0 -172
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/ItemApi.d.ts +0 -13
- package/dist/apis/ItemApi.js +0 -249
- package/dist/apis/ItemApi.js.map +0 -1
- package/dist/apis/JobApi.d.ts +0 -21
- package/dist/apis/JobApi.js +0 -547
- package/dist/apis/JobApi.js.map +0 -1
- package/dist/apis/JobExecutionApi.d.ts +0 -16
- package/dist/apis/JobExecutionApi.js +0 -339
- package/dist/apis/JobExecutionApi.js.map +0 -1
- package/dist/apis/TaskApi.d.ts +0 -24
- package/dist/apis/TaskApi.js +0 -609
- package/dist/apis/TaskApi.js.map +0 -1
- package/dist/apis/TaskExecutionApi.d.ts +0 -13
- package/dist/apis/TaskExecutionApi.js +0 -259
- package/dist/apis/TaskExecutionApi.js.map +0 -1
- package/dist/apis/VariableApi.d.ts +0 -22
- package/dist/apis/VariableApi.js +0 -529
- package/dist/apis/VariableApi.js.map +0 -1
- package/dist/apis/baseapi.d.ts +0 -18
- package/dist/apis/baseapi.js +0 -46
- package/dist/apis/baseapi.js.map +0 -1
- package/dist/apis/exception.d.ts +0 -10
- package/dist/apis/exception.js +0 -32
- package/dist/apis/exception.js.map +0 -1
- package/dist/auth/auth.d.ts +0 -42
- package/dist/auth/auth.js +0 -45
- package/dist/auth/auth.js.map +0 -1
- package/dist/configuration.d.ts +0 -18
- package/dist/configuration.js +0 -22
- package/dist/configuration.js.map +0 -1
- package/dist/http/http.d.ts +0 -82
- package/dist/http/http.js +0 -229
- package/dist/http/http.js.map +0 -1
- package/dist/http/isomorphic-fetch.d.ts +0 -5
- package/dist/http/isomorphic-fetch.js +0 -34
- package/dist/http/isomorphic-fetch.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -36
- package/dist/index.js.map +0 -1
- package/dist/middleware.d.ts +0 -16
- package/dist/middleware.js +0 -18
- package/dist/middleware.js.map +0 -1
- package/dist/models/CreateJobDto.d.ts +0 -30
- package/dist/models/CreateJobDto.js +0 -82
- package/dist/models/CreateJobDto.js.map +0 -1
- package/dist/models/CreateJobExecutionDto.d.ts +0 -21
- package/dist/models/CreateJobExecutionDto.js +0 -34
- package/dist/models/CreateJobExecutionDto.js.map +0 -1
- package/dist/models/CreateTaskDto.d.ts +0 -21
- package/dist/models/CreateTaskDto.js +0 -46
- package/dist/models/CreateTaskDto.js.map +0 -1
- package/dist/models/CreateVariableDto.d.ts +0 -22
- package/dist/models/CreateVariableDto.js +0 -46
- package/dist/models/CreateVariableDto.js.map +0 -1
- package/dist/models/FileDto.d.ts +0 -23
- package/dist/models/FileDto.js +0 -52
- package/dist/models/FileDto.js.map +0 -1
- package/dist/models/FindVariablesRequest.d.ts +0 -23
- package/dist/models/FindVariablesRequest.js +0 -46
- package/dist/models/FindVariablesRequest.js.map +0 -1
- package/dist/models/GetFiles200Response.d.ts +0 -21
- package/dist/models/GetFiles200Response.js +0 -34
- package/dist/models/GetFiles200Response.js.map +0 -1
- package/dist/models/GetItems200Response.d.ts +0 -21
- package/dist/models/GetItems200Response.js +0 -34
- package/dist/models/GetItems200Response.js.map +0 -1
- package/dist/models/GetJobExecutionById400Response.d.ts +0 -17
- package/dist/models/GetJobExecutionById400Response.js +0 -22
- package/dist/models/GetJobExecutionById400Response.js.map +0 -1
- package/dist/models/GetJobExecutions200Response.d.ts +0 -21
- package/dist/models/GetJobExecutions200Response.js +0 -34
- package/dist/models/GetJobExecutions200Response.js.map +0 -1
- package/dist/models/GetJobs200Response.d.ts +0 -21
- package/dist/models/GetJobs200Response.js +0 -34
- package/dist/models/GetJobs200Response.js.map +0 -1
- package/dist/models/GetTasks200Response.d.ts +0 -21
- package/dist/models/GetTasks200Response.js +0 -34
- package/dist/models/GetTasks200Response.js.map +0 -1
- package/dist/models/GetVariables200Response.d.ts +0 -21
- package/dist/models/GetVariables200Response.js +0 -34
- package/dist/models/GetVariables200Response.js.map +0 -1
- package/dist/models/HighOrderQuery.d.ts +0 -19
- package/dist/models/HighOrderQuery.js +0 -28
- package/dist/models/HighOrderQuery.js.map +0 -1
- package/dist/models/ItemDto.d.ts +0 -28
- package/dist/models/ItemDto.js +0 -64
- package/dist/models/ItemDto.js.map +0 -1
- package/dist/models/ItemFieldDTO.d.ts +0 -19
- package/dist/models/ItemFieldDTO.js +0 -34
- package/dist/models/ItemFieldDTO.js.map +0 -1
- package/dist/models/ItemFieldFile.d.ts +0 -18
- package/dist/models/ItemFieldFile.js +0 -22
- package/dist/models/ItemFieldFile.js.map +0 -1
- package/dist/models/ItemFieldFileData.d.ts +0 -18
- package/dist/models/ItemFieldFileData.js +0 -28
- package/dist/models/ItemFieldFileData.js.map +0 -1
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.d.ts +0 -18
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js +0 -22
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js.map +0 -1
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.d.ts +0 -19
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js +0 -34
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js.map +0 -1
- package/dist/models/ItemFieldSimpleNumber.d.ts +0 -18
- package/dist/models/ItemFieldSimpleNumber.js +0 -28
- package/dist/models/ItemFieldSimpleNumber.js.map +0 -1
- package/dist/models/ItemFieldSimpleString.d.ts +0 -17
- package/dist/models/ItemFieldSimpleString.js +0 -22
- package/dist/models/ItemFieldSimpleString.js.map +0 -1
- package/dist/models/ItemFieldSimpleStringArray.d.ts +0 -17
- package/dist/models/ItemFieldSimpleStringArray.js +0 -22
- package/dist/models/ItemFieldSimpleStringArray.js.map +0 -1
- package/dist/models/ItemMetadataDTO.d.ts +0 -23
- package/dist/models/ItemMetadataDTO.js +0 -58
- package/dist/models/ItemMetadataDTO.js.map +0 -1
- package/dist/models/JobDto.d.ts +0 -35
- package/dist/models/JobDto.js +0 -106
- package/dist/models/JobDto.js.map +0 -1
- package/dist/models/JobExecutionDto.d.ts +0 -33
- package/dist/models/JobExecutionDto.js +0 -88
- package/dist/models/JobExecutionDto.js.map +0 -1
- package/dist/models/LowOrderQuery.d.ts +0 -22
- package/dist/models/LowOrderQuery.js +0 -40
- package/dist/models/LowOrderQuery.js.map +0 -1
- package/dist/models/LowOrderQueryValue.d.ts +0 -16
- package/dist/models/LowOrderQueryValue.js +0 -15
- package/dist/models/LowOrderQueryValue.js.map +0 -1
- package/dist/models/ObjectSerializer.d.ts +0 -45
- package/dist/models/ObjectSerializer.js +0 -347
- package/dist/models/ObjectSerializer.js.map +0 -1
- package/dist/models/PatchTaskExecutionDto.d.ts +0 -22
- package/dist/models/PatchTaskExecutionDto.js +0 -34
- package/dist/models/PatchTaskExecutionDto.js.map +0 -1
- package/dist/models/Query1.d.ts +0 -23
- package/dist/models/Query1.js +0 -46
- package/dist/models/Query1.js.map +0 -1
- package/dist/models/TaskDto.d.ts +0 -26
- package/dist/models/TaskDto.js +0 -70
- package/dist/models/TaskDto.js.map +0 -1
- package/dist/models/TaskExecutionDto.d.ts +0 -30
- package/dist/models/TaskExecutionDto.js +0 -64
- package/dist/models/TaskExecutionDto.js.map +0 -1
- package/dist/models/UpdateJobDto.d.ts +0 -31
- package/dist/models/UpdateJobDto.js +0 -88
- package/dist/models/UpdateJobDto.js.map +0 -1
- package/dist/models/UpdateTaskDto.d.ts +0 -22
- package/dist/models/UpdateTaskDto.js +0 -52
- package/dist/models/UpdateTaskDto.js.map +0 -1
- package/dist/models/UpdateVariableDto.d.ts +0 -23
- package/dist/models/UpdateVariableDto.js +0 -52
- package/dist/models/UpdateVariableDto.js.map +0 -1
- package/dist/models/VariableDto.d.ts +0 -27
- package/dist/models/VariableDto.js +0 -70
- package/dist/models/VariableDto.js.map +0 -1
- package/dist/models/all.d.ts +0 -36
- package/dist/models/all.js +0 -53
- package/dist/models/all.js.map +0 -1
- package/dist/rxjsStub.d.ts +0 -10
- package/dist/rxjsStub.js +0 -33
- package/dist/rxjsStub.js.map +0 -1
- package/dist/servers.d.ts +0 -17
- package/dist/servers.js +0 -32
- package/dist/servers.js.map +0 -1
- package/dist/types/ObjectParamAPI.d.ts +0 -187
- package/dist/types/ObjectParamAPI.js +0 -160
- package/dist/types/ObjectParamAPI.js.map +0 -1
- package/dist/types/ObservableAPI.d.ts +0 -109
- package/dist/types/ObservableAPI.js +0 -758
- package/dist/types/ObservableAPI.js.map +0 -1
- package/dist/types/PromiseAPI.d.ts +0 -92
- package/dist/types/PromiseAPI.js +0 -180
- package/dist/types/PromiseAPI.js.map +0 -1
- package/dist/util.d.ts +0 -2
- package/dist/util.js +0 -29
- package/dist/util.js.map +0 -1
- package/git_push.sh +0 -51
- package/http/http.ts +0 -229
- package/http/isomorphic-fetch.ts +0 -32
- package/index.ts +0 -12
- package/middleware.ts +0 -66
- package/models/CreateJobDto.ts +0 -108
- package/models/CreateJobExecutionDto.ts +0 -49
- package/models/CreateTaskDto.ts +0 -63
- package/models/CreateVariableDto.ts +0 -66
- package/models/FileDto.ts +0 -73
- package/models/FindVariablesRequest.ts +0 -68
- package/models/GetFiles200Response.ts +0 -53
- package/models/GetItems200Response.ts +0 -53
- package/models/GetJobExecutionById400Response.ts +0 -35
- package/models/GetJobExecutions200Response.ts +0 -53
- package/models/GetJobs200Response.ts +0 -53
- package/models/GetTasks200Response.ts +0 -53
- package/models/GetVariables200Response.ts +0 -53
- package/models/HighOrderQuery.ts +0 -45
- package/models/ItemDto.ts +0 -86
- package/models/ItemFieldDTO.ts +0 -49
- package/models/ItemFieldFile.ts +0 -36
- package/models/ItemFieldFileData.ts +0 -42
- package/models/ItemFieldMultipleSelectWithCommentAndQuantity.ts +0 -36
- package/models/ItemFieldMultipleSelectWithCommentAndQuantityData.ts +0 -49
- package/models/ItemFieldSimpleNumber.ts +0 -42
- package/models/ItemFieldSimpleString.ts +0 -35
- package/models/ItemFieldSimpleStringArray.ts +0 -35
- package/models/ItemMetadataDTO.ts +0 -77
- package/models/JobDto.ts +0 -137
- package/models/JobExecutionDto.ts +0 -115
- package/models/LowOrderQuery.ts +0 -60
- package/models/LowOrderQueryValue.ts +0 -29
- package/models/ObjectSerializer.ts +0 -358
- package/models/PatchTaskExecutionDto.ts +0 -52
- package/models/Query1.ts +0 -69
- package/models/TaskDto.ts +0 -94
- package/models/TaskExecutionDto.ts +0 -88
- package/models/UpdateJobDto.ts +0 -115
- package/models/UpdateTaskDto.ts +0 -70
- package/models/UpdateVariableDto.ts +0 -73
- package/models/VariableDto.ts +0 -95
- package/models/all.ts +0 -36
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -55
- package/tsconfig.json +0 -28
- package/types/ObjectParamAPI.ts +0 -675
- package/types/ObservableAPI.ts +0 -837
- package/types/PromiseAPI.ts +0 -452
- package/util.ts +0 -37
package/VariableApi.md
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
# .VariableApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**createVariable**](VariableApi.md#createVariable) | **POST** /v1/data_factory/variables | (Experimental) - Create a Variable
|
|
8
|
-
[**findVariables**](VariableApi.md#findVariables) | **POST** /v1/data_factory/variables/find | (Experimental) - Find a list of Variable
|
|
9
|
-
[**getVariableById**](VariableApi.md#getVariableById) | **GET** /v1/data_factory/variables/{id} | (Experimental) - Get a Variable by id
|
|
10
|
-
[**getVariables**](VariableApi.md#getVariables) | **GET** /v1/data_factory/variables | (Experimental) - Get a list of Variable
|
|
11
|
-
[**updateVariable**](VariableApi.md#updateVariable) | **PUT** /v1/data_factory/variables/{id} | (Experimental) - Update a Variable
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# **createVariable**
|
|
15
|
-
> VariableDto createVariable(createVariableDto)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Example
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```typescript
|
|
22
|
-
import { } from '';
|
|
23
|
-
import * as fs from 'fs';
|
|
24
|
-
|
|
25
|
-
const configuration = .createConfiguration();
|
|
26
|
-
const apiInstance = new .VariableApi(configuration);
|
|
27
|
-
|
|
28
|
-
let body:.VariableApiCreateVariableRequest = {
|
|
29
|
-
// CreateVariableDto
|
|
30
|
-
createVariableDto: {
|
|
31
|
-
key: "key_example",
|
|
32
|
-
name: "name_example",
|
|
33
|
-
status: "ACTIVE",
|
|
34
|
-
value: "value_example",
|
|
35
|
-
secret: true,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
apiInstance.createVariable(body).then((data:any) => {
|
|
40
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
41
|
-
}).catch((error:any) => console.error(error));
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Parameters
|
|
46
|
-
|
|
47
|
-
Name | Type | Description | Notes
|
|
48
|
-
------------- | ------------- | ------------- | -------------
|
|
49
|
-
**createVariableDto** | **CreateVariableDto**| |
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Return type
|
|
53
|
-
|
|
54
|
-
**VariableDto**
|
|
55
|
-
|
|
56
|
-
### Authorization
|
|
57
|
-
|
|
58
|
-
[ApiKeyAuthQuery](README.md#ApiKeyAuthQuery), [ApiKeyAuthHeader](README.md#ApiKeyAuthHeader)
|
|
59
|
-
|
|
60
|
-
### HTTP request headers
|
|
61
|
-
|
|
62
|
-
- **Content-Type**: application/json
|
|
63
|
-
- **Accept**: application/json
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### HTTP response details
|
|
67
|
-
| Status code | Description | Response headers |
|
|
68
|
-
|-------------|-------------|------------------|
|
|
69
|
-
**201** | Variable successfully created | - |
|
|
70
|
-
**400** | Bad Request - Malformed syntax | - |
|
|
71
|
-
**401** | Unauthorized | - |
|
|
72
|
-
|
|
73
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
74
|
-
|
|
75
|
-
# **findVariables**
|
|
76
|
-
> GetVariables200Response findVariables(findVariablesRequest)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### Example
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```typescript
|
|
83
|
-
import { } from '';
|
|
84
|
-
import * as fs from 'fs';
|
|
85
|
-
|
|
86
|
-
const configuration = .createConfiguration();
|
|
87
|
-
const apiInstance = new .VariableApi(configuration);
|
|
88
|
-
|
|
89
|
-
let body:.VariableApiFindVariablesRequest = {
|
|
90
|
-
// FindVariablesRequest
|
|
91
|
-
findVariablesRequest: null,
|
|
92
|
-
// number (optional)
|
|
93
|
-
size: 10,
|
|
94
|
-
// number (optional)
|
|
95
|
-
page: 0,
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
apiInstance.findVariables(body).then((data:any) => {
|
|
99
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
100
|
-
}).catch((error:any) => console.error(error));
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### Parameters
|
|
105
|
-
|
|
106
|
-
Name | Type | Description | Notes
|
|
107
|
-
------------- | ------------- | ------------- | -------------
|
|
108
|
-
**findVariablesRequest** | **FindVariablesRequest**| |
|
|
109
|
-
**size** | [**number**] | | (optional) defaults to 10
|
|
110
|
-
**page** | [**number**] | | (optional) defaults to 0
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### Return type
|
|
114
|
-
|
|
115
|
-
**GetVariables200Response**
|
|
116
|
-
|
|
117
|
-
### Authorization
|
|
118
|
-
|
|
119
|
-
[ApiKeyAuthQuery](README.md#ApiKeyAuthQuery), [ApiKeyAuthHeader](README.md#ApiKeyAuthHeader)
|
|
120
|
-
|
|
121
|
-
### HTTP request headers
|
|
122
|
-
|
|
123
|
-
- **Content-Type**: application/json
|
|
124
|
-
- **Accept**: application/json
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
### HTTP response details
|
|
128
|
-
| Status code | Description | Response headers |
|
|
129
|
-
|-------------|-------------|------------------|
|
|
130
|
-
**200** | Find a list of Variable | - |
|
|
131
|
-
**400** | Bad Request - Malformed syntax | - |
|
|
132
|
-
**401** | Unauthorized | - |
|
|
133
|
-
|
|
134
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
135
|
-
|
|
136
|
-
# **getVariableById**
|
|
137
|
-
> VariableDto getVariableById()
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
### Example
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
```typescript
|
|
144
|
-
import { } from '';
|
|
145
|
-
import * as fs from 'fs';
|
|
146
|
-
|
|
147
|
-
const configuration = .createConfiguration();
|
|
148
|
-
const apiInstance = new .VariableApi(configuration);
|
|
149
|
-
|
|
150
|
-
let body:.VariableApiGetVariableByIdRequest = {
|
|
151
|
-
// string
|
|
152
|
-
id: "id_example",
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
apiInstance.getVariableById(body).then((data:any) => {
|
|
156
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
157
|
-
}).catch((error:any) => console.error(error));
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
### Parameters
|
|
162
|
-
|
|
163
|
-
Name | Type | Description | Notes
|
|
164
|
-
------------- | ------------- | ------------- | -------------
|
|
165
|
-
**id** | [**string**] | | defaults to undefined
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
### Return type
|
|
169
|
-
|
|
170
|
-
**VariableDto**
|
|
171
|
-
|
|
172
|
-
### Authorization
|
|
173
|
-
|
|
174
|
-
[ApiKeyAuthQuery](README.md#ApiKeyAuthQuery), [ApiKeyAuthHeader](README.md#ApiKeyAuthHeader)
|
|
175
|
-
|
|
176
|
-
### HTTP request headers
|
|
177
|
-
|
|
178
|
-
- **Content-Type**: Not defined
|
|
179
|
-
- **Accept**: application/json
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### HTTP response details
|
|
183
|
-
| Status code | Description | Response headers |
|
|
184
|
-
|-------------|-------------|------------------|
|
|
185
|
-
**200** | Variable with request id successfully retrieved | - |
|
|
186
|
-
**400** | Bad Request - Malformed syntax | - |
|
|
187
|
-
**401** | Unauthorized | - |
|
|
188
|
-
**404** | Not found | - |
|
|
189
|
-
|
|
190
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
191
|
-
|
|
192
|
-
# **getVariables**
|
|
193
|
-
> GetVariables200Response getVariables()
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### Example
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
```typescript
|
|
200
|
-
import { } from '';
|
|
201
|
-
import * as fs from 'fs';
|
|
202
|
-
|
|
203
|
-
const configuration = .createConfiguration();
|
|
204
|
-
const apiInstance = new .VariableApi(configuration);
|
|
205
|
-
|
|
206
|
-
let body:.VariableApiGetVariablesRequest = {
|
|
207
|
-
// number (optional)
|
|
208
|
-
size: 10,
|
|
209
|
-
// number (optional)
|
|
210
|
-
page: 0,
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
apiInstance.getVariables(body).then((data:any) => {
|
|
214
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
215
|
-
}).catch((error:any) => console.error(error));
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
### Parameters
|
|
220
|
-
|
|
221
|
-
Name | Type | Description | Notes
|
|
222
|
-
------------- | ------------- | ------------- | -------------
|
|
223
|
-
**size** | [**number**] | | (optional) defaults to 10
|
|
224
|
-
**page** | [**number**] | | (optional) defaults to 0
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### Return type
|
|
228
|
-
|
|
229
|
-
**GetVariables200Response**
|
|
230
|
-
|
|
231
|
-
### Authorization
|
|
232
|
-
|
|
233
|
-
[ApiKeyAuthQuery](README.md#ApiKeyAuthQuery), [ApiKeyAuthHeader](README.md#ApiKeyAuthHeader)
|
|
234
|
-
|
|
235
|
-
### HTTP request headers
|
|
236
|
-
|
|
237
|
-
- **Content-Type**: Not defined
|
|
238
|
-
- **Accept**: application/json
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
### HTTP response details
|
|
242
|
-
| Status code | Description | Response headers |
|
|
243
|
-
|-------------|-------------|------------------|
|
|
244
|
-
**200** | Get a list of Variable | - |
|
|
245
|
-
**400** | Bad Request - Malformed syntax | - |
|
|
246
|
-
**401** | Unauthorized | - |
|
|
247
|
-
|
|
248
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
249
|
-
|
|
250
|
-
# **updateVariable**
|
|
251
|
-
> VariableDto updateVariable(updateVariableDto)
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
### Example
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
```typescript
|
|
258
|
-
import { } from '';
|
|
259
|
-
import * as fs from 'fs';
|
|
260
|
-
|
|
261
|
-
const configuration = .createConfiguration();
|
|
262
|
-
const apiInstance = new .VariableApi(configuration);
|
|
263
|
-
|
|
264
|
-
let body:.VariableApiUpdateVariableRequest = {
|
|
265
|
-
// string
|
|
266
|
-
id: "id_example",
|
|
267
|
-
// UpdateVariableDto
|
|
268
|
-
updateVariableDto: {
|
|
269
|
-
key: "key_example",
|
|
270
|
-
name: "name_example",
|
|
271
|
-
status: "ACTIVE",
|
|
272
|
-
value: "value_example",
|
|
273
|
-
secret: true,
|
|
274
|
-
id: "id_example",
|
|
275
|
-
},
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
apiInstance.updateVariable(body).then((data:any) => {
|
|
279
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
280
|
-
}).catch((error:any) => console.error(error));
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
### Parameters
|
|
285
|
-
|
|
286
|
-
Name | Type | Description | Notes
|
|
287
|
-
------------- | ------------- | ------------- | -------------
|
|
288
|
-
**updateVariableDto** | **UpdateVariableDto**| |
|
|
289
|
-
**id** | [**string**] | | defaults to undefined
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
### Return type
|
|
293
|
-
|
|
294
|
-
**VariableDto**
|
|
295
|
-
|
|
296
|
-
### Authorization
|
|
297
|
-
|
|
298
|
-
[ApiKeyAuthQuery](README.md#ApiKeyAuthQuery), [ApiKeyAuthHeader](README.md#ApiKeyAuthHeader)
|
|
299
|
-
|
|
300
|
-
### HTTP request headers
|
|
301
|
-
|
|
302
|
-
- **Content-Type**: application/json
|
|
303
|
-
- **Accept**: application/json
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
### HTTP response details
|
|
307
|
-
| Status code | Description | Response headers |
|
|
308
|
-
|-------------|-------------|------------------|
|
|
309
|
-
**201** | Variable successfully updated | - |
|
|
310
|
-
**400** | Bad Request - Malformed syntax | - |
|
|
311
|
-
**401** | Unauthorized | - |
|
|
312
|
-
|
|
313
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
314
|
-
|
|
315
|
-
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
// TODO: better import syntax?
|
|
2
|
-
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
|
|
3
|
-
import {Configuration} from '../configuration';
|
|
4
|
-
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
|
5
|
-
import * as FormData from "form-data";
|
|
6
|
-
import { URLSearchParams } from 'url';
|
|
7
|
-
import {ObjectSerializer} from '../models/ObjectSerializer';
|
|
8
|
-
import {ApiException} from './exception';
|
|
9
|
-
import {canConsumeForm, isCodeInRange} from '../util';
|
|
10
|
-
import {SecurityAuthentication} from '../auth/auth';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { FileDto } from '../models/FileDto';
|
|
14
|
-
import { GetFiles200Response } from '../models/GetFiles200Response';
|
|
15
|
-
import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* no description
|
|
19
|
-
*/
|
|
20
|
-
export class DataFactoryFileApiRequestFactory extends BaseAPIRequestFactory {
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* (Experimental) - Get a Data Factory File by id
|
|
24
|
-
* @param id
|
|
25
|
-
*/
|
|
26
|
-
public async getFileById(id: string, _options?: Configuration): Promise<RequestContext> {
|
|
27
|
-
let _config = _options || this.configuration;
|
|
28
|
-
|
|
29
|
-
// verify required parameter 'id' is not null or undefined
|
|
30
|
-
if (id === null || id === undefined) {
|
|
31
|
-
throw new RequiredError("DataFactoryFileApi", "getFileById", "id");
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// Path Params
|
|
36
|
-
const localVarPath = '/v1/data_factory/files/{id}'
|
|
37
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
38
|
-
|
|
39
|
-
// Make Request Context
|
|
40
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
41
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
45
|
-
// Apply auth methods
|
|
46
|
-
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
47
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
48
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
49
|
-
}
|
|
50
|
-
// Apply auth methods
|
|
51
|
-
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
52
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
53
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
57
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
58
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return requestContext;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* (Experimental) - Get a list of Data Factory File
|
|
66
|
-
* @param size
|
|
67
|
-
* @param page
|
|
68
|
-
*/
|
|
69
|
-
public async getFiles(size?: number, page?: number, _options?: Configuration): Promise<RequestContext> {
|
|
70
|
-
let _config = _options || this.configuration;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// Path Params
|
|
75
|
-
const localVarPath = '/v1/data_factory/files';
|
|
76
|
-
|
|
77
|
-
// Make Request Context
|
|
78
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
79
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
80
|
-
|
|
81
|
-
// Query Params
|
|
82
|
-
if (size !== undefined) {
|
|
83
|
-
requestContext.setQueryParam("size", ObjectSerializer.serialize(size, "number", ""));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Query Params
|
|
87
|
-
if (page !== undefined) {
|
|
88
|
-
requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", ""));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
93
|
-
// Apply auth methods
|
|
94
|
-
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
95
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
96
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
97
|
-
}
|
|
98
|
-
// Apply auth methods
|
|
99
|
-
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
100
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
101
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
105
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
106
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return requestContext;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Post a file so it can be consume by a Data Factory job
|
|
114
|
-
* @param file
|
|
115
|
-
*/
|
|
116
|
-
public async uploadFile(file: HttpFile, _options?: Configuration): Promise<RequestContext> {
|
|
117
|
-
let _config = _options || this.configuration;
|
|
118
|
-
|
|
119
|
-
// verify required parameter 'file' is not null or undefined
|
|
120
|
-
if (file === null || file === undefined) {
|
|
121
|
-
throw new RequiredError("DataFactoryFileApi", "uploadFile", "file");
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
// Path Params
|
|
126
|
-
const localVarPath = '/v1/data_factory/files';
|
|
127
|
-
|
|
128
|
-
// Make Request Context
|
|
129
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
130
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
131
|
-
|
|
132
|
-
// Form Params
|
|
133
|
-
const useForm = canConsumeForm([
|
|
134
|
-
'multipart/form-data',
|
|
135
|
-
]);
|
|
136
|
-
|
|
137
|
-
let localVarFormParams
|
|
138
|
-
if (useForm) {
|
|
139
|
-
localVarFormParams = new FormData();
|
|
140
|
-
} else {
|
|
141
|
-
localVarFormParams = new URLSearchParams();
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (file !== undefined) {
|
|
145
|
-
// TODO: replace .append with .set
|
|
146
|
-
if (localVarFormParams instanceof FormData) {
|
|
147
|
-
localVarFormParams.append('file', file.data, file.name);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
requestContext.setBody(localVarFormParams);
|
|
152
|
-
|
|
153
|
-
if(!useForm) {
|
|
154
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
155
|
-
"multipart/form-data"
|
|
156
|
-
]);
|
|
157
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
161
|
-
// Apply auth methods
|
|
162
|
-
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
163
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
164
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
165
|
-
}
|
|
166
|
-
// Apply auth methods
|
|
167
|
-
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
168
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
169
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
173
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
174
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return requestContext;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export class DataFactoryFileApiResponseProcessor {
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
186
|
-
* to the expected objects
|
|
187
|
-
*
|
|
188
|
-
* @params response Response returned by the server for a request to getFileById
|
|
189
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
190
|
-
*/
|
|
191
|
-
public async getFileById(response: ResponseContext): Promise<FileDto > {
|
|
192
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
193
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
194
|
-
const body: FileDto = ObjectSerializer.deserialize(
|
|
195
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
196
|
-
"FileDto", ""
|
|
197
|
-
) as FileDto;
|
|
198
|
-
return body;
|
|
199
|
-
}
|
|
200
|
-
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
201
|
-
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
202
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
203
|
-
"GetJobExecutionById400Response", ""
|
|
204
|
-
) as GetJobExecutionById400Response;
|
|
205
|
-
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
206
|
-
}
|
|
207
|
-
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
208
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
209
|
-
}
|
|
210
|
-
if (isCodeInRange("404", response.httpStatusCode)) {
|
|
211
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Not found", undefined, response.headers);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
215
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
216
|
-
const body: FileDto = ObjectSerializer.deserialize(
|
|
217
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
218
|
-
"FileDto", ""
|
|
219
|
-
) as FileDto;
|
|
220
|
-
return body;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
228
|
-
* to the expected objects
|
|
229
|
-
*
|
|
230
|
-
* @params response Response returned by the server for a request to getFiles
|
|
231
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
232
|
-
*/
|
|
233
|
-
public async getFiles(response: ResponseContext): Promise<GetFiles200Response > {
|
|
234
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
235
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
236
|
-
const body: GetFiles200Response = ObjectSerializer.deserialize(
|
|
237
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
238
|
-
"GetFiles200Response", ""
|
|
239
|
-
) as GetFiles200Response;
|
|
240
|
-
return body;
|
|
241
|
-
}
|
|
242
|
-
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
243
|
-
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
244
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
245
|
-
"GetJobExecutionById400Response", ""
|
|
246
|
-
) as GetJobExecutionById400Response;
|
|
247
|
-
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
248
|
-
}
|
|
249
|
-
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
250
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
254
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
255
|
-
const body: GetFiles200Response = ObjectSerializer.deserialize(
|
|
256
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
257
|
-
"GetFiles200Response", ""
|
|
258
|
-
) as GetFiles200Response;
|
|
259
|
-
return body;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
267
|
-
* to the expected objects
|
|
268
|
-
*
|
|
269
|
-
* @params response Response returned by the server for a request to uploadFile
|
|
270
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
271
|
-
*/
|
|
272
|
-
public async uploadFile(response: ResponseContext): Promise<FileDto > {
|
|
273
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
274
|
-
if (isCodeInRange("201", response.httpStatusCode)) {
|
|
275
|
-
const body: FileDto = ObjectSerializer.deserialize(
|
|
276
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
277
|
-
"FileDto", ""
|
|
278
|
-
) as FileDto;
|
|
279
|
-
return body;
|
|
280
|
-
}
|
|
281
|
-
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
282
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Bad Request - Malformed syntax", undefined, response.headers);
|
|
283
|
-
}
|
|
284
|
-
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
285
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
286
|
-
}
|
|
287
|
-
if (isCodeInRange("413", response.httpStatusCode)) {
|
|
288
|
-
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
289
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
290
|
-
"GetJobExecutionById400Response", ""
|
|
291
|
-
) as GetJobExecutionById400Response;
|
|
292
|
-
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Request Entity Too Large", body, response.headers);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
296
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
297
|
-
const body: FileDto = ObjectSerializer.deserialize(
|
|
298
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
299
|
-
"FileDto", ""
|
|
300
|
-
) as FileDto;
|
|
301
|
-
return body;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
}
|