@vertexvis/api-client-node 0.21.3 → 0.22.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/dist/cjs/api.d.ts +335 -37
- package/dist/cjs/api.js +117 -3
- package/dist/cjs/client/helpers/index.d.ts +1 -1
- package/dist/cjs/client/helpers/index.js +1 -1
- package/dist/cjs/client/index.d.ts +1 -1
- package/dist/cjs/client/index.js +1 -1
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/api.d.ts +335 -37
- package/dist/esm/api.js +110 -0
- package/dist/esm/client/helpers/index.d.ts +1 -1
- package/dist/esm/client/helpers/index.js +1 -1
- package/dist/esm/client/index.d.ts +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +10 -10
package/dist/esm/api.js
CHANGED
|
@@ -72,6 +72,9 @@ export const PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
72
72
|
export const PartRelationshipDataTypeEnum = {
|
|
73
73
|
Part: 'part',
|
|
74
74
|
};
|
|
75
|
+
export const PartRenditionRelationshipDataTypeEnum = {
|
|
76
|
+
PartRendition: 'part-rendition',
|
|
77
|
+
};
|
|
75
78
|
/**
|
|
76
79
|
* Resource object type.
|
|
77
80
|
* @export
|
|
@@ -1122,6 +1125,113 @@ export class BatchesApi extends BaseAPI {
|
|
|
1122
1125
|
.then((request) => request(this.axios, this.basePath));
|
|
1123
1126
|
}
|
|
1124
1127
|
}
|
|
1128
|
+
/**
|
|
1129
|
+
* DefaultApi - axios parameter creator
|
|
1130
|
+
* @export
|
|
1131
|
+
*/
|
|
1132
|
+
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1133
|
+
return {
|
|
1134
|
+
/**
|
|
1135
|
+
*
|
|
1136
|
+
* @param {string} id The `part-revision` ID.
|
|
1137
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
createPartRendition: (id, createPartRenditionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1142
|
+
var _a;
|
|
1143
|
+
// verify required parameter 'id' is not null or undefined
|
|
1144
|
+
assertParamExists('createPartRendition', 'id', id);
|
|
1145
|
+
// verify required parameter 'createPartRenditionRequest' is not null or undefined
|
|
1146
|
+
assertParamExists('createPartRendition', 'createPartRenditionRequest', createPartRenditionRequest);
|
|
1147
|
+
const localVarPath = `/part-revisions/{id}/part-renditions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1150
|
+
let baseOptions;
|
|
1151
|
+
if (configuration) {
|
|
1152
|
+
baseOptions = configuration.baseOptions;
|
|
1153
|
+
}
|
|
1154
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1155
|
+
const localVarHeaderParameter = {};
|
|
1156
|
+
const localVarQueryParameter = {};
|
|
1157
|
+
// authentication OAuth2 required
|
|
1158
|
+
// oauth required
|
|
1159
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1160
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1162
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPartRenditionRequest, localVarRequestOptions, configuration);
|
|
1165
|
+
return {
|
|
1166
|
+
url: toPathString(localVarUrlObj),
|
|
1167
|
+
options: localVarRequestOptions,
|
|
1168
|
+
};
|
|
1169
|
+
}),
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
/**
|
|
1173
|
+
* DefaultApi - functional programming interface
|
|
1174
|
+
* @export
|
|
1175
|
+
*/
|
|
1176
|
+
export const DefaultApiFp = function (configuration) {
|
|
1177
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
1178
|
+
return {
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @param {string} id The `part-revision` ID.
|
|
1182
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
*/
|
|
1186
|
+
createPartRendition(id, createPartRenditionRequest, options) {
|
|
1187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPartRendition(id, createPartRenditionRequest, options);
|
|
1189
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1190
|
+
});
|
|
1191
|
+
},
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
/**
|
|
1195
|
+
* DefaultApi - factory interface
|
|
1196
|
+
* @export
|
|
1197
|
+
*/
|
|
1198
|
+
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1199
|
+
const localVarFp = DefaultApiFp(configuration);
|
|
1200
|
+
return {
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @param {string} id The `part-revision` ID.
|
|
1204
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
createPartRendition(id, createPartRenditionRequest, options) {
|
|
1209
|
+
return localVarFp
|
|
1210
|
+
.createPartRendition(id, createPartRenditionRequest, options)
|
|
1211
|
+
.then((request) => request(axios, basePath));
|
|
1212
|
+
},
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
/**
|
|
1216
|
+
* DefaultApi - object-oriented interface
|
|
1217
|
+
* @export
|
|
1218
|
+
* @class DefaultApi
|
|
1219
|
+
* @extends {BaseAPI}
|
|
1220
|
+
*/
|
|
1221
|
+
export class DefaultApi extends BaseAPI {
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @param {DefaultApiCreatePartRenditionRequest} requestParameters Request parameters.
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
* @memberof DefaultApi
|
|
1228
|
+
*/
|
|
1229
|
+
createPartRendition(requestParameters, options) {
|
|
1230
|
+
return DefaultApiFp(this.configuration)
|
|
1231
|
+
.createPartRendition(requestParameters.id, requestParameters.createPartRenditionRequest, options)
|
|
1232
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1125
1235
|
/**
|
|
1126
1236
|
* ExportsApi - axios parameter creator
|
|
1127
1237
|
* @export
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VertexClient } from './index';
|
|
2
|
+
export * from './helpers/index';
|
|
2
3
|
export * from './utils';
|
|
3
4
|
export * from './vertex-client';
|
|
4
|
-
export * from './helpers/index';
|
|
5
5
|
/** Common helper arguments. */
|
|
6
6
|
export interface BaseReq {
|
|
7
7
|
/** An instance of {@link VertexClient}. */
|
package/dist/esm/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.22.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.
|
|
1
|
+
export const version = '0.22.0';
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/api-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "The Vertex REST API client for Node.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"typescript"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"axios": "^
|
|
36
|
+
"axios": "^1.5.0",
|
|
37
37
|
"p-limit": "^3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/jest": "^27.0",
|
|
41
41
|
"@types/node": "^16",
|
|
42
|
-
"@vertexvis/eslint-config-vertexvis-typescript": "^0.
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint-plugin-promise": "^
|
|
45
|
-
"eslint-plugin-simple-import-sort": "^
|
|
46
|
-
"eslint-plugin-tsdoc": "^0.2",
|
|
47
|
-
"jest": "^
|
|
42
|
+
"@vertexvis/eslint-config-vertexvis-typescript": "^0.5.1",
|
|
43
|
+
"eslint": "^8.49.0",
|
|
44
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
45
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
46
|
+
"eslint-plugin-tsdoc": "^0.2.17",
|
|
47
|
+
"jest": "^29.7.0",
|
|
48
48
|
"pinst": "^2.1",
|
|
49
|
-
"prettier": "^
|
|
50
|
-
"ts-jest": "^
|
|
49
|
+
"prettier": "^3.0.3",
|
|
50
|
+
"ts-jest": "^29.1.1",
|
|
51
51
|
"typedoc": "^0.22",
|
|
52
52
|
"typescript": "4.5.x"
|
|
53
53
|
},
|