@dynamic-labs/sdk-api 0.0.618 → 0.0.619
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
CHANGED
package/src/apis/ExportsApi.cjs
CHANGED
|
@@ -118,6 +118,9 @@ class ExportsApi extends runtime.BaseAPI {
|
|
|
118
118
|
*/
|
|
119
119
|
downloadExportByIdRaw(requestParameters, initOverrides) {
|
|
120
120
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
122
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling downloadExportById.');
|
|
123
|
+
}
|
|
121
124
|
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
122
125
|
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling downloadExportById.');
|
|
123
126
|
}
|
|
@@ -131,7 +134,7 @@ class ExportsApi extends runtime.BaseAPI {
|
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
const response = yield this.request({
|
|
134
|
-
path: `/exports/{exportId}/download`.replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
137
|
+
path: `/environments/{environmentId}/exports/{exportId}/download`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
135
138
|
method: 'GET',
|
|
136
139
|
headers: headerParameters,
|
|
137
140
|
query: queryParameters,
|
|
@@ -183,6 +186,9 @@ class ExportsApi extends runtime.BaseAPI {
|
|
|
183
186
|
*/
|
|
184
187
|
getExportByIdRaw(requestParameters, initOverrides) {
|
|
185
188
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
190
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getExportById.');
|
|
191
|
+
}
|
|
186
192
|
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
187
193
|
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling getExportById.');
|
|
188
194
|
}
|
|
@@ -196,7 +202,7 @@ class ExportsApi extends runtime.BaseAPI {
|
|
|
196
202
|
}
|
|
197
203
|
}
|
|
198
204
|
const response = yield this.request({
|
|
199
|
-
path: `/exports/{exportId}`.replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
205
|
+
path: `/environments/{environmentId}/exports/{exportId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
200
206
|
method: 'GET',
|
|
201
207
|
headers: headerParameters,
|
|
202
208
|
query: queryParameters,
|
package/src/apis/ExportsApi.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface CreateExportRequest {
|
|
|
16
16
|
exportCreateRequest: ExportCreateRequest;
|
|
17
17
|
}
|
|
18
18
|
export interface DownloadExportByIdRequest {
|
|
19
|
+
environmentId: string;
|
|
19
20
|
exportId: string;
|
|
20
21
|
}
|
|
21
22
|
export interface GetEnvironmentExportsRequest {
|
|
@@ -23,6 +24,7 @@ export interface GetEnvironmentExportsRequest {
|
|
|
23
24
|
model?: ExportModelEnum;
|
|
24
25
|
}
|
|
25
26
|
export interface GetExportByIdRequest {
|
|
27
|
+
environmentId: string;
|
|
26
28
|
exportId: string;
|
|
27
29
|
}
|
|
28
30
|
/**
|
package/src/apis/ExportsApi.js
CHANGED
|
@@ -114,6 +114,9 @@ class ExportsApi extends BaseAPI {
|
|
|
114
114
|
*/
|
|
115
115
|
downloadExportByIdRaw(requestParameters, initOverrides) {
|
|
116
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
118
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling downloadExportById.');
|
|
119
|
+
}
|
|
117
120
|
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
118
121
|
throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling downloadExportById.');
|
|
119
122
|
}
|
|
@@ -127,7 +130,7 @@ class ExportsApi extends BaseAPI {
|
|
|
127
130
|
}
|
|
128
131
|
}
|
|
129
132
|
const response = yield this.request({
|
|
130
|
-
path: `/exports/{exportId}/download`.replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
133
|
+
path: `/environments/{environmentId}/exports/{exportId}/download`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
131
134
|
method: 'GET',
|
|
132
135
|
headers: headerParameters,
|
|
133
136
|
query: queryParameters,
|
|
@@ -179,6 +182,9 @@ class ExportsApi extends BaseAPI {
|
|
|
179
182
|
*/
|
|
180
183
|
getExportByIdRaw(requestParameters, initOverrides) {
|
|
181
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
186
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getExportById.');
|
|
187
|
+
}
|
|
182
188
|
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
183
189
|
throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling getExportById.');
|
|
184
190
|
}
|
|
@@ -192,7 +198,7 @@ class ExportsApi extends BaseAPI {
|
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
200
|
const response = yield this.request({
|
|
195
|
-
path: `/exports/{exportId}`.replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
201
|
+
path: `/environments/{environmentId}/exports/{exportId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
196
202
|
method: 'GET',
|
|
197
203
|
headers: headerParameters,
|
|
198
204
|
query: queryParameters,
|