Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: typescript conversion on video-intelligence #375

Merged
merged 24 commits into from
Mar 9, 2020
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a99059d
v1::delete .js add .ts
summer-ji-eng Mar 3, 2020
21f33b5
v1beta2: delete .js add .ts
summer-ji-eng Mar 3, 2020
5c2c731
v1p1beta1 delete .js add .ts
summer-ji-eng Mar 3, 2020
7bc620e
v1p2beta1: delete .js add .ts
summer-ji-eng Mar 3, 2020
9c713e3
v1p2beta1:: delete .js add .ts
summer-ji-eng Mar 3, 2020
22971ab
entire delete .js add index.ts
summer-ji-eng Mar 3, 2020
9f05a98
test js -> ts
summer-ji-eng Mar 3, 2020
73adc3b
system-test js -> ts
summer-ji-eng Mar 3, 2020
bf3fafb
update .jsdoc.js
summer-ji-eng Mar 3, 2020
13e29e4
feat: convert API to typescript
summer-ji-eng Mar 3, 2020
4d89b12
add stream client
summer-ji-eng Mar 3, 2020
37bbf73
package, synth
summer-ji-eng Mar 3, 2020
8fd9484
update synthtool
summer-ji-eng Mar 4, 2020
2cf9090
fixed upstream broken link
summer-ji-eng Mar 5, 2020
014be54
unintentional change
summer-ji-eng Mar 5, 2020
04719d3
removed unused package
summer-ji-eng Mar 5, 2020
763e65a
unintentional change samples/analyze_person_detection.js
summer-ji-eng Mar 5, 2020
4c6cb00
checkout samples/system-test/analyze_person_detection.test.js
summer-ji-eng Mar 5, 2020
e67f582
set timeout for system test
summer-ji-eng Mar 6, 2020
24f770d
match timeout
summer-ji-eng Mar 6, 2020
74c58d1
revert v1p3beta config change
summer-ji-eng Mar 6, 2020
16158a0
Merge branch 'master' into summer_typescript_conversion
summer-ji-eng Mar 6, 2020
ca75593
Merge branch 'master' into summer_typescript_conversion
summer-ji-eng Mar 6, 2020
2317d54
Merge branch 'master' into summer_typescript_conversion
summer-ji-eng Mar 8, 2020
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
**/*.log
**/node_modules
.coverage
coverage
.nyc_output
docs/
out/
build/
system-test/secrets.js
system-test/*key.json
*.lock
.DS_Store
package-lock.json
.vscode
__pycache__
*.code-workspace
8 changes: 6 additions & 2 deletions .jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// 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. **

'use strict';

Expand All @@ -31,7 +34,8 @@ module.exports = {
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'src'
'build/src',
'protos'
],
includePattern: '\\.js$'
},
Expand All @@ -42,7 +46,7 @@ module.exports = {
systemName: '@google-cloud/video-intelligence',
theme: 'lumen',
default: {
"outputSourceFiles": false
outputSourceFiles: false
}
},
markdown: {
Expand Down
48 changes: 29 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
"node": ">=8.10.0"
},
"repository": "googleapis/nodejs-video-intelligence",
"main": "src/index.js",
"main": "build/src/index.js",
"files": [
"protos",
"src",
"AUTHORS",
"build/protos",
"build/src",
"LICENSE"
],
"keywords": [
Expand All @@ -30,31 +29,42 @@
],
"scripts": {
"docs": "jsdoc -c .jsdoc.js",
"lint": "eslint '**/*.js'",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "mocha system-test/*.js --timeout 600000",
"test": "c8 mocha",
"lint": "gts fix && eslint --fix samples/*.js",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
"system-test": "c8 mocha build/system-test --timeout 600000",
"test": "c8 mocha build/test",
"fix": "eslint --fix '**/*.js'",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs",
"prelint": "cd samples; npm link ../; npm i"
"prelint": "cd samples; npm link ../; npm i",
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"prepare": "npm run compile"
},
"dependencies": {
"google-gax": "^1.7.5",
"protobufjs": "^6.8.8"
"google-gax": "^1.14.2"
},
"devDependencies": {
"codecov": "^3.4.0",
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.29",
"c8": "^7.0.0",
"eslint": "^6.0.0",
summer-ji-eng marked this conversation as resolved.
Show resolved Hide resolved
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.0",
"jsdoc": "^3.6.2",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^2.0.0",
"mocha": "^7.0.0",
"c8": "^7.0.0",
"prettier": "^1.17.1"
"gts": "^1.1.2",
"jsdoc": "^3.6.3",
"jsdoc-fresh": "^1.0.2",
"jsdoc-region-tag": "^1.0.4",
"linkinator": "^2.0.3",
"mocha": "^7.1.0",
"null-loader": "^3.0.0",
"pack-n-play": "^1.0.0-2",
"prettier": "^1.17.1",
"ts-loader": "^6.2.1",
"typescript": "^3.8.3",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ message AnnotateVideoRequest {
// supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
// A video URI may include wildcards in `object-id`, and thus identify
// multiple videos. Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -85,7 +85,7 @@ message AnnotateVideoRequest {
// URIs are supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Cloud region where annotation should take place. Supported cloud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ message AnnotateVideoRequest {
// supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
// more information, see [Request URIs](/storage/docs/reference-uris). A video
// more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
// URI may include wildcards in `object-id`, and thus identify multiple
summer-ji-eng marked this conversation as resolved.
Show resolved Hide resolved
// videos. Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -87,7 +87,7 @@ message AnnotateVideoRequest {
// URIs are supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
// more information, see [Request URIs](/storage/docs/reference-uris).
// more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Cloud region where annotation should take place. Supported cloud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ message AnnotateVideoRequest {
// supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
// A video URI may include wildcards in `object-id`, and thus identify
// multiple videos. Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -85,7 +85,7 @@ message AnnotateVideoRequest {
// URIs are supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Cloud region where annotation should take place. Supported cloud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ message AnnotateVideoRequest {
// supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
// A video URI may include wildcards in `object-id`, and thus identify
// multiple videos. Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -85,7 +85,7 @@ message AnnotateVideoRequest {
// URIs are supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
// [Request URIs](/storage/docs/reference-uris).
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Cloud region where annotation should take place. Supported cloud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ message AnnotateVideoRequest {
// supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
// more information, see [Request URIs](/storage/docs/reference-uris). A video
// more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
// URI may include wildcards in `object-id`, and thus identify multiple
// videos. Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -99,7 +99,7 @@ message AnnotateVideoRequest {
// URIs are supported, which must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
// more information, see [Request URIs](/storage/docs/reference-uris).
// more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Cloud region where annotation should take place. Supported cloud
Expand Down
146 changes: 0 additions & 146 deletions src/index.js

This file was deleted.

Loading