@shapediver/sdk.geometry-api-sdk-v2 3.6.0 → 4.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.
- package/README.md +5 -5
- package/dist/UtilsApi.d.ts +16 -29
- package/dist/UtilsApi.d.ts.map +1 -1
- package/dist/UtilsApi.js +133 -135
- package/dist/UtilsApi.js.map +1 -1
- package/dist/base.d.ts +2 -5
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +30 -36
- package/dist/base.js.map +1 -1
- package/dist/client/apis/AnalyticsApi.d.ts +38 -0
- package/dist/client/apis/AnalyticsApi.d.ts.map +1 -0
- package/dist/client/apis/AnalyticsApi.js +245 -0
- package/dist/client/apis/AnalyticsApi.js.map +1 -0
- package/dist/client/apis/ArSceneApi.d.ts +23 -0
- package/dist/client/apis/ArSceneApi.d.ts.map +1 -0
- package/dist/client/apis/ArSceneApi.js +140 -0
- package/dist/client/apis/ArSceneApi.js.map +1 -0
- package/dist/client/apis/AssetsApi.d.ts +54 -0
- package/dist/client/apis/AssetsApi.d.ts.map +1 -0
- package/dist/client/apis/AssetsApi.js +329 -0
- package/dist/client/apis/AssetsApi.js.map +1 -0
- package/dist/client/apis/AuthApi.d.ts +8 -0
- package/dist/client/apis/AuthApi.d.ts.map +1 -0
- package/dist/client/apis/AuthApi.js +77 -0
- package/dist/client/apis/AuthApi.js.map +1 -0
- package/dist/client/apis/AuthGroupApi.d.ts +12 -0
- package/dist/client/apis/AuthGroupApi.d.ts.map +1 -0
- package/dist/client/apis/AuthGroupApi.js +89 -0
- package/dist/client/apis/AuthGroupApi.js.map +1 -0
- package/dist/client/apis/ExportApi.d.ts +38 -0
- package/dist/client/apis/ExportApi.d.ts.map +1 -0
- package/dist/client/apis/ExportApi.js +230 -0
- package/dist/client/apis/ExportApi.js.map +1 -0
- package/dist/client/apis/FileApi.d.ts +45 -0
- package/dist/client/apis/FileApi.d.ts.map +1 -0
- package/dist/client/apis/FileApi.js +271 -0
- package/dist/client/apis/FileApi.js.map +1 -0
- package/dist/client/apis/GltfApi.d.ts +14 -0
- package/dist/client/apis/GltfApi.d.ts.map +1 -0
- package/dist/client/apis/GltfApi.js +96 -0
- package/dist/client/apis/GltfApi.js.map +1 -0
- package/dist/client/apis/LogApi.d.ts +13 -0
- package/dist/client/apis/LogApi.d.ts.map +1 -0
- package/dist/client/apis/LogApi.js +93 -0
- package/dist/client/apis/LogApi.js.map +1 -0
- package/dist/client/apis/ModelApi.d.ts +129 -0
- package/dist/client/apis/ModelApi.d.ts.map +1 -0
- package/dist/client/apis/ModelApi.js +762 -0
- package/dist/client/apis/ModelApi.js.map +1 -0
- package/dist/client/apis/ModelStateApi.d.ts +57 -0
- package/dist/client/apis/ModelStateApi.d.ts.map +1 -0
- package/dist/client/apis/ModelStateApi.js +328 -0
- package/dist/client/apis/ModelStateApi.js.map +1 -0
- package/dist/client/apis/OutputApi.d.ts +38 -0
- package/dist/client/apis/OutputApi.d.ts.map +1 -0
- package/dist/client/apis/OutputApi.js +230 -0
- package/dist/client/apis/OutputApi.js.map +1 -0
- package/dist/client/apis/ScriptApi.d.ts +17 -0
- package/dist/client/apis/ScriptApi.d.ts.map +1 -0
- package/dist/client/apis/ScriptApi.js +127 -0
- package/dist/client/apis/ScriptApi.js.map +1 -0
- package/dist/client/apis/SdtfApi.d.ts +37 -0
- package/dist/client/apis/SdtfApi.d.ts.map +1 -0
- package/dist/client/apis/SdtfApi.js +227 -0
- package/dist/client/apis/SdtfApi.js.map +1 -0
- package/dist/client/apis/SessionApi.d.ts +51 -0
- package/dist/client/apis/SessionApi.d.ts.map +1 -0
- package/dist/client/apis/SessionApi.js +300 -0
- package/dist/client/apis/SessionApi.js.map +1 -0
- package/dist/client/apis/SystemApi.d.ts +28 -0
- package/dist/client/apis/SystemApi.d.ts.map +1 -0
- package/dist/client/apis/SystemApi.js +235 -0
- package/dist/client/apis/SystemApi.js.map +1 -0
- package/dist/client/apis/TextureApi.d.ts +13 -0
- package/dist/client/apis/TextureApi.d.ts.map +1 -0
- package/dist/client/apis/TextureApi.js +91 -0
- package/dist/client/apis/TextureApi.js.map +1 -0
- package/dist/client/apis/index.d.ts +18 -0
- package/dist/client/apis/index.d.ts.map +1 -0
- package/dist/client/apis/index.js +34 -0
- package/dist/client/apis/index.js.map +1 -0
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/models/index.d.ts +1671 -0
- package/dist/client/models/index.d.ts.map +1 -0
- package/dist/client/models/index.js +239 -0
- package/dist/client/models/index.js.map +1 -0
- package/dist/client/runtime.d.ts +154 -0
- package/dist/client/runtime.d.ts.map +1 -0
- package/dist/client/runtime.js +323 -0
- package/dist/client/runtime.js.map +1 -0
- package/dist/configuration.d.ts +2 -7
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +36 -16
- package/dist/configuration.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +2 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +16 -13
- package/dist/utils.js.map +1 -1
- package/package.json +3 -9
- package/src/UtilsApi.ts +252 -324
- package/src/base.ts +48 -46
- package/src/client/apis/AnalyticsApi.ts +347 -0
- package/src/client/apis/ArSceneApi.ts +172 -0
- package/src/client/apis/AssetsApi.ts +474 -0
- package/src/client/apis/AuthApi.ts +63 -0
- package/src/client/apis/AuthGroupApi.ts +89 -0
- package/src/client/apis/ExportApi.ts +332 -0
- package/src/client/apis/FileApi.ts +401 -0
- package/src/client/apis/GltfApi.ts +101 -0
- package/src/client/apis/LogApi.ts +96 -0
- package/src/client/apis/ModelApi.ts +1206 -0
- package/src/client/apis/ModelStateApi.ts +479 -0
- package/src/client/apis/OutputApi.ts +333 -0
- package/src/client/apis/ScriptApi.ts +142 -0
- package/src/client/apis/SdtfApi.ts +327 -0
- package/src/client/apis/SessionApi.ts +435 -0
- package/src/client/apis/SystemApi.ts +301 -0
- package/src/client/apis/TextureApi.ts +91 -0
- package/src/client/apis/index.ts +19 -0
- package/src/client/index.ts +3 -16
- package/src/client/models/index.ts +7367 -0
- package/src/client/runtime.ts +442 -0
- package/src/configuration.ts +62 -37
- package/src/error.ts +2 -2
- package/src/index.ts +2 -1
- package/src/utils.ts +53 -25
- package/dist/client/api.d.ts +0 -2111
- package/dist/client/api.d.ts.map +0 -1
- package/dist/client/api.js +0 -3576
- package/dist/client/api.js.map +0 -1
- package/dist/client/base.d.ts +0 -32
- package/dist/client/base.d.ts.map +0 -1
- package/dist/client/base.js +0 -37
- package/dist/client/base.js.map +0 -1
- package/dist/client/common.d.ts +0 -15
- package/dist/client/common.d.ts.map +0 -1
- package/dist/client/common.js +0 -117
- package/dist/client/common.js.map +0 -1
- package/dist/client/configuration.d.ts +0 -37
- package/dist/client/configuration.d.ts.map +0 -1
- package/dist/client/configuration.js +0 -23
- package/dist/client/configuration.js.map +0 -1
- package/src/client/api.ts +0 -11052
- package/src/client/base.ts +0 -62
- package/src/client/common.ts +0 -127
- package/src/client/configuration.ts +0 -121
package/dist/client/api.js
DELETED
|
@@ -1,3576 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.ExportApi = exports.ExportApiFactory = exports.ExportApiFp = exports.ExportApiAxiosParamCreator = exports.AuthGroupApi = exports.AuthGroupApiFactory = exports.AuthGroupApiFp = exports.AuthGroupApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AssetsApi = exports.AssetsApiFactory = exports.AssetsApiFp = exports.AssetsApiAxiosParamCreator = exports.ArSceneApi = exports.ArSceneApiFactory = exports.ArSceneApiFp = exports.ArSceneApiAxiosParamCreator = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.ResVisualizationType = exports.ResTicketType = exports.ResStructureType = exports.ResParameterType = exports.ResModelStatus = exports.ResModelCleanupProcessType = exports.ResExportDefinitionType = exports.ResErrorType = exports.ResComputationStatus = exports.ReqTrustLevel = exports.ReqTicketType = exports.ReqSdtfType = exports.ReqModelFileType = exports.ReqLogLevel = exports.QueryOrder = exports.QueryModelStatus = exports.QueryGltfConversion = exports.QueryComputationType = exports.QueryComputationStatus = exports.QueryComputationStatisticsStatus = exports.CommonsTicketType = exports.CommonsModelStatus = exports.CommonsComputationStatus = void 0;
|
|
16
|
-
exports.TextureApi = exports.TextureApiFactory = exports.TextureApiFp = exports.TextureApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiAxiosParamCreator = exports.SdtfApi = exports.SdtfApiFactory = exports.SdtfApiFp = exports.SdtfApiAxiosParamCreator = exports.ScriptApi = exports.ScriptApiFactory = exports.ScriptApiFp = exports.ScriptApiAxiosParamCreator = exports.OutputApi = exports.OutputApiFactory = exports.OutputApiFp = exports.OutputApiAxiosParamCreator = exports.ModelStateApi = exports.ModelStateApiFactory = exports.ModelStateApiFp = exports.ModelStateApiAxiosParamCreator = exports.ModelApi = exports.ModelApiFactory = exports.ModelApiFp = exports.ModelApiAxiosParamCreator = exports.LogApi = exports.LogApiFactory = exports.LogApiFp = exports.LogApiAxiosParamCreator = exports.GltfApi = exports.GltfApiFactory = exports.GltfApiFp = exports.GltfApiAxiosParamCreator = exports.FileApi = void 0;
|
|
17
|
-
const axios_1 = __importDefault(require("axios"));
|
|
18
|
-
const common_1 = require("./common");
|
|
19
|
-
const base_1 = require("./base");
|
|
20
|
-
const base_2 = require("../base");
|
|
21
|
-
exports.CommonsComputationStatus = {
|
|
22
|
-
SUCCESS: 'success',
|
|
23
|
-
TIMEOUT: 'timeout',
|
|
24
|
-
CHECK_CONFIRMED: 'checkconfirmed',
|
|
25
|
-
CHECK_DENIED: 'checkdenied',
|
|
26
|
-
CHECK_PENDING: 'checkpending',
|
|
27
|
-
MAX_COMBINED_ASSET_SIZE_EXCEEDED: 'maxcombinedassetsizeexceeded',
|
|
28
|
-
MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: 'maxdbsizeperoutputexceeded',
|
|
29
|
-
MAX_PARTS_PER_OUTPUT_EXCEEDED: 'maxpartsperoutputexceeded',
|
|
30
|
-
MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: 'maxassetpartsperoutputexceeded',
|
|
31
|
-
MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: 'maxtransformationsperoutputexceeded',
|
|
32
|
-
MAX_PARTS_EXCEEDED: 'maxpartsexceeded',
|
|
33
|
-
MAX_ASSET_PARTS_EXCEEDED: 'maxassetpartsexceeded',
|
|
34
|
-
RECOVERABLE_ERROR: 'recoverableerror',
|
|
35
|
-
UNRECOVERABLE_ERROR: 'unrecoverableerror',
|
|
36
|
-
NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: 'nooutputdatafordefaultparametervalues',
|
|
37
|
-
MODEL_WITHOUT_GEOMETRY_OUTPUT: 'modelwithoutgeometryoutput',
|
|
38
|
-
UNKNOWN: 'unknown',
|
|
39
|
-
};
|
|
40
|
-
exports.CommonsModelStatus = {
|
|
41
|
-
UNKNOWN: 'unknown',
|
|
42
|
-
NOT_UPLOADED: 'not_uploaded',
|
|
43
|
-
UPLOADED: 'uploaded',
|
|
44
|
-
PENDING: 'pending',
|
|
45
|
-
CONFIRMED: 'confirmed',
|
|
46
|
-
DENIED: 'denied',
|
|
47
|
-
DELETED: 'deleted',
|
|
48
|
-
};
|
|
49
|
-
exports.CommonsTicketType = {
|
|
50
|
-
BACKEND: 'backend',
|
|
51
|
-
NONE: '',
|
|
52
|
-
};
|
|
53
|
-
exports.QueryComputationStatisticsStatus = {
|
|
54
|
-
SUCCESS: 'success',
|
|
55
|
-
TIMEOUT: 'timeout',
|
|
56
|
-
OTHER: 'other',
|
|
57
|
-
ALL: '*',
|
|
58
|
-
};
|
|
59
|
-
exports.QueryComputationStatus = {
|
|
60
|
-
SUCCESS: 'success',
|
|
61
|
-
TIMEOUT: 'timeout',
|
|
62
|
-
CHECK_CONFIRMED: 'checkconfirmed',
|
|
63
|
-
CHECK_DENIED: 'checkdenied',
|
|
64
|
-
CHECK_PENDING: 'checkpending',
|
|
65
|
-
MAX_COMBINED_ASSET_SIZE_EXCEEDED: 'maxcombinedassetsizeexceeded',
|
|
66
|
-
MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: 'maxdbsizeperoutputexceeded',
|
|
67
|
-
MAX_PARTS_PER_OUTPUT_EXCEEDED: 'maxpartsperoutputexceeded',
|
|
68
|
-
MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: 'maxassetpartsperoutputexceeded',
|
|
69
|
-
MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: 'maxtransformationsperoutputexceeded',
|
|
70
|
-
MAX_PARTS_EXCEEDED: 'maxpartsexceeded',
|
|
71
|
-
MAX_ASSET_PARTS_EXCEEDED: 'maxassetpartsexceeded',
|
|
72
|
-
RECOVERABLE_ERROR: 'recoverableerror',
|
|
73
|
-
UNRECOVERABLE_ERROR: 'unrecoverableerror',
|
|
74
|
-
NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: 'nooutputdatafordefaultparametervalues',
|
|
75
|
-
MODEL_WITHOUT_GEOMETRY_OUTPUT: 'modelwithoutgeometryoutput',
|
|
76
|
-
UNKNOWN: 'unknown',
|
|
77
|
-
};
|
|
78
|
-
exports.QueryComputationType = {
|
|
79
|
-
COMPUTATION: 'computation',
|
|
80
|
-
EXPORT: 'export',
|
|
81
|
-
LOAD: 'load',
|
|
82
|
-
ALL: '*',
|
|
83
|
-
};
|
|
84
|
-
exports.QueryGltfConversion = {
|
|
85
|
-
NONE: 'none',
|
|
86
|
-
SCENE: 'scene',
|
|
87
|
-
USDZ: 'usdz',
|
|
88
|
-
};
|
|
89
|
-
exports.QueryModelStatus = {
|
|
90
|
-
UNKNOWN: 'unknown',
|
|
91
|
-
NOT_UPLOADED: 'not_uploaded',
|
|
92
|
-
UPLOADED: 'uploaded',
|
|
93
|
-
PENDING: 'pending',
|
|
94
|
-
CONFIRMED: 'confirmed',
|
|
95
|
-
DENIED: 'denied',
|
|
96
|
-
DELETED: 'deleted',
|
|
97
|
-
};
|
|
98
|
-
exports.QueryOrder = {
|
|
99
|
-
ASC: 'asc',
|
|
100
|
-
DESC: 'desc',
|
|
101
|
-
};
|
|
102
|
-
exports.ReqLogLevel = {
|
|
103
|
-
INFO: '0',
|
|
104
|
-
WARN: '1',
|
|
105
|
-
ERROR: '2',
|
|
106
|
-
};
|
|
107
|
-
exports.ReqModelFileType = {
|
|
108
|
-
GRASSHOPPER_BINARY: 'gh',
|
|
109
|
-
GRASSHOPPER_XML: 'ghx',
|
|
110
|
-
};
|
|
111
|
-
exports.ReqSdtfType = {
|
|
112
|
-
MODEL_SDTF: 'model/vnd.sdtf',
|
|
113
|
-
};
|
|
114
|
-
exports.ReqTicketType = {
|
|
115
|
-
BACKEND: 'backend',
|
|
116
|
-
NONE: '',
|
|
117
|
-
};
|
|
118
|
-
exports.ReqTrustLevel = {
|
|
119
|
-
UNDEFINED: '',
|
|
120
|
-
NONE: 'none',
|
|
121
|
-
FULL: 'full',
|
|
122
|
-
};
|
|
123
|
-
exports.ResComputationStatus = {
|
|
124
|
-
SUCCESS: 'success',
|
|
125
|
-
TIMEOUT: 'timeout',
|
|
126
|
-
CHECK_CONFIRMED: 'checkconfirmed',
|
|
127
|
-
CHECK_DENIED: 'checkdenied',
|
|
128
|
-
CHECK_PENDING: 'checkpending',
|
|
129
|
-
MAX_COMBINED_ASSET_SIZE_EXCEEDED: 'maxcombinedassetsizeexceeded',
|
|
130
|
-
MAX_DB_SIZE_PER_OUTPUT_EXCEEDED: 'maxdbsizeperoutputexceeded',
|
|
131
|
-
MAX_PARTS_PER_OUTPUT_EXCEEDED: 'maxpartsperoutputexceeded',
|
|
132
|
-
MAX_ASSET_PARTS_PER_OUTPUT_EXCEEDED: 'maxassetpartsperoutputexceeded',
|
|
133
|
-
MAX_TRANSFORMATIONS_PER_OUTPUT_EXCEEDED: 'maxtransformationsperoutputexceeded',
|
|
134
|
-
MAX_PARTS_EXCEEDED: 'maxpartsexceeded',
|
|
135
|
-
MAX_ASSET_PARTS_EXCEEDED: 'maxassetpartsexceeded',
|
|
136
|
-
RECOVERABLE_ERROR: 'recoverableerror',
|
|
137
|
-
UNRECOVERABLE_ERROR: 'unrecoverableerror',
|
|
138
|
-
NO_OUTPUT_DATA_FOR_DEFAULT_PARAMETER_VALUES: 'nooutputdatafordefaultparametervalues',
|
|
139
|
-
MODEL_WITHOUT_GEOMETRY_OUTPUT: 'modelwithoutgeometryoutput',
|
|
140
|
-
UNKNOWN: 'unknown',
|
|
141
|
-
};
|
|
142
|
-
exports.ResErrorType = {
|
|
143
|
-
ASSERTION_ERROR: 'SdAssertionError',
|
|
144
|
-
CACHE_ERROR_GENERIC: 'SdCacheErrorGeneric',
|
|
145
|
-
CONNECTOR_ERROR: 'SdConnectorError',
|
|
146
|
-
DATABASE_ERROR_GENERIC: 'SdDatabaseErrorGeneric',
|
|
147
|
-
EMAILING_ERROR: 'SdEmailingError',
|
|
148
|
-
ERROR_ENTITY_NOT_FOUND: 'SdErrorEntityNotFound',
|
|
149
|
-
ERROR_FORBIDDEN: 'SdErrorForbidden',
|
|
150
|
-
ERROR_GENERIC_CLIENT: 'SdErrorGenericClient',
|
|
151
|
-
ERROR_GENERIC_INTERNAL: 'SdErrorGenericInternal',
|
|
152
|
-
ERROR_UNAUTHORIZED: 'SdErrorUnauthorized',
|
|
153
|
-
ILLEGAL_ARGUMENT_ERROR: 'SdIllegalArgumentError',
|
|
154
|
-
JWT_VALIDATION_ERROR: 'SdJwtValidationError',
|
|
155
|
-
METHOD_NOT_ALLOWED_ERROR: 'SdMethodNotAllowedError',
|
|
156
|
-
MODEL_VALIDATION_ERROR: 'SdModelValidationError',
|
|
157
|
-
NOT_ACCEPTABLE: 'SdNotAcceptable',
|
|
158
|
-
NOT_FOUND_ERROR: 'SdNotFoundError',
|
|
159
|
-
PARAMETER_VALIDATION_ERROR: 'SdParameterValidationError',
|
|
160
|
-
RATE_LIMIT_ERROR_GENERIC: 'SdRateLimitErrorGeneric',
|
|
161
|
-
REQUEST_TIMEOUT: 'SdRequestTimeout',
|
|
162
|
-
REQUEST_VALIDATION_ERROR: 'SdRequestValidationError',
|
|
163
|
-
RESOURCE_GONE_ERROR: 'SdResourceGoneError',
|
|
164
|
-
SESSION_GONE_ERROR: 'SdSessionGoneError',
|
|
165
|
-
SESSION_VALIDATION_ERROR: 'SdSessionValidationError',
|
|
166
|
-
STORAGE_ERROR_GENERIC: 'SdStorageErrorGeneric',
|
|
167
|
-
TEXTURE_URL_ERROR: 'SdTextureUrlError',
|
|
168
|
-
TICKET_VALIDATION_ERROR: 'SdTicketValidationError',
|
|
169
|
-
TOKEN_MISSING_ERROR: 'SdTokenMissingError',
|
|
170
|
-
TRANSFORM_CONTENT_ARRAY_ERROR: 'SdTransformContentArrayError',
|
|
171
|
-
UNCONFIRMED_MODEL_ERROR: 'SdUnconfirmedModelError',
|
|
172
|
-
UNKNOWN: '',
|
|
173
|
-
};
|
|
174
|
-
exports.ResExportDefinitionType = {
|
|
175
|
-
UNKNOWN: 'unknown',
|
|
176
|
-
DOWNLOAD: 'download',
|
|
177
|
-
EMAIL: 'email',
|
|
178
|
-
SHAPEWAYS: 'shapeways',
|
|
179
|
-
};
|
|
180
|
-
exports.ResModelCleanupProcessType = {
|
|
181
|
-
DELETE_EXPORT_VERSION: 'delete_export_version',
|
|
182
|
-
DELETE_MODEL_TEXTURE: 'delete_model_texture',
|
|
183
|
-
DELETE_OUTPUT_VERSION: 'delete_output_version',
|
|
184
|
-
};
|
|
185
|
-
exports.ResModelStatus = {
|
|
186
|
-
UNKNOWN: 'unknown',
|
|
187
|
-
NOT_UPLOADED: 'not_uploaded',
|
|
188
|
-
UPLOADED: 'uploaded',
|
|
189
|
-
PENDING: 'pending',
|
|
190
|
-
CONFIRMED: 'confirmed',
|
|
191
|
-
DENIED: 'denied',
|
|
192
|
-
DELETED: 'deleted',
|
|
193
|
-
};
|
|
194
|
-
exports.ResParameterType = {
|
|
195
|
-
S_BITMAP: 'sBitmap',
|
|
196
|
-
S_BOOL: 'sBool',
|
|
197
|
-
S_BOX: 'sBox',
|
|
198
|
-
S_BREP: 'sBrep',
|
|
199
|
-
S_CIRCLE: 'sCircle',
|
|
200
|
-
S_COLOR: 'sColor',
|
|
201
|
-
S_CURVE: 'sCurve',
|
|
202
|
-
S_DOMAIN: 'sDomain',
|
|
203
|
-
S_DOMAIN_2D: 'sDomain2D',
|
|
204
|
-
S_INTEGER: 'sInteger',
|
|
205
|
-
S_LINE: 'sLine',
|
|
206
|
-
S_MESH: 'sMesh',
|
|
207
|
-
S_NUMBER: 'sNumber',
|
|
208
|
-
S_PLANE: 'sPlane',
|
|
209
|
-
S_POINT: 'sPoint',
|
|
210
|
-
S_RECTANGLE: 'sRectangle',
|
|
211
|
-
S_STRING: 'sString',
|
|
212
|
-
S_SUBDIV: 'sSubdiv',
|
|
213
|
-
S_SURFACE: 'sSurface',
|
|
214
|
-
S_TIME: 'sTime',
|
|
215
|
-
S_VECTOR: 'sVector',
|
|
216
|
-
BOOL: 'Bool',
|
|
217
|
-
COLOR: 'Color',
|
|
218
|
-
DRAWING: 'Drawing',
|
|
219
|
-
EVEN: 'Even',
|
|
220
|
-
FILE: 'File',
|
|
221
|
-
FLOAT: 'Float',
|
|
222
|
-
INT: 'Int',
|
|
223
|
-
INTERACTION: 'Interaction',
|
|
224
|
-
ODD: 'Odd',
|
|
225
|
-
STRING: 'String',
|
|
226
|
-
STRINGLIST: 'StringList',
|
|
227
|
-
TIME: 'Time',
|
|
228
|
-
UNKNOWN: 'unknown',
|
|
229
|
-
};
|
|
230
|
-
exports.ResStructureType = {
|
|
231
|
-
ITEM: 'item',
|
|
232
|
-
LIST: 'list',
|
|
233
|
-
TREE: 'tree',
|
|
234
|
-
};
|
|
235
|
-
exports.ResTicketType = {
|
|
236
|
-
BACKEND: 'backend',
|
|
237
|
-
NONE: '',
|
|
238
|
-
};
|
|
239
|
-
exports.ResVisualizationType = {
|
|
240
|
-
UNKNOWN: 'unknown',
|
|
241
|
-
BUTTON: 'button',
|
|
242
|
-
CALENDAR: 'calendar',
|
|
243
|
-
CHECKLIST: 'checklist',
|
|
244
|
-
CLOCK: 'clock',
|
|
245
|
-
CYCLE: 'cycle',
|
|
246
|
-
DIAL: 'dial',
|
|
247
|
-
DROPDOWN: 'dropdown',
|
|
248
|
-
GEOMETRY: 'geometry',
|
|
249
|
-
IMAGE: 'image',
|
|
250
|
-
SEQUENCE: 'sequence',
|
|
251
|
-
SLIDER: 'slider',
|
|
252
|
-
SWATCH: 'swatch',
|
|
253
|
-
TEXT: 'text',
|
|
254
|
-
TOGGLE: 'toggle',
|
|
255
|
-
};
|
|
256
|
-
const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
257
|
-
return {
|
|
258
|
-
getCreditMetrics: (reqCreditMetrics_1, ...args_1) => __awaiter(this, [reqCreditMetrics_1, ...args_1], void 0, function* (reqCreditMetrics, options = {}) {
|
|
259
|
-
(0, common_1.assertParamExists)('getCreditMetrics', 'reqCreditMetrics', reqCreditMetrics);
|
|
260
|
-
const localVarPath = `/api/v2/analytics/credit-metrics`;
|
|
261
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
262
|
-
let baseOptions;
|
|
263
|
-
if (configuration) {
|
|
264
|
-
baseOptions = configuration.baseOptions;
|
|
265
|
-
}
|
|
266
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
267
|
-
const localVarHeaderParameter = {};
|
|
268
|
-
const localVarQueryParameter = {};
|
|
269
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
270
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
271
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
272
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
273
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
275
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCreditMetrics, localVarRequestOptions, configuration);
|
|
276
|
-
return {
|
|
277
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
278
|
-
options: localVarRequestOptions,
|
|
279
|
-
};
|
|
280
|
-
}),
|
|
281
|
-
getModelOrganizationCreditMetrics: (timestamp_1, orgId_1, ...args_1) => __awaiter(this, [timestamp_1, orgId_1, ...args_1], void 0, function* (timestamp, orgId, options = {}) {
|
|
282
|
-
(0, common_1.assertParamExists)('getModelOrganizationCreditMetrics', 'timestamp', timestamp);
|
|
283
|
-
(0, common_1.assertParamExists)('getModelOrganizationCreditMetrics', 'orgId', orgId);
|
|
284
|
-
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/org/{orgId}`
|
|
285
|
-
.replace('{timestamp}', encodeURIComponent(String(timestamp)))
|
|
286
|
-
.replace('{orgId}', encodeURIComponent(String(orgId)));
|
|
287
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
288
|
-
let baseOptions;
|
|
289
|
-
if (configuration) {
|
|
290
|
-
baseOptions = configuration.baseOptions;
|
|
291
|
-
}
|
|
292
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
293
|
-
const localVarHeaderParameter = {};
|
|
294
|
-
const localVarQueryParameter = {};
|
|
295
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
296
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
297
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
298
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
300
|
-
return {
|
|
301
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
302
|
-
options: localVarRequestOptions,
|
|
303
|
-
};
|
|
304
|
-
}),
|
|
305
|
-
getModelUserCreditMetrics: (timestamp_1, userId_1, ...args_1) => __awaiter(this, [timestamp_1, userId_1, ...args_1], void 0, function* (timestamp, userId, options = {}) {
|
|
306
|
-
(0, common_1.assertParamExists)('getModelUserCreditMetrics', 'timestamp', timestamp);
|
|
307
|
-
(0, common_1.assertParamExists)('getModelUserCreditMetrics', 'userId', userId);
|
|
308
|
-
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/user/{userId}`
|
|
309
|
-
.replace('{timestamp}', encodeURIComponent(String(timestamp)))
|
|
310
|
-
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
311
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
312
|
-
let baseOptions;
|
|
313
|
-
if (configuration) {
|
|
314
|
-
baseOptions = configuration.baseOptions;
|
|
315
|
-
}
|
|
316
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
317
|
-
const localVarHeaderParameter = {};
|
|
318
|
-
const localVarQueryParameter = {};
|
|
319
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
320
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
321
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
322
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
323
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
324
|
-
return {
|
|
325
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
326
|
-
options: localVarRequestOptions,
|
|
327
|
-
};
|
|
328
|
-
}),
|
|
329
|
-
getOrganizationCreditMetrics: (timestamp_1, ...args_1) => __awaiter(this, [timestamp_1, ...args_1], void 0, function* (timestamp, options = {}) {
|
|
330
|
-
(0, common_1.assertParamExists)('getOrganizationCreditMetrics', 'timestamp', timestamp);
|
|
331
|
-
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/org`
|
|
332
|
-
.replace('{timestamp}', encodeURIComponent(String(timestamp)));
|
|
333
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
334
|
-
let baseOptions;
|
|
335
|
-
if (configuration) {
|
|
336
|
-
baseOptions = configuration.baseOptions;
|
|
337
|
-
}
|
|
338
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
339
|
-
const localVarHeaderParameter = {};
|
|
340
|
-
const localVarQueryParameter = {};
|
|
341
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
342
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
343
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
344
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
345
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
346
|
-
return {
|
|
347
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
348
|
-
options: localVarRequestOptions,
|
|
349
|
-
};
|
|
350
|
-
}),
|
|
351
|
-
getUserCreditMetrics: (timestamp_1, ...args_1) => __awaiter(this, [timestamp_1, ...args_1], void 0, function* (timestamp, options = {}) {
|
|
352
|
-
(0, common_1.assertParamExists)('getUserCreditMetrics', 'timestamp', timestamp);
|
|
353
|
-
const localVarPath = `/api/v2/analytics/credit-metrics/timestamp/{timestamp}/user`
|
|
354
|
-
.replace('{timestamp}', encodeURIComponent(String(timestamp)));
|
|
355
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
356
|
-
let baseOptions;
|
|
357
|
-
if (configuration) {
|
|
358
|
-
baseOptions = configuration.baseOptions;
|
|
359
|
-
}
|
|
360
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
361
|
-
const localVarHeaderParameter = {};
|
|
362
|
-
const localVarQueryParameter = {};
|
|
363
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
364
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
365
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
366
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
368
|
-
return {
|
|
369
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
370
|
-
options: localVarRequestOptions,
|
|
371
|
-
};
|
|
372
|
-
}),
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
exports.AnalyticsApiAxiosParamCreator = AnalyticsApiAxiosParamCreator;
|
|
376
|
-
const AnalyticsApiFp = function (configuration) {
|
|
377
|
-
const localVarAxiosParamCreator = (0, exports.AnalyticsApiAxiosParamCreator)(configuration);
|
|
378
|
-
return {
|
|
379
|
-
getCreditMetrics(reqCreditMetrics, options) {
|
|
380
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
-
var _a, _b, _c;
|
|
382
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCreditMetrics(reqCreditMetrics, options);
|
|
383
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
384
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
385
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
386
|
-
});
|
|
387
|
-
},
|
|
388
|
-
getModelOrganizationCreditMetrics(timestamp, orgId, options) {
|
|
389
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
-
var _a, _b, _c;
|
|
391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelOrganizationCreditMetrics(timestamp, orgId, options);
|
|
392
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
393
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getModelOrganizationCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
394
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
395
|
-
});
|
|
396
|
-
},
|
|
397
|
-
getModelUserCreditMetrics(timestamp, userId, options) {
|
|
398
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
-
var _a, _b, _c;
|
|
400
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelUserCreditMetrics(timestamp, userId, options);
|
|
401
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
402
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getModelUserCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
403
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
404
|
-
});
|
|
405
|
-
},
|
|
406
|
-
getOrganizationCreditMetrics(timestamp, options) {
|
|
407
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
-
var _a, _b, _c;
|
|
409
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationCreditMetrics(timestamp, options);
|
|
410
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
411
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getOrganizationCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
412
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
413
|
-
});
|
|
414
|
-
},
|
|
415
|
-
getUserCreditMetrics(timestamp, options) {
|
|
416
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
-
var _a, _b, _c;
|
|
418
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCreditMetrics(timestamp, options);
|
|
419
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
420
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getUserCreditMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
421
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
422
|
-
});
|
|
423
|
-
},
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
exports.AnalyticsApiFp = AnalyticsApiFp;
|
|
427
|
-
const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
428
|
-
const localVarFp = (0, exports.AnalyticsApiFp)(configuration);
|
|
429
|
-
return {
|
|
430
|
-
getCreditMetrics(reqCreditMetrics, options) {
|
|
431
|
-
return localVarFp.getCreditMetrics(reqCreditMetrics, options).then((request) => request(axios, basePath));
|
|
432
|
-
},
|
|
433
|
-
getModelOrganizationCreditMetrics(timestamp, orgId, options) {
|
|
434
|
-
return localVarFp.getModelOrganizationCreditMetrics(timestamp, orgId, options).then((request) => request(axios, basePath));
|
|
435
|
-
},
|
|
436
|
-
getModelUserCreditMetrics(timestamp, userId, options) {
|
|
437
|
-
return localVarFp.getModelUserCreditMetrics(timestamp, userId, options).then((request) => request(axios, basePath));
|
|
438
|
-
},
|
|
439
|
-
getOrganizationCreditMetrics(timestamp, options) {
|
|
440
|
-
return localVarFp.getOrganizationCreditMetrics(timestamp, options).then((request) => request(axios, basePath));
|
|
441
|
-
},
|
|
442
|
-
getUserCreditMetrics(timestamp, options) {
|
|
443
|
-
return localVarFp.getUserCreditMetrics(timestamp, options).then((request) => request(axios, basePath));
|
|
444
|
-
},
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
exports.AnalyticsApiFactory = AnalyticsApiFactory;
|
|
448
|
-
class AnalyticsApi extends base_2.BaseAPI {
|
|
449
|
-
getCreditMetrics(reqCreditMetrics, options) {
|
|
450
|
-
return (0, exports.AnalyticsApiFp)(this.configuration).getCreditMetrics(reqCreditMetrics, options).then((request) => request(this.axios, this.basePath));
|
|
451
|
-
}
|
|
452
|
-
getModelOrganizationCreditMetrics(timestamp, orgId, options) {
|
|
453
|
-
return (0, exports.AnalyticsApiFp)(this.configuration).getModelOrganizationCreditMetrics(timestamp, orgId, options).then((request) => request(this.axios, this.basePath));
|
|
454
|
-
}
|
|
455
|
-
getModelUserCreditMetrics(timestamp, userId, options) {
|
|
456
|
-
return (0, exports.AnalyticsApiFp)(this.configuration).getModelUserCreditMetrics(timestamp, userId, options).then((request) => request(this.axios, this.basePath));
|
|
457
|
-
}
|
|
458
|
-
getOrganizationCreditMetrics(timestamp, options) {
|
|
459
|
-
return (0, exports.AnalyticsApiFp)(this.configuration).getOrganizationCreditMetrics(timestamp, options).then((request) => request(this.axios, this.basePath));
|
|
460
|
-
}
|
|
461
|
-
getUserCreditMetrics(timestamp, options) {
|
|
462
|
-
return (0, exports.AnalyticsApiFp)(this.configuration).getUserCreditMetrics(timestamp, options).then((request) => request(this.axios, this.basePath));
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
exports.AnalyticsApi = AnalyticsApi;
|
|
466
|
-
const ArSceneApiAxiosParamCreator = function (configuration) {
|
|
467
|
-
return {
|
|
468
|
-
downloadArSceneGltf: (sceneId_1, ...args_1) => __awaiter(this, [sceneId_1, ...args_1], void 0, function* (sceneId, options = {}) {
|
|
469
|
-
(0, common_1.assertParamExists)('downloadArSceneGltf', 'sceneId', sceneId);
|
|
470
|
-
const localVarPath = `/api/v2/ar-scene/{sceneId}/gltf`
|
|
471
|
-
.replace('{sceneId}', encodeURIComponent(String(sceneId)));
|
|
472
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
473
|
-
let baseOptions;
|
|
474
|
-
if (configuration) {
|
|
475
|
-
baseOptions = configuration.baseOptions;
|
|
476
|
-
}
|
|
477
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
478
|
-
const localVarHeaderParameter = {};
|
|
479
|
-
const localVarQueryParameter = {};
|
|
480
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
481
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
482
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
484
|
-
return {
|
|
485
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
486
|
-
options: localVarRequestOptions,
|
|
487
|
-
};
|
|
488
|
-
}),
|
|
489
|
-
downloadArSceneUsdz: (sceneId_1, ...args_1) => __awaiter(this, [sceneId_1, ...args_1], void 0, function* (sceneId, options = {}) {
|
|
490
|
-
(0, common_1.assertParamExists)('downloadArSceneUsdz', 'sceneId', sceneId);
|
|
491
|
-
const localVarPath = `/api/v2/ar-scene/{sceneId}/usdz`
|
|
492
|
-
.replace('{sceneId}', encodeURIComponent(String(sceneId)));
|
|
493
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
494
|
-
let baseOptions;
|
|
495
|
-
if (configuration) {
|
|
496
|
-
baseOptions = configuration.baseOptions;
|
|
497
|
-
}
|
|
498
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
499
|
-
const localVarHeaderParameter = {};
|
|
500
|
-
const localVarQueryParameter = {};
|
|
501
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
502
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
503
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
504
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
505
|
-
return {
|
|
506
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
507
|
-
options: localVarRequestOptions,
|
|
508
|
-
};
|
|
509
|
-
}),
|
|
510
|
-
getArSceneMetadata: (sceneId_1, ...args_1) => __awaiter(this, [sceneId_1, ...args_1], void 0, function* (sceneId, options = {}) {
|
|
511
|
-
(0, common_1.assertParamExists)('getArSceneMetadata', 'sceneId', sceneId);
|
|
512
|
-
const localVarPath = `/api/v2/ar-scene/{sceneId}`
|
|
513
|
-
.replace('{sceneId}', encodeURIComponent(String(sceneId)));
|
|
514
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
515
|
-
let baseOptions;
|
|
516
|
-
if (configuration) {
|
|
517
|
-
baseOptions = configuration.baseOptions;
|
|
518
|
-
}
|
|
519
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
520
|
-
const localVarHeaderParameter = {};
|
|
521
|
-
const localVarQueryParameter = {};
|
|
522
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
523
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
524
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
525
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
526
|
-
return {
|
|
527
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
528
|
-
options: localVarRequestOptions,
|
|
529
|
-
};
|
|
530
|
-
}),
|
|
531
|
-
};
|
|
532
|
-
};
|
|
533
|
-
exports.ArSceneApiAxiosParamCreator = ArSceneApiAxiosParamCreator;
|
|
534
|
-
const ArSceneApiFp = function (configuration) {
|
|
535
|
-
const localVarAxiosParamCreator = (0, exports.ArSceneApiAxiosParamCreator)(configuration);
|
|
536
|
-
return {
|
|
537
|
-
downloadArSceneGltf(sceneId, options) {
|
|
538
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
539
|
-
var _a, _b, _c;
|
|
540
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArSceneGltf(sceneId, options);
|
|
541
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
542
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArSceneApi.downloadArSceneGltf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
543
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
544
|
-
});
|
|
545
|
-
},
|
|
546
|
-
downloadArSceneUsdz(sceneId, options) {
|
|
547
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
548
|
-
var _a, _b, _c;
|
|
549
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArSceneUsdz(sceneId, options);
|
|
550
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
551
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArSceneApi.downloadArSceneUsdz']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
552
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
553
|
-
});
|
|
554
|
-
},
|
|
555
|
-
getArSceneMetadata(sceneId, options) {
|
|
556
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
557
|
-
var _a, _b, _c;
|
|
558
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getArSceneMetadata(sceneId, options);
|
|
559
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
560
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArSceneApi.getArSceneMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
561
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
562
|
-
});
|
|
563
|
-
},
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
exports.ArSceneApiFp = ArSceneApiFp;
|
|
567
|
-
const ArSceneApiFactory = function (configuration, basePath, axios) {
|
|
568
|
-
const localVarFp = (0, exports.ArSceneApiFp)(configuration);
|
|
569
|
-
return {
|
|
570
|
-
downloadArSceneGltf(sceneId, options) {
|
|
571
|
-
return localVarFp.downloadArSceneGltf(sceneId, options).then((request) => request(axios, basePath));
|
|
572
|
-
},
|
|
573
|
-
downloadArSceneUsdz(sceneId, options) {
|
|
574
|
-
return localVarFp.downloadArSceneUsdz(sceneId, options).then((request) => request(axios, basePath));
|
|
575
|
-
},
|
|
576
|
-
getArSceneMetadata(sceneId, options) {
|
|
577
|
-
return localVarFp.getArSceneMetadata(sceneId, options).then((request) => request(axios, basePath));
|
|
578
|
-
},
|
|
579
|
-
};
|
|
580
|
-
};
|
|
581
|
-
exports.ArSceneApiFactory = ArSceneApiFactory;
|
|
582
|
-
class ArSceneApi extends base_2.BaseAPI {
|
|
583
|
-
downloadArSceneGltf(sceneId, options) {
|
|
584
|
-
return (0, exports.ArSceneApiFp)(this.configuration).downloadArSceneGltf(sceneId, options).then((request) => request(this.axios, this.basePath));
|
|
585
|
-
}
|
|
586
|
-
downloadArSceneUsdz(sceneId, options) {
|
|
587
|
-
return (0, exports.ArSceneApiFp)(this.configuration).downloadArSceneUsdz(sceneId, options).then((request) => request(this.axios, this.basePath));
|
|
588
|
-
}
|
|
589
|
-
getArSceneMetadata(sceneId, options) {
|
|
590
|
-
return (0, exports.ArSceneApiFp)(this.configuration).getArSceneMetadata(sceneId, options).then((request) => request(this.axios, this.basePath));
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
exports.ArSceneApi = ArSceneApi;
|
|
594
|
-
const AssetsApiAxiosParamCreator = function (configuration) {
|
|
595
|
-
return {
|
|
596
|
-
downloadAsset: (assetDataEncrypted_1, ...args_1) => __awaiter(this, [assetDataEncrypted_1, ...args_1], void 0, function* (assetDataEncrypted, options = {}) {
|
|
597
|
-
(0, common_1.assertParamExists)('downloadAsset', 'assetDataEncrypted', assetDataEncrypted);
|
|
598
|
-
const localVarPath = `/api/v2/download/{assetDataEncrypted}`
|
|
599
|
-
.replace('{assetDataEncrypted}', encodeURIComponent(String(assetDataEncrypted)));
|
|
600
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
601
|
-
let baseOptions;
|
|
602
|
-
if (configuration) {
|
|
603
|
-
baseOptions = configuration.baseOptions;
|
|
604
|
-
}
|
|
605
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
606
|
-
const localVarHeaderParameter = {};
|
|
607
|
-
const localVarQueryParameter = {};
|
|
608
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
609
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
610
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
611
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
612
|
-
return {
|
|
613
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
614
|
-
options: localVarRequestOptions,
|
|
615
|
-
};
|
|
616
|
-
}),
|
|
617
|
-
downloadExport: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
618
|
-
(0, common_1.assertParamExists)('downloadExport', 'sessionId', sessionId);
|
|
619
|
-
(0, common_1.assertParamExists)('downloadExport', 'assetDataEncrypted', assetDataEncrypted);
|
|
620
|
-
const localVarPath = `/api/v2/session/{sessionId}/export/{assetDataEncrypted}`
|
|
621
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
622
|
-
.replace('{assetDataEncrypted}', encodeURIComponent(String(assetDataEncrypted)));
|
|
623
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
624
|
-
let baseOptions;
|
|
625
|
-
if (configuration) {
|
|
626
|
-
baseOptions = configuration.baseOptions;
|
|
627
|
-
}
|
|
628
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
629
|
-
const localVarHeaderParameter = {};
|
|
630
|
-
const localVarQueryParameter = {};
|
|
631
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
632
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
633
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
634
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
635
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
636
|
-
return {
|
|
637
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
638
|
-
options: localVarRequestOptions,
|
|
639
|
-
};
|
|
640
|
-
}),
|
|
641
|
-
downloadGltf: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
642
|
-
(0, common_1.assertParamExists)('downloadGltf', 'sessionId', sessionId);
|
|
643
|
-
(0, common_1.assertParamExists)('downloadGltf', 'assetDataEncrypted', assetDataEncrypted);
|
|
644
|
-
const localVarPath = `/api/v2/session/{sessionId}/gltf/{assetDataEncrypted}`
|
|
645
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
646
|
-
.replace('{assetDataEncrypted}', encodeURIComponent(String(assetDataEncrypted)));
|
|
647
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
648
|
-
let baseOptions;
|
|
649
|
-
if (configuration) {
|
|
650
|
-
baseOptions = configuration.baseOptions;
|
|
651
|
-
}
|
|
652
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
653
|
-
const localVarHeaderParameter = {};
|
|
654
|
-
const localVarQueryParameter = {};
|
|
655
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
656
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
657
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
658
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
659
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
660
|
-
return {
|
|
661
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
662
|
-
options: localVarRequestOptions,
|
|
663
|
-
};
|
|
664
|
-
}),
|
|
665
|
-
downloadImage: (sessionId_1, url_1, ...args_1) => __awaiter(this, [sessionId_1, url_1, ...args_1], void 0, function* (sessionId, url, options = {}) {
|
|
666
|
-
(0, common_1.assertParamExists)('downloadImage', 'sessionId', sessionId);
|
|
667
|
-
(0, common_1.assertParamExists)('downloadImage', 'url', url);
|
|
668
|
-
const localVarPath = `/api/v2/session/{sessionId}/image`
|
|
669
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
670
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
671
|
-
let baseOptions;
|
|
672
|
-
if (configuration) {
|
|
673
|
-
baseOptions = configuration.baseOptions;
|
|
674
|
-
}
|
|
675
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
676
|
-
const localVarHeaderParameter = {};
|
|
677
|
-
const localVarQueryParameter = {};
|
|
678
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
679
|
-
if (url !== undefined) {
|
|
680
|
-
localVarQueryParameter['url'] = url;
|
|
681
|
-
}
|
|
682
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
683
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
684
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
685
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
686
|
-
return {
|
|
687
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
688
|
-
options: localVarRequestOptions,
|
|
689
|
-
};
|
|
690
|
-
}),
|
|
691
|
-
downloadOutput: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
692
|
-
(0, common_1.assertParamExists)('downloadOutput', 'sessionId', sessionId);
|
|
693
|
-
(0, common_1.assertParamExists)('downloadOutput', 'assetDataEncrypted', assetDataEncrypted);
|
|
694
|
-
const localVarPath = `/api/v2/session/{sessionId}/output/{assetDataEncrypted}`
|
|
695
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
696
|
-
.replace('{assetDataEncrypted}', encodeURIComponent(String(assetDataEncrypted)));
|
|
697
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
698
|
-
let baseOptions;
|
|
699
|
-
if (configuration) {
|
|
700
|
-
baseOptions = configuration.baseOptions;
|
|
701
|
-
}
|
|
702
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
703
|
-
const localVarHeaderParameter = {};
|
|
704
|
-
const localVarQueryParameter = {};
|
|
705
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
706
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
707
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
708
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
709
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
710
|
-
return {
|
|
711
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
712
|
-
options: localVarRequestOptions,
|
|
713
|
-
};
|
|
714
|
-
}),
|
|
715
|
-
downloadTexture: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
716
|
-
(0, common_1.assertParamExists)('downloadTexture', 'sessionId', sessionId);
|
|
717
|
-
(0, common_1.assertParamExists)('downloadTexture', 'assetDataEncrypted', assetDataEncrypted);
|
|
718
|
-
const localVarPath = `/api/v2/session/{sessionId}/texture/{assetDataEncrypted}`
|
|
719
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
720
|
-
.replace('{assetDataEncrypted}', encodeURIComponent(String(assetDataEncrypted)));
|
|
721
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
722
|
-
let baseOptions;
|
|
723
|
-
if (configuration) {
|
|
724
|
-
baseOptions = configuration.baseOptions;
|
|
725
|
-
}
|
|
726
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
727
|
-
const localVarHeaderParameter = {};
|
|
728
|
-
const localVarQueryParameter = {};
|
|
729
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
730
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
731
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
732
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
733
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
734
|
-
return {
|
|
735
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
736
|
-
options: localVarRequestOptions,
|
|
737
|
-
};
|
|
738
|
-
}),
|
|
739
|
-
downloadUsdz: (sessionId_1, assetDataEncrypted_1, ...args_1) => __awaiter(this, [sessionId_1, assetDataEncrypted_1, ...args_1], void 0, function* (sessionId, assetDataEncrypted, options = {}) {
|
|
740
|
-
(0, common_1.assertParamExists)('downloadUsdz', 'sessionId', sessionId);
|
|
741
|
-
(0, common_1.assertParamExists)('downloadUsdz', 'assetDataEncrypted', assetDataEncrypted);
|
|
742
|
-
const localVarPath = `/api/v2/session/{sessionId}/usdz/{assetDataEncrypted}`
|
|
743
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
744
|
-
.replace('{assetDataEncrypted}', encodeURIComponent(String(assetDataEncrypted)));
|
|
745
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
746
|
-
let baseOptions;
|
|
747
|
-
if (configuration) {
|
|
748
|
-
baseOptions = configuration.baseOptions;
|
|
749
|
-
}
|
|
750
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
751
|
-
const localVarHeaderParameter = {};
|
|
752
|
-
const localVarQueryParameter = {};
|
|
753
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
754
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
755
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
756
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
757
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
758
|
-
return {
|
|
759
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
760
|
-
options: localVarRequestOptions,
|
|
761
|
-
};
|
|
762
|
-
}),
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
exports.AssetsApiAxiosParamCreator = AssetsApiAxiosParamCreator;
|
|
766
|
-
const AssetsApiFp = function (configuration) {
|
|
767
|
-
const localVarAxiosParamCreator = (0, exports.AssetsApiAxiosParamCreator)(configuration);
|
|
768
|
-
return {
|
|
769
|
-
downloadAsset(assetDataEncrypted, options) {
|
|
770
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
-
var _a, _b, _c;
|
|
772
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadAsset(assetDataEncrypted, options);
|
|
773
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
774
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadAsset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
775
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
776
|
-
});
|
|
777
|
-
},
|
|
778
|
-
downloadExport(sessionId, assetDataEncrypted, options) {
|
|
779
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
780
|
-
var _a, _b, _c;
|
|
781
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadExport(sessionId, assetDataEncrypted, options);
|
|
782
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
783
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
784
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
785
|
-
});
|
|
786
|
-
},
|
|
787
|
-
downloadGltf(sessionId, assetDataEncrypted, options) {
|
|
788
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
789
|
-
var _a, _b, _c;
|
|
790
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadGltf(sessionId, assetDataEncrypted, options);
|
|
791
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
792
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadGltf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
793
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
794
|
-
});
|
|
795
|
-
},
|
|
796
|
-
downloadImage(sessionId, url, options) {
|
|
797
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
-
var _a, _b, _c;
|
|
799
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadImage(sessionId, url, options);
|
|
800
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
801
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
802
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
803
|
-
});
|
|
804
|
-
},
|
|
805
|
-
downloadOutput(sessionId, assetDataEncrypted, options) {
|
|
806
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
807
|
-
var _a, _b, _c;
|
|
808
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadOutput(sessionId, assetDataEncrypted, options);
|
|
809
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
810
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadOutput']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
811
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
812
|
-
});
|
|
813
|
-
},
|
|
814
|
-
downloadTexture(sessionId, assetDataEncrypted, options) {
|
|
815
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
816
|
-
var _a, _b, _c;
|
|
817
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadTexture(sessionId, assetDataEncrypted, options);
|
|
818
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
819
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadTexture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
820
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
821
|
-
});
|
|
822
|
-
},
|
|
823
|
-
downloadUsdz(sessionId, assetDataEncrypted, options) {
|
|
824
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
825
|
-
var _a, _b, _c;
|
|
826
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadUsdz(sessionId, assetDataEncrypted, options);
|
|
827
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
828
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AssetsApi.downloadUsdz']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
829
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
830
|
-
});
|
|
831
|
-
},
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
exports.AssetsApiFp = AssetsApiFp;
|
|
835
|
-
const AssetsApiFactory = function (configuration, basePath, axios) {
|
|
836
|
-
const localVarFp = (0, exports.AssetsApiFp)(configuration);
|
|
837
|
-
return {
|
|
838
|
-
downloadAsset(assetDataEncrypted, options) {
|
|
839
|
-
return localVarFp.downloadAsset(assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
840
|
-
},
|
|
841
|
-
downloadExport(sessionId, assetDataEncrypted, options) {
|
|
842
|
-
return localVarFp.downloadExport(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
843
|
-
},
|
|
844
|
-
downloadGltf(sessionId, assetDataEncrypted, options) {
|
|
845
|
-
return localVarFp.downloadGltf(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
846
|
-
},
|
|
847
|
-
downloadImage(sessionId, url, options) {
|
|
848
|
-
return localVarFp.downloadImage(sessionId, url, options).then((request) => request(axios, basePath));
|
|
849
|
-
},
|
|
850
|
-
downloadOutput(sessionId, assetDataEncrypted, options) {
|
|
851
|
-
return localVarFp.downloadOutput(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
852
|
-
},
|
|
853
|
-
downloadTexture(sessionId, assetDataEncrypted, options) {
|
|
854
|
-
return localVarFp.downloadTexture(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
855
|
-
},
|
|
856
|
-
downloadUsdz(sessionId, assetDataEncrypted, options) {
|
|
857
|
-
return localVarFp.downloadUsdz(sessionId, assetDataEncrypted, options).then((request) => request(axios, basePath));
|
|
858
|
-
},
|
|
859
|
-
};
|
|
860
|
-
};
|
|
861
|
-
exports.AssetsApiFactory = AssetsApiFactory;
|
|
862
|
-
class AssetsApi extends base_2.BaseAPI {
|
|
863
|
-
downloadAsset(assetDataEncrypted, options) {
|
|
864
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadAsset(assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
865
|
-
}
|
|
866
|
-
downloadExport(sessionId, assetDataEncrypted, options) {
|
|
867
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadExport(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
868
|
-
}
|
|
869
|
-
downloadGltf(sessionId, assetDataEncrypted, options) {
|
|
870
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadGltf(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
871
|
-
}
|
|
872
|
-
downloadImage(sessionId, url, options) {
|
|
873
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadImage(sessionId, url, options).then((request) => request(this.axios, this.basePath));
|
|
874
|
-
}
|
|
875
|
-
downloadOutput(sessionId, assetDataEncrypted, options) {
|
|
876
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadOutput(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
877
|
-
}
|
|
878
|
-
downloadTexture(sessionId, assetDataEncrypted, options) {
|
|
879
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadTexture(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
880
|
-
}
|
|
881
|
-
downloadUsdz(sessionId, assetDataEncrypted, options) {
|
|
882
|
-
return (0, exports.AssetsApiFp)(this.configuration).downloadUsdz(sessionId, assetDataEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
exports.AssetsApi = AssetsApi;
|
|
886
|
-
const AuthApiAxiosParamCreator = function (configuration) {
|
|
887
|
-
return {
|
|
888
|
-
getJsonWebKeySets: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
889
|
-
const localVarPath = `/.well-known/jwks.json`;
|
|
890
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
891
|
-
let baseOptions;
|
|
892
|
-
if (configuration) {
|
|
893
|
-
baseOptions = configuration.baseOptions;
|
|
894
|
-
}
|
|
895
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
896
|
-
const localVarHeaderParameter = {};
|
|
897
|
-
const localVarQueryParameter = {};
|
|
898
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
899
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
900
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
901
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
902
|
-
return {
|
|
903
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
904
|
-
options: localVarRequestOptions,
|
|
905
|
-
};
|
|
906
|
-
}),
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
910
|
-
const AuthApiFp = function (configuration) {
|
|
911
|
-
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
912
|
-
return {
|
|
913
|
-
getJsonWebKeySets(options) {
|
|
914
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
915
|
-
var _a, _b, _c;
|
|
916
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJsonWebKeySets(options);
|
|
917
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
918
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.getJsonWebKeySets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
919
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
920
|
-
});
|
|
921
|
-
},
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
exports.AuthApiFp = AuthApiFp;
|
|
925
|
-
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
926
|
-
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
927
|
-
return {
|
|
928
|
-
getJsonWebKeySets(options) {
|
|
929
|
-
return localVarFp.getJsonWebKeySets(options).then((request) => request(axios, basePath));
|
|
930
|
-
},
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
exports.AuthApiFactory = AuthApiFactory;
|
|
934
|
-
class AuthApi extends base_2.BaseAPI {
|
|
935
|
-
getJsonWebKeySets(options) {
|
|
936
|
-
return (0, exports.AuthApiFp)(this.configuration).getJsonWebKeySets(options).then((request) => request(this.axios, this.basePath));
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
exports.AuthApi = AuthApi;
|
|
940
|
-
const AuthGroupApiAxiosParamCreator = function (configuration) {
|
|
941
|
-
return {
|
|
942
|
-
createAuthorizationGroup: (reqAuthorizationGroup_1, ...args_1) => __awaiter(this, [reqAuthorizationGroup_1, ...args_1], void 0, function* (reqAuthorizationGroup, options = {}) {
|
|
943
|
-
(0, common_1.assertParamExists)('createAuthorizationGroup', 'reqAuthorizationGroup', reqAuthorizationGroup);
|
|
944
|
-
const localVarPath = `/api/v2/auth_group`;
|
|
945
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
946
|
-
let baseOptions;
|
|
947
|
-
if (configuration) {
|
|
948
|
-
baseOptions = configuration.baseOptions;
|
|
949
|
-
}
|
|
950
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
951
|
-
const localVarHeaderParameter = {};
|
|
952
|
-
const localVarQueryParameter = {};
|
|
953
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
954
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
955
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
956
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
957
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
958
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
959
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqAuthorizationGroup, localVarRequestOptions, configuration);
|
|
960
|
-
return {
|
|
961
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
962
|
-
options: localVarRequestOptions,
|
|
963
|
-
};
|
|
964
|
-
}),
|
|
965
|
-
};
|
|
966
|
-
};
|
|
967
|
-
exports.AuthGroupApiAxiosParamCreator = AuthGroupApiAxiosParamCreator;
|
|
968
|
-
const AuthGroupApiFp = function (configuration) {
|
|
969
|
-
const localVarAxiosParamCreator = (0, exports.AuthGroupApiAxiosParamCreator)(configuration);
|
|
970
|
-
return {
|
|
971
|
-
createAuthorizationGroup(reqAuthorizationGroup, options) {
|
|
972
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
-
var _a, _b, _c;
|
|
974
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAuthorizationGroup(reqAuthorizationGroup, options);
|
|
975
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
976
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthGroupApi.createAuthorizationGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
977
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
978
|
-
});
|
|
979
|
-
},
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
exports.AuthGroupApiFp = AuthGroupApiFp;
|
|
983
|
-
const AuthGroupApiFactory = function (configuration, basePath, axios) {
|
|
984
|
-
const localVarFp = (0, exports.AuthGroupApiFp)(configuration);
|
|
985
|
-
return {
|
|
986
|
-
createAuthorizationGroup(reqAuthorizationGroup, options) {
|
|
987
|
-
return localVarFp.createAuthorizationGroup(reqAuthorizationGroup, options).then((request) => request(axios, basePath));
|
|
988
|
-
},
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
exports.AuthGroupApiFactory = AuthGroupApiFactory;
|
|
992
|
-
class AuthGroupApi extends base_2.BaseAPI {
|
|
993
|
-
createAuthorizationGroup(reqAuthorizationGroup, options) {
|
|
994
|
-
return (0, exports.AuthGroupApiFp)(this.configuration).createAuthorizationGroup(reqAuthorizationGroup, options).then((request) => request(this.axios, this.basePath));
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
exports.AuthGroupApi = AuthGroupApi;
|
|
998
|
-
const ExportApiAxiosParamCreator = function (configuration) {
|
|
999
|
-
return {
|
|
1000
|
-
computeExports: (sessionId_1, reqExport_1, ignoreUnknownParams_1, ...args_1) => __awaiter(this, [sessionId_1, reqExport_1, ignoreUnknownParams_1, ...args_1], void 0, function* (sessionId, reqExport, ignoreUnknownParams, options = {}) {
|
|
1001
|
-
(0, common_1.assertParamExists)('computeExports', 'sessionId', sessionId);
|
|
1002
|
-
(0, common_1.assertParamExists)('computeExports', 'reqExport', reqExport);
|
|
1003
|
-
const localVarPath = `/api/v2/session/{sessionId}/export`
|
|
1004
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
1005
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1006
|
-
let baseOptions;
|
|
1007
|
-
if (configuration) {
|
|
1008
|
-
baseOptions = configuration.baseOptions;
|
|
1009
|
-
}
|
|
1010
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1011
|
-
const localVarHeaderParameter = {};
|
|
1012
|
-
const localVarQueryParameter = {};
|
|
1013
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1014
|
-
if (ignoreUnknownParams !== undefined) {
|
|
1015
|
-
localVarQueryParameter['ignoreUnknownParams'] = ignoreUnknownParams;
|
|
1016
|
-
}
|
|
1017
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1018
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1019
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1020
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1021
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1022
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqExport, localVarRequestOptions, configuration);
|
|
1023
|
-
return {
|
|
1024
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1025
|
-
options: localVarRequestOptions,
|
|
1026
|
-
};
|
|
1027
|
-
}),
|
|
1028
|
-
getCachedExports: (sessionId_1, reqExportOrCache_1, ...args_1) => __awaiter(this, [sessionId_1, reqExportOrCache_1, ...args_1], void 0, function* (sessionId, reqExportOrCache, options = {}) {
|
|
1029
|
-
(0, common_1.assertParamExists)('getCachedExports', 'sessionId', sessionId);
|
|
1030
|
-
(0, common_1.assertParamExists)('getCachedExports', 'reqExportOrCache', reqExportOrCache);
|
|
1031
|
-
const localVarPath = `/api/v2/session/{sessionId}/export/cache`
|
|
1032
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
1033
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1034
|
-
let baseOptions;
|
|
1035
|
-
if (configuration) {
|
|
1036
|
-
baseOptions = configuration.baseOptions;
|
|
1037
|
-
}
|
|
1038
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1039
|
-
const localVarHeaderParameter = {};
|
|
1040
|
-
const localVarQueryParameter = {};
|
|
1041
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1042
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1043
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1044
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1045
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1046
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1047
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqExportOrCache, localVarRequestOptions, configuration);
|
|
1048
|
-
return {
|
|
1049
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1050
|
-
options: localVarRequestOptions,
|
|
1051
|
-
};
|
|
1052
|
-
}),
|
|
1053
|
-
listExportVersions: (sessionId_1, exportId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, exportId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1], void 0, function* (sessionId, exportId, statusComputation, statusCollect, offset, options = {}) {
|
|
1054
|
-
(0, common_1.assertParamExists)('listExportVersions', 'sessionId', sessionId);
|
|
1055
|
-
(0, common_1.assertParamExists)('listExportVersions', 'exportId', exportId);
|
|
1056
|
-
const localVarPath = `/api/v2/session/{sessionId}/export/{exportId}/list`
|
|
1057
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
1058
|
-
.replace('{exportId}', encodeURIComponent(String(exportId)));
|
|
1059
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1060
|
-
let baseOptions;
|
|
1061
|
-
if (configuration) {
|
|
1062
|
-
baseOptions = configuration.baseOptions;
|
|
1063
|
-
}
|
|
1064
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1065
|
-
const localVarHeaderParameter = {};
|
|
1066
|
-
const localVarQueryParameter = {};
|
|
1067
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1068
|
-
if (statusComputation !== undefined) {
|
|
1069
|
-
localVarQueryParameter['statusComputation'] = statusComputation;
|
|
1070
|
-
}
|
|
1071
|
-
if (statusCollect !== undefined) {
|
|
1072
|
-
localVarQueryParameter['statusCollect'] = statusCollect;
|
|
1073
|
-
}
|
|
1074
|
-
if (offset !== undefined) {
|
|
1075
|
-
localVarQueryParameter['offset'] = offset;
|
|
1076
|
-
}
|
|
1077
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1078
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1079
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1080
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1081
|
-
return {
|
|
1082
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1083
|
-
options: localVarRequestOptions,
|
|
1084
|
-
};
|
|
1085
|
-
}),
|
|
1086
|
-
updateExportDefinitions: (modelId_1, reqExportDefinitions_1, ...args_1) => __awaiter(this, [modelId_1, reqExportDefinitions_1, ...args_1], void 0, function* (modelId, reqExportDefinitions, options = {}) {
|
|
1087
|
-
(0, common_1.assertParamExists)('updateExportDefinitions', 'modelId', modelId);
|
|
1088
|
-
(0, common_1.assertParamExists)('updateExportDefinitions', 'reqExportDefinitions', reqExportDefinitions);
|
|
1089
|
-
const localVarPath = `/api/v2/model/{modelId}/export`
|
|
1090
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1091
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1092
|
-
let baseOptions;
|
|
1093
|
-
if (configuration) {
|
|
1094
|
-
baseOptions = configuration.baseOptions;
|
|
1095
|
-
}
|
|
1096
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1097
|
-
const localVarHeaderParameter = {};
|
|
1098
|
-
const localVarQueryParameter = {};
|
|
1099
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1100
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1101
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1102
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1103
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1104
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1105
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqExportDefinitions, localVarRequestOptions, configuration);
|
|
1106
|
-
return {
|
|
1107
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1108
|
-
options: localVarRequestOptions,
|
|
1109
|
-
};
|
|
1110
|
-
}),
|
|
1111
|
-
};
|
|
1112
|
-
};
|
|
1113
|
-
exports.ExportApiAxiosParamCreator = ExportApiAxiosParamCreator;
|
|
1114
|
-
const ExportApiFp = function (configuration) {
|
|
1115
|
-
const localVarAxiosParamCreator = (0, exports.ExportApiAxiosParamCreator)(configuration);
|
|
1116
|
-
return {
|
|
1117
|
-
computeExports(sessionId, reqExport, ignoreUnknownParams, options) {
|
|
1118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1119
|
-
var _a, _b, _c;
|
|
1120
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.computeExports(sessionId, reqExport, ignoreUnknownParams, options);
|
|
1121
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1122
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.computeExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1123
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1124
|
-
});
|
|
1125
|
-
},
|
|
1126
|
-
getCachedExports(sessionId, reqExportOrCache, options) {
|
|
1127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1128
|
-
var _a, _b, _c;
|
|
1129
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCachedExports(sessionId, reqExportOrCache, options);
|
|
1130
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1131
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.getCachedExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1132
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1133
|
-
});
|
|
1134
|
-
},
|
|
1135
|
-
listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options) {
|
|
1136
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1137
|
-
var _a, _b, _c;
|
|
1138
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options);
|
|
1139
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1140
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.listExportVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1141
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1142
|
-
});
|
|
1143
|
-
},
|
|
1144
|
-
updateExportDefinitions(modelId, reqExportDefinitions, options) {
|
|
1145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1146
|
-
var _a, _b, _c;
|
|
1147
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateExportDefinitions(modelId, reqExportDefinitions, options);
|
|
1148
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1149
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExportApi.updateExportDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1150
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1151
|
-
});
|
|
1152
|
-
},
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
exports.ExportApiFp = ExportApiFp;
|
|
1156
|
-
const ExportApiFactory = function (configuration, basePath, axios) {
|
|
1157
|
-
const localVarFp = (0, exports.ExportApiFp)(configuration);
|
|
1158
|
-
return {
|
|
1159
|
-
computeExports(sessionId, reqExport, ignoreUnknownParams, options) {
|
|
1160
|
-
return localVarFp.computeExports(sessionId, reqExport, ignoreUnknownParams, options).then((request) => request(axios, basePath));
|
|
1161
|
-
},
|
|
1162
|
-
getCachedExports(sessionId, reqExportOrCache, options) {
|
|
1163
|
-
return localVarFp.getCachedExports(sessionId, reqExportOrCache, options).then((request) => request(axios, basePath));
|
|
1164
|
-
},
|
|
1165
|
-
listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options) {
|
|
1166
|
-
return localVarFp.listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options).then((request) => request(axios, basePath));
|
|
1167
|
-
},
|
|
1168
|
-
updateExportDefinitions(modelId, reqExportDefinitions, options) {
|
|
1169
|
-
return localVarFp.updateExportDefinitions(modelId, reqExportDefinitions, options).then((request) => request(axios, basePath));
|
|
1170
|
-
},
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1173
|
-
exports.ExportApiFactory = ExportApiFactory;
|
|
1174
|
-
class ExportApi extends base_2.BaseAPI {
|
|
1175
|
-
computeExports(sessionId, reqExport, ignoreUnknownParams, options) {
|
|
1176
|
-
return (0, exports.ExportApiFp)(this.configuration).computeExports(sessionId, reqExport, ignoreUnknownParams, options).then((request) => request(this.axios, this.basePath));
|
|
1177
|
-
}
|
|
1178
|
-
getCachedExports(sessionId, reqExportOrCache, options) {
|
|
1179
|
-
return (0, exports.ExportApiFp)(this.configuration).getCachedExports(sessionId, reqExportOrCache, options).then((request) => request(this.axios, this.basePath));
|
|
1180
|
-
}
|
|
1181
|
-
listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options) {
|
|
1182
|
-
return (0, exports.ExportApiFp)(this.configuration).listExportVersions(sessionId, exportId, statusComputation, statusCollect, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1183
|
-
}
|
|
1184
|
-
updateExportDefinitions(modelId, reqExportDefinitions, options) {
|
|
1185
|
-
return (0, exports.ExportApiFp)(this.configuration).updateExportDefinitions(modelId, reqExportDefinitions, options).then((request) => request(this.axios, this.basePath));
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
exports.ExportApi = ExportApi;
|
|
1189
|
-
const FileApiAxiosParamCreator = function (configuration) {
|
|
1190
|
-
return {
|
|
1191
|
-
deleteFile: (sessionId_1, paramId_1, fileId_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, fileId_1, ...args_1], void 0, function* (sessionId, paramId, fileId, options = {}) {
|
|
1192
|
-
(0, common_1.assertParamExists)('deleteFile', 'sessionId', sessionId);
|
|
1193
|
-
(0, common_1.assertParamExists)('deleteFile', 'paramId', paramId);
|
|
1194
|
-
(0, common_1.assertParamExists)('deleteFile', 'fileId', fileId);
|
|
1195
|
-
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/{fileId}`
|
|
1196
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
1197
|
-
.replace('{paramId}', encodeURIComponent(String(paramId)))
|
|
1198
|
-
.replace('{fileId}', encodeURIComponent(String(fileId)));
|
|
1199
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1200
|
-
let baseOptions;
|
|
1201
|
-
if (configuration) {
|
|
1202
|
-
baseOptions = configuration.baseOptions;
|
|
1203
|
-
}
|
|
1204
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1205
|
-
const localVarHeaderParameter = {};
|
|
1206
|
-
const localVarQueryParameter = {};
|
|
1207
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1208
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1209
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1210
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1211
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1212
|
-
return {
|
|
1213
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1214
|
-
options: localVarRequestOptions,
|
|
1215
|
-
};
|
|
1216
|
-
}),
|
|
1217
|
-
downloadFile: (sessionId_1, paramId_1, fileId_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, fileId_1, ...args_1], void 0, function* (sessionId, paramId, fileId, options = {}) {
|
|
1218
|
-
(0, common_1.assertParamExists)('downloadFile', 'sessionId', sessionId);
|
|
1219
|
-
(0, common_1.assertParamExists)('downloadFile', 'paramId', paramId);
|
|
1220
|
-
(0, common_1.assertParamExists)('downloadFile', 'fileId', fileId);
|
|
1221
|
-
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/{fileId}`
|
|
1222
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
1223
|
-
.replace('{paramId}', encodeURIComponent(String(paramId)))
|
|
1224
|
-
.replace('{fileId}', encodeURIComponent(String(fileId)));
|
|
1225
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1226
|
-
let baseOptions;
|
|
1227
|
-
if (configuration) {
|
|
1228
|
-
baseOptions = configuration.baseOptions;
|
|
1229
|
-
}
|
|
1230
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1231
|
-
const localVarHeaderParameter = {};
|
|
1232
|
-
const localVarQueryParameter = {};
|
|
1233
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1234
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
1235
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1236
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1237
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1238
|
-
return {
|
|
1239
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1240
|
-
options: localVarRequestOptions,
|
|
1241
|
-
};
|
|
1242
|
-
}),
|
|
1243
|
-
getFileMetadata: (sessionId_1, paramId_1, fileId_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, fileId_1, ...args_1], void 0, function* (sessionId, paramId, fileId, options = {}) {
|
|
1244
|
-
(0, common_1.assertParamExists)('getFileMetadata', 'sessionId', sessionId);
|
|
1245
|
-
(0, common_1.assertParamExists)('getFileMetadata', 'paramId', paramId);
|
|
1246
|
-
(0, common_1.assertParamExists)('getFileMetadata', 'fileId', fileId);
|
|
1247
|
-
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/{fileId}`
|
|
1248
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
1249
|
-
.replace('{paramId}', encodeURIComponent(String(paramId)))
|
|
1250
|
-
.replace('{fileId}', encodeURIComponent(String(fileId)));
|
|
1251
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1252
|
-
let baseOptions;
|
|
1253
|
-
if (configuration) {
|
|
1254
|
-
baseOptions = configuration.baseOptions;
|
|
1255
|
-
}
|
|
1256
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
1257
|
-
const localVarHeaderParameter = {};
|
|
1258
|
-
const localVarQueryParameter = {};
|
|
1259
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1260
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1261
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1262
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1263
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1264
|
-
return {
|
|
1265
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1266
|
-
options: localVarRequestOptions,
|
|
1267
|
-
};
|
|
1268
|
-
}),
|
|
1269
|
-
listFiles: (sessionId_1, paramId_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, paramId_1, offset_1, ...args_1], void 0, function* (sessionId, paramId, offset, options = {}) {
|
|
1270
|
-
(0, common_1.assertParamExists)('listFiles', 'sessionId', sessionId);
|
|
1271
|
-
(0, common_1.assertParamExists)('listFiles', 'paramId', paramId);
|
|
1272
|
-
const localVarPath = `/api/v2/session/{sessionId}/file/{paramId}/list`
|
|
1273
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
1274
|
-
.replace('{paramId}', encodeURIComponent(String(paramId)));
|
|
1275
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1276
|
-
let baseOptions;
|
|
1277
|
-
if (configuration) {
|
|
1278
|
-
baseOptions = configuration.baseOptions;
|
|
1279
|
-
}
|
|
1280
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1281
|
-
const localVarHeaderParameter = {};
|
|
1282
|
-
const localVarQueryParameter = {};
|
|
1283
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1284
|
-
if (offset !== undefined) {
|
|
1285
|
-
localVarQueryParameter['offset'] = offset;
|
|
1286
|
-
}
|
|
1287
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1288
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1289
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1290
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1291
|
-
return {
|
|
1292
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1293
|
-
options: localVarRequestOptions,
|
|
1294
|
-
};
|
|
1295
|
-
}),
|
|
1296
|
-
uploadFile: (sessionId_1, reqFileUpload_1, ...args_1) => __awaiter(this, [sessionId_1, reqFileUpload_1, ...args_1], void 0, function* (sessionId, reqFileUpload, options = {}) {
|
|
1297
|
-
(0, common_1.assertParamExists)('uploadFile', 'sessionId', sessionId);
|
|
1298
|
-
(0, common_1.assertParamExists)('uploadFile', 'reqFileUpload', reqFileUpload);
|
|
1299
|
-
const localVarPath = `/api/v2/session/{sessionId}/file/upload`
|
|
1300
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1307
|
-
const localVarHeaderParameter = {};
|
|
1308
|
-
const localVarQueryParameter = {};
|
|
1309
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1310
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1311
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1312
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1313
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1314
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1315
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqFileUpload, localVarRequestOptions, configuration);
|
|
1316
|
-
return {
|
|
1317
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1318
|
-
options: localVarRequestOptions,
|
|
1319
|
-
};
|
|
1320
|
-
}),
|
|
1321
|
-
};
|
|
1322
|
-
};
|
|
1323
|
-
exports.FileApiAxiosParamCreator = FileApiAxiosParamCreator;
|
|
1324
|
-
const FileApiFp = function (configuration) {
|
|
1325
|
-
const localVarAxiosParamCreator = (0, exports.FileApiAxiosParamCreator)(configuration);
|
|
1326
|
-
return {
|
|
1327
|
-
deleteFile(sessionId, paramId, fileId, options) {
|
|
1328
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1329
|
-
var _a, _b, _c;
|
|
1330
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteFile(sessionId, paramId, fileId, options);
|
|
1331
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1332
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.deleteFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1333
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1334
|
-
});
|
|
1335
|
-
},
|
|
1336
|
-
downloadFile(sessionId, paramId, fileId, options) {
|
|
1337
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
|
-
var _a, _b, _c;
|
|
1339
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadFile(sessionId, paramId, fileId, options);
|
|
1340
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1341
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.downloadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1342
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1343
|
-
});
|
|
1344
|
-
},
|
|
1345
|
-
getFileMetadata(sessionId, paramId, fileId, options) {
|
|
1346
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1347
|
-
var _a, _b, _c;
|
|
1348
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFileMetadata(sessionId, paramId, fileId, options);
|
|
1349
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1350
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.getFileMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1351
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1352
|
-
});
|
|
1353
|
-
},
|
|
1354
|
-
listFiles(sessionId, paramId, offset, options) {
|
|
1355
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1356
|
-
var _a, _b, _c;
|
|
1357
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFiles(sessionId, paramId, offset, options);
|
|
1358
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1359
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.listFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1360
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1361
|
-
});
|
|
1362
|
-
},
|
|
1363
|
-
uploadFile(sessionId, reqFileUpload, options) {
|
|
1364
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1365
|
-
var _a, _b, _c;
|
|
1366
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(sessionId, reqFileUpload, options);
|
|
1367
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1368
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileApi.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1369
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1370
|
-
});
|
|
1371
|
-
},
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
exports.FileApiFp = FileApiFp;
|
|
1375
|
-
const FileApiFactory = function (configuration, basePath, axios) {
|
|
1376
|
-
const localVarFp = (0, exports.FileApiFp)(configuration);
|
|
1377
|
-
return {
|
|
1378
|
-
deleteFile(sessionId, paramId, fileId, options) {
|
|
1379
|
-
return localVarFp.deleteFile(sessionId, paramId, fileId, options).then((request) => request(axios, basePath));
|
|
1380
|
-
},
|
|
1381
|
-
downloadFile(sessionId, paramId, fileId, options) {
|
|
1382
|
-
return localVarFp.downloadFile(sessionId, paramId, fileId, options).then((request) => request(axios, basePath));
|
|
1383
|
-
},
|
|
1384
|
-
getFileMetadata(sessionId, paramId, fileId, options) {
|
|
1385
|
-
return localVarFp.getFileMetadata(sessionId, paramId, fileId, options).then((request) => request(axios, basePath));
|
|
1386
|
-
},
|
|
1387
|
-
listFiles(sessionId, paramId, offset, options) {
|
|
1388
|
-
return localVarFp.listFiles(sessionId, paramId, offset, options).then((request) => request(axios, basePath));
|
|
1389
|
-
},
|
|
1390
|
-
uploadFile(sessionId, reqFileUpload, options) {
|
|
1391
|
-
return localVarFp.uploadFile(sessionId, reqFileUpload, options).then((request) => request(axios, basePath));
|
|
1392
|
-
},
|
|
1393
|
-
};
|
|
1394
|
-
};
|
|
1395
|
-
exports.FileApiFactory = FileApiFactory;
|
|
1396
|
-
class FileApi extends base_2.BaseAPI {
|
|
1397
|
-
deleteFile(sessionId, paramId, fileId, options) {
|
|
1398
|
-
return (0, exports.FileApiFp)(this.configuration).deleteFile(sessionId, paramId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
1399
|
-
}
|
|
1400
|
-
downloadFile(sessionId, paramId, fileId, options) {
|
|
1401
|
-
return (0, exports.FileApiFp)(this.configuration).downloadFile(sessionId, paramId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
1402
|
-
}
|
|
1403
|
-
getFileMetadata(sessionId, paramId, fileId, options) {
|
|
1404
|
-
return (0, exports.FileApiFp)(this.configuration).getFileMetadata(sessionId, paramId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
1405
|
-
}
|
|
1406
|
-
listFiles(sessionId, paramId, offset, options) {
|
|
1407
|
-
return (0, exports.FileApiFp)(this.configuration).listFiles(sessionId, paramId, offset, options).then((request) => request(this.axios, this.basePath));
|
|
1408
|
-
}
|
|
1409
|
-
uploadFile(sessionId, reqFileUpload, options) {
|
|
1410
|
-
return (0, exports.FileApiFp)(this.configuration).uploadFile(sessionId, reqFileUpload, options).then((request) => request(this.axios, this.basePath));
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
exports.FileApi = FileApi;
|
|
1414
|
-
const GltfApiAxiosParamCreator = function (configuration) {
|
|
1415
|
-
return {
|
|
1416
|
-
uploadGltf: (sessionId_1, body_1, conversion_1, ...args_1) => __awaiter(this, [sessionId_1, body_1, conversion_1, ...args_1], void 0, function* (sessionId, body, conversion, options = {}) {
|
|
1417
|
-
(0, common_1.assertParamExists)('uploadGltf', 'sessionId', sessionId);
|
|
1418
|
-
(0, common_1.assertParamExists)('uploadGltf', 'body', body);
|
|
1419
|
-
const localVarPath = `/api/v2/session/{sessionId}/gltf`
|
|
1420
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
1421
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1422
|
-
let baseOptions;
|
|
1423
|
-
if (configuration) {
|
|
1424
|
-
baseOptions = configuration.baseOptions;
|
|
1425
|
-
}
|
|
1426
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1427
|
-
const localVarHeaderParameter = {};
|
|
1428
|
-
const localVarQueryParameter = {};
|
|
1429
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1430
|
-
if (conversion !== undefined) {
|
|
1431
|
-
localVarQueryParameter['conversion'] = conversion;
|
|
1432
|
-
}
|
|
1433
|
-
localVarHeaderParameter['Content-Type'] = 'model/gltf-binary';
|
|
1434
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1435
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1436
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1437
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1438
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1439
|
-
return {
|
|
1440
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1441
|
-
options: localVarRequestOptions,
|
|
1442
|
-
};
|
|
1443
|
-
}),
|
|
1444
|
-
};
|
|
1445
|
-
};
|
|
1446
|
-
exports.GltfApiAxiosParamCreator = GltfApiAxiosParamCreator;
|
|
1447
|
-
const GltfApiFp = function (configuration) {
|
|
1448
|
-
const localVarAxiosParamCreator = (0, exports.GltfApiAxiosParamCreator)(configuration);
|
|
1449
|
-
return {
|
|
1450
|
-
uploadGltf(sessionId, body, conversion, options) {
|
|
1451
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
-
var _a, _b, _c;
|
|
1453
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadGltf(sessionId, body, conversion, options);
|
|
1454
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1455
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GltfApi.uploadGltf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1456
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1457
|
-
});
|
|
1458
|
-
},
|
|
1459
|
-
};
|
|
1460
|
-
};
|
|
1461
|
-
exports.GltfApiFp = GltfApiFp;
|
|
1462
|
-
const GltfApiFactory = function (configuration, basePath, axios) {
|
|
1463
|
-
const localVarFp = (0, exports.GltfApiFp)(configuration);
|
|
1464
|
-
return {
|
|
1465
|
-
uploadGltf(sessionId, body, conversion, options) {
|
|
1466
|
-
return localVarFp.uploadGltf(sessionId, body, conversion, options).then((request) => request(axios, basePath));
|
|
1467
|
-
},
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
|
-
exports.GltfApiFactory = GltfApiFactory;
|
|
1471
|
-
class GltfApi extends base_2.BaseAPI {
|
|
1472
|
-
uploadGltf(sessionId, body, conversion, options) {
|
|
1473
|
-
return (0, exports.GltfApiFp)(this.configuration).uploadGltf(sessionId, body, conversion, options).then((request) => request(this.axios, this.basePath));
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
exports.GltfApi = GltfApi;
|
|
1477
|
-
const LogApiAxiosParamCreator = function (configuration) {
|
|
1478
|
-
return {
|
|
1479
|
-
logMessage: (sessionId_1, reqLogMessage_1, ...args_1) => __awaiter(this, [sessionId_1, reqLogMessage_1, ...args_1], void 0, function* (sessionId, reqLogMessage, options = {}) {
|
|
1480
|
-
(0, common_1.assertParamExists)('logMessage', 'sessionId', sessionId);
|
|
1481
|
-
(0, common_1.assertParamExists)('logMessage', 'reqLogMessage', reqLogMessage);
|
|
1482
|
-
const localVarPath = `/api/v2/session/{sessionId}/log/message`
|
|
1483
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
1484
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1485
|
-
let baseOptions;
|
|
1486
|
-
if (configuration) {
|
|
1487
|
-
baseOptions = configuration.baseOptions;
|
|
1488
|
-
}
|
|
1489
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1490
|
-
const localVarHeaderParameter = {};
|
|
1491
|
-
const localVarQueryParameter = {};
|
|
1492
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1493
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1494
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1495
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1496
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1497
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1498
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqLogMessage, localVarRequestOptions, configuration);
|
|
1499
|
-
return {
|
|
1500
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1501
|
-
options: localVarRequestOptions,
|
|
1502
|
-
};
|
|
1503
|
-
}),
|
|
1504
|
-
};
|
|
1505
|
-
};
|
|
1506
|
-
exports.LogApiAxiosParamCreator = LogApiAxiosParamCreator;
|
|
1507
|
-
const LogApiFp = function (configuration) {
|
|
1508
|
-
const localVarAxiosParamCreator = (0, exports.LogApiAxiosParamCreator)(configuration);
|
|
1509
|
-
return {
|
|
1510
|
-
logMessage(sessionId, reqLogMessage, options) {
|
|
1511
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1512
|
-
var _a, _b, _c;
|
|
1513
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.logMessage(sessionId, reqLogMessage, options);
|
|
1514
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1515
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LogApi.logMessage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1516
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1517
|
-
});
|
|
1518
|
-
},
|
|
1519
|
-
};
|
|
1520
|
-
};
|
|
1521
|
-
exports.LogApiFp = LogApiFp;
|
|
1522
|
-
const LogApiFactory = function (configuration, basePath, axios) {
|
|
1523
|
-
const localVarFp = (0, exports.LogApiFp)(configuration);
|
|
1524
|
-
return {
|
|
1525
|
-
logMessage(sessionId, reqLogMessage, options) {
|
|
1526
|
-
return localVarFp.logMessage(sessionId, reqLogMessage, options).then((request) => request(axios, basePath));
|
|
1527
|
-
},
|
|
1528
|
-
};
|
|
1529
|
-
};
|
|
1530
|
-
exports.LogApiFactory = LogApiFactory;
|
|
1531
|
-
class LogApi extends base_2.BaseAPI {
|
|
1532
|
-
logMessage(sessionId, reqLogMessage, options) {
|
|
1533
|
-
return (0, exports.LogApiFp)(this.configuration).logMessage(sessionId, reqLogMessage, options).then((request) => request(this.axios, this.basePath));
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
exports.LogApi = LogApi;
|
|
1537
|
-
const ModelApiAxiosParamCreator = function (configuration) {
|
|
1538
|
-
return {
|
|
1539
|
-
cleanupExports: (modelId_1, untilLastSeen_1, ...args_1) => __awaiter(this, [modelId_1, untilLastSeen_1, ...args_1], void 0, function* (modelId, untilLastSeen, options = {}) {
|
|
1540
|
-
(0, common_1.assertParamExists)('cleanupExports', 'modelId', modelId);
|
|
1541
|
-
(0, common_1.assertParamExists)('cleanupExports', 'untilLastSeen', untilLastSeen);
|
|
1542
|
-
const localVarPath = `/api/v2/model/{modelId}/cleanup/export`
|
|
1543
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1544
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1545
|
-
let baseOptions;
|
|
1546
|
-
if (configuration) {
|
|
1547
|
-
baseOptions = configuration.baseOptions;
|
|
1548
|
-
}
|
|
1549
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1550
|
-
const localVarHeaderParameter = {};
|
|
1551
|
-
const localVarQueryParameter = {};
|
|
1552
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1553
|
-
if (untilLastSeen !== undefined) {
|
|
1554
|
-
localVarQueryParameter['untilLastSeen'] = untilLastSeen;
|
|
1555
|
-
}
|
|
1556
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1557
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1558
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1559
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1560
|
-
return {
|
|
1561
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1562
|
-
options: localVarRequestOptions,
|
|
1563
|
-
};
|
|
1564
|
-
}),
|
|
1565
|
-
cleanupOutputs: (modelId_1, untilLastSeen_1, ...args_1) => __awaiter(this, [modelId_1, untilLastSeen_1, ...args_1], void 0, function* (modelId, untilLastSeen, options = {}) {
|
|
1566
|
-
(0, common_1.assertParamExists)('cleanupOutputs', 'modelId', modelId);
|
|
1567
|
-
(0, common_1.assertParamExists)('cleanupOutputs', 'untilLastSeen', untilLastSeen);
|
|
1568
|
-
const localVarPath = `/api/v2/model/{modelId}/cleanup/output`
|
|
1569
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1570
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1571
|
-
let baseOptions;
|
|
1572
|
-
if (configuration) {
|
|
1573
|
-
baseOptions = configuration.baseOptions;
|
|
1574
|
-
}
|
|
1575
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1576
|
-
const localVarHeaderParameter = {};
|
|
1577
|
-
const localVarQueryParameter = {};
|
|
1578
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1579
|
-
if (untilLastSeen !== undefined) {
|
|
1580
|
-
localVarQueryParameter['untilLastSeen'] = untilLastSeen;
|
|
1581
|
-
}
|
|
1582
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1583
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1584
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1585
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1586
|
-
return {
|
|
1587
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1588
|
-
options: localVarRequestOptions,
|
|
1589
|
-
};
|
|
1590
|
-
}),
|
|
1591
|
-
cleanupTextures: (modelId_1, untilLastSeen_1, ...args_1) => __awaiter(this, [modelId_1, untilLastSeen_1, ...args_1], void 0, function* (modelId, untilLastSeen, options = {}) {
|
|
1592
|
-
(0, common_1.assertParamExists)('cleanupTextures', 'modelId', modelId);
|
|
1593
|
-
(0, common_1.assertParamExists)('cleanupTextures', 'untilLastSeen', untilLastSeen);
|
|
1594
|
-
const localVarPath = `/api/v2/model/{modelId}/cleanup/texture`
|
|
1595
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1596
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1597
|
-
let baseOptions;
|
|
1598
|
-
if (configuration) {
|
|
1599
|
-
baseOptions = configuration.baseOptions;
|
|
1600
|
-
}
|
|
1601
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1602
|
-
const localVarHeaderParameter = {};
|
|
1603
|
-
const localVarQueryParameter = {};
|
|
1604
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1605
|
-
if (untilLastSeen !== undefined) {
|
|
1606
|
-
localVarQueryParameter['untilLastSeen'] = untilLastSeen;
|
|
1607
|
-
}
|
|
1608
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1609
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1610
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1611
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1612
|
-
return {
|
|
1613
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1614
|
-
options: localVarRequestOptions,
|
|
1615
|
-
};
|
|
1616
|
-
}),
|
|
1617
|
-
createModel: (reqModel_1, ...args_1) => __awaiter(this, [reqModel_1, ...args_1], void 0, function* (reqModel, options = {}) {
|
|
1618
|
-
(0, common_1.assertParamExists)('createModel', 'reqModel', reqModel);
|
|
1619
|
-
const localVarPath = `/api/v2/model`;
|
|
1620
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1621
|
-
let baseOptions;
|
|
1622
|
-
if (configuration) {
|
|
1623
|
-
baseOptions = configuration.baseOptions;
|
|
1624
|
-
}
|
|
1625
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1626
|
-
const localVarHeaderParameter = {};
|
|
1627
|
-
const localVarQueryParameter = {};
|
|
1628
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1629
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1630
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1631
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1632
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1633
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1634
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModel, localVarRequestOptions, configuration);
|
|
1635
|
-
return {
|
|
1636
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1637
|
-
options: localVarRequestOptions,
|
|
1638
|
-
};
|
|
1639
|
-
}),
|
|
1640
|
-
createModelConfig: (modelId_1, reqConfigure_1, ...args_1) => __awaiter(this, [modelId_1, reqConfigure_1, ...args_1], void 0, function* (modelId, reqConfigure, options = {}) {
|
|
1641
|
-
(0, common_1.assertParamExists)('createModelConfig', 'modelId', modelId);
|
|
1642
|
-
(0, common_1.assertParamExists)('createModelConfig', 'reqConfigure', reqConfigure);
|
|
1643
|
-
const localVarPath = `/api/v2/model/{modelId}/config`
|
|
1644
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1645
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1646
|
-
let baseOptions;
|
|
1647
|
-
if (configuration) {
|
|
1648
|
-
baseOptions = configuration.baseOptions;
|
|
1649
|
-
}
|
|
1650
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1651
|
-
const localVarHeaderParameter = {};
|
|
1652
|
-
const localVarQueryParameter = {};
|
|
1653
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1654
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1655
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1656
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1657
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1658
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1659
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqConfigure, localVarRequestOptions, configuration);
|
|
1660
|
-
return {
|
|
1661
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1662
|
-
options: localVarRequestOptions,
|
|
1663
|
-
};
|
|
1664
|
-
}),
|
|
1665
|
-
deleteModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1666
|
-
(0, common_1.assertParamExists)('deleteModel', 'modelId', modelId);
|
|
1667
|
-
const localVarPath = `/api/v2/model/{modelId}`
|
|
1668
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1669
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1670
|
-
let baseOptions;
|
|
1671
|
-
if (configuration) {
|
|
1672
|
-
baseOptions = configuration.baseOptions;
|
|
1673
|
-
}
|
|
1674
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1675
|
-
const localVarHeaderParameter = {};
|
|
1676
|
-
const localVarQueryParameter = {};
|
|
1677
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1678
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1679
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1680
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1681
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1682
|
-
return {
|
|
1683
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1684
|
-
options: localVarRequestOptions,
|
|
1685
|
-
};
|
|
1686
|
-
}),
|
|
1687
|
-
downloadModelFile: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1688
|
-
(0, common_1.assertParamExists)('downloadModelFile', 'modelId', modelId);
|
|
1689
|
-
const localVarPath = `/api/v2/model/{modelId}/file/download`
|
|
1690
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1691
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1692
|
-
let baseOptions;
|
|
1693
|
-
if (configuration) {
|
|
1694
|
-
baseOptions = configuration.baseOptions;
|
|
1695
|
-
}
|
|
1696
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1697
|
-
const localVarHeaderParameter = {};
|
|
1698
|
-
const localVarQueryParameter = {};
|
|
1699
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1700
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
1701
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1702
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1703
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1704
|
-
return {
|
|
1705
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1706
|
-
options: localVarRequestOptions,
|
|
1707
|
-
};
|
|
1708
|
-
}),
|
|
1709
|
-
getCleanupStatus: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1710
|
-
(0, common_1.assertParamExists)('getCleanupStatus', 'modelId', modelId);
|
|
1711
|
-
const localVarPath = `/api/v2/model/{modelId}/cleanup/status`
|
|
1712
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1713
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1714
|
-
let baseOptions;
|
|
1715
|
-
if (configuration) {
|
|
1716
|
-
baseOptions = configuration.baseOptions;
|
|
1717
|
-
}
|
|
1718
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1719
|
-
const localVarHeaderParameter = {};
|
|
1720
|
-
const localVarQueryParameter = {};
|
|
1721
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1722
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1723
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1724
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1725
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1726
|
-
return {
|
|
1727
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1728
|
-
options: localVarRequestOptions,
|
|
1729
|
-
};
|
|
1730
|
-
}),
|
|
1731
|
-
getModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1732
|
-
(0, common_1.assertParamExists)('getModel', 'modelId', modelId);
|
|
1733
|
-
const localVarPath = `/api/v2/model/{modelId}`
|
|
1734
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1735
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1736
|
-
let baseOptions;
|
|
1737
|
-
if (configuration) {
|
|
1738
|
-
baseOptions = configuration.baseOptions;
|
|
1739
|
-
}
|
|
1740
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1741
|
-
const localVarHeaderParameter = {};
|
|
1742
|
-
const localVarQueryParameter = {};
|
|
1743
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1744
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1745
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1746
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1747
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1748
|
-
return {
|
|
1749
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1750
|
-
options: localVarRequestOptions,
|
|
1751
|
-
};
|
|
1752
|
-
}),
|
|
1753
|
-
getModelComputations: (modelId_1, order_1, timestampFrom_1, timestampTo_1, status_1, type_1, limit_1, strictLimit_1, offset_1, ...args_1) => __awaiter(this, [modelId_1, order_1, timestampFrom_1, timestampTo_1, status_1, type_1, limit_1, strictLimit_1, offset_1, ...args_1], void 0, function* (modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options = {}) {
|
|
1754
|
-
(0, common_1.assertParamExists)('getModelComputations', 'modelId', modelId);
|
|
1755
|
-
const localVarPath = `/api/v2/model/{modelId}/computations`
|
|
1756
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1757
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1758
|
-
let baseOptions;
|
|
1759
|
-
if (configuration) {
|
|
1760
|
-
baseOptions = configuration.baseOptions;
|
|
1761
|
-
}
|
|
1762
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1763
|
-
const localVarHeaderParameter = {};
|
|
1764
|
-
const localVarQueryParameter = {};
|
|
1765
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1766
|
-
if (order !== undefined) {
|
|
1767
|
-
localVarQueryParameter['order'] = order;
|
|
1768
|
-
}
|
|
1769
|
-
if (timestampFrom !== undefined) {
|
|
1770
|
-
localVarQueryParameter['timestamp_from'] = timestampFrom;
|
|
1771
|
-
}
|
|
1772
|
-
if (timestampTo !== undefined) {
|
|
1773
|
-
localVarQueryParameter['timestamp_to'] = timestampTo;
|
|
1774
|
-
}
|
|
1775
|
-
if (status !== undefined) {
|
|
1776
|
-
localVarQueryParameter['status'] = status;
|
|
1777
|
-
}
|
|
1778
|
-
if (type !== undefined) {
|
|
1779
|
-
localVarQueryParameter['type'] = type;
|
|
1780
|
-
}
|
|
1781
|
-
if (limit !== undefined) {
|
|
1782
|
-
localVarQueryParameter['limit'] = limit;
|
|
1783
|
-
}
|
|
1784
|
-
if (strictLimit !== undefined) {
|
|
1785
|
-
localVarQueryParameter['strict_limit'] = strictLimit;
|
|
1786
|
-
}
|
|
1787
|
-
if (offset !== undefined) {
|
|
1788
|
-
localVarQueryParameter['offset'] = offset;
|
|
1789
|
-
}
|
|
1790
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1791
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1792
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1793
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1794
|
-
return {
|
|
1795
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1796
|
-
options: localVarRequestOptions,
|
|
1797
|
-
};
|
|
1798
|
-
}),
|
|
1799
|
-
getModelConfig: (modelId_1, xShapediverNoconvert_1, xShapediverUseconfigversion_1, xShapediverBuildversion_1, ...args_1) => __awaiter(this, [modelId_1, xShapediverNoconvert_1, xShapediverUseconfigversion_1, xShapediverBuildversion_1, ...args_1], void 0, function* (modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options = {}) {
|
|
1800
|
-
(0, common_1.assertParamExists)('getModelConfig', 'modelId', modelId);
|
|
1801
|
-
const localVarPath = `/api/v2/model/{modelId}/config`
|
|
1802
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1803
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1804
|
-
let baseOptions;
|
|
1805
|
-
if (configuration) {
|
|
1806
|
-
baseOptions = configuration.baseOptions;
|
|
1807
|
-
}
|
|
1808
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1809
|
-
const localVarHeaderParameter = {};
|
|
1810
|
-
const localVarQueryParameter = {};
|
|
1811
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1812
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1813
|
-
if (xShapediverNoconvert != null) {
|
|
1814
|
-
localVarHeaderParameter['x-shapediver-noconvert'] = typeof xShapediverNoconvert === 'string'
|
|
1815
|
-
? xShapediverNoconvert
|
|
1816
|
-
: JSON.stringify(xShapediverNoconvert, common_1.replaceWithSerializableTypeIfNeeded);
|
|
1817
|
-
}
|
|
1818
|
-
if (xShapediverUseconfigversion != null) {
|
|
1819
|
-
localVarHeaderParameter['x-shapediver-useconfigversion'] = String(xShapediverUseconfigversion);
|
|
1820
|
-
}
|
|
1821
|
-
if (xShapediverBuildversion != null) {
|
|
1822
|
-
localVarHeaderParameter['x-shapediver-buildversion'] = String(xShapediverBuildversion);
|
|
1823
|
-
}
|
|
1824
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1825
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1826
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1827
|
-
return {
|
|
1828
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1829
|
-
options: localVarRequestOptions,
|
|
1830
|
-
};
|
|
1831
|
-
}),
|
|
1832
|
-
listModels: (modelStatus_1, offset_1, ...args_1) => __awaiter(this, [modelStatus_1, offset_1, ...args_1], void 0, function* (modelStatus, offset, options = {}) {
|
|
1833
|
-
const localVarPath = `/api/v2/model/list`;
|
|
1834
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1835
|
-
let baseOptions;
|
|
1836
|
-
if (configuration) {
|
|
1837
|
-
baseOptions = configuration.baseOptions;
|
|
1838
|
-
}
|
|
1839
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1840
|
-
const localVarHeaderParameter = {};
|
|
1841
|
-
const localVarQueryParameter = {};
|
|
1842
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1843
|
-
if (modelStatus !== undefined) {
|
|
1844
|
-
localVarQueryParameter['modelStatus'] = modelStatus;
|
|
1845
|
-
}
|
|
1846
|
-
if (offset !== undefined) {
|
|
1847
|
-
localVarQueryParameter['offset'] = offset;
|
|
1848
|
-
}
|
|
1849
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1850
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1851
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1852
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1853
|
-
return {
|
|
1854
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1855
|
-
options: localVarRequestOptions,
|
|
1856
|
-
};
|
|
1857
|
-
}),
|
|
1858
|
-
restoreModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
1859
|
-
(0, common_1.assertParamExists)('restoreModel', 'modelId', modelId);
|
|
1860
|
-
const localVarPath = `/api/v2/model/{modelId}/restore`
|
|
1861
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1862
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1863
|
-
let baseOptions;
|
|
1864
|
-
if (configuration) {
|
|
1865
|
-
baseOptions = configuration.baseOptions;
|
|
1866
|
-
}
|
|
1867
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1868
|
-
const localVarHeaderParameter = {};
|
|
1869
|
-
const localVarQueryParameter = {};
|
|
1870
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1871
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1872
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1873
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1874
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1875
|
-
return {
|
|
1876
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1877
|
-
options: localVarRequestOptions,
|
|
1878
|
-
};
|
|
1879
|
-
}),
|
|
1880
|
-
updateModel: (modelId_1, reqModel_1, ...args_1) => __awaiter(this, [modelId_1, reqModel_1, ...args_1], void 0, function* (modelId, reqModel, options = {}) {
|
|
1881
|
-
(0, common_1.assertParamExists)('updateModel', 'modelId', modelId);
|
|
1882
|
-
(0, common_1.assertParamExists)('updateModel', 'reqModel', reqModel);
|
|
1883
|
-
const localVarPath = `/api/v2/model/{modelId}`
|
|
1884
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1885
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1886
|
-
let baseOptions;
|
|
1887
|
-
if (configuration) {
|
|
1888
|
-
baseOptions = configuration.baseOptions;
|
|
1889
|
-
}
|
|
1890
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1891
|
-
const localVarHeaderParameter = {};
|
|
1892
|
-
const localVarQueryParameter = {};
|
|
1893
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1894
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1895
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1896
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1897
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1898
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1899
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModel, localVarRequestOptions, configuration);
|
|
1900
|
-
return {
|
|
1901
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1902
|
-
options: localVarRequestOptions,
|
|
1903
|
-
};
|
|
1904
|
-
}),
|
|
1905
|
-
updateModelConfig: (modelId_1, reqConfigure_1, ...args_1) => __awaiter(this, [modelId_1, reqConfigure_1, ...args_1], void 0, function* (modelId, reqConfigure, options = {}) {
|
|
1906
|
-
(0, common_1.assertParamExists)('updateModelConfig', 'modelId', modelId);
|
|
1907
|
-
(0, common_1.assertParamExists)('updateModelConfig', 'reqConfigure', reqConfigure);
|
|
1908
|
-
const localVarPath = `/api/v2/model/{modelId}/config`
|
|
1909
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1910
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1911
|
-
let baseOptions;
|
|
1912
|
-
if (configuration) {
|
|
1913
|
-
baseOptions = configuration.baseOptions;
|
|
1914
|
-
}
|
|
1915
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1916
|
-
const localVarHeaderParameter = {};
|
|
1917
|
-
const localVarQueryParameter = {};
|
|
1918
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1919
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1920
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1921
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1922
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1923
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1924
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqConfigure, localVarRequestOptions, configuration);
|
|
1925
|
-
return {
|
|
1926
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1927
|
-
options: localVarRequestOptions,
|
|
1928
|
-
};
|
|
1929
|
-
}),
|
|
1930
|
-
updateParameterDefaultValues: (modelId_1, reqCustomization_1, ignoreUnknownParams_1, ...args_1) => __awaiter(this, [modelId_1, reqCustomization_1, ignoreUnknownParams_1, ...args_1], void 0, function* (modelId, reqCustomization, ignoreUnknownParams, options = {}) {
|
|
1931
|
-
(0, common_1.assertParamExists)('updateParameterDefaultValues', 'modelId', modelId);
|
|
1932
|
-
(0, common_1.assertParamExists)('updateParameterDefaultValues', 'reqCustomization', reqCustomization);
|
|
1933
|
-
const localVarPath = `/api/v2/model/{modelId}/parameter/defval`
|
|
1934
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1935
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1936
|
-
let baseOptions;
|
|
1937
|
-
if (configuration) {
|
|
1938
|
-
baseOptions = configuration.baseOptions;
|
|
1939
|
-
}
|
|
1940
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1941
|
-
const localVarHeaderParameter = {};
|
|
1942
|
-
const localVarQueryParameter = {};
|
|
1943
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1944
|
-
if (ignoreUnknownParams !== undefined) {
|
|
1945
|
-
localVarQueryParameter['ignoreUnknownParams'] = ignoreUnknownParams;
|
|
1946
|
-
}
|
|
1947
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1948
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1949
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1950
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1951
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1952
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomization, localVarRequestOptions, configuration);
|
|
1953
|
-
return {
|
|
1954
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1955
|
-
options: localVarRequestOptions,
|
|
1956
|
-
};
|
|
1957
|
-
}),
|
|
1958
|
-
updateParameterDefinitions: (modelId_1, reqParameterDefinitions_1, ...args_1) => __awaiter(this, [modelId_1, reqParameterDefinitions_1, ...args_1], void 0, function* (modelId, reqParameterDefinitions, options = {}) {
|
|
1959
|
-
(0, common_1.assertParamExists)('updateParameterDefinitions', 'modelId', modelId);
|
|
1960
|
-
(0, common_1.assertParamExists)('updateParameterDefinitions', 'reqParameterDefinitions', reqParameterDefinitions);
|
|
1961
|
-
const localVarPath = `/api/v2/model/{modelId}/parameter`
|
|
1962
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
1963
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1964
|
-
let baseOptions;
|
|
1965
|
-
if (configuration) {
|
|
1966
|
-
baseOptions = configuration.baseOptions;
|
|
1967
|
-
}
|
|
1968
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1969
|
-
const localVarHeaderParameter = {};
|
|
1970
|
-
const localVarQueryParameter = {};
|
|
1971
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1972
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1973
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1974
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1975
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1976
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1977
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqParameterDefinitions, localVarRequestOptions, configuration);
|
|
1978
|
-
return {
|
|
1979
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1980
|
-
options: localVarRequestOptions,
|
|
1981
|
-
};
|
|
1982
|
-
}),
|
|
1983
|
-
};
|
|
1984
|
-
};
|
|
1985
|
-
exports.ModelApiAxiosParamCreator = ModelApiAxiosParamCreator;
|
|
1986
|
-
const ModelApiFp = function (configuration) {
|
|
1987
|
-
const localVarAxiosParamCreator = (0, exports.ModelApiAxiosParamCreator)(configuration);
|
|
1988
|
-
return {
|
|
1989
|
-
cleanupExports(modelId, untilLastSeen, options) {
|
|
1990
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1991
|
-
var _a, _b, _c;
|
|
1992
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupExports(modelId, untilLastSeen, options);
|
|
1993
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1994
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.cleanupExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1995
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1996
|
-
});
|
|
1997
|
-
},
|
|
1998
|
-
cleanupOutputs(modelId, untilLastSeen, options) {
|
|
1999
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2000
|
-
var _a, _b, _c;
|
|
2001
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupOutputs(modelId, untilLastSeen, options);
|
|
2002
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2003
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.cleanupOutputs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2004
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2005
|
-
});
|
|
2006
|
-
},
|
|
2007
|
-
cleanupTextures(modelId, untilLastSeen, options) {
|
|
2008
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2009
|
-
var _a, _b, _c;
|
|
2010
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupTextures(modelId, untilLastSeen, options);
|
|
2011
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2012
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.cleanupTextures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2013
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2014
|
-
});
|
|
2015
|
-
},
|
|
2016
|
-
createModel(reqModel, options) {
|
|
2017
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2018
|
-
var _a, _b, _c;
|
|
2019
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createModel(reqModel, options);
|
|
2020
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2021
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.createModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2022
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2023
|
-
});
|
|
2024
|
-
},
|
|
2025
|
-
createModelConfig(modelId, reqConfigure, options) {
|
|
2026
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
-
var _a, _b, _c;
|
|
2028
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createModelConfig(modelId, reqConfigure, options);
|
|
2029
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2030
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.createModelConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2031
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2032
|
-
});
|
|
2033
|
-
},
|
|
2034
|
-
deleteModel(modelId, options) {
|
|
2035
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2036
|
-
var _a, _b, _c;
|
|
2037
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteModel(modelId, options);
|
|
2038
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2039
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.deleteModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2040
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2041
|
-
});
|
|
2042
|
-
},
|
|
2043
|
-
downloadModelFile(modelId, options) {
|
|
2044
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2045
|
-
var _a, _b, _c;
|
|
2046
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadModelFile(modelId, options);
|
|
2047
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2048
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.downloadModelFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2049
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2050
|
-
});
|
|
2051
|
-
},
|
|
2052
|
-
getCleanupStatus(modelId, options) {
|
|
2053
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2054
|
-
var _a, _b, _c;
|
|
2055
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCleanupStatus(modelId, options);
|
|
2056
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2057
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getCleanupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2058
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2059
|
-
});
|
|
2060
|
-
},
|
|
2061
|
-
getModel(modelId, options) {
|
|
2062
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2063
|
-
var _a, _b, _c;
|
|
2064
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModel(modelId, options);
|
|
2065
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2066
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2067
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2068
|
-
});
|
|
2069
|
-
},
|
|
2070
|
-
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options) {
|
|
2071
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2072
|
-
var _a, _b, _c;
|
|
2073
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options);
|
|
2074
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2075
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getModelComputations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2076
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2077
|
-
});
|
|
2078
|
-
},
|
|
2079
|
-
getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options) {
|
|
2080
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2081
|
-
var _a, _b, _c;
|
|
2082
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options);
|
|
2083
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2084
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.getModelConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2085
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2086
|
-
});
|
|
2087
|
-
},
|
|
2088
|
-
listModels(modelStatus, offset, options) {
|
|
2089
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2090
|
-
var _a, _b, _c;
|
|
2091
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listModels(modelStatus, offset, options);
|
|
2092
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2093
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.listModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2094
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2095
|
-
});
|
|
2096
|
-
},
|
|
2097
|
-
restoreModel(modelId, options) {
|
|
2098
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2099
|
-
var _a, _b, _c;
|
|
2100
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreModel(modelId, options);
|
|
2101
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2102
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.restoreModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2103
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2104
|
-
});
|
|
2105
|
-
},
|
|
2106
|
-
updateModel(modelId, reqModel, options) {
|
|
2107
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2108
|
-
var _a, _b, _c;
|
|
2109
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModel(modelId, reqModel, options);
|
|
2110
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2111
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2112
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2113
|
-
});
|
|
2114
|
-
},
|
|
2115
|
-
updateModelConfig(modelId, reqConfigure, options) {
|
|
2116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2117
|
-
var _a, _b, _c;
|
|
2118
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModelConfig(modelId, reqConfigure, options);
|
|
2119
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2120
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateModelConfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2121
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2122
|
-
});
|
|
2123
|
-
},
|
|
2124
|
-
updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, options) {
|
|
2125
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2126
|
-
var _a, _b, _c;
|
|
2127
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, options);
|
|
2128
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2129
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateParameterDefaultValues']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2130
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2131
|
-
});
|
|
2132
|
-
},
|
|
2133
|
-
updateParameterDefinitions(modelId, reqParameterDefinitions, options) {
|
|
2134
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2135
|
-
var _a, _b, _c;
|
|
2136
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateParameterDefinitions(modelId, reqParameterDefinitions, options);
|
|
2137
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2138
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelApi.updateParameterDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2139
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2140
|
-
});
|
|
2141
|
-
},
|
|
2142
|
-
};
|
|
2143
|
-
};
|
|
2144
|
-
exports.ModelApiFp = ModelApiFp;
|
|
2145
|
-
const ModelApiFactory = function (configuration, basePath, axios) {
|
|
2146
|
-
const localVarFp = (0, exports.ModelApiFp)(configuration);
|
|
2147
|
-
return {
|
|
2148
|
-
cleanupExports(modelId, untilLastSeen, options) {
|
|
2149
|
-
return localVarFp.cleanupExports(modelId, untilLastSeen, options).then((request) => request(axios, basePath));
|
|
2150
|
-
},
|
|
2151
|
-
cleanupOutputs(modelId, untilLastSeen, options) {
|
|
2152
|
-
return localVarFp.cleanupOutputs(modelId, untilLastSeen, options).then((request) => request(axios, basePath));
|
|
2153
|
-
},
|
|
2154
|
-
cleanupTextures(modelId, untilLastSeen, options) {
|
|
2155
|
-
return localVarFp.cleanupTextures(modelId, untilLastSeen, options).then((request) => request(axios, basePath));
|
|
2156
|
-
},
|
|
2157
|
-
createModel(reqModel, options) {
|
|
2158
|
-
return localVarFp.createModel(reqModel, options).then((request) => request(axios, basePath));
|
|
2159
|
-
},
|
|
2160
|
-
createModelConfig(modelId, reqConfigure, options) {
|
|
2161
|
-
return localVarFp.createModelConfig(modelId, reqConfigure, options).then((request) => request(axios, basePath));
|
|
2162
|
-
},
|
|
2163
|
-
deleteModel(modelId, options) {
|
|
2164
|
-
return localVarFp.deleteModel(modelId, options).then((request) => request(axios, basePath));
|
|
2165
|
-
},
|
|
2166
|
-
downloadModelFile(modelId, options) {
|
|
2167
|
-
return localVarFp.downloadModelFile(modelId, options).then((request) => request(axios, basePath));
|
|
2168
|
-
},
|
|
2169
|
-
getCleanupStatus(modelId, options) {
|
|
2170
|
-
return localVarFp.getCleanupStatus(modelId, options).then((request) => request(axios, basePath));
|
|
2171
|
-
},
|
|
2172
|
-
getModel(modelId, options) {
|
|
2173
|
-
return localVarFp.getModel(modelId, options).then((request) => request(axios, basePath));
|
|
2174
|
-
},
|
|
2175
|
-
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options) {
|
|
2176
|
-
return localVarFp.getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options).then((request) => request(axios, basePath));
|
|
2177
|
-
},
|
|
2178
|
-
getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options) {
|
|
2179
|
-
return localVarFp.getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options).then((request) => request(axios, basePath));
|
|
2180
|
-
},
|
|
2181
|
-
listModels(modelStatus, offset, options) {
|
|
2182
|
-
return localVarFp.listModels(modelStatus, offset, options).then((request) => request(axios, basePath));
|
|
2183
|
-
},
|
|
2184
|
-
restoreModel(modelId, options) {
|
|
2185
|
-
return localVarFp.restoreModel(modelId, options).then((request) => request(axios, basePath));
|
|
2186
|
-
},
|
|
2187
|
-
updateModel(modelId, reqModel, options) {
|
|
2188
|
-
return localVarFp.updateModel(modelId, reqModel, options).then((request) => request(axios, basePath));
|
|
2189
|
-
},
|
|
2190
|
-
updateModelConfig(modelId, reqConfigure, options) {
|
|
2191
|
-
return localVarFp.updateModelConfig(modelId, reqConfigure, options).then((request) => request(axios, basePath));
|
|
2192
|
-
},
|
|
2193
|
-
updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, options) {
|
|
2194
|
-
return localVarFp.updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, options).then((request) => request(axios, basePath));
|
|
2195
|
-
},
|
|
2196
|
-
updateParameterDefinitions(modelId, reqParameterDefinitions, options) {
|
|
2197
|
-
return localVarFp.updateParameterDefinitions(modelId, reqParameterDefinitions, options).then((request) => request(axios, basePath));
|
|
2198
|
-
},
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
exports.ModelApiFactory = ModelApiFactory;
|
|
2202
|
-
class ModelApi extends base_2.BaseAPI {
|
|
2203
|
-
cleanupExports(modelId, untilLastSeen, options) {
|
|
2204
|
-
return (0, exports.ModelApiFp)(this.configuration).cleanupExports(modelId, untilLastSeen, options).then((request) => request(this.axios, this.basePath));
|
|
2205
|
-
}
|
|
2206
|
-
cleanupOutputs(modelId, untilLastSeen, options) {
|
|
2207
|
-
return (0, exports.ModelApiFp)(this.configuration).cleanupOutputs(modelId, untilLastSeen, options).then((request) => request(this.axios, this.basePath));
|
|
2208
|
-
}
|
|
2209
|
-
cleanupTextures(modelId, untilLastSeen, options) {
|
|
2210
|
-
return (0, exports.ModelApiFp)(this.configuration).cleanupTextures(modelId, untilLastSeen, options).then((request) => request(this.axios, this.basePath));
|
|
2211
|
-
}
|
|
2212
|
-
createModel(reqModel, options) {
|
|
2213
|
-
return (0, exports.ModelApiFp)(this.configuration).createModel(reqModel, options).then((request) => request(this.axios, this.basePath));
|
|
2214
|
-
}
|
|
2215
|
-
createModelConfig(modelId, reqConfigure, options) {
|
|
2216
|
-
return (0, exports.ModelApiFp)(this.configuration).createModelConfig(modelId, reqConfigure, options).then((request) => request(this.axios, this.basePath));
|
|
2217
|
-
}
|
|
2218
|
-
deleteModel(modelId, options) {
|
|
2219
|
-
return (0, exports.ModelApiFp)(this.configuration).deleteModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2220
|
-
}
|
|
2221
|
-
downloadModelFile(modelId, options) {
|
|
2222
|
-
return (0, exports.ModelApiFp)(this.configuration).downloadModelFile(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2223
|
-
}
|
|
2224
|
-
getCleanupStatus(modelId, options) {
|
|
2225
|
-
return (0, exports.ModelApiFp)(this.configuration).getCleanupStatus(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2226
|
-
}
|
|
2227
|
-
getModel(modelId, options) {
|
|
2228
|
-
return (0, exports.ModelApiFp)(this.configuration).getModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2229
|
-
}
|
|
2230
|
-
getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options) {
|
|
2231
|
-
return (0, exports.ModelApiFp)(this.configuration).getModelComputations(modelId, order, timestampFrom, timestampTo, status, type, limit, strictLimit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2232
|
-
}
|
|
2233
|
-
getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options) {
|
|
2234
|
-
return (0, exports.ModelApiFp)(this.configuration).getModelConfig(modelId, xShapediverNoconvert, xShapediverUseconfigversion, xShapediverBuildversion, options).then((request) => request(this.axios, this.basePath));
|
|
2235
|
-
}
|
|
2236
|
-
listModels(modelStatus, offset, options) {
|
|
2237
|
-
return (0, exports.ModelApiFp)(this.configuration).listModels(modelStatus, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2238
|
-
}
|
|
2239
|
-
restoreModel(modelId, options) {
|
|
2240
|
-
return (0, exports.ModelApiFp)(this.configuration).restoreModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
2241
|
-
}
|
|
2242
|
-
updateModel(modelId, reqModel, options) {
|
|
2243
|
-
return (0, exports.ModelApiFp)(this.configuration).updateModel(modelId, reqModel, options).then((request) => request(this.axios, this.basePath));
|
|
2244
|
-
}
|
|
2245
|
-
updateModelConfig(modelId, reqConfigure, options) {
|
|
2246
|
-
return (0, exports.ModelApiFp)(this.configuration).updateModelConfig(modelId, reqConfigure, options).then((request) => request(this.axios, this.basePath));
|
|
2247
|
-
}
|
|
2248
|
-
updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, options) {
|
|
2249
|
-
return (0, exports.ModelApiFp)(this.configuration).updateParameterDefaultValues(modelId, reqCustomization, ignoreUnknownParams, options).then((request) => request(this.axios, this.basePath));
|
|
2250
|
-
}
|
|
2251
|
-
updateParameterDefinitions(modelId, reqParameterDefinitions, options) {
|
|
2252
|
-
return (0, exports.ModelApiFp)(this.configuration).updateParameterDefinitions(modelId, reqParameterDefinitions, options).then((request) => request(this.axios, this.basePath));
|
|
2253
|
-
}
|
|
2254
|
-
}
|
|
2255
|
-
exports.ModelApi = ModelApi;
|
|
2256
|
-
const ModelStateApiAxiosParamCreator = function (configuration) {
|
|
2257
|
-
return {
|
|
2258
|
-
createModelState: (sessionId_1, reqModelState_1, ignoreUnknownParams_1, ...args_1) => __awaiter(this, [sessionId_1, reqModelState_1, ignoreUnknownParams_1, ...args_1], void 0, function* (sessionId, reqModelState, ignoreUnknownParams, options = {}) {
|
|
2259
|
-
(0, common_1.assertParamExists)('createModelState', 'sessionId', sessionId);
|
|
2260
|
-
(0, common_1.assertParamExists)('createModelState', 'reqModelState', reqModelState);
|
|
2261
|
-
const localVarPath = `/api/v2/session/{sessionId}/model-state`
|
|
2262
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
2263
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2264
|
-
let baseOptions;
|
|
2265
|
-
if (configuration) {
|
|
2266
|
-
baseOptions = configuration.baseOptions;
|
|
2267
|
-
}
|
|
2268
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2269
|
-
const localVarHeaderParameter = {};
|
|
2270
|
-
const localVarQueryParameter = {};
|
|
2271
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2272
|
-
if (ignoreUnknownParams !== undefined) {
|
|
2273
|
-
localVarQueryParameter['ignoreUnknownParams'] = ignoreUnknownParams;
|
|
2274
|
-
}
|
|
2275
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2276
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2277
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2278
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2279
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2280
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqModelState, localVarRequestOptions, configuration);
|
|
2281
|
-
return {
|
|
2282
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2283
|
-
options: localVarRequestOptions,
|
|
2284
|
-
};
|
|
2285
|
-
}),
|
|
2286
|
-
deleteModelState: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2287
|
-
(0, common_1.assertParamExists)('deleteModelState', 'modelStateId', modelStateId);
|
|
2288
|
-
const localVarPath = `/api/v2/model-state/{modelStateId}`
|
|
2289
|
-
.replace('{modelStateId}', encodeURIComponent(String(modelStateId)));
|
|
2290
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2291
|
-
let baseOptions;
|
|
2292
|
-
if (configuration) {
|
|
2293
|
-
baseOptions = configuration.baseOptions;
|
|
2294
|
-
}
|
|
2295
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2296
|
-
const localVarHeaderParameter = {};
|
|
2297
|
-
const localVarQueryParameter = {};
|
|
2298
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2299
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2300
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2301
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2302
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2303
|
-
return {
|
|
2304
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2305
|
-
options: localVarRequestOptions,
|
|
2306
|
-
};
|
|
2307
|
-
}),
|
|
2308
|
-
downloadModelStateImage: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2309
|
-
(0, common_1.assertParamExists)('downloadModelStateImage', 'modelStateId', modelStateId);
|
|
2310
|
-
const localVarPath = `/api/v2/model-state/{modelStateId}/image`
|
|
2311
|
-
.replace('{modelStateId}', encodeURIComponent(String(modelStateId)));
|
|
2312
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2313
|
-
let baseOptions;
|
|
2314
|
-
if (configuration) {
|
|
2315
|
-
baseOptions = configuration.baseOptions;
|
|
2316
|
-
}
|
|
2317
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2318
|
-
const localVarHeaderParameter = {};
|
|
2319
|
-
const localVarQueryParameter = {};
|
|
2320
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
2321
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2322
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2323
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2324
|
-
return {
|
|
2325
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2326
|
-
options: localVarRequestOptions,
|
|
2327
|
-
};
|
|
2328
|
-
}),
|
|
2329
|
-
getModelState: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2330
|
-
(0, common_1.assertParamExists)('getModelState', 'modelStateId', modelStateId);
|
|
2331
|
-
const localVarPath = `/api/v2/model-state/{modelStateId}`
|
|
2332
|
-
.replace('{modelStateId}', encodeURIComponent(String(modelStateId)));
|
|
2333
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2334
|
-
let baseOptions;
|
|
2335
|
-
if (configuration) {
|
|
2336
|
-
baseOptions = configuration.baseOptions;
|
|
2337
|
-
}
|
|
2338
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2339
|
-
const localVarHeaderParameter = {};
|
|
2340
|
-
const localVarQueryParameter = {};
|
|
2341
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2342
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2343
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2344
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2345
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2346
|
-
return {
|
|
2347
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2348
|
-
options: localVarRequestOptions,
|
|
2349
|
-
};
|
|
2350
|
-
}),
|
|
2351
|
-
getModelStateData: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2352
|
-
(0, common_1.assertParamExists)('getModelStateData', 'modelStateId', modelStateId);
|
|
2353
|
-
const localVarPath = `/api/v2/model-state/{modelStateId}/data`
|
|
2354
|
-
.replace('{modelStateId}', encodeURIComponent(String(modelStateId)));
|
|
2355
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2356
|
-
let baseOptions;
|
|
2357
|
-
if (configuration) {
|
|
2358
|
-
baseOptions = configuration.baseOptions;
|
|
2359
|
-
}
|
|
2360
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2361
|
-
const localVarHeaderParameter = {};
|
|
2362
|
-
const localVarQueryParameter = {};
|
|
2363
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2364
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2365
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2366
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2367
|
-
return {
|
|
2368
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2369
|
-
options: localVarRequestOptions,
|
|
2370
|
-
};
|
|
2371
|
-
}),
|
|
2372
|
-
getModelStateImageMetadata: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2373
|
-
(0, common_1.assertParamExists)('getModelStateImageMetadata', 'modelStateId', modelStateId);
|
|
2374
|
-
const localVarPath = `/api/v2/model-state/{modelStateId}/image`
|
|
2375
|
-
.replace('{modelStateId}', encodeURIComponent(String(modelStateId)));
|
|
2376
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2377
|
-
let baseOptions;
|
|
2378
|
-
if (configuration) {
|
|
2379
|
-
baseOptions = configuration.baseOptions;
|
|
2380
|
-
}
|
|
2381
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
2382
|
-
const localVarHeaderParameter = {};
|
|
2383
|
-
const localVarQueryParameter = {};
|
|
2384
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2385
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2386
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2387
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2388
|
-
return {
|
|
2389
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2390
|
-
options: localVarRequestOptions,
|
|
2391
|
-
};
|
|
2392
|
-
}),
|
|
2393
|
-
getModelStateMetadata: (modelStateId_1, ...args_1) => __awaiter(this, [modelStateId_1, ...args_1], void 0, function* (modelStateId, options = {}) {
|
|
2394
|
-
(0, common_1.assertParamExists)('getModelStateMetadata', 'modelStateId', modelStateId);
|
|
2395
|
-
const localVarPath = `/api/v2/model-state/{modelStateId}`
|
|
2396
|
-
.replace('{modelStateId}', encodeURIComponent(String(modelStateId)));
|
|
2397
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2398
|
-
let baseOptions;
|
|
2399
|
-
if (configuration) {
|
|
2400
|
-
baseOptions = configuration.baseOptions;
|
|
2401
|
-
}
|
|
2402
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
|
|
2403
|
-
const localVarHeaderParameter = {};
|
|
2404
|
-
const localVarQueryParameter = {};
|
|
2405
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2406
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2407
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2408
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2409
|
-
return {
|
|
2410
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2411
|
-
options: localVarRequestOptions,
|
|
2412
|
-
};
|
|
2413
|
-
}),
|
|
2414
|
-
listModelStates: (modelId_1, offset_1, ...args_1) => __awaiter(this, [modelId_1, offset_1, ...args_1], void 0, function* (modelId, offset, options = {}) {
|
|
2415
|
-
(0, common_1.assertParamExists)('listModelStates', 'modelId', modelId);
|
|
2416
|
-
const localVarPath = `/api/v2/model-state/model/{modelId}/list`
|
|
2417
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
2418
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2419
|
-
let baseOptions;
|
|
2420
|
-
if (configuration) {
|
|
2421
|
-
baseOptions = configuration.baseOptions;
|
|
2422
|
-
}
|
|
2423
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2424
|
-
const localVarHeaderParameter = {};
|
|
2425
|
-
const localVarQueryParameter = {};
|
|
2426
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2427
|
-
if (offset !== undefined) {
|
|
2428
|
-
localVarQueryParameter['offset'] = offset;
|
|
2429
|
-
}
|
|
2430
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2431
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2432
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2433
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2434
|
-
return {
|
|
2435
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2436
|
-
options: localVarRequestOptions,
|
|
2437
|
-
};
|
|
2438
|
-
}),
|
|
2439
|
-
};
|
|
2440
|
-
};
|
|
2441
|
-
exports.ModelStateApiAxiosParamCreator = ModelStateApiAxiosParamCreator;
|
|
2442
|
-
const ModelStateApiFp = function (configuration) {
|
|
2443
|
-
const localVarAxiosParamCreator = (0, exports.ModelStateApiAxiosParamCreator)(configuration);
|
|
2444
|
-
return {
|
|
2445
|
-
createModelState(sessionId, reqModelState, ignoreUnknownParams, options) {
|
|
2446
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2447
|
-
var _a, _b, _c;
|
|
2448
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createModelState(sessionId, reqModelState, ignoreUnknownParams, options);
|
|
2449
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2450
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.createModelState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2451
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2452
|
-
});
|
|
2453
|
-
},
|
|
2454
|
-
deleteModelState(modelStateId, options) {
|
|
2455
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2456
|
-
var _a, _b, _c;
|
|
2457
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteModelState(modelStateId, options);
|
|
2458
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2459
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.deleteModelState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2460
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2461
|
-
});
|
|
2462
|
-
},
|
|
2463
|
-
downloadModelStateImage(modelStateId, options) {
|
|
2464
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2465
|
-
var _a, _b, _c;
|
|
2466
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadModelStateImage(modelStateId, options);
|
|
2467
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2468
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.downloadModelStateImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2469
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2470
|
-
});
|
|
2471
|
-
},
|
|
2472
|
-
getModelState(modelStateId, options) {
|
|
2473
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2474
|
-
var _a, _b, _c;
|
|
2475
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelState(modelStateId, options);
|
|
2476
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2477
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2478
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2479
|
-
});
|
|
2480
|
-
},
|
|
2481
|
-
getModelStateData(modelStateId, options) {
|
|
2482
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2483
|
-
var _a, _b, _c;
|
|
2484
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStateData(modelStateId, options);
|
|
2485
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2486
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelStateData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2487
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2488
|
-
});
|
|
2489
|
-
},
|
|
2490
|
-
getModelStateImageMetadata(modelStateId, options) {
|
|
2491
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2492
|
-
var _a, _b, _c;
|
|
2493
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStateImageMetadata(modelStateId, options);
|
|
2494
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2495
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelStateImageMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2496
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2497
|
-
});
|
|
2498
|
-
},
|
|
2499
|
-
getModelStateMetadata(modelStateId, options) {
|
|
2500
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2501
|
-
var _a, _b, _c;
|
|
2502
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelStateMetadata(modelStateId, options);
|
|
2503
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2504
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.getModelStateMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2505
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2506
|
-
});
|
|
2507
|
-
},
|
|
2508
|
-
listModelStates(modelId, offset, options) {
|
|
2509
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2510
|
-
var _a, _b, _c;
|
|
2511
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listModelStates(modelId, offset, options);
|
|
2512
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2513
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelStateApi.listModelStates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2514
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2515
|
-
});
|
|
2516
|
-
},
|
|
2517
|
-
};
|
|
2518
|
-
};
|
|
2519
|
-
exports.ModelStateApiFp = ModelStateApiFp;
|
|
2520
|
-
const ModelStateApiFactory = function (configuration, basePath, axios) {
|
|
2521
|
-
const localVarFp = (0, exports.ModelStateApiFp)(configuration);
|
|
2522
|
-
return {
|
|
2523
|
-
createModelState(sessionId, reqModelState, ignoreUnknownParams, options) {
|
|
2524
|
-
return localVarFp.createModelState(sessionId, reqModelState, ignoreUnknownParams, options).then((request) => request(axios, basePath));
|
|
2525
|
-
},
|
|
2526
|
-
deleteModelState(modelStateId, options) {
|
|
2527
|
-
return localVarFp.deleteModelState(modelStateId, options).then((request) => request(axios, basePath));
|
|
2528
|
-
},
|
|
2529
|
-
downloadModelStateImage(modelStateId, options) {
|
|
2530
|
-
return localVarFp.downloadModelStateImage(modelStateId, options).then((request) => request(axios, basePath));
|
|
2531
|
-
},
|
|
2532
|
-
getModelState(modelStateId, options) {
|
|
2533
|
-
return localVarFp.getModelState(modelStateId, options).then((request) => request(axios, basePath));
|
|
2534
|
-
},
|
|
2535
|
-
getModelStateData(modelStateId, options) {
|
|
2536
|
-
return localVarFp.getModelStateData(modelStateId, options).then((request) => request(axios, basePath));
|
|
2537
|
-
},
|
|
2538
|
-
getModelStateImageMetadata(modelStateId, options) {
|
|
2539
|
-
return localVarFp.getModelStateImageMetadata(modelStateId, options).then((request) => request(axios, basePath));
|
|
2540
|
-
},
|
|
2541
|
-
getModelStateMetadata(modelStateId, options) {
|
|
2542
|
-
return localVarFp.getModelStateMetadata(modelStateId, options).then((request) => request(axios, basePath));
|
|
2543
|
-
},
|
|
2544
|
-
listModelStates(modelId, offset, options) {
|
|
2545
|
-
return localVarFp.listModelStates(modelId, offset, options).then((request) => request(axios, basePath));
|
|
2546
|
-
},
|
|
2547
|
-
};
|
|
2548
|
-
};
|
|
2549
|
-
exports.ModelStateApiFactory = ModelStateApiFactory;
|
|
2550
|
-
class ModelStateApi extends base_2.BaseAPI {
|
|
2551
|
-
createModelState(sessionId, reqModelState, ignoreUnknownParams, options) {
|
|
2552
|
-
return (0, exports.ModelStateApiFp)(this.configuration).createModelState(sessionId, reqModelState, ignoreUnknownParams, options).then((request) => request(this.axios, this.basePath));
|
|
2553
|
-
}
|
|
2554
|
-
deleteModelState(modelStateId, options) {
|
|
2555
|
-
return (0, exports.ModelStateApiFp)(this.configuration).deleteModelState(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2556
|
-
}
|
|
2557
|
-
downloadModelStateImage(modelStateId, options) {
|
|
2558
|
-
return (0, exports.ModelStateApiFp)(this.configuration).downloadModelStateImage(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2559
|
-
}
|
|
2560
|
-
getModelState(modelStateId, options) {
|
|
2561
|
-
return (0, exports.ModelStateApiFp)(this.configuration).getModelState(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2562
|
-
}
|
|
2563
|
-
getModelStateData(modelStateId, options) {
|
|
2564
|
-
return (0, exports.ModelStateApiFp)(this.configuration).getModelStateData(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2565
|
-
}
|
|
2566
|
-
getModelStateImageMetadata(modelStateId, options) {
|
|
2567
|
-
return (0, exports.ModelStateApiFp)(this.configuration).getModelStateImageMetadata(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2568
|
-
}
|
|
2569
|
-
getModelStateMetadata(modelStateId, options) {
|
|
2570
|
-
return (0, exports.ModelStateApiFp)(this.configuration).getModelStateMetadata(modelStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2571
|
-
}
|
|
2572
|
-
listModelStates(modelId, offset, options) {
|
|
2573
|
-
return (0, exports.ModelStateApiFp)(this.configuration).listModelStates(modelId, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2574
|
-
}
|
|
2575
|
-
}
|
|
2576
|
-
exports.ModelStateApi = ModelStateApi;
|
|
2577
|
-
const OutputApiAxiosParamCreator = function (configuration) {
|
|
2578
|
-
return {
|
|
2579
|
-
computeOutputs: (sessionId_1, reqCustomization_1, ignoreUnknownParams_1, ...args_1) => __awaiter(this, [sessionId_1, reqCustomization_1, ignoreUnknownParams_1, ...args_1], void 0, function* (sessionId, reqCustomization, ignoreUnknownParams, options = {}) {
|
|
2580
|
-
(0, common_1.assertParamExists)('computeOutputs', 'sessionId', sessionId);
|
|
2581
|
-
(0, common_1.assertParamExists)('computeOutputs', 'reqCustomization', reqCustomization);
|
|
2582
|
-
const localVarPath = `/api/v2/session/{sessionId}/output`
|
|
2583
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
2584
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2585
|
-
let baseOptions;
|
|
2586
|
-
if (configuration) {
|
|
2587
|
-
baseOptions = configuration.baseOptions;
|
|
2588
|
-
}
|
|
2589
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2590
|
-
const localVarHeaderParameter = {};
|
|
2591
|
-
const localVarQueryParameter = {};
|
|
2592
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2593
|
-
if (ignoreUnknownParams !== undefined) {
|
|
2594
|
-
localVarQueryParameter['ignoreUnknownParams'] = ignoreUnknownParams;
|
|
2595
|
-
}
|
|
2596
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2597
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2598
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2599
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2600
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2601
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomization, localVarRequestOptions, configuration);
|
|
2602
|
-
return {
|
|
2603
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2604
|
-
options: localVarRequestOptions,
|
|
2605
|
-
};
|
|
2606
|
-
}),
|
|
2607
|
-
getCachedOutputs: (sessionId_1, reqCacheReqCustomization_1, ...args_1) => __awaiter(this, [sessionId_1, reqCacheReqCustomization_1, ...args_1], void 0, function* (sessionId, reqCacheReqCustomization, options = {}) {
|
|
2608
|
-
(0, common_1.assertParamExists)('getCachedOutputs', 'sessionId', sessionId);
|
|
2609
|
-
(0, common_1.assertParamExists)('getCachedOutputs', 'reqCacheReqCustomization', reqCacheReqCustomization);
|
|
2610
|
-
const localVarPath = `/api/v2/session/{sessionId}/output/cache`
|
|
2611
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
2612
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2613
|
-
let baseOptions;
|
|
2614
|
-
if (configuration) {
|
|
2615
|
-
baseOptions = configuration.baseOptions;
|
|
2616
|
-
}
|
|
2617
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2618
|
-
const localVarHeaderParameter = {};
|
|
2619
|
-
const localVarQueryParameter = {};
|
|
2620
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2621
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2622
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2623
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2624
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2625
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2626
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCacheReqCustomization, localVarRequestOptions, configuration);
|
|
2627
|
-
return {
|
|
2628
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2629
|
-
options: localVarRequestOptions,
|
|
2630
|
-
};
|
|
2631
|
-
}),
|
|
2632
|
-
listOutputVersions: (sessionId_1, outputId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, outputId_1, statusComputation_1, statusCollect_1, offset_1, ...args_1], void 0, function* (sessionId, outputId, statusComputation, statusCollect, offset, options = {}) {
|
|
2633
|
-
(0, common_1.assertParamExists)('listOutputVersions', 'sessionId', sessionId);
|
|
2634
|
-
(0, common_1.assertParamExists)('listOutputVersions', 'outputId', outputId);
|
|
2635
|
-
const localVarPath = `/api/v2/session/{sessionId}/output/{outputId}/list`
|
|
2636
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
2637
|
-
.replace('{outputId}', encodeURIComponent(String(outputId)));
|
|
2638
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2639
|
-
let baseOptions;
|
|
2640
|
-
if (configuration) {
|
|
2641
|
-
baseOptions = configuration.baseOptions;
|
|
2642
|
-
}
|
|
2643
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2644
|
-
const localVarHeaderParameter = {};
|
|
2645
|
-
const localVarQueryParameter = {};
|
|
2646
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2647
|
-
if (statusComputation !== undefined) {
|
|
2648
|
-
localVarQueryParameter['statusComputation'] = statusComputation;
|
|
2649
|
-
}
|
|
2650
|
-
if (statusCollect !== undefined) {
|
|
2651
|
-
localVarQueryParameter['statusCollect'] = statusCollect;
|
|
2652
|
-
}
|
|
2653
|
-
if (offset !== undefined) {
|
|
2654
|
-
localVarQueryParameter['offset'] = offset;
|
|
2655
|
-
}
|
|
2656
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2657
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2658
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2659
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2660
|
-
return {
|
|
2661
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2662
|
-
options: localVarRequestOptions,
|
|
2663
|
-
};
|
|
2664
|
-
}),
|
|
2665
|
-
updateOutputDefinitions: (modelId_1, reqOutputDefinitions_1, ...args_1) => __awaiter(this, [modelId_1, reqOutputDefinitions_1, ...args_1], void 0, function* (modelId, reqOutputDefinitions, options = {}) {
|
|
2666
|
-
(0, common_1.assertParamExists)('updateOutputDefinitions', 'modelId', modelId);
|
|
2667
|
-
(0, common_1.assertParamExists)('updateOutputDefinitions', 'reqOutputDefinitions', reqOutputDefinitions);
|
|
2668
|
-
const localVarPath = `/api/v2/model/{modelId}/output`
|
|
2669
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
2670
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2671
|
-
let baseOptions;
|
|
2672
|
-
if (configuration) {
|
|
2673
|
-
baseOptions = configuration.baseOptions;
|
|
2674
|
-
}
|
|
2675
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2676
|
-
const localVarHeaderParameter = {};
|
|
2677
|
-
const localVarQueryParameter = {};
|
|
2678
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2679
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2680
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2681
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2682
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2683
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2684
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqOutputDefinitions, localVarRequestOptions, configuration);
|
|
2685
|
-
return {
|
|
2686
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2687
|
-
options: localVarRequestOptions,
|
|
2688
|
-
};
|
|
2689
|
-
}),
|
|
2690
|
-
};
|
|
2691
|
-
};
|
|
2692
|
-
exports.OutputApiAxiosParamCreator = OutputApiAxiosParamCreator;
|
|
2693
|
-
const OutputApiFp = function (configuration) {
|
|
2694
|
-
const localVarAxiosParamCreator = (0, exports.OutputApiAxiosParamCreator)(configuration);
|
|
2695
|
-
return {
|
|
2696
|
-
computeOutputs(sessionId, reqCustomization, ignoreUnknownParams, options) {
|
|
2697
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2698
|
-
var _a, _b, _c;
|
|
2699
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.computeOutputs(sessionId, reqCustomization, ignoreUnknownParams, options);
|
|
2700
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2701
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.computeOutputs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2702
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2703
|
-
});
|
|
2704
|
-
},
|
|
2705
|
-
getCachedOutputs(sessionId, reqCacheReqCustomization, options) {
|
|
2706
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2707
|
-
var _a, _b, _c;
|
|
2708
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCachedOutputs(sessionId, reqCacheReqCustomization, options);
|
|
2709
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2710
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.getCachedOutputs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2711
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2712
|
-
});
|
|
2713
|
-
},
|
|
2714
|
-
listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options) {
|
|
2715
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2716
|
-
var _a, _b, _c;
|
|
2717
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options);
|
|
2718
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2719
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.listOutputVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2720
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2721
|
-
});
|
|
2722
|
-
},
|
|
2723
|
-
updateOutputDefinitions(modelId, reqOutputDefinitions, options) {
|
|
2724
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2725
|
-
var _a, _b, _c;
|
|
2726
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOutputDefinitions(modelId, reqOutputDefinitions, options);
|
|
2727
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2728
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OutputApi.updateOutputDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2729
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2730
|
-
});
|
|
2731
|
-
},
|
|
2732
|
-
};
|
|
2733
|
-
};
|
|
2734
|
-
exports.OutputApiFp = OutputApiFp;
|
|
2735
|
-
const OutputApiFactory = function (configuration, basePath, axios) {
|
|
2736
|
-
const localVarFp = (0, exports.OutputApiFp)(configuration);
|
|
2737
|
-
return {
|
|
2738
|
-
computeOutputs(sessionId, reqCustomization, ignoreUnknownParams, options) {
|
|
2739
|
-
return localVarFp.computeOutputs(sessionId, reqCustomization, ignoreUnknownParams, options).then((request) => request(axios, basePath));
|
|
2740
|
-
},
|
|
2741
|
-
getCachedOutputs(sessionId, reqCacheReqCustomization, options) {
|
|
2742
|
-
return localVarFp.getCachedOutputs(sessionId, reqCacheReqCustomization, options).then((request) => request(axios, basePath));
|
|
2743
|
-
},
|
|
2744
|
-
listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options) {
|
|
2745
|
-
return localVarFp.listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options).then((request) => request(axios, basePath));
|
|
2746
|
-
},
|
|
2747
|
-
updateOutputDefinitions(modelId, reqOutputDefinitions, options) {
|
|
2748
|
-
return localVarFp.updateOutputDefinitions(modelId, reqOutputDefinitions, options).then((request) => request(axios, basePath));
|
|
2749
|
-
},
|
|
2750
|
-
};
|
|
2751
|
-
};
|
|
2752
|
-
exports.OutputApiFactory = OutputApiFactory;
|
|
2753
|
-
class OutputApi extends base_2.BaseAPI {
|
|
2754
|
-
computeOutputs(sessionId, reqCustomization, ignoreUnknownParams, options) {
|
|
2755
|
-
return (0, exports.OutputApiFp)(this.configuration).computeOutputs(sessionId, reqCustomization, ignoreUnknownParams, options).then((request) => request(this.axios, this.basePath));
|
|
2756
|
-
}
|
|
2757
|
-
getCachedOutputs(sessionId, reqCacheReqCustomization, options) {
|
|
2758
|
-
return (0, exports.OutputApiFp)(this.configuration).getCachedOutputs(sessionId, reqCacheReqCustomization, options).then((request) => request(this.axios, this.basePath));
|
|
2759
|
-
}
|
|
2760
|
-
listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options) {
|
|
2761
|
-
return (0, exports.OutputApiFp)(this.configuration).listOutputVersions(sessionId, outputId, statusComputation, statusCollect, offset, options).then((request) => request(this.axios, this.basePath));
|
|
2762
|
-
}
|
|
2763
|
-
updateOutputDefinitions(modelId, reqOutputDefinitions, options) {
|
|
2764
|
-
return (0, exports.OutputApiFp)(this.configuration).updateOutputDefinitions(modelId, reqOutputDefinitions, options).then((request) => request(this.axios, this.basePath));
|
|
2765
|
-
}
|
|
2766
|
-
}
|
|
2767
|
-
exports.OutputApi = OutputApi;
|
|
2768
|
-
const ScriptApiAxiosParamCreator = function (configuration) {
|
|
2769
|
-
return {
|
|
2770
|
-
confirmScript: (scriptId_1, ...args_1) => __awaiter(this, [scriptId_1, ...args_1], void 0, function* (scriptId, options = {}) {
|
|
2771
|
-
(0, common_1.assertParamExists)('confirmScript', 'scriptId', scriptId);
|
|
2772
|
-
const localVarPath = `/api/v2/script/{scriptId}/confirm`
|
|
2773
|
-
.replace('{scriptId}', encodeURIComponent(String(scriptId)));
|
|
2774
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2775
|
-
let baseOptions;
|
|
2776
|
-
if (configuration) {
|
|
2777
|
-
baseOptions = configuration.baseOptions;
|
|
2778
|
-
}
|
|
2779
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2780
|
-
const localVarHeaderParameter = {};
|
|
2781
|
-
const localVarQueryParameter = {};
|
|
2782
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2783
|
-
localVarHeaderParameter['Accept'] = 'text/html,application/json';
|
|
2784
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2785
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2786
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2787
|
-
return {
|
|
2788
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2789
|
-
options: localVarRequestOptions,
|
|
2790
|
-
};
|
|
2791
|
-
}),
|
|
2792
|
-
denyScript: (scriptId_1, ...args_1) => __awaiter(this, [scriptId_1, ...args_1], void 0, function* (scriptId, options = {}) {
|
|
2793
|
-
(0, common_1.assertParamExists)('denyScript', 'scriptId', scriptId);
|
|
2794
|
-
const localVarPath = `/api/v2/script/{scriptId}/deny`
|
|
2795
|
-
.replace('{scriptId}', encodeURIComponent(String(scriptId)));
|
|
2796
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2797
|
-
let baseOptions;
|
|
2798
|
-
if (configuration) {
|
|
2799
|
-
baseOptions = configuration.baseOptions;
|
|
2800
|
-
}
|
|
2801
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2802
|
-
const localVarHeaderParameter = {};
|
|
2803
|
-
const localVarQueryParameter = {};
|
|
2804
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2805
|
-
localVarHeaderParameter['Accept'] = 'text/html,application/json';
|
|
2806
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2807
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2808
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2809
|
-
return {
|
|
2810
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2811
|
-
options: localVarRequestOptions,
|
|
2812
|
-
};
|
|
2813
|
-
}),
|
|
2814
|
-
};
|
|
2815
|
-
};
|
|
2816
|
-
exports.ScriptApiAxiosParamCreator = ScriptApiAxiosParamCreator;
|
|
2817
|
-
const ScriptApiFp = function (configuration) {
|
|
2818
|
-
const localVarAxiosParamCreator = (0, exports.ScriptApiAxiosParamCreator)(configuration);
|
|
2819
|
-
return {
|
|
2820
|
-
confirmScript(scriptId, options) {
|
|
2821
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2822
|
-
var _a, _b, _c;
|
|
2823
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmScript(scriptId, options);
|
|
2824
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2825
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScriptApi.confirmScript']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2826
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2827
|
-
});
|
|
2828
|
-
},
|
|
2829
|
-
denyScript(scriptId, options) {
|
|
2830
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2831
|
-
var _a, _b, _c;
|
|
2832
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.denyScript(scriptId, options);
|
|
2833
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2834
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScriptApi.denyScript']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2835
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2836
|
-
});
|
|
2837
|
-
},
|
|
2838
|
-
};
|
|
2839
|
-
};
|
|
2840
|
-
exports.ScriptApiFp = ScriptApiFp;
|
|
2841
|
-
const ScriptApiFactory = function (configuration, basePath, axios) {
|
|
2842
|
-
const localVarFp = (0, exports.ScriptApiFp)(configuration);
|
|
2843
|
-
return {
|
|
2844
|
-
confirmScript(scriptId, options) {
|
|
2845
|
-
return localVarFp.confirmScript(scriptId, options).then((request) => request(axios, basePath));
|
|
2846
|
-
},
|
|
2847
|
-
denyScript(scriptId, options) {
|
|
2848
|
-
return localVarFp.denyScript(scriptId, options).then((request) => request(axios, basePath));
|
|
2849
|
-
},
|
|
2850
|
-
};
|
|
2851
|
-
};
|
|
2852
|
-
exports.ScriptApiFactory = ScriptApiFactory;
|
|
2853
|
-
class ScriptApi extends base_2.BaseAPI {
|
|
2854
|
-
confirmScript(scriptId, options) {
|
|
2855
|
-
return (0, exports.ScriptApiFp)(this.configuration).confirmScript(scriptId, options).then((request) => request(this.axios, this.basePath));
|
|
2856
|
-
}
|
|
2857
|
-
denyScript(scriptId, options) {
|
|
2858
|
-
return (0, exports.ScriptApiFp)(this.configuration).denyScript(scriptId, options).then((request) => request(this.axios, this.basePath));
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
exports.ScriptApi = ScriptApi;
|
|
2862
|
-
const SdtfApiAxiosParamCreator = function (configuration) {
|
|
2863
|
-
return {
|
|
2864
|
-
deleteSdtf: (sessionId_1, namespace_1, sdtfId_1, ...args_1) => __awaiter(this, [sessionId_1, namespace_1, sdtfId_1, ...args_1], void 0, function* (sessionId, namespace, sdtfId, options = {}) {
|
|
2865
|
-
(0, common_1.assertParamExists)('deleteSdtf', 'sessionId', sessionId);
|
|
2866
|
-
(0, common_1.assertParamExists)('deleteSdtf', 'namespace', namespace);
|
|
2867
|
-
(0, common_1.assertParamExists)('deleteSdtf', 'sdtfId', sdtfId);
|
|
2868
|
-
const localVarPath = `/api/v2/session/{sessionId}/sdtf/{namespace}/{sdtfId}`
|
|
2869
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
2870
|
-
.replace('{namespace}', encodeURIComponent(String(namespace)))
|
|
2871
|
-
.replace('{sdtfId}', encodeURIComponent(String(sdtfId)));
|
|
2872
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2873
|
-
let baseOptions;
|
|
2874
|
-
if (configuration) {
|
|
2875
|
-
baseOptions = configuration.baseOptions;
|
|
2876
|
-
}
|
|
2877
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2878
|
-
const localVarHeaderParameter = {};
|
|
2879
|
-
const localVarQueryParameter = {};
|
|
2880
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2881
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2882
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2883
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2884
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2885
|
-
return {
|
|
2886
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2887
|
-
options: localVarRequestOptions,
|
|
2888
|
-
};
|
|
2889
|
-
}),
|
|
2890
|
-
downloadSdtf: (sessionId_1, namespace_1, sdtfId_1, ...args_1) => __awaiter(this, [sessionId_1, namespace_1, sdtfId_1, ...args_1], void 0, function* (sessionId, namespace, sdtfId, options = {}) {
|
|
2891
|
-
(0, common_1.assertParamExists)('downloadSdtf', 'sessionId', sessionId);
|
|
2892
|
-
(0, common_1.assertParamExists)('downloadSdtf', 'namespace', namespace);
|
|
2893
|
-
(0, common_1.assertParamExists)('downloadSdtf', 'sdtfId', sdtfId);
|
|
2894
|
-
const localVarPath = `/api/v2/session/{sessionId}/sdtf/{namespace}/{sdtfId}`
|
|
2895
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
2896
|
-
.replace('{namespace}', encodeURIComponent(String(namespace)))
|
|
2897
|
-
.replace('{sdtfId}', encodeURIComponent(String(sdtfId)));
|
|
2898
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2899
|
-
let baseOptions;
|
|
2900
|
-
if (configuration) {
|
|
2901
|
-
baseOptions = configuration.baseOptions;
|
|
2902
|
-
}
|
|
2903
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2904
|
-
const localVarHeaderParameter = {};
|
|
2905
|
-
const localVarQueryParameter = {};
|
|
2906
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2907
|
-
localVarHeaderParameter['Accept'] = 'application/octet-stream,application/json';
|
|
2908
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2909
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2910
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2911
|
-
return {
|
|
2912
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2913
|
-
options: localVarRequestOptions,
|
|
2914
|
-
};
|
|
2915
|
-
}),
|
|
2916
|
-
listSdtfs: (sessionId_1, namespace_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, namespace_1, offset_1, ...args_1], void 0, function* (sessionId, namespace, offset, options = {}) {
|
|
2917
|
-
(0, common_1.assertParamExists)('listSdtfs', 'sessionId', sessionId);
|
|
2918
|
-
(0, common_1.assertParamExists)('listSdtfs', 'namespace', namespace);
|
|
2919
|
-
const localVarPath = `/api/v2/session/{sessionId}/sdtf/{namespace}/list`
|
|
2920
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)))
|
|
2921
|
-
.replace('{namespace}', encodeURIComponent(String(namespace)));
|
|
2922
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2923
|
-
let baseOptions;
|
|
2924
|
-
if (configuration) {
|
|
2925
|
-
baseOptions = configuration.baseOptions;
|
|
2926
|
-
}
|
|
2927
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2928
|
-
const localVarHeaderParameter = {};
|
|
2929
|
-
const localVarQueryParameter = {};
|
|
2930
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2931
|
-
if (offset !== undefined) {
|
|
2932
|
-
localVarQueryParameter['offset'] = offset;
|
|
2933
|
-
}
|
|
2934
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2935
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2936
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2937
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2938
|
-
return {
|
|
2939
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2940
|
-
options: localVarRequestOptions,
|
|
2941
|
-
};
|
|
2942
|
-
}),
|
|
2943
|
-
uploadSdtf: (sessionId_1, reqSdtfDefinition_1, ...args_1) => __awaiter(this, [sessionId_1, reqSdtfDefinition_1, ...args_1], void 0, function* (sessionId, reqSdtfDefinition, options = {}) {
|
|
2944
|
-
(0, common_1.assertParamExists)('uploadSdtf', 'sessionId', sessionId);
|
|
2945
|
-
(0, common_1.assertParamExists)('uploadSdtf', 'reqSdtfDefinition', reqSdtfDefinition);
|
|
2946
|
-
const localVarPath = `/api/v2/session/{sessionId}/sdtf/upload`
|
|
2947
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
2948
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2949
|
-
let baseOptions;
|
|
2950
|
-
if (configuration) {
|
|
2951
|
-
baseOptions = configuration.baseOptions;
|
|
2952
|
-
}
|
|
2953
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2954
|
-
const localVarHeaderParameter = {};
|
|
2955
|
-
const localVarQueryParameter = {};
|
|
2956
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2957
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2958
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2959
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2960
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2961
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2962
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqSdtfDefinition, localVarRequestOptions, configuration);
|
|
2963
|
-
return {
|
|
2964
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2965
|
-
options: localVarRequestOptions,
|
|
2966
|
-
};
|
|
2967
|
-
}),
|
|
2968
|
-
};
|
|
2969
|
-
};
|
|
2970
|
-
exports.SdtfApiAxiosParamCreator = SdtfApiAxiosParamCreator;
|
|
2971
|
-
const SdtfApiFp = function (configuration) {
|
|
2972
|
-
const localVarAxiosParamCreator = (0, exports.SdtfApiAxiosParamCreator)(configuration);
|
|
2973
|
-
return {
|
|
2974
|
-
deleteSdtf(sessionId, namespace, sdtfId, options) {
|
|
2975
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2976
|
-
var _a, _b, _c;
|
|
2977
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSdtf(sessionId, namespace, sdtfId, options);
|
|
2978
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2979
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.deleteSdtf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2980
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2981
|
-
});
|
|
2982
|
-
},
|
|
2983
|
-
downloadSdtf(sessionId, namespace, sdtfId, options) {
|
|
2984
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2985
|
-
var _a, _b, _c;
|
|
2986
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadSdtf(sessionId, namespace, sdtfId, options);
|
|
2987
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2988
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.downloadSdtf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2989
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2990
|
-
});
|
|
2991
|
-
},
|
|
2992
|
-
listSdtfs(sessionId, namespace, offset, options) {
|
|
2993
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2994
|
-
var _a, _b, _c;
|
|
2995
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSdtfs(sessionId, namespace, offset, options);
|
|
2996
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2997
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.listSdtfs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2998
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2999
|
-
});
|
|
3000
|
-
},
|
|
3001
|
-
uploadSdtf(sessionId, reqSdtfDefinition, options) {
|
|
3002
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3003
|
-
var _a, _b, _c;
|
|
3004
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadSdtf(sessionId, reqSdtfDefinition, options);
|
|
3005
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3006
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SdtfApi.uploadSdtf']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3007
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3008
|
-
});
|
|
3009
|
-
},
|
|
3010
|
-
};
|
|
3011
|
-
};
|
|
3012
|
-
exports.SdtfApiFp = SdtfApiFp;
|
|
3013
|
-
const SdtfApiFactory = function (configuration, basePath, axios) {
|
|
3014
|
-
const localVarFp = (0, exports.SdtfApiFp)(configuration);
|
|
3015
|
-
return {
|
|
3016
|
-
deleteSdtf(sessionId, namespace, sdtfId, options) {
|
|
3017
|
-
return localVarFp.deleteSdtf(sessionId, namespace, sdtfId, options).then((request) => request(axios, basePath));
|
|
3018
|
-
},
|
|
3019
|
-
downloadSdtf(sessionId, namespace, sdtfId, options) {
|
|
3020
|
-
return localVarFp.downloadSdtf(sessionId, namespace, sdtfId, options).then((request) => request(axios, basePath));
|
|
3021
|
-
},
|
|
3022
|
-
listSdtfs(sessionId, namespace, offset, options) {
|
|
3023
|
-
return localVarFp.listSdtfs(sessionId, namespace, offset, options).then((request) => request(axios, basePath));
|
|
3024
|
-
},
|
|
3025
|
-
uploadSdtf(sessionId, reqSdtfDefinition, options) {
|
|
3026
|
-
return localVarFp.uploadSdtf(sessionId, reqSdtfDefinition, options).then((request) => request(axios, basePath));
|
|
3027
|
-
},
|
|
3028
|
-
};
|
|
3029
|
-
};
|
|
3030
|
-
exports.SdtfApiFactory = SdtfApiFactory;
|
|
3031
|
-
class SdtfApi extends base_2.BaseAPI {
|
|
3032
|
-
deleteSdtf(sessionId, namespace, sdtfId, options) {
|
|
3033
|
-
return (0, exports.SdtfApiFp)(this.configuration).deleteSdtf(sessionId, namespace, sdtfId, options).then((request) => request(this.axios, this.basePath));
|
|
3034
|
-
}
|
|
3035
|
-
downloadSdtf(sessionId, namespace, sdtfId, options) {
|
|
3036
|
-
return (0, exports.SdtfApiFp)(this.configuration).downloadSdtf(sessionId, namespace, sdtfId, options).then((request) => request(this.axios, this.basePath));
|
|
3037
|
-
}
|
|
3038
|
-
listSdtfs(sessionId, namespace, offset, options) {
|
|
3039
|
-
return (0, exports.SdtfApiFp)(this.configuration).listSdtfs(sessionId, namespace, offset, options).then((request) => request(this.axios, this.basePath));
|
|
3040
|
-
}
|
|
3041
|
-
uploadSdtf(sessionId, reqSdtfDefinition, options) {
|
|
3042
|
-
return (0, exports.SdtfApiFp)(this.configuration).uploadSdtf(sessionId, reqSdtfDefinition, options).then((request) => request(this.axios, this.basePath));
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
3045
|
-
exports.SdtfApi = SdtfApi;
|
|
3046
|
-
const SessionApiAxiosParamCreator = function (configuration) {
|
|
3047
|
-
return {
|
|
3048
|
-
closeSession: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3049
|
-
(0, common_1.assertParamExists)('closeSession', 'sessionId', sessionId);
|
|
3050
|
-
const localVarPath = `/api/v2/session/{sessionId}/close`
|
|
3051
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
3052
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3053
|
-
let baseOptions;
|
|
3054
|
-
if (configuration) {
|
|
3055
|
-
baseOptions = configuration.baseOptions;
|
|
3056
|
-
}
|
|
3057
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3058
|
-
const localVarHeaderParameter = {};
|
|
3059
|
-
const localVarQueryParameter = {};
|
|
3060
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3061
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3062
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3063
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3064
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3065
|
-
return {
|
|
3066
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3067
|
-
options: localVarRequestOptions,
|
|
3068
|
-
};
|
|
3069
|
-
}),
|
|
3070
|
-
createSessionByModel: (modelId_1, modelStateId_1, ignoreUnknownParams_1, strictModelStateValidation_1, reqCustomizationOrExport_1, ...args_1) => __awaiter(this, [modelId_1, modelStateId_1, ignoreUnknownParams_1, strictModelStateValidation_1, reqCustomizationOrExport_1, ...args_1], void 0, function* (modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options = {}) {
|
|
3071
|
-
(0, common_1.assertParamExists)('createSessionByModel', 'modelId', modelId);
|
|
3072
|
-
const localVarPath = `/api/v2/model/{modelId}/session`
|
|
3073
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
3074
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3075
|
-
let baseOptions;
|
|
3076
|
-
if (configuration) {
|
|
3077
|
-
baseOptions = configuration.baseOptions;
|
|
3078
|
-
}
|
|
3079
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3080
|
-
const localVarHeaderParameter = {};
|
|
3081
|
-
const localVarQueryParameter = {};
|
|
3082
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3083
|
-
if (modelStateId !== undefined) {
|
|
3084
|
-
localVarQueryParameter['modelStateId'] = modelStateId;
|
|
3085
|
-
}
|
|
3086
|
-
if (ignoreUnknownParams !== undefined) {
|
|
3087
|
-
localVarQueryParameter['ignoreUnknownParams'] = ignoreUnknownParams;
|
|
3088
|
-
}
|
|
3089
|
-
if (strictModelStateValidation !== undefined) {
|
|
3090
|
-
localVarQueryParameter['strictModelStateValidation'] = strictModelStateValidation;
|
|
3091
|
-
}
|
|
3092
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3093
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3094
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3095
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3096
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3097
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomizationOrExport, localVarRequestOptions, configuration);
|
|
3098
|
-
return {
|
|
3099
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3100
|
-
options: localVarRequestOptions,
|
|
3101
|
-
};
|
|
3102
|
-
}),
|
|
3103
|
-
createSessionByTicket: (ticketId_1, modelStateId_1, ignoreUnknownParams_1, strictModelStateValidation_1, reqCustomizationOrExport_1, ...args_1) => __awaiter(this, [ticketId_1, modelStateId_1, ignoreUnknownParams_1, strictModelStateValidation_1, reqCustomizationOrExport_1, ...args_1], void 0, function* (ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options = {}) {
|
|
3104
|
-
(0, common_1.assertParamExists)('createSessionByTicket', 'ticketId', ticketId);
|
|
3105
|
-
const localVarPath = `/api/v2/ticket/{ticketId}`
|
|
3106
|
-
.replace('{ticketId}', encodeURIComponent(String(ticketId)));
|
|
3107
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3108
|
-
let baseOptions;
|
|
3109
|
-
if (configuration) {
|
|
3110
|
-
baseOptions = configuration.baseOptions;
|
|
3111
|
-
}
|
|
3112
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3113
|
-
const localVarHeaderParameter = {};
|
|
3114
|
-
const localVarQueryParameter = {};
|
|
3115
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3116
|
-
if (modelStateId !== undefined) {
|
|
3117
|
-
localVarQueryParameter['modelStateId'] = modelStateId;
|
|
3118
|
-
}
|
|
3119
|
-
if (ignoreUnknownParams !== undefined) {
|
|
3120
|
-
localVarQueryParameter['ignoreUnknownParams'] = ignoreUnknownParams;
|
|
3121
|
-
}
|
|
3122
|
-
if (strictModelStateValidation !== undefined) {
|
|
3123
|
-
localVarQueryParameter['strictModelStateValidation'] = strictModelStateValidation;
|
|
3124
|
-
}
|
|
3125
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3126
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3127
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3128
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3129
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3130
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqCustomizationOrExport, localVarRequestOptions, configuration);
|
|
3131
|
-
return {
|
|
3132
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3133
|
-
options: localVarRequestOptions,
|
|
3134
|
-
};
|
|
3135
|
-
}),
|
|
3136
|
-
createTicket: (modelId_1, reqTicket_1, ...args_1) => __awaiter(this, [modelId_1, reqTicket_1, ...args_1], void 0, function* (modelId, reqTicket, options = {}) {
|
|
3137
|
-
(0, common_1.assertParamExists)('createTicket', 'modelId', modelId);
|
|
3138
|
-
(0, common_1.assertParamExists)('createTicket', 'reqTicket', reqTicket);
|
|
3139
|
-
const localVarPath = `/api/v2/model/{modelId}/ticket`
|
|
3140
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
3141
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3142
|
-
let baseOptions;
|
|
3143
|
-
if (configuration) {
|
|
3144
|
-
baseOptions = configuration.baseOptions;
|
|
3145
|
-
}
|
|
3146
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3147
|
-
const localVarHeaderParameter = {};
|
|
3148
|
-
const localVarQueryParameter = {};
|
|
3149
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3150
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3151
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3152
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3153
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3154
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3155
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reqTicket, localVarRequestOptions, configuration);
|
|
3156
|
-
return {
|
|
3157
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3158
|
-
options: localVarRequestOptions,
|
|
3159
|
-
};
|
|
3160
|
-
}),
|
|
3161
|
-
decryptTicket: (ticketEncrypted_1, ...args_1) => __awaiter(this, [ticketEncrypted_1, ...args_1], void 0, function* (ticketEncrypted, options = {}) {
|
|
3162
|
-
(0, common_1.assertParamExists)('decryptTicket', 'ticketEncrypted', ticketEncrypted);
|
|
3163
|
-
const localVarPath = `/api/v2/ticket/{ticketEncrypted}`
|
|
3164
|
-
.replace('{ticketEncrypted}', encodeURIComponent(String(ticketEncrypted)));
|
|
3165
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3166
|
-
let baseOptions;
|
|
3167
|
-
if (configuration) {
|
|
3168
|
-
baseOptions = configuration.baseOptions;
|
|
3169
|
-
}
|
|
3170
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3171
|
-
const localVarHeaderParameter = {};
|
|
3172
|
-
const localVarQueryParameter = {};
|
|
3173
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3174
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3175
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3176
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3177
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3178
|
-
return {
|
|
3179
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3180
|
-
options: localVarRequestOptions,
|
|
3181
|
-
};
|
|
3182
|
-
}),
|
|
3183
|
-
getSessionDefaults: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3184
|
-
(0, common_1.assertParamExists)('getSessionDefaults', 'sessionId', sessionId);
|
|
3185
|
-
const localVarPath = `/api/v2/session/{sessionId}/default`
|
|
3186
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
3187
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3188
|
-
let baseOptions;
|
|
3189
|
-
if (configuration) {
|
|
3190
|
-
baseOptions = configuration.baseOptions;
|
|
3191
|
-
}
|
|
3192
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3193
|
-
const localVarHeaderParameter = {};
|
|
3194
|
-
const localVarQueryParameter = {};
|
|
3195
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3196
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3197
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3198
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3199
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3200
|
-
return {
|
|
3201
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3202
|
-
options: localVarRequestOptions,
|
|
3203
|
-
};
|
|
3204
|
-
}),
|
|
3205
|
-
};
|
|
3206
|
-
};
|
|
3207
|
-
exports.SessionApiAxiosParamCreator = SessionApiAxiosParamCreator;
|
|
3208
|
-
const SessionApiFp = function (configuration) {
|
|
3209
|
-
const localVarAxiosParamCreator = (0, exports.SessionApiAxiosParamCreator)(configuration);
|
|
3210
|
-
return {
|
|
3211
|
-
closeSession(sessionId, options) {
|
|
3212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3213
|
-
var _a, _b, _c;
|
|
3214
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.closeSession(sessionId, options);
|
|
3215
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3216
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.closeSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3217
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3218
|
-
});
|
|
3219
|
-
},
|
|
3220
|
-
createSessionByModel(modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options) {
|
|
3221
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3222
|
-
var _a, _b, _c;
|
|
3223
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSessionByModel(modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options);
|
|
3224
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3225
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.createSessionByModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3226
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3227
|
-
});
|
|
3228
|
-
},
|
|
3229
|
-
createSessionByTicket(ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options) {
|
|
3230
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3231
|
-
var _a, _b, _c;
|
|
3232
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSessionByTicket(ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options);
|
|
3233
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3234
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.createSessionByTicket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3235
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3236
|
-
});
|
|
3237
|
-
},
|
|
3238
|
-
createTicket(modelId, reqTicket, options) {
|
|
3239
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3240
|
-
var _a, _b, _c;
|
|
3241
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTicket(modelId, reqTicket, options);
|
|
3242
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3243
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.createTicket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3244
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3245
|
-
});
|
|
3246
|
-
},
|
|
3247
|
-
decryptTicket(ticketEncrypted, options) {
|
|
3248
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3249
|
-
var _a, _b, _c;
|
|
3250
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.decryptTicket(ticketEncrypted, options);
|
|
3251
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3252
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.decryptTicket']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3253
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3254
|
-
});
|
|
3255
|
-
},
|
|
3256
|
-
getSessionDefaults(sessionId, options) {
|
|
3257
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3258
|
-
var _a, _b, _c;
|
|
3259
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionDefaults(sessionId, options);
|
|
3260
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3261
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionApi.getSessionDefaults']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3262
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3263
|
-
});
|
|
3264
|
-
},
|
|
3265
|
-
};
|
|
3266
|
-
};
|
|
3267
|
-
exports.SessionApiFp = SessionApiFp;
|
|
3268
|
-
const SessionApiFactory = function (configuration, basePath, axios) {
|
|
3269
|
-
const localVarFp = (0, exports.SessionApiFp)(configuration);
|
|
3270
|
-
return {
|
|
3271
|
-
closeSession(sessionId, options) {
|
|
3272
|
-
return localVarFp.closeSession(sessionId, options).then((request) => request(axios, basePath));
|
|
3273
|
-
},
|
|
3274
|
-
createSessionByModel(modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options) {
|
|
3275
|
-
return localVarFp.createSessionByModel(modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options).then((request) => request(axios, basePath));
|
|
3276
|
-
},
|
|
3277
|
-
createSessionByTicket(ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options) {
|
|
3278
|
-
return localVarFp.createSessionByTicket(ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options).then((request) => request(axios, basePath));
|
|
3279
|
-
},
|
|
3280
|
-
createTicket(modelId, reqTicket, options) {
|
|
3281
|
-
return localVarFp.createTicket(modelId, reqTicket, options).then((request) => request(axios, basePath));
|
|
3282
|
-
},
|
|
3283
|
-
decryptTicket(ticketEncrypted, options) {
|
|
3284
|
-
return localVarFp.decryptTicket(ticketEncrypted, options).then((request) => request(axios, basePath));
|
|
3285
|
-
},
|
|
3286
|
-
getSessionDefaults(sessionId, options) {
|
|
3287
|
-
return localVarFp.getSessionDefaults(sessionId, options).then((request) => request(axios, basePath));
|
|
3288
|
-
},
|
|
3289
|
-
};
|
|
3290
|
-
};
|
|
3291
|
-
exports.SessionApiFactory = SessionApiFactory;
|
|
3292
|
-
class SessionApi extends base_2.BaseAPI {
|
|
3293
|
-
closeSession(sessionId, options) {
|
|
3294
|
-
return (0, exports.SessionApiFp)(this.configuration).closeSession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3295
|
-
}
|
|
3296
|
-
createSessionByModel(modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options) {
|
|
3297
|
-
return (0, exports.SessionApiFp)(this.configuration).createSessionByModel(modelId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options).then((request) => request(this.axios, this.basePath));
|
|
3298
|
-
}
|
|
3299
|
-
createSessionByTicket(ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options) {
|
|
3300
|
-
return (0, exports.SessionApiFp)(this.configuration).createSessionByTicket(ticketId, modelStateId, ignoreUnknownParams, strictModelStateValidation, reqCustomizationOrExport, options).then((request) => request(this.axios, this.basePath));
|
|
3301
|
-
}
|
|
3302
|
-
createTicket(modelId, reqTicket, options) {
|
|
3303
|
-
return (0, exports.SessionApiFp)(this.configuration).createTicket(modelId, reqTicket, options).then((request) => request(this.axios, this.basePath));
|
|
3304
|
-
}
|
|
3305
|
-
decryptTicket(ticketEncrypted, options) {
|
|
3306
|
-
return (0, exports.SessionApiFp)(this.configuration).decryptTicket(ticketEncrypted, options).then((request) => request(this.axios, this.basePath));
|
|
3307
|
-
}
|
|
3308
|
-
getSessionDefaults(sessionId, options) {
|
|
3309
|
-
return (0, exports.SessionApiFp)(this.configuration).getSessionDefaults(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
exports.SessionApi = SessionApi;
|
|
3313
|
-
const SystemApiAxiosParamCreator = function (configuration) {
|
|
3314
|
-
return {
|
|
3315
|
-
createSignedUrl: (endpoint_1, encodedUri_1, ...args_1) => __awaiter(this, [endpoint_1, encodedUri_1, ...args_1], void 0, function* (endpoint, encodedUri, options = {}) {
|
|
3316
|
-
(0, common_1.assertParamExists)('createSignedUrl', 'endpoint', endpoint);
|
|
3317
|
-
(0, common_1.assertParamExists)('createSignedUrl', 'encodedUri', encodedUri);
|
|
3318
|
-
const localVarPath = `/api/v2/system/sign/cdn/{endpoint}/{encodedUri}`
|
|
3319
|
-
.replace('{endpoint}', encodeURIComponent(String(endpoint)))
|
|
3320
|
-
.replace('{encodedUri}', encodeURIComponent(String(encodedUri)));
|
|
3321
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3322
|
-
let baseOptions;
|
|
3323
|
-
if (configuration) {
|
|
3324
|
-
baseOptions = configuration.baseOptions;
|
|
3325
|
-
}
|
|
3326
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3327
|
-
const localVarHeaderParameter = {};
|
|
3328
|
-
const localVarQueryParameter = {};
|
|
3329
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3330
|
-
localVarHeaderParameter['Accept'] = 'text/plain,application/json';
|
|
3331
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3332
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3333
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3334
|
-
return {
|
|
3335
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3336
|
-
options: localVarRequestOptions,
|
|
3337
|
-
};
|
|
3338
|
-
}),
|
|
3339
|
-
eraseModel: (modelId_1, ...args_1) => __awaiter(this, [modelId_1, ...args_1], void 0, function* (modelId, options = {}) {
|
|
3340
|
-
(0, common_1.assertParamExists)('eraseModel', 'modelId', modelId);
|
|
3341
|
-
const localVarPath = `/api/v2/system/model/{modelId}`
|
|
3342
|
-
.replace('{modelId}', encodeURIComponent(String(modelId)));
|
|
3343
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3344
|
-
let baseOptions;
|
|
3345
|
-
if (configuration) {
|
|
3346
|
-
baseOptions = configuration.baseOptions;
|
|
3347
|
-
}
|
|
3348
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3349
|
-
const localVarHeaderParameter = {};
|
|
3350
|
-
const localVarQueryParameter = {};
|
|
3351
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3352
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3353
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3354
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3355
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3356
|
-
return {
|
|
3357
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3358
|
-
options: localVarRequestOptions,
|
|
3359
|
-
};
|
|
3360
|
-
}),
|
|
3361
|
-
getMinionsInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3362
|
-
const localVarPath = `/api/v2/system/minions/info`;
|
|
3363
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3364
|
-
let baseOptions;
|
|
3365
|
-
if (configuration) {
|
|
3366
|
-
baseOptions = configuration.baseOptions;
|
|
3367
|
-
}
|
|
3368
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3369
|
-
const localVarHeaderParameter = {};
|
|
3370
|
-
const localVarQueryParameter = {};
|
|
3371
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3372
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3373
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3374
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3375
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3376
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3377
|
-
return {
|
|
3378
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3379
|
-
options: localVarRequestOptions,
|
|
3380
|
-
};
|
|
3381
|
-
}),
|
|
3382
|
-
getScaleInCandidate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3383
|
-
const localVarPath = `/api/v2/system/workers/scale-in-candidate`;
|
|
3384
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3385
|
-
let baseOptions;
|
|
3386
|
-
if (configuration) {
|
|
3387
|
-
baseOptions = configuration.baseOptions;
|
|
3388
|
-
}
|
|
3389
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3390
|
-
const localVarHeaderParameter = {};
|
|
3391
|
-
const localVarQueryParameter = {};
|
|
3392
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3393
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3394
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3395
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3396
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3397
|
-
return {
|
|
3398
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3399
|
-
options: localVarRequestOptions,
|
|
3400
|
-
};
|
|
3401
|
-
}),
|
|
3402
|
-
getWorkersInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3403
|
-
const localVarPath = `/api/v2/system/workers/info`;
|
|
3404
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3405
|
-
let baseOptions;
|
|
3406
|
-
if (configuration) {
|
|
3407
|
-
baseOptions = configuration.baseOptions;
|
|
3408
|
-
}
|
|
3409
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3410
|
-
const localVarHeaderParameter = {};
|
|
3411
|
-
const localVarQueryParameter = {};
|
|
3412
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3413
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3414
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3415
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3416
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3417
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3418
|
-
return {
|
|
3419
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3420
|
-
options: localVarRequestOptions,
|
|
3421
|
-
};
|
|
3422
|
-
}),
|
|
3423
|
-
};
|
|
3424
|
-
};
|
|
3425
|
-
exports.SystemApiAxiosParamCreator = SystemApiAxiosParamCreator;
|
|
3426
|
-
const SystemApiFp = function (configuration) {
|
|
3427
|
-
const localVarAxiosParamCreator = (0, exports.SystemApiAxiosParamCreator)(configuration);
|
|
3428
|
-
return {
|
|
3429
|
-
createSignedUrl(endpoint, encodedUri, options) {
|
|
3430
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3431
|
-
var _a, _b, _c;
|
|
3432
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSignedUrl(endpoint, encodedUri, options);
|
|
3433
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3434
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.createSignedUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3435
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3436
|
-
});
|
|
3437
|
-
},
|
|
3438
|
-
eraseModel(modelId, options) {
|
|
3439
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3440
|
-
var _a, _b, _c;
|
|
3441
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.eraseModel(modelId, options);
|
|
3442
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3443
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.eraseModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3444
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3445
|
-
});
|
|
3446
|
-
},
|
|
3447
|
-
getMinionsInfo(options) {
|
|
3448
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3449
|
-
var _a, _b, _c;
|
|
3450
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMinionsInfo(options);
|
|
3451
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3452
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.getMinionsInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3453
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3454
|
-
});
|
|
3455
|
-
},
|
|
3456
|
-
getScaleInCandidate(options) {
|
|
3457
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3458
|
-
var _a, _b, _c;
|
|
3459
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScaleInCandidate(options);
|
|
3460
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3461
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.getScaleInCandidate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3462
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3463
|
-
});
|
|
3464
|
-
},
|
|
3465
|
-
getWorkersInfo(options) {
|
|
3466
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3467
|
-
var _a, _b, _c;
|
|
3468
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWorkersInfo(options);
|
|
3469
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3470
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SystemApi.getWorkersInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3471
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3472
|
-
});
|
|
3473
|
-
},
|
|
3474
|
-
};
|
|
3475
|
-
};
|
|
3476
|
-
exports.SystemApiFp = SystemApiFp;
|
|
3477
|
-
const SystemApiFactory = function (configuration, basePath, axios) {
|
|
3478
|
-
const localVarFp = (0, exports.SystemApiFp)(configuration);
|
|
3479
|
-
return {
|
|
3480
|
-
createSignedUrl(endpoint, encodedUri, options) {
|
|
3481
|
-
return localVarFp.createSignedUrl(endpoint, encodedUri, options).then((request) => request(axios, basePath));
|
|
3482
|
-
},
|
|
3483
|
-
eraseModel(modelId, options) {
|
|
3484
|
-
return localVarFp.eraseModel(modelId, options).then((request) => request(axios, basePath));
|
|
3485
|
-
},
|
|
3486
|
-
getMinionsInfo(options) {
|
|
3487
|
-
return localVarFp.getMinionsInfo(options).then((request) => request(axios, basePath));
|
|
3488
|
-
},
|
|
3489
|
-
getScaleInCandidate(options) {
|
|
3490
|
-
return localVarFp.getScaleInCandidate(options).then((request) => request(axios, basePath));
|
|
3491
|
-
},
|
|
3492
|
-
getWorkersInfo(options) {
|
|
3493
|
-
return localVarFp.getWorkersInfo(options).then((request) => request(axios, basePath));
|
|
3494
|
-
},
|
|
3495
|
-
};
|
|
3496
|
-
};
|
|
3497
|
-
exports.SystemApiFactory = SystemApiFactory;
|
|
3498
|
-
class SystemApi extends base_2.BaseAPI {
|
|
3499
|
-
createSignedUrl(endpoint, encodedUri, options) {
|
|
3500
|
-
return (0, exports.SystemApiFp)(this.configuration).createSignedUrl(endpoint, encodedUri, options).then((request) => request(this.axios, this.basePath));
|
|
3501
|
-
}
|
|
3502
|
-
eraseModel(modelId, options) {
|
|
3503
|
-
return (0, exports.SystemApiFp)(this.configuration).eraseModel(modelId, options).then((request) => request(this.axios, this.basePath));
|
|
3504
|
-
}
|
|
3505
|
-
getMinionsInfo(options) {
|
|
3506
|
-
return (0, exports.SystemApiFp)(this.configuration).getMinionsInfo(options).then((request) => request(this.axios, this.basePath));
|
|
3507
|
-
}
|
|
3508
|
-
getScaleInCandidate(options) {
|
|
3509
|
-
return (0, exports.SystemApiFp)(this.configuration).getScaleInCandidate(options).then((request) => request(this.axios, this.basePath));
|
|
3510
|
-
}
|
|
3511
|
-
getWorkersInfo(options) {
|
|
3512
|
-
return (0, exports.SystemApiFp)(this.configuration).getWorkersInfo(options).then((request) => request(this.axios, this.basePath));
|
|
3513
|
-
}
|
|
3514
|
-
}
|
|
3515
|
-
exports.SystemApi = SystemApi;
|
|
3516
|
-
const TextureApiAxiosParamCreator = function (configuration) {
|
|
3517
|
-
return {
|
|
3518
|
-
listTextures: (sessionId_1, offset_1, ...args_1) => __awaiter(this, [sessionId_1, offset_1, ...args_1], void 0, function* (sessionId, offset, options = {}) {
|
|
3519
|
-
(0, common_1.assertParamExists)('listTextures', 'sessionId', sessionId);
|
|
3520
|
-
const localVarPath = `/api/v2/session/{sessionId}/texture/list`
|
|
3521
|
-
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
3522
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3523
|
-
let baseOptions;
|
|
3524
|
-
if (configuration) {
|
|
3525
|
-
baseOptions = configuration.baseOptions;
|
|
3526
|
-
}
|
|
3527
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3528
|
-
const localVarHeaderParameter = {};
|
|
3529
|
-
const localVarQueryParameter = {};
|
|
3530
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3531
|
-
if (offset !== undefined) {
|
|
3532
|
-
localVarQueryParameter['offset'] = offset;
|
|
3533
|
-
}
|
|
3534
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3535
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3536
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3537
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3538
|
-
return {
|
|
3539
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3540
|
-
options: localVarRequestOptions,
|
|
3541
|
-
};
|
|
3542
|
-
}),
|
|
3543
|
-
};
|
|
3544
|
-
};
|
|
3545
|
-
exports.TextureApiAxiosParamCreator = TextureApiAxiosParamCreator;
|
|
3546
|
-
const TextureApiFp = function (configuration) {
|
|
3547
|
-
const localVarAxiosParamCreator = (0, exports.TextureApiAxiosParamCreator)(configuration);
|
|
3548
|
-
return {
|
|
3549
|
-
listTextures(sessionId, offset, options) {
|
|
3550
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3551
|
-
var _a, _b, _c;
|
|
3552
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTextures(sessionId, offset, options);
|
|
3553
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3554
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TextureApi.listTextures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3555
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3556
|
-
});
|
|
3557
|
-
},
|
|
3558
|
-
};
|
|
3559
|
-
};
|
|
3560
|
-
exports.TextureApiFp = TextureApiFp;
|
|
3561
|
-
const TextureApiFactory = function (configuration, basePath, axios) {
|
|
3562
|
-
const localVarFp = (0, exports.TextureApiFp)(configuration);
|
|
3563
|
-
return {
|
|
3564
|
-
listTextures(sessionId, offset, options) {
|
|
3565
|
-
return localVarFp.listTextures(sessionId, offset, options).then((request) => request(axios, basePath));
|
|
3566
|
-
},
|
|
3567
|
-
};
|
|
3568
|
-
};
|
|
3569
|
-
exports.TextureApiFactory = TextureApiFactory;
|
|
3570
|
-
class TextureApi extends base_2.BaseAPI {
|
|
3571
|
-
listTextures(sessionId, offset, options) {
|
|
3572
|
-
return (0, exports.TextureApiFp)(this.configuration).listTextures(sessionId, offset, options).then((request) => request(this.axios, this.basePath));
|
|
3573
|
-
}
|
|
3574
|
-
}
|
|
3575
|
-
exports.TextureApi = TextureApi;
|
|
3576
|
-
//# sourceMappingURL=api.js.map
|