@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.umd.js CHANGED
@@ -3102,56 +3102,17 @@
3102
3102
  */
3103
3103
  const MetadataApiAxiosParamCreator = function (configuration) {
3104
3104
  return {
3105
- /**
3106
- *
3107
- * @summary Returns the application profile with the fixed values for the given resource.
3108
- * @param {string} profile Url of the application profile
3109
- * @param {string} resourceId Id of the resource
3110
- * @param {*} [options] Override http request option.
3111
- * @throws {RequiredError}
3112
- */
3113
- metadataGetApplicationProfileComplete: (profile, resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
3114
- // verify required parameter 'profile' is not null or undefined
3115
- assertParamExists$8('metadataGetApplicationProfileComplete', 'profile', profile);
3116
- // verify required parameter 'resourceId' is not null or undefined
3117
- assertParamExists$8('metadataGetApplicationProfileComplete', 'resourceId', resourceId);
3118
- const localVarPath = `/Metadata/profiles/{profile}/{resourceId}`
3119
- .replace(`{${"profile"}}`, encodeURIComponent(String(profile)))
3120
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
3121
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3122
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
3123
- let baseOptions;
3124
- if (configuration) {
3125
- baseOptions = configuration.baseOptions;
3126
- }
3127
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3128
- const localVarHeaderParameter = {};
3129
- const localVarQueryParameter = {};
3130
- // authentication JWT token required
3131
- yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
3132
- setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
3133
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3134
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3135
- return {
3136
- url: toPathString$9(localVarUrlObj),
3137
- options: localVarRequestOptions,
3138
- };
3139
- }),
3140
3105
  /**
3141
3106
  *
3142
3107
  * @summary This method returns instances.
3143
- * @param {string} projectId Id of the project
3144
3108
  * @param {string} className class name
3145
3109
  * @param {*} [options] Override http request option.
3146
3110
  * @throws {RequiredError}
3147
3111
  */
3148
- metadataGetClassInstances: (projectId, className, options = {}) => __awaiter(this, void 0, void 0, function* () {
3149
- // verify required parameter 'projectId' is not null or undefined
3150
- assertParamExists$8('metadataGetClassInstances', 'projectId', projectId);
3112
+ metadataGetClassInstances: (className, options = {}) => __awaiter(this, void 0, void 0, function* () {
3151
3113
  // verify required parameter 'className' is not null or undefined
3152
3114
  assertParamExists$8('metadataGetClassInstances', 'className', className);
3153
- const localVarPath = `/Metadata/instances/{projectId}/{className}`
3154
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
3115
+ const localVarPath = `/Metadata/instances/{className}`
3155
3116
  .replace(`{${"className"}}`, encodeURIComponent(String(className)));
3156
3117
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3157
3118
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
@@ -3329,31 +3290,16 @@
3329
3290
  const MetadataApiFp = function (configuration) {
3330
3291
  const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
3331
3292
  return {
3332
- /**
3333
- *
3334
- * @summary Returns the application profile with the fixed values for the given resource.
3335
- * @param {string} profile Url of the application profile
3336
- * @param {string} resourceId Id of the resource
3337
- * @param {*} [options] Override http request option.
3338
- * @throws {RequiredError}
3339
- */
3340
- metadataGetApplicationProfileComplete(profile, resourceId, options) {
3341
- return __awaiter(this, void 0, void 0, function* () {
3342
- const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetApplicationProfileComplete(profile, resourceId, options);
3343
- return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
3344
- });
3345
- },
3346
3293
  /**
3347
3294
  *
3348
3295
  * @summary This method returns instances.
3349
- * @param {string} projectId Id of the project
3350
3296
  * @param {string} className class name
3351
3297
  * @param {*} [options] Override http request option.
3352
3298
  * @throws {RequiredError}
3353
3299
  */
3354
- metadataGetClassInstances(projectId, className, options) {
3300
+ metadataGetClassInstances(className, options) {
3355
3301
  return __awaiter(this, void 0, void 0, function* () {
3356
- const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(projectId, className, options);
3302
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.metadataGetClassInstances(className, options);
3357
3303
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
3358
3304
  });
3359
3305
  },
@@ -3429,27 +3375,15 @@
3429
3375
  const MetadataApiFactory = function (configuration, basePath, axios) {
3430
3376
  const localVarFp = MetadataApiFp(configuration);
3431
3377
  return {
3432
- /**
3433
- *
3434
- * @summary Returns the application profile with the fixed values for the given resource.
3435
- * @param {string} profile Url of the application profile
3436
- * @param {string} resourceId Id of the resource
3437
- * @param {*} [options] Override http request option.
3438
- * @throws {RequiredError}
3439
- */
3440
- metadataGetApplicationProfileComplete(profile, resourceId, options) {
3441
- return localVarFp.metadataGetApplicationProfileComplete(profile, resourceId, options).then((request) => request(axios, basePath));
3442
- },
3443
3378
  /**
3444
3379
  *
3445
3380
  * @summary This method returns instances.
3446
- * @param {string} projectId Id of the project
3447
3381
  * @param {string} className class name
3448
3382
  * @param {*} [options] Override http request option.
3449
3383
  * @throws {RequiredError}
3450
3384
  */
3451
- metadataGetClassInstances(projectId, className, options) {
3452
- return localVarFp.metadataGetClassInstances(projectId, className, options).then((request) => request(axios, basePath));
3385
+ metadataGetClassInstances(className, options) {
3386
+ return localVarFp.metadataGetClassInstances(className, options).then((request) => request(axios, basePath));
3453
3387
  },
3454
3388
  /**
3455
3389
  *