@google-cloud/navconnect 0.1.0
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/LICENSE +202 -0
- package/README.md +115 -0
- package/build/protos/google/maps/navconnect/v1/navconnect_service.proto +263 -0
- package/build/protos/protos.d.ts +7772 -0
- package/build/protos/protos.js +21516 -0
- package/build/protos/protos.json +2251 -0
- package/build/src/index.d.ts +11 -0
- package/build/src/index.js +28 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1/gapic_metadata.json +43 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +23 -0
- package/build/src/v1/index.js.map +1 -0
- package/build/src/v1/nav_connect_service_client.d.ts +204 -0
- package/build/src/v1/nav_connect_service_client.js +401 -0
- package/build/src/v1/nav_connect_service_client.js.map +1 -0
- package/build/src/v1/nav_connect_service_client_config.json +48 -0
- package/build/src/v1/nav_connect_service_proto_list.json +3 -0
- package/package.json +70 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as v1 from './v1';
|
|
2
|
+
declare const NavConnectServiceClient: typeof v1.NavConnectServiceClient;
|
|
3
|
+
type NavConnectServiceClient = v1.NavConnectServiceClient;
|
|
4
|
+
export { v1, NavConnectServiceClient };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
v1: typeof v1;
|
|
7
|
+
NavConnectServiceClient: typeof v1.NavConnectServiceClient;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
import * as protos from '../protos/protos';
|
|
11
|
+
export { protos };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2025 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
//
|
|
16
|
+
// ** This file is automatically generated by synthtool. **
|
|
17
|
+
// ** https://github.com/googleapis/synthtool **
|
|
18
|
+
// ** All changes to this file may be overwritten. **
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.protos = exports.NavConnectServiceClient = exports.v1 = void 0;
|
|
21
|
+
const v1 = require("./v1");
|
|
22
|
+
exports.v1 = v1;
|
|
23
|
+
const NavConnectServiceClient = v1.NavConnectServiceClient;
|
|
24
|
+
exports.NavConnectServiceClient = NavConnectServiceClient;
|
|
25
|
+
exports.default = { v1, NavConnectServiceClient };
|
|
26
|
+
const protos = require("../protos/protos");
|
|
27
|
+
exports.protos = protos;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,2BAA2B;AAKnB,gBAAE;AAHV,MAAM,uBAAuB,GAAG,EAAE,CAAC,uBAAuB,CAAC;AAG/C,0DAAuB;AACnC,kBAAe,EAAC,EAAE,EAAE,uBAAuB,EAAC,CAAC;AAC7C,2CAA2C;AACnC,wBAAM"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "1.0",
|
|
3
|
+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
|
|
4
|
+
"language": "typescript",
|
|
5
|
+
"protoPackage": "google.maps.navconnect.v1",
|
|
6
|
+
"libraryPackage": "@google-cloud/navconnect",
|
|
7
|
+
"services": {
|
|
8
|
+
"NavConnectService": {
|
|
9
|
+
"clients": {
|
|
10
|
+
"grpc": {
|
|
11
|
+
"libraryClient": "NavConnectServiceClient",
|
|
12
|
+
"rpcs": {
|
|
13
|
+
"CreateTrip": {
|
|
14
|
+
"methods": [
|
|
15
|
+
"createTrip"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"GetTrip": {
|
|
19
|
+
"methods": [
|
|
20
|
+
"getTrip"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"grpc-fallback": {
|
|
26
|
+
"libraryClient": "NavConnectServiceClient",
|
|
27
|
+
"rpcs": {
|
|
28
|
+
"CreateTrip": {
|
|
29
|
+
"methods": [
|
|
30
|
+
"createTrip"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"GetTrip": {
|
|
34
|
+
"methods": [
|
|
35
|
+
"getTrip"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavConnectServiceClient } from './nav_connect_service_client';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
//
|
|
16
|
+
// ** This file is automatically generated by gapic-generator-typescript. **
|
|
17
|
+
// ** https://github.com/googleapis/gapic-generator-typescript **
|
|
18
|
+
// ** All changes to this file may be overwritten. **
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.NavConnectServiceClient = void 0;
|
|
21
|
+
var nav_connect_service_client_1 = require("./nav_connect_service_client");
|
|
22
|
+
Object.defineProperty(exports, "NavConnectServiceClient", { enumerable: true, get: function () { return nav_connect_service_client_1.NavConnectServiceClient; } });
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,2EAAqE;AAA7D,qIAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import type * as gax from 'google-gax';
|
|
2
|
+
import type { Callback, CallOptions, Descriptors, ClientOptions } from 'google-gax';
|
|
3
|
+
import * as protos from '../../protos/protos';
|
|
4
|
+
/**
|
|
5
|
+
* Service for NavConnect clients to create and get trips.
|
|
6
|
+
* @class
|
|
7
|
+
* @memberof v1
|
|
8
|
+
*/
|
|
9
|
+
export declare class NavConnectServiceClient {
|
|
10
|
+
private _terminated;
|
|
11
|
+
private _opts;
|
|
12
|
+
private _providedCustomServicePath;
|
|
13
|
+
private _gaxModule;
|
|
14
|
+
private _gaxGrpc;
|
|
15
|
+
private _protos;
|
|
16
|
+
private _defaults;
|
|
17
|
+
private _universeDomain;
|
|
18
|
+
private _servicePath;
|
|
19
|
+
private _log;
|
|
20
|
+
auth: gax.GoogleAuth;
|
|
21
|
+
descriptors: Descriptors;
|
|
22
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
|
23
|
+
innerApiCalls: {
|
|
24
|
+
[name: string]: Function;
|
|
25
|
+
};
|
|
26
|
+
pathTemplates: {
|
|
27
|
+
[name: string]: gax.PathTemplate;
|
|
28
|
+
};
|
|
29
|
+
navConnectServiceStub?: Promise<{
|
|
30
|
+
[name: string]: Function;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Construct an instance of NavConnectServiceClient.
|
|
34
|
+
*
|
|
35
|
+
* @param {object} [options] - The configuration object.
|
|
36
|
+
* The options accepted by the constructor are described in detail
|
|
37
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
38
|
+
* The common options are:
|
|
39
|
+
* @param {object} [options.credentials] - Credentials object.
|
|
40
|
+
* @param {string} [options.credentials.client_email]
|
|
41
|
+
* @param {string} [options.credentials.private_key]
|
|
42
|
+
* @param {string} [options.email] - Account email address. Required when
|
|
43
|
+
* using a .pem or .p12 keyFilename.
|
|
44
|
+
* @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
|
|
45
|
+
* .p12 key downloaded from the Google Developers Console. If you provide
|
|
46
|
+
* a path to a JSON file, the projectId option below is not necessary.
|
|
47
|
+
* NOTE: .pem and .p12 require you to specify options.email as well.
|
|
48
|
+
* @param {number} [options.port] - The port on which to connect to
|
|
49
|
+
* the remote host.
|
|
50
|
+
* @param {string} [options.projectId] - The project ID from the Google
|
|
51
|
+
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
52
|
+
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
53
|
+
* app is running in an environment which supports
|
|
54
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
55
|
+
* your project ID will be detected automatically.
|
|
56
|
+
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
57
|
+
* API remote host.
|
|
58
|
+
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
59
|
+
* Follows the structure of {@link gapicConfig}.
|
|
60
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
61
|
+
* For more information, please check the
|
|
62
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
63
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
64
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
|
65
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
66
|
+
* ```
|
|
67
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
68
|
+
* const client = new NavConnectServiceClient({fallback: true}, gax);
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
72
|
+
/**
|
|
73
|
+
* Initialize the client.
|
|
74
|
+
* Performs asynchronous operations (such as authentication) and prepares the client.
|
|
75
|
+
* This function will be called automatically when any class method is called for the
|
|
76
|
+
* first time, but if you need to initialize it before calling an actual method,
|
|
77
|
+
* feel free to call initialize() directly.
|
|
78
|
+
*
|
|
79
|
+
* You can await on this method if you want to make sure the client is initialized.
|
|
80
|
+
*
|
|
81
|
+
* @returns {Promise} A promise that resolves to an authenticated service stub.
|
|
82
|
+
*/
|
|
83
|
+
initialize(): Promise<{
|
|
84
|
+
[name: string]: Function;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* The DNS address for this API service.
|
|
88
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
89
|
+
* @returns {string} The DNS address for this service.
|
|
90
|
+
*/
|
|
91
|
+
static get servicePath(): string;
|
|
92
|
+
/**
|
|
93
|
+
* The DNS address for this API service - same as servicePath.
|
|
94
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
95
|
+
* @returns {string} The DNS address for this service.
|
|
96
|
+
*/
|
|
97
|
+
static get apiEndpoint(): string;
|
|
98
|
+
/**
|
|
99
|
+
* The DNS address for this API service.
|
|
100
|
+
* @returns {string} The DNS address for this service.
|
|
101
|
+
*/
|
|
102
|
+
get apiEndpoint(): string;
|
|
103
|
+
get universeDomain(): string;
|
|
104
|
+
/**
|
|
105
|
+
* The port for this API service.
|
|
106
|
+
* @returns {number} The default port for this service.
|
|
107
|
+
*/
|
|
108
|
+
static get port(): number;
|
|
109
|
+
/**
|
|
110
|
+
* The scopes needed to make gRPC calls for every method defined
|
|
111
|
+
* in this service.
|
|
112
|
+
* @returns {string[]} List of default scopes.
|
|
113
|
+
*/
|
|
114
|
+
static get scopes(): string[];
|
|
115
|
+
getProjectId(): Promise<string>;
|
|
116
|
+
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
117
|
+
/**
|
|
118
|
+
* Creates a trip. This must be called before the mobile application can start
|
|
119
|
+
* the trip. The returned trip will have the `auth_token` field set.
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} request
|
|
122
|
+
* The request object that will be sent.
|
|
123
|
+
* @param {string} request.parent
|
|
124
|
+
* Required. The parent resource under which this trip will be created.
|
|
125
|
+
* Format: projects/{project_number}
|
|
126
|
+
* @param {string} request.tripId
|
|
127
|
+
* Required. The ID to use for the trip, which will become the final component
|
|
128
|
+
* of the trip's resource name.
|
|
129
|
+
*
|
|
130
|
+
* This value must be a valid RFC-4122 UUID.
|
|
131
|
+
* @param {google.maps.navconnect.v1.Trip} request.trip
|
|
132
|
+
* Required. The trip to create.
|
|
133
|
+
* @param {object} [options]
|
|
134
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
135
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
136
|
+
* The first element of the array is an object representing {@link protos.google.maps.navconnect.v1.Trip|Trip}.
|
|
137
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
138
|
+
* for more details and examples.
|
|
139
|
+
* @example <caption>include:samples/generated/v1/nav_connect_service.create_trip.js</caption>
|
|
140
|
+
* region_tag:navigationconnect_v1_generated_NavConnectService_CreateTrip_async
|
|
141
|
+
*/
|
|
142
|
+
createTrip(request?: protos.google.maps.navconnect.v1.ICreateTripRequest, options?: CallOptions): Promise<[
|
|
143
|
+
protos.google.maps.navconnect.v1.ITrip,
|
|
144
|
+
protos.google.maps.navconnect.v1.ICreateTripRequest | undefined,
|
|
145
|
+
{} | undefined
|
|
146
|
+
]>;
|
|
147
|
+
createTrip(request: protos.google.maps.navconnect.v1.ICreateTripRequest, options: CallOptions, callback: Callback<protos.google.maps.navconnect.v1.ITrip, protos.google.maps.navconnect.v1.ICreateTripRequest | null | undefined, {} | null | undefined>): void;
|
|
148
|
+
createTrip(request: protos.google.maps.navconnect.v1.ICreateTripRequest, callback: Callback<protos.google.maps.navconnect.v1.ITrip, protos.google.maps.navconnect.v1.ICreateTripRequest | null | undefined, {} | null | undefined>): void;
|
|
149
|
+
/**
|
|
150
|
+
* Gets a trip.
|
|
151
|
+
*
|
|
152
|
+
* @param {Object} request
|
|
153
|
+
* The request object that will be sent.
|
|
154
|
+
* @param {string} request.name
|
|
155
|
+
* Required. The resource name of the trip to get.
|
|
156
|
+
* Format: projects/{project}/trips/{trip_id}
|
|
157
|
+
* @param {object} [options]
|
|
158
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
159
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
160
|
+
* The first element of the array is an object representing {@link protos.google.maps.navconnect.v1.Trip|Trip}.
|
|
161
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
162
|
+
* for more details and examples.
|
|
163
|
+
* @example <caption>include:samples/generated/v1/nav_connect_service.get_trip.js</caption>
|
|
164
|
+
* region_tag:navigationconnect_v1_generated_NavConnectService_GetTrip_async
|
|
165
|
+
*/
|
|
166
|
+
getTrip(request?: protos.google.maps.navconnect.v1.IGetTripRequest, options?: CallOptions): Promise<[
|
|
167
|
+
protos.google.maps.navconnect.v1.ITrip,
|
|
168
|
+
protos.google.maps.navconnect.v1.IGetTripRequest | undefined,
|
|
169
|
+
{} | undefined
|
|
170
|
+
]>;
|
|
171
|
+
getTrip(request: protos.google.maps.navconnect.v1.IGetTripRequest, options: CallOptions, callback: Callback<protos.google.maps.navconnect.v1.ITrip, protos.google.maps.navconnect.v1.IGetTripRequest | null | undefined, {} | null | undefined>): void;
|
|
172
|
+
getTrip(request: protos.google.maps.navconnect.v1.IGetTripRequest, callback: Callback<protos.google.maps.navconnect.v1.ITrip, protos.google.maps.navconnect.v1.IGetTripRequest | null | undefined, {} | null | undefined>): void;
|
|
173
|
+
/**
|
|
174
|
+
* Return a fully-qualified trip resource name string.
|
|
175
|
+
*
|
|
176
|
+
* @param {string} project
|
|
177
|
+
* @param {string} trip
|
|
178
|
+
* @returns {string} Resource name string.
|
|
179
|
+
*/
|
|
180
|
+
tripPath(project: string, trip: string): string;
|
|
181
|
+
/**
|
|
182
|
+
* Parse the project from Trip resource.
|
|
183
|
+
*
|
|
184
|
+
* @param {string} tripName
|
|
185
|
+
* A fully-qualified path representing Trip resource.
|
|
186
|
+
* @returns {string} A string representing the project.
|
|
187
|
+
*/
|
|
188
|
+
matchProjectFromTripName(tripName: string): string | number;
|
|
189
|
+
/**
|
|
190
|
+
* Parse the trip from Trip resource.
|
|
191
|
+
*
|
|
192
|
+
* @param {string} tripName
|
|
193
|
+
* A fully-qualified path representing Trip resource.
|
|
194
|
+
* @returns {string} A string representing the trip.
|
|
195
|
+
*/
|
|
196
|
+
matchTripFromTripName(tripName: string): string | number;
|
|
197
|
+
/**
|
|
198
|
+
* Terminate the gRPC channel and close the client.
|
|
199
|
+
*
|
|
200
|
+
* The client will no longer be usable and all future behavior is undefined.
|
|
201
|
+
* @returns {Promise} A promise that resolves when the client is closed.
|
|
202
|
+
*/
|
|
203
|
+
close(): Promise<void>;
|
|
204
|
+
}
|