@milaboratories/pl-client 2.16.8 → 2.16.10

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 (253) hide show
  1. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs +2 -2
  2. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs.map +1 -1
  3. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js +2 -2
  4. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js.map +1 -1
  5. package/dist/core/abstract_stream.d.ts +18 -0
  6. package/dist/core/abstract_stream.d.ts.map +1 -0
  7. package/dist/core/client.cjs +6 -6
  8. package/dist/core/client.cjs.map +1 -1
  9. package/dist/core/client.d.ts +3 -3
  10. package/dist/core/client.d.ts.map +1 -1
  11. package/dist/core/client.js +6 -6
  12. package/dist/core/client.js.map +1 -1
  13. package/dist/core/config.cjs +3 -0
  14. package/dist/core/config.cjs.map +1 -1
  15. package/dist/core/config.d.ts +4 -0
  16. package/dist/core/config.d.ts.map +1 -1
  17. package/dist/core/config.js +3 -1
  18. package/dist/core/config.js.map +1 -1
  19. package/dist/core/driver.cjs +11 -0
  20. package/dist/core/driver.cjs.map +1 -1
  21. package/dist/core/driver.d.ts +8 -2
  22. package/dist/core/driver.d.ts.map +1 -1
  23. package/dist/core/driver.js +11 -1
  24. package/dist/core/driver.js.map +1 -1
  25. package/dist/core/errors.cjs +9 -0
  26. package/dist/core/errors.cjs.map +1 -1
  27. package/dist/core/errors.d.ts +1 -1
  28. package/dist/core/errors.d.ts.map +1 -1
  29. package/dist/core/errors.js +9 -0
  30. package/dist/core/errors.js.map +1 -1
  31. package/dist/core/ll_client.cjs +194 -39
  32. package/dist/core/ll_client.cjs.map +1 -1
  33. package/dist/core/ll_client.d.ts +36 -15
  34. package/dist/core/ll_client.d.ts.map +1 -1
  35. package/dist/core/ll_client.js +195 -40
  36. package/dist/core/ll_client.js.map +1 -1
  37. package/dist/core/ll_transaction.cjs.map +1 -1
  38. package/dist/core/ll_transaction.d.ts +3 -3
  39. package/dist/core/ll_transaction.d.ts.map +1 -1
  40. package/dist/core/ll_transaction.js.map +1 -1
  41. package/dist/core/transaction.cjs +2 -2
  42. package/dist/core/transaction.cjs.map +1 -1
  43. package/dist/core/transaction.js +2 -2
  44. package/dist/core/transaction.js.map +1 -1
  45. package/dist/core/type_conversion.cjs +2 -2
  46. package/dist/core/type_conversion.cjs.map +1 -1
  47. package/dist/core/type_conversion.d.ts +2 -2
  48. package/dist/core/type_conversion.d.ts.map +1 -1
  49. package/dist/core/type_conversion.js +2 -2
  50. package/dist/core/type_conversion.js.map +1 -1
  51. package/dist/core/unauth_client.cjs +4 -8
  52. package/dist/core/unauth_client.cjs.map +1 -1
  53. package/dist/core/unauth_client.d.ts +1 -1
  54. package/dist/core/unauth_client.d.ts.map +1 -1
  55. package/dist/core/unauth_client.js +4 -8
  56. package/dist/core/unauth_client.js.map +1 -1
  57. package/dist/core/wire.d.ts +34 -0
  58. package/dist/core/wire.d.ts.map +1 -0
  59. package/dist/index.cjs +4 -0
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.d.ts +2 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +4 -2
  64. package/dist/index.js.map +1 -1
  65. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -0
  66. package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.d.ts +4 -2
  67. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
  68. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -0
  69. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +25 -25
  70. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -0
  71. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -0
  72. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
  73. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -0
  74. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
  75. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.js +25 -25
  76. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -0
  77. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -0
  78. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
  79. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -0
  80. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -0
  81. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
  82. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -0
  83. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
  84. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -0
  85. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
  86. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -0
  87. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts +73 -0
  88. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts.map +1 -0
  89. package/dist/{proto → proto-grpc}/google/api/http.d.ts +28 -32
  90. package/dist/proto-grpc/google/api/http.d.ts.map +1 -0
  91. package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -0
  92. package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -0
  93. package/dist/proto-grpc/google/protobuf/any.js.map +1 -0
  94. package/dist/{proto → proto-grpc}/google/protobuf/descriptor.d.ts +6 -152
  95. package/dist/proto-grpc/google/protobuf/descriptor.d.ts.map +1 -0
  96. package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -0
  97. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
  98. package/dist/proto-grpc/google/protobuf/duration.js.map +1 -0
  99. package/dist/proto-grpc/google/protobuf/empty.d.ts.map +1 -0
  100. package/dist/proto-grpc/google/protobuf/struct.d.ts.map +1 -0
  101. package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -0
  102. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
  103. package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -0
  104. package/dist/{proto → proto-grpc}/google/protobuf/wrappers.d.ts +0 -27
  105. package/dist/proto-grpc/google/protobuf/wrappers.d.ts.map +1 -0
  106. package/dist/proto-grpc/google/rpc/code.cjs +240 -0
  107. package/dist/proto-grpc/google/rpc/code.cjs.map +1 -0
  108. package/dist/proto-grpc/google/rpc/code.d.ts +219 -0
  109. package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -0
  110. package/dist/proto-grpc/google/rpc/code.js +240 -0
  111. package/dist/proto-grpc/google/rpc/code.js.map +1 -0
  112. package/dist/proto-grpc/google/rpc/error_details.d.ts +654 -0
  113. package/dist/proto-grpc/google/rpc/error_details.d.ts.map +1 -0
  114. package/dist/proto-grpc/google/rpc/http.d.ts +121 -0
  115. package/dist/proto-grpc/google/rpc/http.d.ts.map +1 -0
  116. package/dist/proto-grpc/google/rpc/status.d.ts +55 -0
  117. package/dist/proto-grpc/google/rpc/status.d.ts.map +1 -0
  118. package/dist/proto-rest/index.cjs +64 -0
  119. package/dist/proto-rest/index.cjs.map +1 -0
  120. package/dist/proto-rest/index.d.ts +23 -0
  121. package/dist/proto-rest/index.d.ts.map +1 -0
  122. package/dist/proto-rest/index.js +61 -0
  123. package/dist/proto-rest/index.js.map +1 -0
  124. package/dist/proto-rest/plapi.d.ts +1488 -0
  125. package/dist/proto-rest/plapi.d.ts.map +1 -0
  126. package/package.json +8 -5
  127. package/src/core/abstract_stream.ts +25 -0
  128. package/src/core/client.ts +8 -8
  129. package/src/core/config.ts +9 -0
  130. package/src/core/driver.ts +13 -2
  131. package/src/core/errors.ts +7 -1
  132. package/src/core/ll_client.test.ts +1 -1
  133. package/src/core/ll_client.ts +212 -42
  134. package/src/core/ll_transaction.test.ts +1 -1
  135. package/src/core/ll_transaction.ts +4 -4
  136. package/src/core/transaction.ts +1 -1
  137. package/src/core/type_conversion.ts +3 -3
  138. package/src/core/unauth_client.test.ts +6 -0
  139. package/src/core/unauth_client.ts +8 -12
  140. package/src/core/wire.ts +40 -0
  141. package/src/index.ts +3 -1
  142. package/src/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.ts +5 -3
  143. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.ts +25 -25
  144. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.ts +209 -0
  145. package/src/{proto → proto-grpc}/google/api/http.ts +29 -33
  146. package/src/{proto → proto-grpc}/google/protobuf/descriptor.ts +11 -221
  147. package/src/{proto → proto-grpc}/google/protobuf/wrappers.ts +4 -38
  148. package/src/proto-grpc/google/rpc/code.ts +236 -0
  149. package/src/proto-grpc/google/rpc/error_details.ts +1386 -0
  150. package/src/proto-grpc/google/rpc/http.ts +307 -0
  151. package/src/proto-grpc/google/rpc/status.ts +127 -0
  152. package/src/proto-rest/index.ts +83 -0
  153. package/src/proto-rest/plapi.ts +1488 -0
  154. package/dist/core/grpc.d.ts +0 -16
  155. package/dist/core/grpc.d.ts.map +0 -1
  156. package/dist/core/http.d.ts +0 -2
  157. package/dist/core/http.d.ts.map +0 -1
  158. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.cjs.map +0 -1
  159. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
  160. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.js.map +0 -1
  161. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +0 -40
  162. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +0 -1
  163. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +0 -116
  164. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +0 -1
  165. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +0 -46
  166. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +0 -1
  167. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +0 -170
  168. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +0 -1
  169. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +0 -51
  170. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +0 -1
  171. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +0 -176
  172. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +0 -1
  173. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +0 -131
  174. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +0 -1
  175. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +0 -320
  176. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +0 -1
  177. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +0 -1
  178. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +0 -1
  179. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +0 -1
  180. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +0 -1
  181. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +0 -1
  182. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +0 -1
  183. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +0 -1
  184. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +0 -1
  185. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +0 -1
  186. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +0 -1
  187. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +0 -1
  188. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +0 -1
  189. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +0 -1
  190. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +0 -1
  191. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
  192. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +0 -1
  193. package/dist/proto/google/api/http.d.ts.map +0 -1
  194. package/dist/proto/google/protobuf/any.cjs.map +0 -1
  195. package/dist/proto/google/protobuf/any.d.ts.map +0 -1
  196. package/dist/proto/google/protobuf/any.js.map +0 -1
  197. package/dist/proto/google/protobuf/descriptor.d.ts.map +0 -1
  198. package/dist/proto/google/protobuf/duration.cjs.map +0 -1
  199. package/dist/proto/google/protobuf/duration.d.ts.map +0 -1
  200. package/dist/proto/google/protobuf/duration.js.map +0 -1
  201. package/dist/proto/google/protobuf/empty.d.ts.map +0 -1
  202. package/dist/proto/google/protobuf/struct.d.ts.map +0 -1
  203. package/dist/proto/google/protobuf/timestamp.cjs.map +0 -1
  204. package/dist/proto/google/protobuf/timestamp.d.ts.map +0 -1
  205. package/dist/proto/google/protobuf/timestamp.js.map +0 -1
  206. package/dist/proto/google/protobuf/wrappers.d.ts.map +0 -1
  207. package/src/core/grpc.ts +0 -17
  208. package/src/core/http.ts +0 -178
  209. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +0 -45
  210. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +0 -313
  211. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +0 -51
  212. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +0 -406
  213. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +0 -59
  214. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +0 -489
  215. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +0 -148
  216. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +0 -719
  217. /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.cjs +0 -0
  218. /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.js +0 -0
  219. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +0 -0
  220. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +0 -0
  221. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +0 -0
  222. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +0 -0
  223. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +0 -0
  224. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +0 -0
  225. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +0 -0
  226. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +0 -0
  227. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +0 -0
  228. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +0 -0
  229. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +0 -0
  230. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +0 -0
  231. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +0 -0
  232. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +0 -0
  233. /package/dist/{proto → proto-grpc}/google/protobuf/any.cjs +0 -0
  234. /package/dist/{proto → proto-grpc}/google/protobuf/any.d.ts +0 -0
  235. /package/dist/{proto → proto-grpc}/google/protobuf/any.js +0 -0
  236. /package/dist/{proto → proto-grpc}/google/protobuf/duration.cjs +0 -0
  237. /package/dist/{proto → proto-grpc}/google/protobuf/duration.d.ts +0 -0
  238. /package/dist/{proto → proto-grpc}/google/protobuf/duration.js +0 -0
  239. /package/dist/{proto → proto-grpc}/google/protobuf/empty.d.ts +0 -0
  240. /package/dist/{proto → proto-grpc}/google/protobuf/struct.d.ts +0 -0
  241. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.cjs +0 -0
  242. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.d.ts +0 -0
  243. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.js +0 -0
  244. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +0 -0
  245. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +0 -0
  246. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +0 -0
  247. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.ts +0 -0
  248. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +0 -0
  249. /package/src/{proto → proto-grpc}/google/protobuf/any.ts +0 -0
  250. /package/src/{proto → proto-grpc}/google/protobuf/duration.ts +0 -0
  251. /package/src/{proto → proto-grpc}/google/protobuf/empty.ts +0 -0
  252. /package/src/{proto → proto-grpc}/google/protobuf/struct.ts +0 -0
  253. /package/src/{proto → proto-grpc}/google/protobuf/timestamp.ts +0 -0
@@ -1,489 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
- // @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
3
- // tslint:disable
4
- import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
- import { WireType } from "@protobuf-ts/runtime";
6
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
- import type { IBinaryReader } from "@protobuf-ts/runtime";
10
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
- import type { PartialMessage } from "@protobuf-ts/runtime";
12
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
- import { MessageType } from "@protobuf-ts/runtime";
14
- import { Duration } from "../../../../../../../google/protobuf/duration";
15
- /**
16
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI
17
- */
18
- export interface ProgressAPI {
19
- }
20
- /**
21
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
22
- */
23
- export interface ProgressAPI_Report {
24
- /**
25
- * @generated from protobuf field: float progress = 1
26
- */
27
- progress: number;
28
- /**
29
- * @generated from protobuf field: uint64 bytes_processed = 2
30
- */
31
- bytesProcessed: bigint;
32
- /**
33
- * @generated from protobuf field: uint64 bytes_total = 3
34
- */
35
- bytesTotal: bigint;
36
- /**
37
- * @generated from protobuf field: bool done = 4
38
- */
39
- done: boolean;
40
- /**
41
- * Name of current progress stage (if any)
42
- *
43
- * @generated from protobuf field: string name = 5
44
- */
45
- name: string;
46
- }
47
- /**
48
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
49
- */
50
- export interface ProgressAPI_GetStatus {
51
- }
52
- /**
53
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
54
- */
55
- export interface ProgressAPI_GetStatus_Request {
56
- /**
57
- * @generated from protobuf field: uint64 resource_id = 1
58
- */
59
- resourceId: bigint;
60
- }
61
- /**
62
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
63
- */
64
- export interface ProgressAPI_GetStatus_Response {
65
- /**
66
- * @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
67
- */
68
- report?: ProgressAPI_Report;
69
- }
70
- /**
71
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
72
- */
73
- export interface ProgressAPI_RealtimeStatus {
74
- }
75
- /**
76
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
77
- */
78
- export interface ProgressAPI_RealtimeStatus_Request {
79
- /**
80
- * @generated from protobuf field: uint64 resource_id = 1
81
- */
82
- resourceId: bigint;
83
- /**
84
- * @generated from protobuf field: google.protobuf.Duration update_interval = 2
85
- */
86
- updateInterval?: Duration;
87
- }
88
- /**
89
- * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
90
- */
91
- export interface ProgressAPI_RealtimeStatus_Response {
92
- /**
93
- * @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
94
- */
95
- report?: ProgressAPI_Report;
96
- }
97
- // @generated message type with reflection information, may provide speed optimized methods
98
- class ProgressAPI$Type extends MessageType<ProgressAPI> {
99
- constructor() {
100
- super("MiLaboratories.Controller.Shared.ProgressAPI", []);
101
- }
102
- create(value?: PartialMessage<ProgressAPI>): ProgressAPI {
103
- const message = globalThis.Object.create((this.messagePrototype!));
104
- if (value !== undefined)
105
- reflectionMergePartial<ProgressAPI>(this, message, value);
106
- return message;
107
- }
108
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI): ProgressAPI {
109
- let message = target ?? this.create(), end = reader.pos + length;
110
- while (reader.pos < end) {
111
- let [fieldNo, wireType] = reader.tag();
112
- switch (fieldNo) {
113
- default:
114
- let u = options.readUnknownField;
115
- if (u === "throw")
116
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
117
- let d = reader.skip(wireType);
118
- if (u !== false)
119
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
120
- }
121
- }
122
- return message;
123
- }
124
- internalBinaryWrite(message: ProgressAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
125
- let u = options.writeUnknownFields;
126
- if (u !== false)
127
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
128
- return writer;
129
- }
130
- }
131
- /**
132
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI
133
- */
134
- export const ProgressAPI = new ProgressAPI$Type();
135
- // @generated message type with reflection information, may provide speed optimized methods
136
- class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
137
- constructor() {
138
- super("MiLaboratories.Controller.Shared.ProgressAPI.Report", [
139
- { no: 1, name: "progress", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
140
- { no: 2, name: "bytes_processed", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
141
- { no: 3, name: "bytes_total", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
142
- { no: 4, name: "done", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
143
- { no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
144
- ]);
145
- }
146
- create(value?: PartialMessage<ProgressAPI_Report>): ProgressAPI_Report {
147
- const message = globalThis.Object.create((this.messagePrototype!));
148
- message.progress = 0;
149
- message.bytesProcessed = 0n;
150
- message.bytesTotal = 0n;
151
- message.done = false;
152
- message.name = "";
153
- if (value !== undefined)
154
- reflectionMergePartial<ProgressAPI_Report>(this, message, value);
155
- return message;
156
- }
157
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_Report): ProgressAPI_Report {
158
- let message = target ?? this.create(), end = reader.pos + length;
159
- while (reader.pos < end) {
160
- let [fieldNo, wireType] = reader.tag();
161
- switch (fieldNo) {
162
- case /* float progress */ 1:
163
- message.progress = reader.float();
164
- break;
165
- case /* uint64 bytes_processed */ 2:
166
- message.bytesProcessed = reader.uint64().toBigInt();
167
- break;
168
- case /* uint64 bytes_total */ 3:
169
- message.bytesTotal = reader.uint64().toBigInt();
170
- break;
171
- case /* bool done */ 4:
172
- message.done = reader.bool();
173
- break;
174
- case /* string name */ 5:
175
- message.name = reader.string();
176
- break;
177
- default:
178
- let u = options.readUnknownField;
179
- if (u === "throw")
180
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
181
- let d = reader.skip(wireType);
182
- if (u !== false)
183
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
184
- }
185
- }
186
- return message;
187
- }
188
- internalBinaryWrite(message: ProgressAPI_Report, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
189
- /* float progress = 1; */
190
- if (message.progress !== 0)
191
- writer.tag(1, WireType.Bit32).float(message.progress);
192
- /* uint64 bytes_processed = 2; */
193
- if (message.bytesProcessed !== 0n)
194
- writer.tag(2, WireType.Varint).uint64(message.bytesProcessed);
195
- /* uint64 bytes_total = 3; */
196
- if (message.bytesTotal !== 0n)
197
- writer.tag(3, WireType.Varint).uint64(message.bytesTotal);
198
- /* bool done = 4; */
199
- if (message.done !== false)
200
- writer.tag(4, WireType.Varint).bool(message.done);
201
- /* string name = 5; */
202
- if (message.name !== "")
203
- writer.tag(5, WireType.LengthDelimited).string(message.name);
204
- let u = options.writeUnknownFields;
205
- if (u !== false)
206
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
207
- return writer;
208
- }
209
- }
210
- /**
211
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
212
- */
213
- export const ProgressAPI_Report = new ProgressAPI_Report$Type();
214
- // @generated message type with reflection information, may provide speed optimized methods
215
- class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
216
- constructor() {
217
- super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus", []);
218
- }
219
- create(value?: PartialMessage<ProgressAPI_GetStatus>): ProgressAPI_GetStatus {
220
- const message = globalThis.Object.create((this.messagePrototype!));
221
- if (value !== undefined)
222
- reflectionMergePartial<ProgressAPI_GetStatus>(this, message, value);
223
- return message;
224
- }
225
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus): ProgressAPI_GetStatus {
226
- let message = target ?? this.create(), end = reader.pos + length;
227
- while (reader.pos < end) {
228
- let [fieldNo, wireType] = reader.tag();
229
- switch (fieldNo) {
230
- default:
231
- let u = options.readUnknownField;
232
- if (u === "throw")
233
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
234
- let d = reader.skip(wireType);
235
- if (u !== false)
236
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
237
- }
238
- }
239
- return message;
240
- }
241
- internalBinaryWrite(message: ProgressAPI_GetStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
242
- let u = options.writeUnknownFields;
243
- if (u !== false)
244
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
245
- return writer;
246
- }
247
- }
248
- /**
249
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
250
- */
251
- export const ProgressAPI_GetStatus = new ProgressAPI_GetStatus$Type();
252
- // @generated message type with reflection information, may provide speed optimized methods
253
- class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStatus_Request> {
254
- constructor() {
255
- super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request", [
256
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
257
- ]);
258
- }
259
- create(value?: PartialMessage<ProgressAPI_GetStatus_Request>): ProgressAPI_GetStatus_Request {
260
- const message = globalThis.Object.create((this.messagePrototype!));
261
- message.resourceId = 0n;
262
- if (value !== undefined)
263
- reflectionMergePartial<ProgressAPI_GetStatus_Request>(this, message, value);
264
- return message;
265
- }
266
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus_Request): ProgressAPI_GetStatus_Request {
267
- let message = target ?? this.create(), end = reader.pos + length;
268
- while (reader.pos < end) {
269
- let [fieldNo, wireType] = reader.tag();
270
- switch (fieldNo) {
271
- case /* uint64 resource_id */ 1:
272
- message.resourceId = reader.uint64().toBigInt();
273
- break;
274
- default:
275
- let u = options.readUnknownField;
276
- if (u === "throw")
277
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
278
- let d = reader.skip(wireType);
279
- if (u !== false)
280
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
281
- }
282
- }
283
- return message;
284
- }
285
- internalBinaryWrite(message: ProgressAPI_GetStatus_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
286
- /* uint64 resource_id = 1; */
287
- if (message.resourceId !== 0n)
288
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
289
- let u = options.writeUnknownFields;
290
- if (u !== false)
291
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
292
- return writer;
293
- }
294
- }
295
- /**
296
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
297
- */
298
- export const ProgressAPI_GetStatus_Request = new ProgressAPI_GetStatus_Request$Type();
299
- // @generated message type with reflection information, may provide speed optimized methods
300
- class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetStatus_Response> {
301
- constructor() {
302
- super("MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response", [
303
- { no: 1, name: "report", kind: "message", T: () => ProgressAPI_Report }
304
- ]);
305
- }
306
- create(value?: PartialMessage<ProgressAPI_GetStatus_Response>): ProgressAPI_GetStatus_Response {
307
- const message = globalThis.Object.create((this.messagePrototype!));
308
- if (value !== undefined)
309
- reflectionMergePartial<ProgressAPI_GetStatus_Response>(this, message, value);
310
- return message;
311
- }
312
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus_Response): ProgressAPI_GetStatus_Response {
313
- let message = target ?? this.create(), end = reader.pos + length;
314
- while (reader.pos < end) {
315
- let [fieldNo, wireType] = reader.tag();
316
- switch (fieldNo) {
317
- case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
318
- message.report = ProgressAPI_Report.internalBinaryRead(reader, reader.uint32(), options, message.report);
319
- break;
320
- default:
321
- let u = options.readUnknownField;
322
- if (u === "throw")
323
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
324
- let d = reader.skip(wireType);
325
- if (u !== false)
326
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
327
- }
328
- }
329
- return message;
330
- }
331
- internalBinaryWrite(message: ProgressAPI_GetStatus_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
332
- /* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
333
- if (message.report)
334
- ProgressAPI_Report.internalBinaryWrite(message.report, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
335
- let u = options.writeUnknownFields;
336
- if (u !== false)
337
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
338
- return writer;
339
- }
340
- }
341
- /**
342
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
343
- */
344
- export const ProgressAPI_GetStatus_Response = new ProgressAPI_GetStatus_Response$Type();
345
- // @generated message type with reflection information, may provide speed optimized methods
346
- class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeStatus> {
347
- constructor() {
348
- super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus", []);
349
- }
350
- create(value?: PartialMessage<ProgressAPI_RealtimeStatus>): ProgressAPI_RealtimeStatus {
351
- const message = globalThis.Object.create((this.messagePrototype!));
352
- if (value !== undefined)
353
- reflectionMergePartial<ProgressAPI_RealtimeStatus>(this, message, value);
354
- return message;
355
- }
356
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus): ProgressAPI_RealtimeStatus {
357
- let message = target ?? this.create(), end = reader.pos + length;
358
- while (reader.pos < end) {
359
- let [fieldNo, wireType] = reader.tag();
360
- switch (fieldNo) {
361
- default:
362
- let u = options.readUnknownField;
363
- if (u === "throw")
364
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
365
- let d = reader.skip(wireType);
366
- if (u !== false)
367
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
368
- }
369
- }
370
- return message;
371
- }
372
- internalBinaryWrite(message: ProgressAPI_RealtimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
373
- let u = options.writeUnknownFields;
374
- if (u !== false)
375
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
376
- return writer;
377
- }
378
- }
379
- /**
380
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
381
- */
382
- export const ProgressAPI_RealtimeStatus = new ProgressAPI_RealtimeStatus$Type();
383
- // @generated message type with reflection information, may provide speed optimized methods
384
- class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_RealtimeStatus_Request> {
385
- constructor() {
386
- super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request", [
387
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
388
- { no: 2, name: "update_interval", kind: "message", T: () => Duration }
389
- ]);
390
- }
391
- create(value?: PartialMessage<ProgressAPI_RealtimeStatus_Request>): ProgressAPI_RealtimeStatus_Request {
392
- const message = globalThis.Object.create((this.messagePrototype!));
393
- message.resourceId = 0n;
394
- if (value !== undefined)
395
- reflectionMergePartial<ProgressAPI_RealtimeStatus_Request>(this, message, value);
396
- return message;
397
- }
398
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus_Request): ProgressAPI_RealtimeStatus_Request {
399
- let message = target ?? this.create(), end = reader.pos + length;
400
- while (reader.pos < end) {
401
- let [fieldNo, wireType] = reader.tag();
402
- switch (fieldNo) {
403
- case /* uint64 resource_id */ 1:
404
- message.resourceId = reader.uint64().toBigInt();
405
- break;
406
- case /* google.protobuf.Duration update_interval */ 2:
407
- message.updateInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.updateInterval);
408
- break;
409
- default:
410
- let u = options.readUnknownField;
411
- if (u === "throw")
412
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
413
- let d = reader.skip(wireType);
414
- if (u !== false)
415
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
416
- }
417
- }
418
- return message;
419
- }
420
- internalBinaryWrite(message: ProgressAPI_RealtimeStatus_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
421
- /* uint64 resource_id = 1; */
422
- if (message.resourceId !== 0n)
423
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
424
- /* google.protobuf.Duration update_interval = 2; */
425
- if (message.updateInterval)
426
- Duration.internalBinaryWrite(message.updateInterval, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
427
- let u = options.writeUnknownFields;
428
- if (u !== false)
429
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
430
- return writer;
431
- }
432
- }
433
- /**
434
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
435
- */
436
- export const ProgressAPI_RealtimeStatus_Request = new ProgressAPI_RealtimeStatus_Request$Type();
437
- // @generated message type with reflection information, may provide speed optimized methods
438
- class ProgressAPI_RealtimeStatus_Response$Type extends MessageType<ProgressAPI_RealtimeStatus_Response> {
439
- constructor() {
440
- super("MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response", [
441
- { no: 1, name: "report", kind: "message", T: () => ProgressAPI_Report }
442
- ]);
443
- }
444
- create(value?: PartialMessage<ProgressAPI_RealtimeStatus_Response>): ProgressAPI_RealtimeStatus_Response {
445
- const message = globalThis.Object.create((this.messagePrototype!));
446
- if (value !== undefined)
447
- reflectionMergePartial<ProgressAPI_RealtimeStatus_Response>(this, message, value);
448
- return message;
449
- }
450
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus_Response): ProgressAPI_RealtimeStatus_Response {
451
- let message = target ?? this.create(), end = reader.pos + length;
452
- while (reader.pos < end) {
453
- let [fieldNo, wireType] = reader.tag();
454
- switch (fieldNo) {
455
- case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
456
- message.report = ProgressAPI_Report.internalBinaryRead(reader, reader.uint32(), options, message.report);
457
- break;
458
- default:
459
- let u = options.readUnknownField;
460
- if (u === "throw")
461
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
462
- let d = reader.skip(wireType);
463
- if (u !== false)
464
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
465
- }
466
- }
467
- return message;
468
- }
469
- internalBinaryWrite(message: ProgressAPI_RealtimeStatus_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
470
- /* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
471
- if (message.report)
472
- ProgressAPI_Report.internalBinaryWrite(message.report, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
473
- let u = options.writeUnknownFields;
474
- if (u !== false)
475
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
476
- return writer;
477
- }
478
- }
479
- /**
480
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
481
- */
482
- export const ProgressAPI_RealtimeStatus_Response = new ProgressAPI_RealtimeStatus_Response$Type();
483
- /**
484
- * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Progress
485
- */
486
- export const Progress = new ServiceType("MiLaboratories.Controller.Shared.Progress", [
487
- { name: "GetStatus", options: { "google.api.http": { get: "/resources/{resource_id}/get-progress" } }, I: ProgressAPI_GetStatus_Request, O: ProgressAPI_GetStatus_Response },
488
- { name: "RealtimeStatus", serverStreaming: true, options: {}, I: ProgressAPI_RealtimeStatus_Request, O: ProgressAPI_RealtimeStatus_Response }
489
- ]);
@@ -1,148 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
- // @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
3
- // tslint:disable
4
- import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
- import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
- import { Streaming } from "./protocol";
7
- import type { StreamingAPI_LastLines } from "./protocol";
8
- import type { StreamingAPI_ReadText } from "./protocol";
9
- import type { StreamingAPI_StreamText } from "./protocol";
10
- import type { StreamingAPI_ReadBinary } from "./protocol";
11
- import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
12
- import { stackIntercept } from "@protobuf-ts/runtime-rpc";
13
- import type { StreamingAPI_Response } from "./protocol";
14
- import type { StreamingAPI_StreamBinary } from "./protocol";
15
- import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
16
- import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
17
- /**
18
- *
19
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
20
- * the caller receives this fresh data in stream from server.
21
- *
22
- *
23
- * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
24
- */
25
- export interface IStreamingClient {
26
- /**
27
- * StreamBinary provides stream of binary file. Each response message keeps
28
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
29
- * for more info on available options.
30
- *
31
- * @generated from protobuf rpc: StreamBinary
32
- */
33
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response>;
34
- /**
35
- * ReadBinary allows to read remote item in chunks using stream-like API.
36
- * The difference to StreamBinary is that the client receives single response for each
37
- * call and has to send new calls to the server to get fresh data from remote item.
38
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
39
- *
40
- * @generated from protobuf rpc: ReadBinary
41
- */
42
- readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response>;
43
- /**
44
- * StreamText provides stream of textual file, splitting the data by newline symbol.
45
- * Each response message keeps one single line of text from data source.
46
- *
47
- * @generated from protobuf rpc: StreamText
48
- */
49
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response>;
50
- /**
51
- * ReadBinary allows to read remote item in chunks using stream-like API.
52
- * The difference to StreamBinary is that the client receives single response for each
53
- * call and has to send new calls to the server to get fresh data from remote item.
54
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
55
- *
56
- * @generated from protobuf rpc: ReadText
57
- */
58
- readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response>;
59
- /**
60
- * LastLines provides single message with the last lines from data source.
61
- * When search pattern is specified, the last lines matching the given pattern are returned.
62
- * The lines are returned in reversed order, as server reads data source from the end.
63
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
64
- * The <new_offset> returned in the response points to the _beginning_ of the last
65
- * line found, so client can continue reading the file backwards in subsequent calls.
66
- * This means, that use of this <new_offset> in ReadText() will return you the same line
67
- * returned last in LastLines() data.
68
- *
69
- * @generated from protobuf rpc: LastLines
70
- */
71
- lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response>;
72
- }
73
- /**
74
- *
75
- * Streaming provides access to online data stream from item in storage. Whenever item is appended with data,
76
- * the caller receives this fresh data in stream from server.
77
- *
78
- *
79
- * @generated from protobuf service MiLaboratories.Controller.Shared.Streaming
80
- */
81
- export class StreamingClient implements IStreamingClient, ServiceInfo {
82
- typeName = Streaming.typeName;
83
- methods = Streaming.methods;
84
- options = Streaming.options;
85
- constructor(private readonly _transport: RpcTransport) {
86
- }
87
- /**
88
- * StreamBinary provides stream of binary file. Each response message keeps
89
- * one single chunk of binary data from data source. See StreamingAPI.Binary message
90
- * for more info on available options.
91
- *
92
- * @generated from protobuf rpc: StreamBinary
93
- */
94
- streamBinary(input: StreamingAPI_StreamBinary, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamBinary, StreamingAPI_Response> {
95
- const method = this.methods[0], opt = this._transport.mergeOptions(options);
96
- return stackIntercept<StreamingAPI_StreamBinary, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
97
- }
98
- /**
99
- * ReadBinary allows to read remote item in chunks using stream-like API.
100
- * The difference to StreamBinary is that the client receives single response for each
101
- * call and has to send new calls to the server to get fresh data from remote item.
102
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
103
- *
104
- * @generated from protobuf rpc: ReadBinary
105
- */
106
- readBinary(input: StreamingAPI_ReadBinary, options?: RpcOptions): UnaryCall<StreamingAPI_ReadBinary, StreamingAPI_Response> {
107
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
108
- return stackIntercept<StreamingAPI_ReadBinary, StreamingAPI_Response>("unary", this._transport, method, opt, input);
109
- }
110
- /**
111
- * StreamText provides stream of textual file, splitting the data by newline symbol.
112
- * Each response message keeps one single line of text from data source.
113
- *
114
- * @generated from protobuf rpc: StreamText
115
- */
116
- streamText(input: StreamingAPI_StreamText, options?: RpcOptions): ServerStreamingCall<StreamingAPI_StreamText, StreamingAPI_Response> {
117
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
118
- return stackIntercept<StreamingAPI_StreamText, StreamingAPI_Response>("serverStreaming", this._transport, method, opt, input);
119
- }
120
- /**
121
- * ReadBinary allows to read remote item in chunks using stream-like API.
122
- * The difference to StreamBinary is that the client receives single response for each
123
- * call and has to send new calls to the server to get fresh data from remote item.
124
- * Each response (each chunk from server) keeps not more than 3.9MiB of data.
125
- *
126
- * @generated from protobuf rpc: ReadText
127
- */
128
- readText(input: StreamingAPI_ReadText, options?: RpcOptions): UnaryCall<StreamingAPI_ReadText, StreamingAPI_Response> {
129
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
130
- return stackIntercept<StreamingAPI_ReadText, StreamingAPI_Response>("unary", this._transport, method, opt, input);
131
- }
132
- /**
133
- * LastLines provides single message with the last lines from data source.
134
- * When search pattern is specified, the last lines matching the given pattern are returned.
135
- * The lines are returned in reversed order, as server reads data source from the end.
136
- * Consider it as equivalent to 'tac <file> | grep <search> | head -n <line_count>'
137
- * The <new_offset> returned in the response points to the _beginning_ of the last
138
- * line found, so client can continue reading the file backwards in subsequent calls.
139
- * This means, that use of this <new_offset> in ReadText() will return you the same line
140
- * returned last in LastLines() data.
141
- *
142
- * @generated from protobuf rpc: LastLines
143
- */
144
- lastLines(input: StreamingAPI_LastLines, options?: RpcOptions): UnaryCall<StreamingAPI_LastLines, StreamingAPI_Response> {
145
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
146
- return stackIntercept<StreamingAPI_LastLines, StreamingAPI_Response>("unary", this._transport, method, opt, input);
147
- }
148
- }