clarifai-web-grpc 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.github/workflows/ci.yml +6 -0
  2. package/.husky/pre-commit +4 -0
  3. package/.mocharc.yml +5 -0
  4. package/CHANGELOG.md +5 -7
  5. package/dist/cjs/google/api/annotations_pb.d.ts +1 -0
  6. package/dist/cjs/google/api/annotations_pb.js +32 -0
  7. package/dist/cjs/google/api/http_pb.d.ts +1 -0
  8. package/dist/cjs/google/api/http_pb.js +813 -0
  9. package/dist/cjs/index.d.ts +7 -0
  10. package/dist/cjs/index.js +15 -0
  11. package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +1 -0
  12. package/dist/cjs/proto/clarifai/api/resources_pb.js +32957 -0
  13. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +275 -0
  14. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +908 -0
  15. package/dist/cjs/proto/clarifai/api/service_pb.d.ts +1 -0
  16. package/dist/cjs/proto/clarifai/api/service_pb.js +38791 -0
  17. package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  18. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +312 -0
  19. package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +1 -0
  20. package/dist/cjs/proto/clarifai/api/status/status_pb.js +473 -0
  21. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  22. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +52 -0
  23. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  24. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +521 -0
  25. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  26. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +294 -0
  27. package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  28. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +26 -0
  29. package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  30. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +80 -0
  31. package/dist/cjs/resources.d.ts +1 -0
  32. package/dist/cjs/resources.js +13 -0
  33. package/dist/cjs/service.d.ts +1 -0
  34. package/dist/cjs/service.js +13 -0
  35. package/dist/esm/google/api/annotations_pb.d.ts +1 -0
  36. package/dist/esm/google/api/annotations_pb.js +32 -0
  37. package/dist/esm/google/api/http_pb.d.ts +1 -0
  38. package/dist/esm/google/api/http_pb.js +813 -0
  39. package/dist/esm/index.d.ts +7 -0
  40. package/dist/esm/index.js +9 -0
  41. package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
  42. package/dist/esm/proto/clarifai/api/resources_pb.js +32957 -0
  43. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +275 -0
  44. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +904 -0
  45. package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
  46. package/dist/esm/proto/clarifai/api/service_pb.js +38791 -0
  47. package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  48. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +312 -0
  49. package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
  50. package/dist/esm/proto/clarifai/api/status/status_pb.js +473 -0
  51. package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  52. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +52 -0
  53. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  54. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +521 -0
  55. package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  56. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +294 -0
  57. package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  58. package/dist/esm/proto/clarifai/auth/types/types_pb.js +26 -0
  59. package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  60. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +80 -0
  61. package/dist/esm/resources.d.ts +1 -0
  62. package/dist/esm/resources.js +1 -0
  63. package/dist/esm/service.d.ts +1 -0
  64. package/dist/esm/service.js +1 -0
  65. package/index.ts +11 -0
  66. package/package.json +13 -11
  67. package/resources.ts +1 -0
  68. package/service.ts +1 -0
  69. package/tests/basic.test.ts +41 -0
  70. package/tests/package.test.ts +0 -0
  71. package/tsconfig.cjs.json +7 -0
  72. package/tsconfig.json +25 -0
  73. package/.eslintrc.yml +0 -12
@@ -18,6 +18,12 @@ jobs:
18
18
  node-version: 16
19
19
  - name: Install deps
20
20
  run: yarn install
21
+ - name: Lint code
22
+ run: yarn lint
23
+ - name: Build package
24
+ run: yarn build
25
+ - name: Run tests
26
+ run: yarn test
21
27
 
22
28
  release:
23
29
  needs: build
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ yarn test
package/.mocharc.yml ADDED
@@ -0,0 +1,5 @@
1
+ color: true
2
+ extension:
3
+ - ts
4
+ require: ts-node/register
5
+ spec: tests/**/*.test.ts
package/CHANGELOG.md CHANGED
@@ -1,15 +1,13 @@
1
- # [2.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v1.1.8...v2.0.0) (2022-02-04)
1
+ # [3.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v2.0.2...v3.0.0) (2022-03-08)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * ci process ([3aee02d](https://github.com/Clarifai/clarifai-web-grpc/commit/3aee02d17bd05efc00fd645c62a6971e22fb2418))
7
-
8
-
9
- * fix(package)!: cleanse the package ([100e142](https://github.com/Clarifai/clarifai-web-grpc/commit/100e142a34254933439f08224557d6c23162effb))
6
+ * broken package ([7030339](https://github.com/Clarifai/clarifai-web-grpc/commit/7030339944e334d24a5189d95363228531dac685))
10
7
 
11
8
 
12
9
  ### BREAKING CHANGES
13
10
 
14
- * Consumers must now import the fully qualified
15
- package names.
11
+ * Completely reverts several versions of the package that were broken/attempting
12
+ to provide a lean package. This is hopefully a known good state that fixes
13
+ those issues.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // source: google/api/annotations.proto
3
+ /**
4
+ * @fileoverview
5
+ * @enhanceable
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+ var jspb = require('google-protobuf');
14
+ var goog = jspb;
15
+ var global = Function('return this')();
16
+ var google_api_http_pb = require('../../google/api/http_pb.js');
17
+ goog.object.extend(proto, google_api_http_pb);
18
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
19
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
20
+ goog.exportSymbol('proto.google.api.http', null, global);
21
+ /**
22
+ * A tuple of {field number, class constructor} for the extension
23
+ * field named `http`.
24
+ * @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
25
+ */
26
+ proto.google.api.http = new jspb.ExtensionFieldInfo(72295728, { http: 0 }, google_api_http_pb.HttpRule,
27
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (google_api_http_pb.HttpRule.toObject), 0);
28
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(proto.google.api.http, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, google_api_http_pb.HttpRule.serializeBinaryToWriter, google_api_http_pb.HttpRule.deserializeBinaryFromReader, false);
29
+ // This registers the extension field with the extended class, so that
30
+ // toObject() will function correctly.
31
+ google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
32
+ goog.object.extend(exports, proto.google.api);
@@ -0,0 +1 @@
1
+ export {};