Updating NPM dependencies
This commit is contained in:
3
node_modules/googleapis/build/src/apis/groupsmigration/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/groupsmigration/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function groupsmigration(version: 'v1'): groupsmigration_v1.Group
|
||||
export declare function groupsmigration(options: groupsmigration_v1.Options): groupsmigration_v1.Groupsmigration;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { groupsmigration_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/groupsmigration/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/groupsmigration/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.groupsmigration_v1 = exports.auth = exports.groupsmigration = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "groupsmigration_v1", { enumerable: true, get: function () { return v1_1.groupsmigration_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.groupsmigration_v1.Groupsmigration,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function groupsmigration(versionOrOptions) {
|
||||
exports.groupsmigration = groupsmigration;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
138
node_modules/googleapis/build/src/apis/groupsmigration/v1.d.ts
generated
vendored
138
node_modules/googleapis/build/src/apis/groupsmigration/v1.d.ts
generated
vendored
@@ -1,30 +1,31 @@
|
||||
/**
|
||||
* Copyright 2019 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace groupsmigration_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
@@ -42,28 +43,28 @@ export declare namespace groupsmigration_v1 {
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
userIp?: string;
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Groups Migration API
|
||||
*
|
||||
* Groups Migration Api.
|
||||
* The Groups Migration API allows domain administrators to archive emails into Google groups.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const groupsmigration = google.groupsmigration('v1');
|
||||
*
|
||||
* @namespace groupsmigration
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Groupsmigration
|
||||
* ```
|
||||
*/
|
||||
export class Groupsmigration {
|
||||
context: APIRequestContext;
|
||||
@@ -87,34 +88,80 @@ export declare namespace groupsmigration_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* groupsmigration.archive.insert
|
||||
* @desc Inserts a new mail into the archive of the Google group.
|
||||
* @alias groupsmigration.archive.insert
|
||||
* @memberOf! ()
|
||||
* Inserts a new mail into the archive of the Google group.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/groupsmigration.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.groupId The group ID
|
||||
* @param {object} params.media Media object
|
||||
* @param {string} params.media.mimeType Media mime-type
|
||||
* @param {string|object} params.media.body Media body contents
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
* const {google} = require('googleapis');
|
||||
* const groupsmigration = google.groupsmigration('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/apps.groups.migration'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await groupsmigration.archive.insert({
|
||||
* // The group ID
|
||||
* groupId: 'placeholder-value',
|
||||
*
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* },
|
||||
* media: {
|
||||
* mimeType: 'placeholder-value',
|
||||
* body: 'placeholder-value',
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "kind": "my_kind",
|
||||
* // "responseCode": "my_responseCode"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
insert(params: Params$Resource$Archive$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
insert(params?: Params$Resource$Archive$Insert, options?: MethodOptions): GaxiosPromise<Schema$Groups>;
|
||||
insert(params: Params$Resource$Archive$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
insert(params: Params$Resource$Archive$Insert, options: MethodOptions | BodyResponseCallback<Schema$Groups>, callback: BodyResponseCallback<Schema$Groups>): void;
|
||||
insert(params: Params$Resource$Archive$Insert, callback: BodyResponseCallback<Schema$Groups>): void;
|
||||
insert(callback: BodyResponseCallback<Schema$Groups>): void;
|
||||
}
|
||||
export interface Params$Resource$Archive$Insert extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The group ID
|
||||
*/
|
||||
groupId?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: {};
|
||||
/**
|
||||
* Media metadata
|
||||
*/
|
||||
@@ -131,3 +178,4 @@ export declare namespace groupsmigration_v1 {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.d.ts.map
|
||||
51
node_modules/googleapis/build/src/apis/groupsmigration/v1.js
generated
vendored
51
node_modules/googleapis/build/src/apis/groupsmigration/v1.js
generated
vendored
@@ -1,42 +1,37 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 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.
|
||||
*/
|
||||
// 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.groupsmigration_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* 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");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var groupsmigration_v1;
|
||||
(function (groupsmigration_v1) {
|
||||
/**
|
||||
* Groups Migration API
|
||||
*
|
||||
* Groups Migration Api.
|
||||
* The Groups Migration API allows domain administrators to archive emails into Google groups.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const groupsmigration = google.groupsmigration('v1');
|
||||
*
|
||||
* @namespace groupsmigration
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Groupsmigration
|
||||
* ```
|
||||
*/
|
||||
class Groupsmigration {
|
||||
constructor(options, google) {
|
||||
@@ -64,7 +59,7 @@ var groupsmigration_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://groupsmigration.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'),
|
||||
|
||||
Reference in New Issue
Block a user