@googleapis/solar 0.2.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/CHANGELOG.md +15 -0
- package/README.md +28 -0
- package/build/index.d.ts +12 -0
- package/build/index.js +31 -0
- package/build/index.js.map +1 -0
- package/build/v1.d.ts +706 -0
- package/build/v1.js +160 -0
- package/build/v1.js.map +1 -0
- package/index.ts +44 -0
- package/package.json +43 -0
- package/tsconfig.json +10 -0
- package/v1.ts +985 -0
- package/webpack.config.js +79 -0
package/build/v1.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2020 Google LLC
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.solar_v1 = void 0;
|
|
16
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
18
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
19
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
20
|
+
/* eslint-disable no-irregular-whitespace */
|
|
21
|
+
const googleapis_common_1 = require("googleapis-common");
|
|
22
|
+
var solar_v1;
|
|
23
|
+
(function (solar_v1) {
|
|
24
|
+
/**
|
|
25
|
+
* Solar API
|
|
26
|
+
*
|
|
27
|
+
* Solar API.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```js
|
|
31
|
+
* const {google} = require('googleapis');
|
|
32
|
+
* const solar = google.solar('v1');
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class Solar {
|
|
36
|
+
constructor(options, google) {
|
|
37
|
+
this.context = {
|
|
38
|
+
_options: options || {},
|
|
39
|
+
google,
|
|
40
|
+
};
|
|
41
|
+
this.buildingInsights = new Resource$Buildinginsights(this.context);
|
|
42
|
+
this.dataLayers = new Resource$Datalayers(this.context);
|
|
43
|
+
this.geoTiff = new Resource$Geotiff(this.context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
solar_v1.Solar = Solar;
|
|
47
|
+
class Resource$Buildinginsights {
|
|
48
|
+
constructor(context) {
|
|
49
|
+
this.context = context;
|
|
50
|
+
}
|
|
51
|
+
findClosest(paramsOrCallback, optionsOrCallback, callback) {
|
|
52
|
+
let params = (paramsOrCallback ||
|
|
53
|
+
{});
|
|
54
|
+
let options = (optionsOrCallback || {});
|
|
55
|
+
if (typeof paramsOrCallback === 'function') {
|
|
56
|
+
callback = paramsOrCallback;
|
|
57
|
+
params = {};
|
|
58
|
+
options = {};
|
|
59
|
+
}
|
|
60
|
+
if (typeof optionsOrCallback === 'function') {
|
|
61
|
+
callback = optionsOrCallback;
|
|
62
|
+
options = {};
|
|
63
|
+
}
|
|
64
|
+
const rootUrl = options.rootUrl || 'https://solar.googleapis.com/';
|
|
65
|
+
const parameters = {
|
|
66
|
+
options: Object.assign({
|
|
67
|
+
url: (rootUrl + '/v1/buildingInsights:findClosest').replace(/([^:]\/)\/+/g, '$1'),
|
|
68
|
+
method: 'GET',
|
|
69
|
+
apiVersion: '',
|
|
70
|
+
}, options),
|
|
71
|
+
params,
|
|
72
|
+
requiredParams: [],
|
|
73
|
+
pathParams: [],
|
|
74
|
+
context: this.context,
|
|
75
|
+
};
|
|
76
|
+
if (callback) {
|
|
77
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
solar_v1.Resource$Buildinginsights = Resource$Buildinginsights;
|
|
85
|
+
class Resource$Datalayers {
|
|
86
|
+
constructor(context) {
|
|
87
|
+
this.context = context;
|
|
88
|
+
}
|
|
89
|
+
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
90
|
+
let params = (paramsOrCallback || {});
|
|
91
|
+
let options = (optionsOrCallback || {});
|
|
92
|
+
if (typeof paramsOrCallback === 'function') {
|
|
93
|
+
callback = paramsOrCallback;
|
|
94
|
+
params = {};
|
|
95
|
+
options = {};
|
|
96
|
+
}
|
|
97
|
+
if (typeof optionsOrCallback === 'function') {
|
|
98
|
+
callback = optionsOrCallback;
|
|
99
|
+
options = {};
|
|
100
|
+
}
|
|
101
|
+
const rootUrl = options.rootUrl || 'https://solar.googleapis.com/';
|
|
102
|
+
const parameters = {
|
|
103
|
+
options: Object.assign({
|
|
104
|
+
url: (rootUrl + '/v1/dataLayers:get').replace(/([^:]\/)\/+/g, '$1'),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
apiVersion: '',
|
|
107
|
+
}, options),
|
|
108
|
+
params,
|
|
109
|
+
requiredParams: [],
|
|
110
|
+
pathParams: [],
|
|
111
|
+
context: this.context,
|
|
112
|
+
};
|
|
113
|
+
if (callback) {
|
|
114
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
solar_v1.Resource$Datalayers = Resource$Datalayers;
|
|
122
|
+
class Resource$Geotiff {
|
|
123
|
+
constructor(context) {
|
|
124
|
+
this.context = context;
|
|
125
|
+
}
|
|
126
|
+
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
127
|
+
let params = (paramsOrCallback || {});
|
|
128
|
+
let options = (optionsOrCallback || {});
|
|
129
|
+
if (typeof paramsOrCallback === 'function') {
|
|
130
|
+
callback = paramsOrCallback;
|
|
131
|
+
params = {};
|
|
132
|
+
options = {};
|
|
133
|
+
}
|
|
134
|
+
if (typeof optionsOrCallback === 'function') {
|
|
135
|
+
callback = optionsOrCallback;
|
|
136
|
+
options = {};
|
|
137
|
+
}
|
|
138
|
+
const rootUrl = options.rootUrl || 'https://solar.googleapis.com/';
|
|
139
|
+
const parameters = {
|
|
140
|
+
options: Object.assign({
|
|
141
|
+
url: (rootUrl + '/v1/geoTiff:get').replace(/([^:]\/)\/+/g, '$1'),
|
|
142
|
+
method: 'GET',
|
|
143
|
+
apiVersion: '',
|
|
144
|
+
}, options),
|
|
145
|
+
params,
|
|
146
|
+
requiredParams: [],
|
|
147
|
+
pathParams: [],
|
|
148
|
+
context: this.context,
|
|
149
|
+
};
|
|
150
|
+
if (callback) {
|
|
151
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
solar_v1.Resource$Geotiff = Resource$Geotiff;
|
|
159
|
+
})(solar_v1 = exports.solar_v1 || (exports.solar_v1 = {}));
|
|
160
|
+
//# sourceMappingURL=v1.js.map
|
package/build/v1.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAs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ACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAkB,UAAU,CAAC,CAAC;aACtD;QACH,CAAC;KACF;IAzFY,yBAAgB,mBAyF5B,CAAA;AAQH,CAAC,EAn7BgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAm7BxB"}
|
package/index.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright 2020 Google LLC
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
|
|
14
|
+
/*! THIS FILE IS AUTO-GENERATED */
|
|
15
|
+
|
|
16
|
+
import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
|
|
17
|
+
import {solar_v1} from './v1';
|
|
18
|
+
|
|
19
|
+
export const VERSIONS = {
|
|
20
|
+
v1: solar_v1.Solar,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export function solar(version: 'v1'): solar_v1.Solar;
|
|
24
|
+
export function solar(options: solar_v1.Options): solar_v1.Solar;
|
|
25
|
+
export function solar<T = solar_v1.Solar>(
|
|
26
|
+
this: GoogleConfigurable,
|
|
27
|
+
versionOrOptions: 'v1' | solar_v1.Options
|
|
28
|
+
) {
|
|
29
|
+
return getAPI<T>('solar', versionOrOptions, VERSIONS, this);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const auth = new AuthPlus();
|
|
33
|
+
export {auth};
|
|
34
|
+
export {solar_v1};
|
|
35
|
+
export {
|
|
36
|
+
AuthPlus,
|
|
37
|
+
GlobalOptions,
|
|
38
|
+
APIRequestContext,
|
|
39
|
+
GoogleConfigurable,
|
|
40
|
+
StreamMethodOptions,
|
|
41
|
+
GaxiosPromise,
|
|
42
|
+
MethodOptions,
|
|
43
|
+
BodyResponseCallback,
|
|
44
|
+
} from 'googleapis-common';
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@googleapis/solar",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "solar",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"types": "build/index.d.ts",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"google"
|
|
9
|
+
],
|
|
10
|
+
"author": "Google LLC",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"homepage": "https://github.com/googleapis/google-api-nodejs-client",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/googleapis/google-api-nodejs-client/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=12.0.0"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"fix": "gts fix",
|
|
25
|
+
"lint": "gts check",
|
|
26
|
+
"compile": "tsc -p .",
|
|
27
|
+
"prepare": "npm run compile",
|
|
28
|
+
"webpack": "webpack"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"googleapis-common": "^7.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@microsoft/api-documenter": "^7.8.10",
|
|
35
|
+
"@microsoft/api-extractor": "^7.8.10",
|
|
36
|
+
"gts": "^5.0.0",
|
|
37
|
+
"null-loader": "^4.0.0",
|
|
38
|
+
"ts-loader": "^9.0.0",
|
|
39
|
+
"typescript": "~4.8.4",
|
|
40
|
+
"webpack": "^5.0.0",
|
|
41
|
+
"webpack-cli": "^5.0.0"
|
|
42
|
+
}
|
|
43
|
+
}
|