edge-impulse-linux 1.8.8 → 1.8.10
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/build/cli/linux/runner-downloader.js +12 -3
- package/build/cli/linux/runner-downloader.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +49 -0
- package/build/sdk/studio/sdk/api/adminApi.js +243 -0
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationsApi.d.ts +52 -0
- package/build/sdk/studio/sdk/api/organizationsApi.js +261 -0
- package/build/sdk/studio/sdk/api/organizationsApi.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminApiUser.d.ts +1 -1
- package/build/sdk/studio/sdk/model/adminApiUserAllOf.d.ts +1 -1
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.d.ts +1 -1
- package/build/sdk/studio/sdk/model/canaryResponse.d.ts +8 -0
- package/build/sdk/studio/sdk/model/canaryResponse.js +10 -0
- package/build/sdk/studio/sdk/model/canaryResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/canaryResponseAllOf.d.ts +28 -0
- package/build/sdk/studio/sdk/model/canaryResponseAllOf.js +29 -0
- package/build/sdk/studio/sdk/model/canaryResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/models.d.ts +1 -0
- package/build/sdk/studio/sdk/model/models.js +3 -0
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/cli/linux/runner-downloader.ts +14 -3
- package/package.json +1 -1
|
@@ -59,11 +59,20 @@ class RunnerDownloader extends tsee_1.EventEmitter {
|
|
|
59
59
|
if (fs_1.default.existsSync('/proc/device-tree/model')) {
|
|
60
60
|
firmwareModel = await fs_1.default.promises.readFile('/proc/device-tree/model', 'utf-8');
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if ((process.env.INFERENCE_CONTAINER_JETSON_NANO === '1') ||
|
|
63
|
+
(firmwareModel && firmwareModel.indexOf('NVIDIA Jetson Nano') > -1)) {
|
|
63
64
|
downloadType = 'runner-linux-aarch64-jetson-nano';
|
|
64
65
|
}
|
|
65
|
-
if (process.env.
|
|
66
|
-
downloadType = 'runner-linux-aarch64-jetson-
|
|
66
|
+
if (process.env.INFERENCE_CONTAINER_JETSON_ORIN_6_0 === '1') {
|
|
67
|
+
downloadType = 'runner-linux-aarch64-jetson-orin-6-0';
|
|
68
|
+
}
|
|
69
|
+
const cudaLib = (await (0, spawn_helper_1.spawnHelper)('find', ["/usr", "-type", "f", "-name", 'libcudart.so.1[0-9]'])).trim();
|
|
70
|
+
const nvinferLib = (await (0, spawn_helper_1.spawnHelper)('find', ["/usr", "-type", "f", "-name", 'libnvinfer.so.[7-9]'])).trim();
|
|
71
|
+
const cudnnLib = (await (0, spawn_helper_1.spawnHelper)('find', ["/usr", "-type", "f", "-name", 'libcudnn.so.[7-9]'])).trim();
|
|
72
|
+
if ((cudaLib.indexOf('12') > -1)
|
|
73
|
+
&& (nvinferLib.indexOf('8') > -1)
|
|
74
|
+
&& (cudnnLib.indexOf('8') > -1)) {
|
|
75
|
+
downloadType = 'runner-linux-aarch64-jetson-orin-6-0';
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-downloader.js","sourceRoot":"","sources":["../../../cli/linux/runner-downloader.ts"],"names":[],"mappings":";;;;;;AACA,+BAAoC;AACpC,qEAAiE;AACjE,4CAAoB;AAEpB,gDAAwB;AACxB,4CAAoB;AAEpB,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAE5C,MAAa,gBAAiB,SAAQ,mBAEpC;IAOE,YAAY,SAAiB,EAAE,SAA6B,EAChD,MAAyB,EAAE,WAA+B,EAC1D,WAA+B;QACvC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;Q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YAAY,CAAC,OAAe;QACxB,IAAI,SAAS,GAAG,GAAG,GAAG,OAAO,CAAC;QAC9B,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE;YAC5B,SAAS,IAAI,YAAY,CAAC;SAC7B;QACD,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,SAAS,IAAI,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,SAAS,IAAI,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC;SACxC;QAED,OAAO,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,OAAO,EAAE,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,GAAG,EAAE,EAC7E,SAAS,EAAE,WAAW,CAAC,CAAC;IAChC,CAAC;CACJ;AA9BD,0CA8BC"}
|
|
@@ -54,6 +54,7 @@ import { JobDetailsResponse } from '../model/jobDetailsResponse';
|
|
|
54
54
|
import { JobLogsResponse } from '../model/jobLogsResponse';
|
|
55
55
|
import { JobMetricsResponse } from '../model/jobMetricsResponse';
|
|
56
56
|
import { JobParentTypeEnum } from '../model/jobParentTypeEnum';
|
|
57
|
+
import { ListJobsResponse } from '../model/listJobsResponse';
|
|
57
58
|
import { ProjectInfoResponse } from '../model/projectInfoResponse';
|
|
58
59
|
import { StartJobResponse } from '../model/startJobResponse';
|
|
59
60
|
import { UpdateProjectRequest } from '../model/updateProjectRequest';
|
|
@@ -98,6 +99,10 @@ type adminGetOrganizationDataExportsQueryParams = {
|
|
|
98
99
|
type adminGetOrganizationInfoQueryParams = {
|
|
99
100
|
includeDeleted?: boolean;
|
|
100
101
|
};
|
|
102
|
+
type adminGetOrganizationJobsQueryParams = {
|
|
103
|
+
limit?: number;
|
|
104
|
+
offset?: number;
|
|
105
|
+
};
|
|
101
106
|
type adminGetOrganizationUsageReportsQueryParams = {
|
|
102
107
|
limit?: number;
|
|
103
108
|
offset?: number;
|
|
@@ -110,6 +115,10 @@ type adminGetOrganizationsQueryParams = {
|
|
|
110
115
|
offset?: number;
|
|
111
116
|
search?: string;
|
|
112
117
|
};
|
|
118
|
+
type adminGetProjectJobsQueryParams = {
|
|
119
|
+
limit?: number;
|
|
120
|
+
offset?: number;
|
|
121
|
+
};
|
|
113
122
|
type adminGetProjectsQueryParams = {
|
|
114
123
|
active?: number;
|
|
115
124
|
sort?: string;
|
|
@@ -117,6 +126,10 @@ type adminGetProjectsQueryParams = {
|
|
|
117
126
|
offset?: number;
|
|
118
127
|
search?: string;
|
|
119
128
|
};
|
|
129
|
+
type adminGetUserJobsQueryParams = {
|
|
130
|
+
limit?: number;
|
|
131
|
+
offset?: number;
|
|
132
|
+
};
|
|
120
133
|
type adminGetUsersQueryParams = {
|
|
121
134
|
active?: number;
|
|
122
135
|
tier?: UserTierEnum;
|
|
@@ -547,6 +560,18 @@ export declare class AdminApi {
|
|
|
547
560
|
[name: string]: string;
|
|
548
561
|
};
|
|
549
562
|
}): Promise<AdminOrganizationInfoResponse>;
|
|
563
|
+
/**
|
|
564
|
+
* Admin-only API to get the list of all jobs for a organization.
|
|
565
|
+
* @summary Get organization jobs
|
|
566
|
+
* @param organizationId Organization ID
|
|
567
|
+
* @param limit Maximum number of results
|
|
568
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
569
|
+
*/
|
|
570
|
+
adminGetOrganizationJobs(organizationId: number, queryParams: adminGetOrganizationJobsQueryParams, options?: {
|
|
571
|
+
headers: {
|
|
572
|
+
[name: string]: string;
|
|
573
|
+
};
|
|
574
|
+
}): Promise<ListJobsResponse>;
|
|
550
575
|
/**
|
|
551
576
|
* Admin-only API to get a usage report for an organization.
|
|
552
577
|
* @summary Get usage report
|
|
@@ -595,6 +620,18 @@ export declare class AdminApi {
|
|
|
595
620
|
[name: string]: string;
|
|
596
621
|
};
|
|
597
622
|
}): Promise<ProjectInfoResponse>;
|
|
623
|
+
/**
|
|
624
|
+
* Admin-only API to get the list of all jobs for a project.
|
|
625
|
+
* @summary Get project jobs
|
|
626
|
+
* @param projectId Project ID
|
|
627
|
+
* @param limit Maximum number of results
|
|
628
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
629
|
+
*/
|
|
630
|
+
adminGetProjectJobs(projectId: number, queryParams: adminGetProjectJobsQueryParams, options?: {
|
|
631
|
+
headers: {
|
|
632
|
+
[name: string]: string;
|
|
633
|
+
};
|
|
634
|
+
}): Promise<ListJobsResponse>;
|
|
598
635
|
/**
|
|
599
636
|
* Admin-only API to get the list of all projects.
|
|
600
637
|
* @summary Get all projects
|
|
@@ -648,6 +685,18 @@ export declare class AdminApi {
|
|
|
648
685
|
[name: string]: string;
|
|
649
686
|
};
|
|
650
687
|
}): Promise<AdminGetUserResponse>;
|
|
688
|
+
/**
|
|
689
|
+
* Admin-only API to get the list of all project jobs for a user.
|
|
690
|
+
* @summary Get user jobs
|
|
691
|
+
* @param userId User ID
|
|
692
|
+
* @param limit Maximum number of results
|
|
693
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
694
|
+
*/
|
|
695
|
+
adminGetUserJobs(userId: number, queryParams: adminGetUserJobsQueryParams, options?: {
|
|
696
|
+
headers: {
|
|
697
|
+
[name: string]: string;
|
|
698
|
+
};
|
|
699
|
+
}): Promise<ListJobsResponse>;
|
|
651
700
|
/**
|
|
652
701
|
* Admin-only API to get marketing metrics about a user.
|
|
653
702
|
* @summary Get user metrics
|
|
@@ -2943,6 +2943,87 @@ class AdminApi {
|
|
|
2943
2943
|
});
|
|
2944
2944
|
});
|
|
2945
2945
|
}
|
|
2946
|
+
/**
|
|
2947
|
+
* Admin-only API to get the list of all jobs for a organization.
|
|
2948
|
+
* @summary Get organization jobs
|
|
2949
|
+
* @param organizationId Organization ID
|
|
2950
|
+
* @param limit Maximum number of results
|
|
2951
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2952
|
+
*/
|
|
2953
|
+
async adminGetOrganizationJobs(organizationId, queryParams, options = { headers: {} }) {
|
|
2954
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/jobs'
|
|
2955
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2956
|
+
let localVarQueryParameters = {};
|
|
2957
|
+
let localVarHeaderParams = Object.assign({
|
|
2958
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2959
|
+
}, this.defaultHeaders);
|
|
2960
|
+
const produces = ['application/json'];
|
|
2961
|
+
// give precedence to 'application/json'
|
|
2962
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2963
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2964
|
+
}
|
|
2965
|
+
else {
|
|
2966
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2967
|
+
}
|
|
2968
|
+
let localVarFormParams = {};
|
|
2969
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2970
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2971
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminGetOrganizationJobs.');
|
|
2972
|
+
}
|
|
2973
|
+
if (queryParams.limit !== undefined) {
|
|
2974
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2975
|
+
}
|
|
2976
|
+
if (queryParams.offset !== undefined) {
|
|
2977
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2978
|
+
}
|
|
2979
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2980
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2981
|
+
let localVarUseFormData = false;
|
|
2982
|
+
let localVarRequestOptions = {
|
|
2983
|
+
method: 'GET',
|
|
2984
|
+
qs: localVarQueryParameters,
|
|
2985
|
+
headers: localVarHeaderParams,
|
|
2986
|
+
uri: localVarPath,
|
|
2987
|
+
useQuerystring: this._useQuerystring,
|
|
2988
|
+
agentOptions: { keepAlive: false },
|
|
2989
|
+
json: true,
|
|
2990
|
+
};
|
|
2991
|
+
let authenticationPromise = Promise.resolve();
|
|
2992
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2993
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2994
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2995
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2996
|
+
return authenticationPromise.then(() => {
|
|
2997
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2998
|
+
if (localVarUseFormData) {
|
|
2999
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3000
|
+
}
|
|
3001
|
+
else {
|
|
3002
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
return new Promise((resolve, reject) => {
|
|
3006
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3007
|
+
if (error) {
|
|
3008
|
+
reject(error);
|
|
3009
|
+
}
|
|
3010
|
+
else {
|
|
3011
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
3012
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3013
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3014
|
+
reject(new Error(body.error || errString));
|
|
3015
|
+
}
|
|
3016
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3017
|
+
resolve(body);
|
|
3018
|
+
}
|
|
3019
|
+
else {
|
|
3020
|
+
reject(errString);
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
});
|
|
3025
|
+
});
|
|
3026
|
+
}
|
|
2946
3027
|
/**
|
|
2947
3028
|
* Admin-only API to get a usage report for an organization.
|
|
2948
3029
|
* @summary Get usage report
|
|
@@ -3267,6 +3348,87 @@ class AdminApi {
|
|
|
3267
3348
|
});
|
|
3268
3349
|
});
|
|
3269
3350
|
}
|
|
3351
|
+
/**
|
|
3352
|
+
* Admin-only API to get the list of all jobs for a project.
|
|
3353
|
+
* @summary Get project jobs
|
|
3354
|
+
* @param projectId Project ID
|
|
3355
|
+
* @param limit Maximum number of results
|
|
3356
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3357
|
+
*/
|
|
3358
|
+
async adminGetProjectJobs(projectId, queryParams, options = { headers: {} }) {
|
|
3359
|
+
const localVarPath = this.basePath + '/api/admin/projects/{projectId}/jobs'
|
|
3360
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3361
|
+
let localVarQueryParameters = {};
|
|
3362
|
+
let localVarHeaderParams = Object.assign({
|
|
3363
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3364
|
+
}, this.defaultHeaders);
|
|
3365
|
+
const produces = ['application/json'];
|
|
3366
|
+
// give precedence to 'application/json'
|
|
3367
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3368
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3369
|
+
}
|
|
3370
|
+
else {
|
|
3371
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3372
|
+
}
|
|
3373
|
+
let localVarFormParams = {};
|
|
3374
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3375
|
+
if (projectId === null || projectId === undefined) {
|
|
3376
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminGetProjectJobs.');
|
|
3377
|
+
}
|
|
3378
|
+
if (queryParams.limit !== undefined) {
|
|
3379
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3380
|
+
}
|
|
3381
|
+
if (queryParams.offset !== undefined) {
|
|
3382
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3383
|
+
}
|
|
3384
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3385
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3386
|
+
let localVarUseFormData = false;
|
|
3387
|
+
let localVarRequestOptions = {
|
|
3388
|
+
method: 'GET',
|
|
3389
|
+
qs: localVarQueryParameters,
|
|
3390
|
+
headers: localVarHeaderParams,
|
|
3391
|
+
uri: localVarPath,
|
|
3392
|
+
useQuerystring: this._useQuerystring,
|
|
3393
|
+
agentOptions: { keepAlive: false },
|
|
3394
|
+
json: true,
|
|
3395
|
+
};
|
|
3396
|
+
let authenticationPromise = Promise.resolve();
|
|
3397
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3398
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3399
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3400
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3401
|
+
return authenticationPromise.then(() => {
|
|
3402
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3403
|
+
if (localVarUseFormData) {
|
|
3404
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3405
|
+
}
|
|
3406
|
+
else {
|
|
3407
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
return new Promise((resolve, reject) => {
|
|
3411
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3412
|
+
if (error) {
|
|
3413
|
+
reject(error);
|
|
3414
|
+
}
|
|
3415
|
+
else {
|
|
3416
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
3417
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3418
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3419
|
+
reject(new Error(body.error || errString));
|
|
3420
|
+
}
|
|
3421
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3422
|
+
resolve(body);
|
|
3423
|
+
}
|
|
3424
|
+
else {
|
|
3425
|
+
reject(errString);
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
});
|
|
3429
|
+
});
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3270
3432
|
/**
|
|
3271
3433
|
* Admin-only API to get the list of all projects.
|
|
3272
3434
|
* @summary Get all projects
|
|
@@ -3640,6 +3802,87 @@ class AdminApi {
|
|
|
3640
3802
|
});
|
|
3641
3803
|
});
|
|
3642
3804
|
}
|
|
3805
|
+
/**
|
|
3806
|
+
* Admin-only API to get the list of all project jobs for a user.
|
|
3807
|
+
* @summary Get user jobs
|
|
3808
|
+
* @param userId User ID
|
|
3809
|
+
* @param limit Maximum number of results
|
|
3810
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3811
|
+
*/
|
|
3812
|
+
async adminGetUserJobs(userId, queryParams, options = { headers: {} }) {
|
|
3813
|
+
const localVarPath = this.basePath + '/api/admin/users/{userId}/jobs'
|
|
3814
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
3815
|
+
let localVarQueryParameters = {};
|
|
3816
|
+
let localVarHeaderParams = Object.assign({
|
|
3817
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3818
|
+
}, this.defaultHeaders);
|
|
3819
|
+
const produces = ['application/json'];
|
|
3820
|
+
// give precedence to 'application/json'
|
|
3821
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3822
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3823
|
+
}
|
|
3824
|
+
else {
|
|
3825
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3826
|
+
}
|
|
3827
|
+
let localVarFormParams = {};
|
|
3828
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3829
|
+
if (userId === null || userId === undefined) {
|
|
3830
|
+
throw new Error('Required parameter userId was null or undefined when calling adminGetUserJobs.');
|
|
3831
|
+
}
|
|
3832
|
+
if (queryParams.limit !== undefined) {
|
|
3833
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3834
|
+
}
|
|
3835
|
+
if (queryParams.offset !== undefined) {
|
|
3836
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3837
|
+
}
|
|
3838
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3839
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3840
|
+
let localVarUseFormData = false;
|
|
3841
|
+
let localVarRequestOptions = {
|
|
3842
|
+
method: 'GET',
|
|
3843
|
+
qs: localVarQueryParameters,
|
|
3844
|
+
headers: localVarHeaderParams,
|
|
3845
|
+
uri: localVarPath,
|
|
3846
|
+
useQuerystring: this._useQuerystring,
|
|
3847
|
+
agentOptions: { keepAlive: false },
|
|
3848
|
+
json: true,
|
|
3849
|
+
};
|
|
3850
|
+
let authenticationPromise = Promise.resolve();
|
|
3851
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3852
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3853
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3854
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3855
|
+
return authenticationPromise.then(() => {
|
|
3856
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3857
|
+
if (localVarUseFormData) {
|
|
3858
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3859
|
+
}
|
|
3860
|
+
else {
|
|
3861
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
return new Promise((resolve, reject) => {
|
|
3865
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3866
|
+
if (error) {
|
|
3867
|
+
reject(error);
|
|
3868
|
+
}
|
|
3869
|
+
else {
|
|
3870
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
3871
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3872
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3873
|
+
reject(new Error(body.error || errString));
|
|
3874
|
+
}
|
|
3875
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3876
|
+
resolve(body);
|
|
3877
|
+
}
|
|
3878
|
+
else {
|
|
3879
|
+
reject(errString);
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
});
|
|
3883
|
+
});
|
|
3884
|
+
});
|
|
3885
|
+
}
|
|
3643
3886
|
/**
|
|
3644
3887
|
* Admin-only API to get marketing metrics about a user.
|
|
3645
3888
|
* @summary Get user metrics
|