Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run template copying last in synthtool #1071

Merged
merged 5 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
// 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,
Expand Down
7 changes: 1 addition & 6 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
// 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.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **


module.exports = {
...require('gts/.prettierrc.json')
Expand Down
84 changes: 63 additions & 21 deletions dev/protos/firestore_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3037,20 +3037,6 @@ export namespace google {
public listCollectionIds(request: google.firestore.v1.IListCollectionIdsRequest): Promise<google.firestore.v1.ListCollectionIdsResponse>;

/**
* Calls BatchWrite.
* @param request BatchWriteRequest message or plain object
* @param callback Node-style callback called with the error, if any, and BatchWriteResponse
*/
public batchWrite(request: google.firestore.v1.IBatchWriteRequest, callback: google.firestore.v1.Firestore.BatchWriteCallback): void;

/**
* Calls BatchWrite.
* @param request BatchWriteRequest message or plain object
* @returns Promise
*/
public batchWrite(request: google.firestore.v1.IBatchWriteRequest): Promise<google.firestore.v1.BatchWriteResponse>;

/*
* Calls CreateDocument.
* @param request CreateDocumentRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Document
Expand All @@ -3063,6 +3049,20 @@ export namespace google {
* @returns Promise
*/
public createDocument(request: google.firestore.v1.ICreateDocumentRequest): Promise<google.firestore.v1.Document>;

/**
* Calls BatchWrite.
* @param request BatchWriteRequest message or plain object
* @param callback Node-style callback called with the error, if any, and BatchWriteResponse
*/
public batchWrite(request: google.firestore.v1.IBatchWriteRequest, callback: google.firestore.v1.Firestore.BatchWriteCallback): void;

/**
* Calls BatchWrite.
* @param request BatchWriteRequest message or plain object
* @returns Promise
*/
public batchWrite(request: google.firestore.v1.IBatchWriteRequest): Promise<google.firestore.v1.BatchWriteResponse>;
}

namespace Firestore {
Expand Down Expand Up @@ -3152,18 +3152,18 @@ export namespace google {
type ListCollectionIdsCallback = (error: (Error|null), response?: google.firestore.v1.ListCollectionIdsResponse) => void;

/**
* Callback as used by {@link google.firestore.v1.Firestore#batchWrite}.
* @param error Error, if any
* @param [response] BatchWriteResponse
*/
type BatchWriteCallback = (error: (Error|null), response?: google.firestore.v1.BatchWriteResponse) => void;

/*
* Callback as used by {@link google.firestore.v1.Firestore#createDocument}.
* @param error Error, if any
* @param [response] Document
*/
type CreateDocumentCallback = (error: (Error|null), response?: google.firestore.v1.Document) => void;

/**
* Callback as used by {@link google.firestore.v1.Firestore#batchWrite}.
* @param error Error, if any
* @param [response] BatchWriteResponse
*/
type BatchWriteCallback = (error: (Error|null), response?: google.firestore.v1.BatchWriteResponse) => void;
}

/** Properties of a GetDocumentRequest. */
Expand Down Expand Up @@ -4660,6 +4660,27 @@ export namespace google {

/** BatchWriteRequest writes. */
public writes: google.firestore.v1.IWrite[];

/**
* Creates a BatchWriteRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BatchWriteRequest
*/
public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchWriteRequest;

/**
* Creates a plain object from a BatchWriteRequest message. Also converts values to other types if specified.
* @param message BatchWriteRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.firestore.v1.BatchWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this BatchWriteRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** Properties of a BatchWriteResponse. */
Expand All @@ -4686,6 +4707,27 @@ export namespace google {

/** BatchWriteResponse status. */
public status: google.rpc.IStatus[];

/**
* Creates a BatchWriteResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BatchWriteResponse
*/
public static fromObject(object: { [k: string]: any }): google.firestore.v1.BatchWriteResponse;

/**
* Creates a plain object from a BatchWriteResponse message. Also converts values to other types if specified.
* @param message BatchWriteResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.firestore.v1.BatchWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this BatchWriteResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}

/** Properties of a StructuredQuery. */
Expand Down
Loading