/
opt
/
canhelp
/
node_modules
/
googleapis
/
build
/
src
/
apis
/
recommendationengine
/
/opt/canhelp/node_modules/googleapis/build/src/apis/recommendationengine
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
754
0644
edit
dl
rm
index.js
1612
0644
edit
dl
rm
v1beta1.d.ts
163280
0644
edit
dl
rm
v1beta1.js
35014
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/googleapis/build/src/apis/recommendationengine/v1beta1.js
(35014B)
"use strict"; // Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); exports.recommendationengine_v1beta1 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = require("googleapis-common"); var recommendationengine_v1beta1; (function (recommendationengine_v1beta1) { /** * Recommendations AI (Beta) * * Note that we now highly recommend new customers to use Retail API, which incorporates the GA version of the Recommendations AI funtionalities. To enable Retail API, please visit https://console.cloud.google.com/apis/library/retail.googleapis.com. The Recommendations AI service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud. * * @example * ```js * const {google} = require('googleapis'); * const recommendationengine = google.recommendationengine('v1beta1'); * ``` */ class Recommendationengine { context; projects; constructor(options, google) { this.context = { _options: options || {}, google, }; this.projects = new Resource$Projects(this.context); } } recommendationengine_v1beta1.Recommendationengine = Recommendationengine; class Resource$Projects { context; locations; constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } recommendationengine_v1beta1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { context; catalogs; constructor(context) { this.context = context; this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); } } recommendationengine_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; class Resource$Projects$Locations$Catalogs { context; catalogItems; eventStores; operations; constructor(context) { this.context = context; this.catalogItems = new Resource$Projects$Locations$Catalogs$Catalogitems(this.context); this.eventStores = new Resource$Projects$Locations$Catalogs$Eventstores(this.context); this.operations = new Resource$Projects$Locations$Catalogs$Operations(this.context); } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; class Resource$Projects$Locations$Catalogs$Catalogitems { context; constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/catalogItems:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Catalogitems = Resource$Projects$Locations$Catalogs$Catalogitems; class Resource$Projects$Locations$Catalogs$Eventstores { context; operations; placements; predictionApiKeyRegistrations; userEvents; constructor(context) { this.context = context; this.operations = new Resource$Projects$Locations$Catalogs$Eventstores$Operations(this.context); this.placements = new Resource$Projects$Locations$Catalogs$Eventstores$Placements(this.context); this.predictionApiKeyRegistrations = new Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations(this.context); this.userEvents = new Resource$Projects$Locations$Catalogs$Eventstores$Userevents(this.context); } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores = Resource$Projects$Locations$Catalogs$Eventstores; class Resource$Projects$Locations$Catalogs$Eventstores$Operations { context; constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Operations = Resource$Projects$Locations$Catalogs$Eventstores$Operations; class Resource$Projects$Locations$Catalogs$Eventstores$Placements { context; constructor(context) { this.context = context; } predict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Placements = Resource$Projects$Locations$Catalogs$Eventstores$Placements; class Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations { context; constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations = Resource$Projects$Locations$Catalogs$Eventstores$Predictionapikeyregistrations; class Resource$Projects$Locations$Catalogs$Eventstores$Userevents { context; constructor(context) { this.context = context; } collect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/userEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } rejoin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } write(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Userevents = Resource$Projects$Locations$Catalogs$Eventstores$Userevents; class Resource$Projects$Locations$Catalogs$Operations { context; constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; })(recommendationengine_v1beta1 || (exports.recommendationengine_v1beta1 = recommendationengine_v1beta1 = {}));
Save
cmd:
run