@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
716 lines (711 loc) • 23.5 kB
text/typescript
import { SDKModels } from './SDKModels';
import { XompassBaseApi, XompassAuth } from '../core';
import { XompassClient } from '../../XompassClient';
import { LoopBackFilter } from '../../models';
import { AWSRekognition } from '../../models';
import { Customer, Log } from '../../models';
/**
* Api services for the `AWSRekognition` model.
*/
export abstract class AWSRekognitionApi extends XompassBaseApi {
public static model = SDKModels.get('AWSRekognition');
public static findByIdTrackingLogs(id: any, fk: any, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/trackingLogs/:fk'
].join('');
const _routeParams = {
id,
fk
};
const _postBody = {};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getTrackingLogs(id: any, filter: LoopBackFilter = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/trackingLogs'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof filter !== 'undefined' && filter !== null) {
_urlParams['filter'] = filter;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static countTrackingLogs(id: any, where: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/trackingLogs/count'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof where !== 'undefined' && where !== null) {
_urlParams['where'] = where;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static compareFaces(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/compare/faces'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static createCollection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/collection'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static createProject(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/project'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static createProjectVersion(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/projectVersion'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static createStreamProcessor(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/streamProcessor'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static deleteCollection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'DELETE';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/collection'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static deleteFaces(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'DELETE';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/faces'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static deleteStreamProcessor(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'DELETE';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/streamProcessor'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static describeCollection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/collection'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static describeProjects(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/projects'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static describeProjectVersions(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/projectVersions'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static describeStreamProcessor(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/streamProcessor'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static detectCustomLabels(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/detect/customLabels'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static detectFaces(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/detect/faces'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static detectLabels(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/detect/labels'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static detectModerationLabels(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/detect/moderationLabels'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static detectText(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/detect/text'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getCelebrityInfo(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/celebrityInfo'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getCelebrityRecognition(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/celebrityRecognition'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getContentModeration(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/contentModeration'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getFaceDetection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/faceDetection'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getFaceSearch(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/faceSearch'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getLabelDetection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/labelDetection'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static getPersonTracking(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/personTracking'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static indexFaces(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/indexFaces'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static listCollections(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/collections'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static listFaces(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/faces'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static listStreamProcessors(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'GET';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/streamProcessors'
].join('');
const _routeParams = {
id
};
const _postBody = {};
const _urlParams: any = {};
if (typeof params !== 'undefined' && params !== null) {
_urlParams['params'] = params;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static recognizeCelebrities(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/recognizeCelebrities'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static searchFaces(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/searchFaces'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static searchFacesByImage(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/searchFacesByImage'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startCelebrityRecognition(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startCelebrityRecognition'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startContentModeration(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startContentModeration'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startFaceDetection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startFaceDetection'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startFaceSearch(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startFaceSearch'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startLabelDetection(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startLabelDetection'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startPersonTracking(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startPersonTracking'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startProjectVersion(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startProjectVersion'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static startStreamProcessor(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/startStreamProcessor'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static stopProjectVersion(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/stopProjectVersion'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static stopStreamProcessor(id: any, params: any = {}, retry = false): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/stopStreamProcessor'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
public static waitFor(
id: any,
state: any = {},
params: any = {},
retry = false
): Promise<any> {
const _method = 'POST';
const _url = [
XompassClient.getPath() + '/' + XompassClient.getApiVersion(),
'/AWSRekognitions/:id/waitFor'
].join('');
const _routeParams = {
id
};
const _postBody = {
params
};
const _urlParams: any = {};
if (typeof state !== 'undefined' && state !== null) {
_urlParams['state'] = state;
}
return super.request(_method, _url, _routeParams, _urlParams, _postBody, retry);
}
/**
* The name of the model represented by this $resource,
* i.e. `AWSRekognition`.
*/
public static getModelName(): string {
return 'AWSRekognition';
}
}