scanoss 0.2.19 → 0.2.22

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.
Files changed (174) hide show
  1. package/.cspell.json +2 -1
  2. package/build/main/bin/cli-bin.js +4 -2
  3. package/build/main/commands/dep.js +19 -7
  4. package/build/main/commands/helpers.d.ts +1 -0
  5. package/build/main/commands/helpers.js +22 -0
  6. package/build/main/commands/scan.js +3 -15
  7. package/build/main/index.d.ts +2 -1
  8. package/build/main/index.js +3 -2
  9. package/build/main/lib/dependencies/DependencyScanner.d.ts +6 -5
  10. package/build/main/lib/dependencies/DependencyScanner.js +34 -50
  11. package/build/main/lib/dependencies/DependencyScannerCfg.d.ts +4 -0
  12. package/build/main/lib/dependencies/DependencyScannerCfg.js +11 -0
  13. package/build/main/lib/dependencies/DependencyTypes.d.ts +10 -8
  14. package/build/main/lib/dependencies/LocalDependency/DependencyTypes.d.ts +16 -0
  15. package/build/main/lib/dependencies/LocalDependency/DependencyTypes.js +3 -0
  16. package/build/main/lib/dependencies/LocalDependency/LocalDependency.d.ts +6 -0
  17. package/build/main/lib/dependencies/LocalDependency/LocalDependency.js +51 -0
  18. package/build/main/lib/dependencies/LocalDependency/parsers/golangParser.d.ts +2 -0
  19. package/build/main/lib/dependencies/LocalDependency/parsers/golangParser.js +63 -0
  20. package/build/main/lib/dependencies/LocalDependency/parsers/mavenParser.d.ts +2 -0
  21. package/build/main/lib/dependencies/LocalDependency/parsers/mavenParser.js +57 -0
  22. package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/npmParser.d.ts +3 -3
  23. package/build/main/lib/dependencies/LocalDependency/parsers/npmParser.js +50 -0
  24. package/build/main/lib/dependencies/LocalDependency/parsers/pyParser.d.ts +2 -0
  25. package/build/main/lib/dependencies/LocalDependency/parsers/pyParser.js +65 -0
  26. package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/rubyParser.d.ts +3 -3
  27. package/build/main/lib/dependencies/LocalDependency/parsers/rubyParser.js +133 -0
  28. package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/utils.d.ts +0 -0
  29. package/build/main/lib/dependencies/{parsers → LocalDependency/parsers}/utils.js +1 -1
  30. package/build/main/lib/grpc/GrpcDependencyService.d.ts +4 -5
  31. package/build/main/lib/grpc/GrpcDependencyService.js +19 -13
  32. package/build/main/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.js +22 -23
  33. package/build/main/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +5 -5
  34. package/build/main/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +90 -48
  35. package/build/main/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +4 -5
  36. package/build/main/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +5 -6
  37. package/build/main/lib/scanner/Scanner.js +1 -1
  38. package/build/module/bin/cli-bin.js +4 -2
  39. package/build/module/commands/dep.js +19 -7
  40. package/build/module/commands/helpers.d.ts +1 -0
  41. package/build/module/commands/helpers.js +15 -0
  42. package/build/module/commands/scan.js +2 -14
  43. package/build/module/index.d.ts +2 -1
  44. package/build/module/index.js +3 -2
  45. package/build/module/lib/dependencies/DependencyScanner.d.ts +6 -5
  46. package/build/module/lib/dependencies/DependencyScanner.js +35 -47
  47. package/build/module/lib/dependencies/DependencyScannerCfg.d.ts +4 -0
  48. package/build/module/lib/dependencies/DependencyScannerCfg.js +5 -0
  49. package/build/module/lib/dependencies/DependencyTypes.d.ts +10 -8
  50. package/build/module/lib/dependencies/LocalDependency/DependencyTypes.d.ts +16 -0
  51. package/build/module/lib/dependencies/LocalDependency/DependencyTypes.js +2 -0
  52. package/build/module/lib/dependencies/LocalDependency/LocalDependency.d.ts +6 -0
  53. package/build/module/lib/dependencies/LocalDependency/LocalDependency.js +45 -0
  54. package/build/module/lib/dependencies/LocalDependency/parsers/golangParser.d.ts +2 -0
  55. package/build/module/lib/dependencies/LocalDependency/parsers/golangParser.js +55 -0
  56. package/build/module/lib/dependencies/LocalDependency/parsers/mavenParser.d.ts +2 -0
  57. package/build/module/lib/dependencies/LocalDependency/parsers/mavenParser.js +50 -0
  58. package/build/module/lib/dependencies/{parsers → LocalDependency/parsers}/npmParser.d.ts +3 -3
  59. package/build/module/lib/dependencies/LocalDependency/parsers/npmParser.js +42 -0
  60. package/build/module/lib/dependencies/LocalDependency/parsers/pyParser.d.ts +2 -0
  61. package/build/module/lib/dependencies/LocalDependency/parsers/pyParser.js +57 -0
  62. package/build/module/lib/dependencies/{parsers → LocalDependency/parsers}/rubyParser.d.ts +3 -3
  63. package/build/module/lib/dependencies/LocalDependency/parsers/rubyParser.js +130 -0
  64. package/build/module/lib/dependencies/{parsers → LocalDependency/parsers}/utils.d.ts +0 -0
  65. package/build/module/lib/dependencies/LocalDependency/parsers/utils.js +15 -0
  66. package/build/module/lib/grpc/GrpcDependencyService.d.ts +4 -5
  67. package/build/module/lib/grpc/GrpcDependencyService.js +20 -14
  68. package/build/module/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.js +22 -23
  69. package/build/module/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +5 -5
  70. package/build/module/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +90 -48
  71. package/build/module/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +4 -5
  72. package/build/module/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +5 -6
  73. package/build/module/lib/scanner/Scanner.js +1 -1
  74. package/build/tsconfig.module.tsbuildinfo +1 -1
  75. package/build/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +3 -1
  77. package/src/bin/cli-bin.ts +4 -1
  78. package/src/commands/dep.ts +18 -6
  79. package/src/commands/helpers.ts +14 -0
  80. package/src/commands/scan.ts +3 -12
  81. package/src/index.ts +5 -1
  82. package/src/lib/dependencies/DependencyScanner.ts +79 -0
  83. package/src/lib/dependencies/DependencyScannerCfg.ts +7 -0
  84. package/src/lib/dependencies/DependencyTypes.ts +16 -14
  85. package/src/lib/dependencies/LocalDependency/DependencyTypes.ts +21 -0
  86. package/src/lib/dependencies/LocalDependency/LocalDependency.ts +48 -0
  87. package/src/lib/dependencies/{parsers → LocalDependency/parsers}/golangParser.ts +4 -6
  88. package/src/lib/dependencies/{parsers → LocalDependency/parsers}/mavenParser.ts +10 -6
  89. package/src/lib/dependencies/{parsers → LocalDependency/parsers}/npmParser.ts +14 -8
  90. package/src/lib/dependencies/LocalDependency/parsers/pyParser.ts +58 -0
  91. package/src/lib/dependencies/{parsers → LocalDependency/parsers}/rubyParser.ts +21 -29
  92. package/src/lib/dependencies/{parsers → LocalDependency/parsers}/utils.ts +0 -1
  93. package/src/lib/grpc/GrpcDependencyService.ts +72 -0
  94. package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts +1 -0
  95. package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_grpc_pb.js +1 -0
  96. package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.d.ts +79 -0
  97. package/src/lib/grpc/scanoss/api/common/v2/scanoss-common_pb.js +482 -0
  98. package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +30 -0
  99. package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +109 -0
  100. package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +206 -0
  101. package/src/lib/grpc/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +1489 -0
  102. package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +25 -0
  103. package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +73 -0
  104. package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +6 -0
  105. package/src/lib/grpc/scanoss/api/scanning/v2/scanoss-scanning_pb.js +15 -0
  106. package/src/lib/scanner/Scanner.ts +2 -1
  107. package/tsconfig.json +5 -22
  108. package/yarn.lock +5252 -5213
  109. package/build/main/lib/dependencies/Dependency.d.ts +0 -9
  110. package/build/main/lib/dependencies/Dependency.js +0 -52
  111. package/build/main/lib/dependencies/PurlGenerator.d.ts +0 -2
  112. package/build/main/lib/dependencies/PurlGenerator.js +0 -46
  113. package/build/main/lib/dependencies/parsers/golangParser.d.ts +0 -2
  114. package/build/main/lib/dependencies/parsers/golangParser.js +0 -63
  115. package/build/main/lib/dependencies/parsers/mavenParser.d.ts +0 -2
  116. package/build/main/lib/dependencies/parsers/mavenParser.js +0 -54
  117. package/build/main/lib/dependencies/parsers/npmParser.js +0 -46
  118. package/build/main/lib/dependencies/parsers/pyParser.d.ts +0 -2
  119. package/build/main/lib/dependencies/parsers/pyParser.js +0 -51
  120. package/build/main/lib/dependencies/parsers/rubyParser.js +0 -135
  121. package/build/main/lib/dependencies/parsers/types.d.ts +0 -15
  122. package/build/main/lib/dependencies/parsers/types.js +0 -3
  123. package/build/main/lib/grpc/GrpcConfig.d.ts +0 -4
  124. package/build/main/lib/grpc/GrpcConfig.js +0 -11
  125. package/build/main/old/Dependency.d.ts +0 -9
  126. package/build/main/old/Dependency.js +0 -96
  127. package/build/main/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts +0 -0
  128. package/build/main/scanoss/api/common/v2/scanoss-common_grpc_pb.js +0 -2
  129. package/build/main/scanoss/api/common/v2/scanoss-common_pb.d.ts +0 -1
  130. package/build/main/scanoss/api/common/v2/scanoss-common_pb.js +0 -405
  131. package/build/main/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +0 -42
  132. package/build/main/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +0 -98
  133. package/build/main/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +0 -1
  134. package/build/main/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +0 -1156
  135. package/build/main/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +0 -21
  136. package/build/main/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +0 -67
  137. package/build/main/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +0 -1
  138. package/build/main/scanoss/api/scanning/v2/scanoss-scanning_pb.js +0 -15
  139. package/build/module/lib/dependencies/Dependency.d.ts +0 -9
  140. package/build/module/lib/dependencies/Dependency.js +0 -47
  141. package/build/module/lib/dependencies/PurlGenerator.d.ts +0 -2
  142. package/build/module/lib/dependencies/PurlGenerator.js +0 -39
  143. package/build/module/lib/dependencies/parsers/golangParser.d.ts +0 -2
  144. package/build/module/lib/dependencies/parsers/golangParser.js +0 -55
  145. package/build/module/lib/dependencies/parsers/mavenParser.d.ts +0 -2
  146. package/build/module/lib/dependencies/parsers/mavenParser.js +0 -47
  147. package/build/module/lib/dependencies/parsers/npmParser.js +0 -38
  148. package/build/module/lib/dependencies/parsers/pyParser.d.ts +0 -2
  149. package/build/module/lib/dependencies/parsers/pyParser.js +0 -44
  150. package/build/module/lib/dependencies/parsers/rubyParser.js +0 -132
  151. package/build/module/lib/dependencies/parsers/types.d.ts +0 -15
  152. package/build/module/lib/dependencies/parsers/types.js +0 -2
  153. package/build/module/lib/dependencies/parsers/utils.js +0 -15
  154. package/build/module/lib/grpc/GrpcConfig.d.ts +0 -4
  155. package/build/module/lib/grpc/GrpcConfig.js +0 -5
  156. package/build/module/old/Dependency.d.ts +0 -9
  157. package/build/module/old/Dependency.js +0 -72
  158. package/build/module/scanoss/api/common/v2/scanoss-common_grpc_pb.d.ts +0 -0
  159. package/build/module/scanoss/api/common/v2/scanoss-common_grpc_pb.js +0 -2
  160. package/build/module/scanoss/api/common/v2/scanoss-common_pb.d.ts +0 -1
  161. package/build/module/scanoss/api/common/v2/scanoss-common_pb.js +0 -405
  162. package/build/module/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.d.ts +0 -42
  163. package/build/module/scanoss/api/dependencies/v2/scanoss-dependencies_grpc_pb.js +0 -98
  164. package/build/module/scanoss/api/dependencies/v2/scanoss-dependencies_pb.d.ts +0 -1
  165. package/build/module/scanoss/api/dependencies/v2/scanoss-dependencies_pb.js +0 -1156
  166. package/build/module/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.d.ts +0 -21
  167. package/build/module/scanoss/api/scanning/v2/scanoss-scanning_grpc_pb.js +0 -67
  168. package/build/module/scanoss/api/scanning/v2/scanoss-scanning_pb.d.ts +0 -1
  169. package/build/module/scanoss/api/scanning/v2/scanoss-scanning_pb.js +0 -15
  170. package/package-lock.json +0 -18589
  171. package/src/lib/dependencies/Dependency.ts +0 -60
  172. package/src/lib/dependencies/PurlGenerator.ts +0 -45
  173. package/src/lib/dependencies/parsers/pyParser.ts +0 -46
  174. package/src/lib/dependencies/parsers/types.ts +0 -19
@@ -0,0 +1,79 @@
1
+ // package: scanoss.api.common.v2
2
+ // file: scanoss/api/common/v2/scanoss-common.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class StatusResponse extends jspb.Message {
7
+ getStatus(): StatusCodeMap[keyof StatusCodeMap];
8
+ setStatus(value: StatusCodeMap[keyof StatusCodeMap]): void;
9
+
10
+ getMessage(): string;
11
+ setMessage(value: string): void;
12
+
13
+ serializeBinary(): Uint8Array;
14
+ toObject(includeInstance?: boolean): StatusResponse.AsObject;
15
+ static toObject(includeInstance: boolean, msg: StatusResponse): StatusResponse.AsObject;
16
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
17
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
18
+ static serializeBinaryToWriter(message: StatusResponse, writer: jspb.BinaryWriter): void;
19
+ static deserializeBinary(bytes: Uint8Array): StatusResponse;
20
+ static deserializeBinaryFromReader(message: StatusResponse, reader: jspb.BinaryReader): StatusResponse;
21
+ }
22
+
23
+ export namespace StatusResponse {
24
+ export type AsObject = {
25
+ status: StatusCodeMap[keyof StatusCodeMap],
26
+ message: string,
27
+ }
28
+ }
29
+
30
+ export class EchoRequest extends jspb.Message {
31
+ getMessage(): string;
32
+ setMessage(value: string): void;
33
+
34
+ serializeBinary(): Uint8Array;
35
+ toObject(includeInstance?: boolean): EchoRequest.AsObject;
36
+ static toObject(includeInstance: boolean, msg: EchoRequest): EchoRequest.AsObject;
37
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
38
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
39
+ static serializeBinaryToWriter(message: EchoRequest, writer: jspb.BinaryWriter): void;
40
+ static deserializeBinary(bytes: Uint8Array): EchoRequest;
41
+ static deserializeBinaryFromReader(message: EchoRequest, reader: jspb.BinaryReader): EchoRequest;
42
+ }
43
+
44
+ export namespace EchoRequest {
45
+ export type AsObject = {
46
+ message: string,
47
+ }
48
+ }
49
+
50
+ export class EchoResponse extends jspb.Message {
51
+ getMessage(): string;
52
+ setMessage(value: string): void;
53
+
54
+ serializeBinary(): Uint8Array;
55
+ toObject(includeInstance?: boolean): EchoResponse.AsObject;
56
+ static toObject(includeInstance: boolean, msg: EchoResponse): EchoResponse.AsObject;
57
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
58
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
59
+ static serializeBinaryToWriter(message: EchoResponse, writer: jspb.BinaryWriter): void;
60
+ static deserializeBinary(bytes: Uint8Array): EchoResponse;
61
+ static deserializeBinaryFromReader(message: EchoResponse, reader: jspb.BinaryReader): EchoResponse;
62
+ }
63
+
64
+ export namespace EchoResponse {
65
+ export type AsObject = {
66
+ message: string,
67
+ }
68
+ }
69
+
70
+ export interface StatusCodeMap {
71
+ UNSPECIFIED: 0;
72
+ SUCCESS: 1;
73
+ SUCCEEDED_WITH_WARNINGS: 2;
74
+ WARNING: 3;
75
+ FAILED: 4;
76
+ }
77
+
78
+ export const StatusCode: StatusCodeMap;
79
+
@@ -0,0 +1,482 @@
1
+ /**
2
+ * @fileoverview
3
+ * @enhanceable
4
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
+ * field starts with 'MSG_' and isn't a translatable message.
6
+ * @public
7
+ */
8
+ // GENERATED CODE -- DO NOT EDIT!
9
+
10
+ var jspb = require('google-protobuf');
11
+ var goog = jspb;
12
+ var global = Function('return this')();
13
+
14
+ goog.exportSymbol('proto.scanoss.api.common.v2.EchoRequest', null, global);
15
+ goog.exportSymbol('proto.scanoss.api.common.v2.EchoResponse', null, global);
16
+ goog.exportSymbol('proto.scanoss.api.common.v2.StatusCode', null, global);
17
+ goog.exportSymbol('proto.scanoss.api.common.v2.StatusResponse', null, global);
18
+
19
+ /**
20
+ * Generated by JsPbCodeGenerator.
21
+ * @param {Array=} opt_data Optional initial data array, typically from a
22
+ * server response, or constructed directly in Javascript. The array is used
23
+ * in place and becomes part of the constructed object. It is not cloned.
24
+ * If no data is provided, the constructed object will be empty, but still
25
+ * valid.
26
+ * @extends {jspb.Message}
27
+ * @constructor
28
+ */
29
+ proto.scanoss.api.common.v2.StatusResponse = function(opt_data) {
30
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31
+ };
32
+ goog.inherits(proto.scanoss.api.common.v2.StatusResponse, jspb.Message);
33
+ if (goog.DEBUG && !COMPILED) {
34
+ proto.scanoss.api.common.v2.StatusResponse.displayName = 'proto.scanoss.api.common.v2.StatusResponse';
35
+ }
36
+
37
+
38
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39
+ /**
40
+ * Creates an object representation of this proto suitable for use in Soy templates.
41
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43
+ * For the list of reserved names please see:
44
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
45
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
46
+ * for transitional soy proto support: http://goto/soy-param-migration
47
+ * @return {!Object}
48
+ */
49
+ proto.scanoss.api.common.v2.StatusResponse.prototype.toObject = function(opt_includeInstance) {
50
+ return proto.scanoss.api.common.v2.StatusResponse.toObject(opt_includeInstance, this);
51
+ };
52
+
53
+
54
+ /**
55
+ * Static version of the {@see toObject} method.
56
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
57
+ * instance for transitional soy proto support:
58
+ * http://goto/soy-param-migration
59
+ * @param {!proto.scanoss.api.common.v2.StatusResponse} msg The msg instance to transform.
60
+ * @return {!Object}
61
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62
+ */
63
+ proto.scanoss.api.common.v2.StatusResponse.toObject = function(includeInstance, msg) {
64
+ var f, obj = {
65
+ status: jspb.Message.getFieldWithDefault(msg, 1, 0),
66
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
67
+ };
68
+
69
+ if (includeInstance) {
70
+ obj.$jspbMessageInstance = msg;
71
+ }
72
+ return obj;
73
+ };
74
+ }
75
+
76
+
77
+ /**
78
+ * Deserializes binary data (in protobuf wire format).
79
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
80
+ * @return {!proto.scanoss.api.common.v2.StatusResponse}
81
+ */
82
+ proto.scanoss.api.common.v2.StatusResponse.deserializeBinary = function(bytes) {
83
+ var reader = new jspb.BinaryReader(bytes);
84
+ var msg = new proto.scanoss.api.common.v2.StatusResponse;
85
+ return proto.scanoss.api.common.v2.StatusResponse.deserializeBinaryFromReader(msg, reader);
86
+ };
87
+
88
+
89
+ /**
90
+ * Deserializes binary data (in protobuf wire format) from the
91
+ * given reader into the given message object.
92
+ * @param {!proto.scanoss.api.common.v2.StatusResponse} msg The message object to deserialize into.
93
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
94
+ * @return {!proto.scanoss.api.common.v2.StatusResponse}
95
+ */
96
+ proto.scanoss.api.common.v2.StatusResponse.deserializeBinaryFromReader = function(msg, reader) {
97
+ while (reader.nextField()) {
98
+ if (reader.isEndGroup()) {
99
+ break;
100
+ }
101
+ var field = reader.getFieldNumber();
102
+ switch (field) {
103
+ case 1:
104
+ var value = /** @type {!proto.scanoss.api.common.v2.StatusCode} */ (reader.readEnum());
105
+ msg.setStatus(value);
106
+ break;
107
+ case 2:
108
+ var value = /** @type {string} */ (reader.readString());
109
+ msg.setMessage(value);
110
+ break;
111
+ default:
112
+ reader.skipField();
113
+ break;
114
+ }
115
+ }
116
+ return msg;
117
+ };
118
+
119
+
120
+ /**
121
+ * Serializes the message to binary data (in protobuf wire format).
122
+ * @return {!Uint8Array}
123
+ */
124
+ proto.scanoss.api.common.v2.StatusResponse.prototype.serializeBinary = function() {
125
+ var writer = new jspb.BinaryWriter();
126
+ proto.scanoss.api.common.v2.StatusResponse.serializeBinaryToWriter(this, writer);
127
+ return writer.getResultBuffer();
128
+ };
129
+
130
+
131
+ /**
132
+ * Serializes the given message to binary data (in protobuf wire
133
+ * format), writing to the given BinaryWriter.
134
+ * @param {!proto.scanoss.api.common.v2.StatusResponse} message
135
+ * @param {!jspb.BinaryWriter} writer
136
+ * @suppress {unusedLocalVariables} f is only used for nested messages
137
+ */
138
+ proto.scanoss.api.common.v2.StatusResponse.serializeBinaryToWriter = function(message, writer) {
139
+ var f = undefined;
140
+ f = message.getStatus();
141
+ if (f !== 0.0) {
142
+ writer.writeEnum(
143
+ 1,
144
+ f
145
+ );
146
+ }
147
+ f = message.getMessage();
148
+ if (f.length > 0) {
149
+ writer.writeString(
150
+ 2,
151
+ f
152
+ );
153
+ }
154
+ };
155
+
156
+
157
+ /**
158
+ * optional StatusCode status = 1;
159
+ * @return {!proto.scanoss.api.common.v2.StatusCode}
160
+ */
161
+ proto.scanoss.api.common.v2.StatusResponse.prototype.getStatus = function() {
162
+ return /** @type {!proto.scanoss.api.common.v2.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
163
+ };
164
+
165
+
166
+ /** @param {!proto.scanoss.api.common.v2.StatusCode} value */
167
+ proto.scanoss.api.common.v2.StatusResponse.prototype.setStatus = function(value) {
168
+ jspb.Message.setProto3EnumField(this, 1, value);
169
+ };
170
+
171
+
172
+ /**
173
+ * optional string message = 2;
174
+ * @return {string}
175
+ */
176
+ proto.scanoss.api.common.v2.StatusResponse.prototype.getMessage = function() {
177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
178
+ };
179
+
180
+
181
+ /** @param {string} value */
182
+ proto.scanoss.api.common.v2.StatusResponse.prototype.setMessage = function(value) {
183
+ jspb.Message.setProto3StringField(this, 2, value);
184
+ };
185
+
186
+
187
+
188
+ /**
189
+ * Generated by JsPbCodeGenerator.
190
+ * @param {Array=} opt_data Optional initial data array, typically from a
191
+ * server response, or constructed directly in Javascript. The array is used
192
+ * in place and becomes part of the constructed object. It is not cloned.
193
+ * If no data is provided, the constructed object will be empty, but still
194
+ * valid.
195
+ * @extends {jspb.Message}
196
+ * @constructor
197
+ */
198
+ proto.scanoss.api.common.v2.EchoRequest = function(opt_data) {
199
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
200
+ };
201
+ goog.inherits(proto.scanoss.api.common.v2.EchoRequest, jspb.Message);
202
+ if (goog.DEBUG && !COMPILED) {
203
+ proto.scanoss.api.common.v2.EchoRequest.displayName = 'proto.scanoss.api.common.v2.EchoRequest';
204
+ }
205
+
206
+
207
+ if (jspb.Message.GENERATE_TO_OBJECT) {
208
+ /**
209
+ * Creates an object representation of this proto suitable for use in Soy templates.
210
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
211
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
212
+ * For the list of reserved names please see:
213
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
214
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
215
+ * for transitional soy proto support: http://goto/soy-param-migration
216
+ * @return {!Object}
217
+ */
218
+ proto.scanoss.api.common.v2.EchoRequest.prototype.toObject = function(opt_includeInstance) {
219
+ return proto.scanoss.api.common.v2.EchoRequest.toObject(opt_includeInstance, this);
220
+ };
221
+
222
+
223
+ /**
224
+ * Static version of the {@see toObject} method.
225
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
226
+ * instance for transitional soy proto support:
227
+ * http://goto/soy-param-migration
228
+ * @param {!proto.scanoss.api.common.v2.EchoRequest} msg The msg instance to transform.
229
+ * @return {!Object}
230
+ * @suppress {unusedLocalVariables} f is only used for nested messages
231
+ */
232
+ proto.scanoss.api.common.v2.EchoRequest.toObject = function(includeInstance, msg) {
233
+ var f, obj = {
234
+ message: jspb.Message.getFieldWithDefault(msg, 1, "")
235
+ };
236
+
237
+ if (includeInstance) {
238
+ obj.$jspbMessageInstance = msg;
239
+ }
240
+ return obj;
241
+ };
242
+ }
243
+
244
+
245
+ /**
246
+ * Deserializes binary data (in protobuf wire format).
247
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
248
+ * @return {!proto.scanoss.api.common.v2.EchoRequest}
249
+ */
250
+ proto.scanoss.api.common.v2.EchoRequest.deserializeBinary = function(bytes) {
251
+ var reader = new jspb.BinaryReader(bytes);
252
+ var msg = new proto.scanoss.api.common.v2.EchoRequest;
253
+ return proto.scanoss.api.common.v2.EchoRequest.deserializeBinaryFromReader(msg, reader);
254
+ };
255
+
256
+
257
+ /**
258
+ * Deserializes binary data (in protobuf wire format) from the
259
+ * given reader into the given message object.
260
+ * @param {!proto.scanoss.api.common.v2.EchoRequest} msg The message object to deserialize into.
261
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
262
+ * @return {!proto.scanoss.api.common.v2.EchoRequest}
263
+ */
264
+ proto.scanoss.api.common.v2.EchoRequest.deserializeBinaryFromReader = function(msg, reader) {
265
+ while (reader.nextField()) {
266
+ if (reader.isEndGroup()) {
267
+ break;
268
+ }
269
+ var field = reader.getFieldNumber();
270
+ switch (field) {
271
+ case 1:
272
+ var value = /** @type {string} */ (reader.readString());
273
+ msg.setMessage(value);
274
+ break;
275
+ default:
276
+ reader.skipField();
277
+ break;
278
+ }
279
+ }
280
+ return msg;
281
+ };
282
+
283
+
284
+ /**
285
+ * Serializes the message to binary data (in protobuf wire format).
286
+ * @return {!Uint8Array}
287
+ */
288
+ proto.scanoss.api.common.v2.EchoRequest.prototype.serializeBinary = function() {
289
+ var writer = new jspb.BinaryWriter();
290
+ proto.scanoss.api.common.v2.EchoRequest.serializeBinaryToWriter(this, writer);
291
+ return writer.getResultBuffer();
292
+ };
293
+
294
+
295
+ /**
296
+ * Serializes the given message to binary data (in protobuf wire
297
+ * format), writing to the given BinaryWriter.
298
+ * @param {!proto.scanoss.api.common.v2.EchoRequest} message
299
+ * @param {!jspb.BinaryWriter} writer
300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
301
+ */
302
+ proto.scanoss.api.common.v2.EchoRequest.serializeBinaryToWriter = function(message, writer) {
303
+ var f = undefined;
304
+ f = message.getMessage();
305
+ if (f.length > 0) {
306
+ writer.writeString(
307
+ 1,
308
+ f
309
+ );
310
+ }
311
+ };
312
+
313
+
314
+ /**
315
+ * optional string message = 1;
316
+ * @return {string}
317
+ */
318
+ proto.scanoss.api.common.v2.EchoRequest.prototype.getMessage = function() {
319
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
320
+ };
321
+
322
+
323
+ /** @param {string} value */
324
+ proto.scanoss.api.common.v2.EchoRequest.prototype.setMessage = function(value) {
325
+ jspb.Message.setProto3StringField(this, 1, value);
326
+ };
327
+
328
+
329
+
330
+ /**
331
+ * Generated by JsPbCodeGenerator.
332
+ * @param {Array=} opt_data Optional initial data array, typically from a
333
+ * server response, or constructed directly in Javascript. The array is used
334
+ * in place and becomes part of the constructed object. It is not cloned.
335
+ * If no data is provided, the constructed object will be empty, but still
336
+ * valid.
337
+ * @extends {jspb.Message}
338
+ * @constructor
339
+ */
340
+ proto.scanoss.api.common.v2.EchoResponse = function(opt_data) {
341
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
342
+ };
343
+ goog.inherits(proto.scanoss.api.common.v2.EchoResponse, jspb.Message);
344
+ if (goog.DEBUG && !COMPILED) {
345
+ proto.scanoss.api.common.v2.EchoResponse.displayName = 'proto.scanoss.api.common.v2.EchoResponse';
346
+ }
347
+
348
+
349
+ if (jspb.Message.GENERATE_TO_OBJECT) {
350
+ /**
351
+ * Creates an object representation of this proto suitable for use in Soy templates.
352
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
353
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
354
+ * For the list of reserved names please see:
355
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
356
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
357
+ * for transitional soy proto support: http://goto/soy-param-migration
358
+ * @return {!Object}
359
+ */
360
+ proto.scanoss.api.common.v2.EchoResponse.prototype.toObject = function(opt_includeInstance) {
361
+ return proto.scanoss.api.common.v2.EchoResponse.toObject(opt_includeInstance, this);
362
+ };
363
+
364
+
365
+ /**
366
+ * Static version of the {@see toObject} method.
367
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
368
+ * instance for transitional soy proto support:
369
+ * http://goto/soy-param-migration
370
+ * @param {!proto.scanoss.api.common.v2.EchoResponse} msg The msg instance to transform.
371
+ * @return {!Object}
372
+ * @suppress {unusedLocalVariables} f is only used for nested messages
373
+ */
374
+ proto.scanoss.api.common.v2.EchoResponse.toObject = function(includeInstance, msg) {
375
+ var f, obj = {
376
+ message: jspb.Message.getFieldWithDefault(msg, 1, "")
377
+ };
378
+
379
+ if (includeInstance) {
380
+ obj.$jspbMessageInstance = msg;
381
+ }
382
+ return obj;
383
+ };
384
+ }
385
+
386
+
387
+ /**
388
+ * Deserializes binary data (in protobuf wire format).
389
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
390
+ * @return {!proto.scanoss.api.common.v2.EchoResponse}
391
+ */
392
+ proto.scanoss.api.common.v2.EchoResponse.deserializeBinary = function(bytes) {
393
+ var reader = new jspb.BinaryReader(bytes);
394
+ var msg = new proto.scanoss.api.common.v2.EchoResponse;
395
+ return proto.scanoss.api.common.v2.EchoResponse.deserializeBinaryFromReader(msg, reader);
396
+ };
397
+
398
+
399
+ /**
400
+ * Deserializes binary data (in protobuf wire format) from the
401
+ * given reader into the given message object.
402
+ * @param {!proto.scanoss.api.common.v2.EchoResponse} msg The message object to deserialize into.
403
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
404
+ * @return {!proto.scanoss.api.common.v2.EchoResponse}
405
+ */
406
+ proto.scanoss.api.common.v2.EchoResponse.deserializeBinaryFromReader = function(msg, reader) {
407
+ while (reader.nextField()) {
408
+ if (reader.isEndGroup()) {
409
+ break;
410
+ }
411
+ var field = reader.getFieldNumber();
412
+ switch (field) {
413
+ case 1:
414
+ var value = /** @type {string} */ (reader.readString());
415
+ msg.setMessage(value);
416
+ break;
417
+ default:
418
+ reader.skipField();
419
+ break;
420
+ }
421
+ }
422
+ return msg;
423
+ };
424
+
425
+
426
+ /**
427
+ * Serializes the message to binary data (in protobuf wire format).
428
+ * @return {!Uint8Array}
429
+ */
430
+ proto.scanoss.api.common.v2.EchoResponse.prototype.serializeBinary = function() {
431
+ var writer = new jspb.BinaryWriter();
432
+ proto.scanoss.api.common.v2.EchoResponse.serializeBinaryToWriter(this, writer);
433
+ return writer.getResultBuffer();
434
+ };
435
+
436
+
437
+ /**
438
+ * Serializes the given message to binary data (in protobuf wire
439
+ * format), writing to the given BinaryWriter.
440
+ * @param {!proto.scanoss.api.common.v2.EchoResponse} message
441
+ * @param {!jspb.BinaryWriter} writer
442
+ * @suppress {unusedLocalVariables} f is only used for nested messages
443
+ */
444
+ proto.scanoss.api.common.v2.EchoResponse.serializeBinaryToWriter = function(message, writer) {
445
+ var f = undefined;
446
+ f = message.getMessage();
447
+ if (f.length > 0) {
448
+ writer.writeString(
449
+ 1,
450
+ f
451
+ );
452
+ }
453
+ };
454
+
455
+
456
+ /**
457
+ * optional string message = 1;
458
+ * @return {string}
459
+ */
460
+ proto.scanoss.api.common.v2.EchoResponse.prototype.getMessage = function() {
461
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
462
+ };
463
+
464
+
465
+ /** @param {string} value */
466
+ proto.scanoss.api.common.v2.EchoResponse.prototype.setMessage = function(value) {
467
+ jspb.Message.setProto3StringField(this, 1, value);
468
+ };
469
+
470
+
471
+ /**
472
+ * @enum {number}
473
+ */
474
+ proto.scanoss.api.common.v2.StatusCode = {
475
+ UNSPECIFIED: 0,
476
+ SUCCESS: 1,
477
+ SUCCEEDED_WITH_WARNINGS: 2,
478
+ WARNING: 3,
479
+ FAILED: 4
480
+ };
481
+
482
+ goog.object.extend(exports, proto.scanoss.api.common.v2);
@@ -0,0 +1,30 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ // package: scanoss.api.dependencies.v2
4
+ // file: scanoss/api/dependencies/v2/scanoss-dependencies.proto
5
+
6
+ import * as scanoss_api_dependencies_v2_scanoss_dependencies_pb from "../../../../scanoss/api/dependencies/v2/scanoss-dependencies_pb";
7
+ import * as scanoss_api_common_v2_scanoss_common_pb from "../../../../scanoss/api/common/v2/scanoss-common_pb";
8
+ import * as grpc from "@grpc/grpc-js";
9
+
10
+ interface IDependenciesService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
+ echo: grpc.MethodDefinition<scanoss_api_common_v2_scanoss_common_pb.EchoRequest, scanoss_api_common_v2_scanoss_common_pb.EchoResponse>;
12
+ getDependencies: grpc.MethodDefinition<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>;
13
+ }
14
+
15
+ export const DependenciesService: IDependenciesService;
16
+
17
+ export interface IDependenciesServer extends grpc.UntypedServiceImplementation {
18
+ echo: grpc.handleUnaryCall<scanoss_api_common_v2_scanoss_common_pb.EchoRequest, scanoss_api_common_v2_scanoss_common_pb.EchoResponse>;
19
+ getDependencies: grpc.handleUnaryCall<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>;
20
+ }
21
+
22
+ export class DependenciesClient extends grpc.Client {
23
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
24
+ echo(argument: scanoss_api_common_v2_scanoss_common_pb.EchoRequest, callback: grpc.requestCallback<scanoss_api_common_v2_scanoss_common_pb.EchoResponse>): grpc.ClientUnaryCall;
25
+ echo(argument: scanoss_api_common_v2_scanoss_common_pb.EchoRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_common_v2_scanoss_common_pb.EchoResponse>): grpc.ClientUnaryCall;
26
+ echo(argument: scanoss_api_common_v2_scanoss_common_pb.EchoRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_common_v2_scanoss_common_pb.EchoResponse>): grpc.ClientUnaryCall;
27
+ getDependencies(argument: scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, callback: grpc.requestCallback<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>): grpc.ClientUnaryCall;
28
+ getDependencies(argument: scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>): grpc.ClientUnaryCall;
29
+ getDependencies(argument: scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<scanoss_api_dependencies_v2_scanoss_dependencies_pb.DependencyResponse>): grpc.ClientUnaryCall;
30
+ }
@@ -0,0 +1,109 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ // Original file comments:
4
+ //
5
+ // SPDX-License-Identifier: MIT
6
+ //
7
+ // Copyright (c) 2021, SCANOSS
8
+ //
9
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ // of this software and associated documentation files (the "Software"), to deal
11
+ // in the Software without restriction, including without limitation the rights
12
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ // copies of the Software, and to permit persons to whom the Software is
14
+ // furnished to do so, subject to the following conditions:
15
+ //
16
+ // The above copyright notice and this permission notice shall be included in
17
+ // all copies or substantial portions of the Software.
18
+ //
19
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ // THE SOFTWARE.
26
+ //
27
+ // **
28
+ // Dependency definition details
29
+ // *
30
+ 'use strict';
31
+ var grpc = require('@grpc/grpc-js');
32
+ var scanoss_api_dependencies_v2_scanoss$dependencies_pb = require('../../../../scanoss/api/dependencies/v2/scanoss-dependencies_pb.js');
33
+ var scanoss_api_common_v2_scanoss$common_pb = require('../../../../scanoss/api/common/v2/scanoss-common_pb.js');
34
+
35
+ function serialize_scanoss_api_common_v2_EchoRequest(arg) {
36
+ if (!(arg instanceof scanoss_api_common_v2_scanoss$common_pb.EchoRequest)) {
37
+ throw new Error('Expected argument of type scanoss.api.common.v2.EchoRequest');
38
+ }
39
+ return Buffer.from(arg.serializeBinary());
40
+ }
41
+
42
+ function deserialize_scanoss_api_common_v2_EchoRequest(buffer_arg) {
43
+ return scanoss_api_common_v2_scanoss$common_pb.EchoRequest.deserializeBinary(new Uint8Array(buffer_arg));
44
+ }
45
+
46
+ function serialize_scanoss_api_common_v2_EchoResponse(arg) {
47
+ if (!(arg instanceof scanoss_api_common_v2_scanoss$common_pb.EchoResponse)) {
48
+ throw new Error('Expected argument of type scanoss.api.common.v2.EchoResponse');
49
+ }
50
+ return Buffer.from(arg.serializeBinary());
51
+ }
52
+
53
+ function deserialize_scanoss_api_common_v2_EchoResponse(buffer_arg) {
54
+ return scanoss_api_common_v2_scanoss$common_pb.EchoResponse.deserializeBinary(new Uint8Array(buffer_arg));
55
+ }
56
+
57
+ function serialize_scanoss_api_dependencies_v2_DependencyRequest(arg) {
58
+ if (!(arg instanceof scanoss_api_dependencies_v2_scanoss$dependencies_pb.DependencyRequest)) {
59
+ throw new Error('Expected argument of type scanoss.api.dependencies.v2.DependencyRequest');
60
+ }
61
+ return Buffer.from(arg.serializeBinary());
62
+ }
63
+
64
+ function deserialize_scanoss_api_dependencies_v2_DependencyRequest(buffer_arg) {
65
+ return scanoss_api_dependencies_v2_scanoss$dependencies_pb.DependencyRequest.deserializeBinary(new Uint8Array(buffer_arg));
66
+ }
67
+
68
+ function serialize_scanoss_api_dependencies_v2_DependencyResponse(arg) {
69
+ if (!(arg instanceof scanoss_api_dependencies_v2_scanoss$dependencies_pb.DependencyResponse)) {
70
+ throw new Error('Expected argument of type scanoss.api.dependencies.v2.DependencyResponse');
71
+ }
72
+ return Buffer.from(arg.serializeBinary());
73
+ }
74
+
75
+ function deserialize_scanoss_api_dependencies_v2_DependencyResponse(buffer_arg) {
76
+ return scanoss_api_dependencies_v2_scanoss$dependencies_pb.DependencyResponse.deserializeBinary(new Uint8Array(buffer_arg));
77
+ }
78
+
79
+
80
+ //
81
+ // Expose all of the SCANOSS Dependency RPCs here
82
+ var DependenciesService = exports.DependenciesService = {
83
+ // Standard echo
84
+ echo: {
85
+ path: '/scanoss.api.dependencies.v2.Dependencies/Echo',
86
+ requestStream: false,
87
+ responseStream: false,
88
+ requestType: scanoss_api_common_v2_scanoss$common_pb.EchoRequest,
89
+ responseType: scanoss_api_common_v2_scanoss$common_pb.EchoResponse,
90
+ requestSerialize: serialize_scanoss_api_common_v2_EchoRequest,
91
+ requestDeserialize: deserialize_scanoss_api_common_v2_EchoRequest,
92
+ responseSerialize: serialize_scanoss_api_common_v2_EchoResponse,
93
+ responseDeserialize: deserialize_scanoss_api_common_v2_EchoResponse,
94
+ },
95
+ // Get dependency details
96
+ getDependencies: {
97
+ path: '/scanoss.api.dependencies.v2.Dependencies/GetDependencies',
98
+ requestStream: false,
99
+ responseStream: false,
100
+ requestType: scanoss_api_dependencies_v2_scanoss$dependencies_pb.DependencyRequest,
101
+ responseType: scanoss_api_dependencies_v2_scanoss$dependencies_pb.DependencyResponse,
102
+ requestSerialize: serialize_scanoss_api_dependencies_v2_DependencyRequest,
103
+ requestDeserialize: deserialize_scanoss_api_dependencies_v2_DependencyRequest,
104
+ responseSerialize: serialize_scanoss_api_dependencies_v2_DependencyResponse,
105
+ responseDeserialize: deserialize_scanoss_api_dependencies_v2_DependencyResponse,
106
+ },
107
+ };
108
+
109
+ exports.DependenciesClient = grpc.makeGenericClientConstructor(DependenciesService);