@coscine/api-client 1.2.0 → 1.3.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/index.js +6 -72
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -72
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Metadata/api.js +9 -88
- package/dist/lib/Coscine.Api.Metadata/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/common.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/index.js +1 -1
- package/dist/types/Coscine.Api.Metadata/api.d.ts +52 -55
- package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
- package/dist/types/apis.d.ts +4 -5
- package/dist/types/index.d.ts +8 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3096,56 +3096,17 @@ const createRequestFunction$9 = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
3096
3096
|
*/
|
|
3097
3097
|
const MetadataApiAxiosParamCreator = function (configuration) {
|
|
3098
3098
|
return {
|
|
3099
|
-
/**
|
|
3100
|
-
*
|
|
3101
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3102
|
-
* @param {string} profile Url of the application profile
|
|
3103
|
-
* @param {string} resourceId Id of the resource
|
|
3104
|
-
* @param {*} [options] Override http request option.
|
|
3105
|
-
* @throws {RequiredError}
|
|
3106
|
-
*/
|
|
3107
|
-
metadataGetApplicationProfileComplete: (profile, resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3108
|
-
// verify required parameter 'profile' is not null or undefined
|
|
3109
|
-
assertParamExists$8('metadataGetApplicationProfileComplete', 'profile', profile);
|
|
3110
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
3111
|
-
assertParamExists$8('metadataGetApplicationProfileComplete', 'resourceId', resourceId);
|
|
3112
|
-
const localVarPath = `/Metadata/profiles/{profile}/{resourceId}`
|
|
3113
|
-
.replace(`{${"profile"}}`, encodeURIComponent(String(profile)))
|
|
3114
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
3115
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3116
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
3117
|
-
let baseOptions;
|
|
3118
|
-
if (configuration) {
|
|
3119
|
-
baseOptions = configuration.baseOptions;
|
|
3120
|
-
}
|
|
3121
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3122
|
-
const localVarHeaderParameter = {};
|
|
3123
|
-
const localVarQueryParameter = {};
|
|
3124
|
-
// authentication JWT token required
|
|
3125
|
-
yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
|
|
3126
|
-
setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3127
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3128
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3129
|
-
return {
|
|
3130
|
-
url: toPathString$9(localVarUrlObj),
|
|
3131
|
-
options: localVarRequestOptions,
|
|
3132
|
-
};
|
|
3133
|
-
}),
|
|
3134
3099
|
/**
|
|
3135
3100
|
*
|
|
3136
3101
|
* @summary This method returns instances.
|
|
3137
|
-
* @param {string} projectId Id of the project
|
|
3138
3102
|
* @param {string} className class name
|
|
3139
3103
|
* @param {*} [options] Override http request option.
|
|
3140
3104
|
* @throws {RequiredError}
|
|
3141
3105
|
*/
|
|
3142
|
-
metadataGetClassInstances: (
|
|
3143
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
3144
|
-
assertParamExists$8('metadataGetClassInstances', 'projectId', projectId);
|
|
3106
|
+
metadataGetClassInstances: (className, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3145
3107
|
// verify required parameter 'className' is not null or undefined
|
|
3146
3108
|
assertParamExists$8('metadataGetClassInstances', 'className', className);
|
|
3147
|
-
const localVarPath = `/Metadata/instances/{
|
|
3148
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
3109
|
+
const localVarPath = `/Metadata/instances/{className}`
|
|
3149
3110
|
.replace(`{${"className"}}`, encodeURIComponent(String(className)));
|
|
3150
3111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3151
3112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
|
|
@@ -3323,31 +3284,16 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
3323
3284
|
const MetadataApiFp = function (configuration) {
|
|
3324
3285
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
|
|
3325
3286
|
return {
|
|
3326
|
-
/**
|
|
3327
|
-
*
|
|
3328
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3329
|
-
* @param {string} profile Url of the application profile
|
|
3330
|
-
* @param {string} resourceId Id of the resource
|
|
3331
|
-
* @param {*} [options] Override http request option.
|
|
3332
|
-
* @throws {RequiredError}
|
|
3333
|
-
*/
|
|
3334
|
-
metadataGetApplicationProfileComplete(profile, resourceId, options) {
|
|
3335
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3336
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetApplicationProfileComplete(profile, resourceId, options);
|
|
3337
|
-
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
3338
|
-
});
|
|
3339
|
-
},
|
|
3340
3287
|
/**
|
|
3341
3288
|
*
|
|
3342
3289
|
* @summary This method returns instances.
|
|
3343
|
-
* @param {string} projectId Id of the project
|
|
3344
3290
|
* @param {string} className class name
|
|
3345
3291
|
* @param {*} [options] Override http request option.
|
|
3346
3292
|
* @throws {RequiredError}
|
|
3347
3293
|
*/
|
|
3348
|
-
metadataGetClassInstances(
|
|
3294
|
+
metadataGetClassInstances(className, options) {
|
|
3349
3295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3350
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(
|
|
3296
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(className, options);
|
|
3351
3297
|
return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
|
|
3352
3298
|
});
|
|
3353
3299
|
},
|
|
@@ -3423,27 +3369,15 @@ const MetadataApiFp = function (configuration) {
|
|
|
3423
3369
|
const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
3424
3370
|
const localVarFp = MetadataApiFp(configuration);
|
|
3425
3371
|
return {
|
|
3426
|
-
/**
|
|
3427
|
-
*
|
|
3428
|
-
* @summary Returns the application profile with the fixed values for the given resource.
|
|
3429
|
-
* @param {string} profile Url of the application profile
|
|
3430
|
-
* @param {string} resourceId Id of the resource
|
|
3431
|
-
* @param {*} [options] Override http request option.
|
|
3432
|
-
* @throws {RequiredError}
|
|
3433
|
-
*/
|
|
3434
|
-
metadataGetApplicationProfileComplete(profile, resourceId, options) {
|
|
3435
|
-
return localVarFp.metadataGetApplicationProfileComplete(profile, resourceId, options).then((request) => request(axios, basePath));
|
|
3436
|
-
},
|
|
3437
3372
|
/**
|
|
3438
3373
|
*
|
|
3439
3374
|
* @summary This method returns instances.
|
|
3440
|
-
* @param {string} projectId Id of the project
|
|
3441
3375
|
* @param {string} className class name
|
|
3442
3376
|
* @param {*} [options] Override http request option.
|
|
3443
3377
|
* @throws {RequiredError}
|
|
3444
3378
|
*/
|
|
3445
|
-
metadataGetClassInstances(
|
|
3446
|
-
return localVarFp.metadataGetClassInstances(
|
|
3379
|
+
metadataGetClassInstances(className, options) {
|
|
3380
|
+
return localVarFp.metadataGetClassInstances(className, options).then((request) => request(axios, basePath));
|
|
3447
3381
|
},
|
|
3448
3382
|
/**
|
|
3449
3383
|
*
|