edge-impulse-api 1.71.27 → 1.71.29

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.
@@ -17,7 +17,6 @@ import { ConvertUserRequest } from '../model/convertUserRequest';
17
17
  import { CreateDeveloperProfileResponse } from '../model/createDeveloperProfileResponse';
18
18
  import { CreateEnterpriseTrialResponse } from '../model/createEnterpriseTrialResponse';
19
19
  import { CreateEnterpriseTrialUserRequest } from '../model/createEnterpriseTrialUserRequest';
20
- import { CreateEvaluationUserResponse } from '../model/createEvaluationUserResponse';
21
20
  import { CreateProTierUserRequest } from '../model/createProTierUserRequest';
22
21
  import { CreateUserRequest } from '../model/createUserRequest';
23
22
  import { CreateUserResponse } from '../model/createUserResponse';
@@ -190,15 +189,6 @@ export declare class UserApi {
190
189
  [name: string]: string;
191
190
  };
192
191
  }): Promise<CreateEnterpriseTrialResponse>;
193
- /**
194
- * Creates an evaluation user and a new project, and redirects the user to the new project. This API is no longer publicly available. Go to https://studio.edgeimpulse.com/evaluate instead to create an evaluation user.
195
- * @summary Create evaluation user
196
- */
197
- createEvaluationUser(options?: {
198
- headers: {
199
- [name: string]: string;
200
- };
201
- }): Promise<CreateEvaluationUserResponse>;
202
192
  /**
203
193
  * Create a new user for the Professional Plan and a new project. Note that the Professional plan will not be enabled until the payment is successful. This API is internal (it requires some signed fields), sign up at https://studio.edgeimpulse.com/signup instead.
204
194
  * @summary Create Professional Tier user
@@ -811,71 +811,6 @@ class UserApi {
811
811
  });
812
812
  });
813
813
  }
814
- /**
815
- * Creates an evaluation user and a new project, and redirects the user to the new project. This API is no longer publicly available. Go to https://studio.edgeimpulse.com/evaluate instead to create an evaluation user.
816
- * @summary Create evaluation user
817
- */
818
- async createEvaluationUser(options = { headers: {} }) {
819
- const localVarPath = this.basePath + '/api-user-create-evaluate';
820
- let localVarQueryParameters = {};
821
- let localVarHeaderParams = Object.assign({
822
- 'User-Agent': 'edgeimpulse-api nodejs'
823
- }, this.defaultHeaders);
824
- const produces = ['application/json'];
825
- // give precedence to 'application/json'
826
- if (produces.indexOf('application/json') >= 0) {
827
- localVarHeaderParams.Accept = 'application/json';
828
- }
829
- else {
830
- localVarHeaderParams.Accept = produces.join(',');
831
- }
832
- let localVarFormParams = {};
833
- Object.assign(localVarHeaderParams, options.headers);
834
- Object.assign(localVarHeaderParams, this.opts.extraHeaders);
835
- let localVarUseFormData = false;
836
- let localVarRequestOptions = {
837
- method: 'POST',
838
- qs: localVarQueryParameters,
839
- headers: localVarHeaderParams,
840
- uri: localVarPath,
841
- useQuerystring: this._useQuerystring,
842
- agentOptions: { keepAlive: false },
843
- json: true,
844
- };
845
- let authenticationPromise = Promise.resolve();
846
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
847
- return authenticationPromise.then(() => {
848
- if (Object.keys(localVarFormParams).length) {
849
- if (localVarUseFormData) {
850
- localVarRequestOptions.formData = localVarFormParams;
851
- }
852
- else {
853
- localVarRequestOptions.form = localVarFormParams;
854
- }
855
- }
856
- return new Promise((resolve, reject) => {
857
- localVarRequest(localVarRequestOptions, (error, response, body) => {
858
- if (error) {
859
- reject(error);
860
- }
861
- else {
862
- body = models_1.ObjectSerializer.deserialize(body, "CreateEvaluationUserResponse");
863
- if (typeof body.success === 'boolean' && !body.success) {
864
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
865
- reject(new Error(body.error || errString));
866
- }
867
- else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
868
- resolve(body);
869
- }
870
- else {
871
- const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
872
- reject(errString);
873
- }
874
- }
875
- });
876
- });
877
- });
878
- }
879
814
  /**
880
815
  * Create a new user for the Professional Plan and a new project. Note that the Professional plan will not be enabled until the payment is successful. This API is internal (it requires some signed fields), sign up at https://studio.edgeimpulse.com/signup instead.
881
816
  * @summary Create Professional Tier user