@hatchet-dev/typescript-sdk 0.1.0 → 0.1.2

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 (62) hide show
  1. package/{dist/clients → clients}/admin/admin-client.d.ts +2 -2
  2. package/{dist/clients → clients}/admin/admin-client.js +2 -2
  3. package/{dist/clients → clients}/dispatcher/action-listener.d.ts +3 -3
  4. package/{dist/clients → clients}/dispatcher/action-listener.js +2 -2
  5. package/{dist/clients → clients}/dispatcher/dispatcher-client.d.ts +5 -5
  6. package/{dist/clients → clients}/dispatcher/dispatcher-client.js +3 -3
  7. package/clients/event/event-client.d.ts +11 -0
  8. package/{dist/clients → clients}/event/event-client.js +3 -3
  9. package/{dist/clients → clients}/hatchet-client/hatchet-client.d.ts +6 -6
  10. package/{dist/clients → clients}/hatchet-client/hatchet-client.js +6 -6
  11. package/{dist/clients → clients}/worker/worker.d.ts +6 -6
  12. package/{dist/clients → clients}/worker/worker.js +6 -6
  13. package/index.d.ts +2 -0
  14. package/{dist/index.js → index.js} +1 -1
  15. package/package.json +24 -22
  16. package/sdk.d.ts +2 -0
  17. package/{dist/sdk.js → sdk.js} +1 -1
  18. package/{dist/step.js → step.js} +1 -1
  19. package/{dist/util → util}/config-loader/config-loader.d.ts +1 -1
  20. package/{dist/util → util}/config-loader/config-loader.js +1 -1
  21. package/README.md +0 -3
  22. package/dist/clients/event/event-client.d.ts +0 -11
  23. package/dist/index.d.ts +0 -2
  24. package/dist/package.json +0 -73
  25. package/dist/sdk.d.ts +0 -2
  26. /package/{dist/clients → clients}/hatchet-client/client-config.d.ts +0 -0
  27. /package/{dist/clients → clients}/hatchet-client/client-config.js +0 -0
  28. /package/{dist/clients → clients}/hatchet-client/index.d.ts +0 -0
  29. /package/{dist/clients → clients}/hatchet-client/index.js +0 -0
  30. /package/{dist/clients → clients}/worker/index.d.ts +0 -0
  31. /package/{dist/clients → clients}/worker/index.js +0 -0
  32. /package/{dist/protoc → protoc}/dispatcher/dispatcher.d.ts +0 -0
  33. /package/{dist/protoc → protoc}/dispatcher/dispatcher.js +0 -0
  34. /package/{dist/protoc → protoc}/dispatcher/index.d.ts +0 -0
  35. /package/{dist/protoc → protoc}/dispatcher/index.js +0 -0
  36. /package/{dist/protoc → protoc}/events/events.d.ts +0 -0
  37. /package/{dist/protoc → protoc}/events/events.js +0 -0
  38. /package/{dist/protoc → protoc}/events/index.d.ts +0 -0
  39. /package/{dist/protoc → protoc}/events/index.js +0 -0
  40. /package/{dist/protoc → protoc}/google/protobuf/timestamp.d.ts +0 -0
  41. /package/{dist/protoc → protoc}/google/protobuf/timestamp.js +0 -0
  42. /package/{dist/protoc → protoc}/google/protobuf/wrappers.d.ts +0 -0
  43. /package/{dist/protoc → protoc}/google/protobuf/wrappers.js +0 -0
  44. /package/{dist/protoc → protoc}/workflows/index.d.ts +0 -0
  45. /package/{dist/protoc → protoc}/workflows/index.js +0 -0
  46. /package/{dist/protoc → protoc}/workflows/workflows.d.ts +0 -0
  47. /package/{dist/protoc → protoc}/workflows/workflows.js +0 -0
  48. /package/{dist/step.d.ts → step.d.ts} +0 -0
  49. /package/{dist/util → util}/config-loader/index.d.ts +0 -0
  50. /package/{dist/util → util}/config-loader/index.js +0 -0
  51. /package/{dist/util → util}/errors/hatchet-error.d.ts +0 -0
  52. /package/{dist/util → util}/errors/hatchet-error.js +0 -0
  53. /package/{dist/util → util}/hatchet-promise/hatchet-promise.d.ts +0 -0
  54. /package/{dist/util → util}/hatchet-promise/hatchet-promise.js +0 -0
  55. /package/{dist/util → util}/logger/index.d.ts +0 -0
  56. /package/{dist/util → util}/logger/index.js +0 -0
  57. /package/{dist/util → util}/logger/logger.d.ts +0 -0
  58. /package/{dist/util → util}/logger/logger.js +0 -0
  59. /package/{dist/util → util}/sleep.d.ts +0 -0
  60. /package/{dist/util → util}/sleep.js +0 -0
  61. /package/{dist/workflow.d.ts → workflow.d.ts} +0 -0
  62. /package/{dist/workflow.js → workflow.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Channel, ClientFactory } from 'nice-grpc';
2
- import { CreateWorkflowVersionOpts, WorkflowServiceClient } from '../../protoc/workflows';
3
- import { ClientConfig } from '../hatchet-client/client-config';
2
+ import { CreateWorkflowVersionOpts, WorkflowServiceClient } from '../../../../src/protoc/workflows';
3
+ import { ClientConfig } from '../../../../src/clients/hatchet-client/client-config';
4
4
  export declare class AdminClient {
5
5
  config: ClientConfig;
6
6
  client: WorkflowServiceClient;
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AdminClient = void 0;
16
- const workflows_1 = require("../../protoc/workflows");
17
- const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
16
+ const workflows_1 = require("../../../../src/protoc/workflows");
17
+ const hatchet_error_1 = __importDefault(require("../../../../src/util/errors/hatchet-error"));
18
18
  class AdminClient {
19
19
  constructor(config, channel, factory) {
20
20
  this.config = config;
@@ -1,5 +1,5 @@
1
- import { DispatcherClient as PbDispatcherClient, AssignedAction } from '../../protoc/dispatcher';
2
- import { ClientConfig } from '../hatchet-client/client-config';
1
+ import { DispatcherClient as PbDispatcherClient, AssignedAction } from '../../../../src/protoc/dispatcher';
2
+ import { ClientConfig } from '../../../../src/clients/hatchet-client/client-config';
3
3
  import { DispatcherClient } from './dispatcher-client';
4
4
  export interface Action {
5
5
  tenantId: string;
@@ -22,5 +22,5 @@ export declare class ActionListener {
22
22
  constructor(client: DispatcherClient, listener: AsyncIterable<AssignedAction>, workerId: string);
23
23
  actions: () => AsyncGenerator<Action, void, unknown>;
24
24
  retrySubscribe(): Promise<void>;
25
- unregister(): Promise<import("../../protoc/dispatcher").WorkerUnsubscribeResponse>;
25
+ unregister(): Promise<import("../../../../src/protoc/dispatcher").WorkerUnsubscribeResponse>;
26
26
  }
@@ -34,8 +34,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.ActionListener = void 0;
36
36
  const nice_grpc_1 = require("nice-grpc");
37
- const sleep_1 = __importDefault(require("../../util/sleep"));
38
- const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
37
+ const sleep_1 = __importDefault(require("../../../../src/util/sleep"));
38
+ const hatchet_error_1 = __importDefault(require("../../../../src/util/errors/hatchet-error"));
39
39
  const DEFAULT_ACTION_LISTENER_RETRY_INTERVAL = 5; // seconds
40
40
  const DEFAULT_ACTION_LISTENER_RETRY_COUNT = 5;
41
41
  class ActionListener {
@@ -1,7 +1,7 @@
1
1
  import { Channel, ClientFactory } from 'nice-grpc';
2
- import { DispatcherClient as PbDispatcherClient, StepActionEvent, GroupKeyActionEvent } from '../../protoc/dispatcher';
3
- import { ClientConfig } from '../hatchet-client/client-config';
4
- import { Logger } from '../../util/logger';
2
+ import { DispatcherClient as PbDispatcherClient, StepActionEvent, GroupKeyActionEvent } from '../../../../src/protoc/dispatcher';
3
+ import { ClientConfig } from '../../../../src/clients/hatchet-client/client-config';
4
+ import { Logger } from '../../../../src/util/logger';
5
5
  import { ActionListener } from './action-listener';
6
6
  interface GetActionListenerOptions {
7
7
  workerName: string;
@@ -14,7 +14,7 @@ export declare class DispatcherClient {
14
14
  logger: Logger;
15
15
  constructor(config: ClientConfig, channel: Channel, factory: ClientFactory);
16
16
  getActionListener(options: GetActionListenerOptions): Promise<ActionListener>;
17
- sendStepActionEvent(in_: StepActionEvent): Promise<import("../../protoc/dispatcher").ActionEventResponse>;
18
- sendGroupKeyActionEvent(in_: GroupKeyActionEvent): Promise<import("../../protoc/dispatcher").ActionEventResponse>;
17
+ sendStepActionEvent(in_: StepActionEvent): Promise<import("../../../../src/protoc/dispatcher").ActionEventResponse>;
18
+ sendGroupKeyActionEvent(in_: GroupKeyActionEvent): Promise<import("../../../../src/protoc/dispatcher").ActionEventResponse>;
19
19
  }
20
20
  export {};
@@ -13,9 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.DispatcherClient = void 0;
16
- const dispatcher_1 = require("../../protoc/dispatcher");
17
- const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
18
- const logger_1 = require("../../util/logger");
16
+ const dispatcher_1 = require("../../../../src/protoc/dispatcher");
17
+ const hatchet_error_1 = __importDefault(require("../../../../src/util/errors/hatchet-error"));
18
+ const logger_1 = require("../../../../src/util/logger");
19
19
  const action_listener_1 = require("./action-listener");
20
20
  class DispatcherClient {
21
21
  constructor(config, channel, factory) {
@@ -0,0 +1,11 @@
1
+ import { Channel, ClientFactory } from 'nice-grpc';
2
+ import { EventsServiceClient } from '../../../../src/protoc/events/events';
3
+ import { ClientConfig } from '../../../../src/clients/hatchet-client/client-config';
4
+ import { Logger } from '../../../../src/util/logger';
5
+ export declare class EventClient {
6
+ config: ClientConfig;
7
+ client: EventsServiceClient;
8
+ logger: Logger;
9
+ constructor(config: ClientConfig, channel: Channel, factory: ClientFactory);
10
+ push<T>(type: string, input: T): Promise<import("../../../../src/protoc/events/events").Event>;
11
+ }
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.EventClient = void 0;
7
- const events_1 = require("../../protoc/events/events");
8
- const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
9
- const logger_1 = require("../../util/logger");
7
+ const events_1 = require("../../../../src/protoc/events/events");
8
+ const hatchet_error_1 = __importDefault(require("../../../../src/util/errors/hatchet-error"));
9
+ const logger_1 = require("../../../../src/util/logger");
10
10
  class EventClient {
11
11
  constructor(config, channel, factory) {
12
12
  this.config = config;
@@ -1,10 +1,10 @@
1
- import { EventClient } from '../event/event-client';
2
- import { DispatcherClient } from '../dispatcher/dispatcher-client';
3
- import { AdminClient } from '../admin/admin-client';
1
+ import { EventClient } from '../../../../src/clients/event/event-client';
2
+ import { DispatcherClient } from '../../../../src/clients/dispatcher/dispatcher-client';
3
+ import { AdminClient } from '../../../../src/clients/admin/admin-client';
4
4
  import { Channel, ChannelCredentials } from 'nice-grpc';
5
- import { Workflow } from '../../workflow';
6
- import { Worker } from '../worker';
7
- import Logger from '../../util/logger/logger';
5
+ import { Workflow } from '../../../../src/workflow';
6
+ import { Worker } from '../../../../src/clients/worker';
7
+ import Logger from '../../../../src/util/logger/logger';
8
8
  import { ClientConfig } from './client-config';
9
9
  export interface HatchetClientOptions {
10
10
  config_path?: string;
@@ -39,13 +39,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  exports.HatchetClient = void 0;
41
41
  const zod_1 = require("zod");
42
- const config_loader_1 = require("../../util/config-loader");
43
- const event_client_1 = require("../event/event-client");
44
- const dispatcher_client_1 = require("../dispatcher/dispatcher-client");
45
- const admin_client_1 = require("../admin/admin-client");
42
+ const config_loader_1 = require("../../../../src/util/config-loader");
43
+ const event_client_1 = require("../../../../src/clients/event/event-client");
44
+ const dispatcher_client_1 = require("../../../../src/clients/dispatcher/dispatcher-client");
45
+ const admin_client_1 = require("../../../../src/clients/admin/admin-client");
46
46
  const nice_grpc_1 = require("nice-grpc");
47
- const worker_1 = require("../worker");
48
- const logger_1 = __importDefault(require("../../util/logger/logger"));
47
+ const worker_1 = require("../../../../src/clients/worker");
48
+ const logger_1 = __importDefault(require("../../../../src/util/logger/logger"));
49
49
  const client_config_1 = require("./client-config");
50
50
  const addTokenMiddleware = (token) => function _(call, options) {
51
51
  return __asyncGenerator(this, arguments, function* _1() {
@@ -1,9 +1,9 @@
1
- import { HatchetClient } from '../hatchet-client';
2
- import { Action, ActionListener } from '../dispatcher/action-listener';
3
- import { StepActionEvent, StepActionEventType, GroupKeyActionEvent, GroupKeyActionEventType } from '../../protoc/dispatcher';
4
- import HatchetPromise from '../../util/hatchet-promise/hatchet-promise';
5
- import { Workflow } from '../../workflow';
6
- import { Logger } from '../../util/logger';
1
+ import { HatchetClient } from '../../../../src/clients/hatchet-client';
2
+ import { Action, ActionListener } from '../../../../src/clients/dispatcher/action-listener';
3
+ import { StepActionEvent, StepActionEventType, GroupKeyActionEvent, GroupKeyActionEventType } from '../../../../src/protoc/dispatcher';
4
+ import HatchetPromise from '../../../../src/util/hatchet-promise/hatchet-promise';
5
+ import { Workflow } from '../../../../src/workflow';
6
+ import { Logger } from '../../../../src/util/logger';
7
7
  import { Context } from '../../step';
8
8
  export type ActionRegistry = Record<Action['actionId'], Function>;
9
9
  export declare class Worker {
@@ -20,12 +20,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.Worker = void 0;
23
- const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
24
- const dispatcher_1 = require("../../protoc/dispatcher");
25
- const hatchet_promise_1 = __importDefault(require("../../util/hatchet-promise/hatchet-promise"));
26
- const workflows_1 = require("../../protoc/workflows");
27
- const logger_1 = require("../../util/logger");
28
- const sleep_1 = __importDefault(require("../../util/sleep"));
23
+ const hatchet_error_1 = __importDefault(require("../../../../src/util/errors/hatchet-error"));
24
+ const dispatcher_1 = require("../../../../src/protoc/dispatcher");
25
+ const hatchet_promise_1 = __importDefault(require("../../../../src/util/hatchet-promise/hatchet-promise"));
26
+ const workflows_1 = require("../../../../src/protoc/workflows");
27
+ const logger_1 = require("../../../../src/util/logger");
28
+ const sleep_1 = __importDefault(require("../../../../src/util/sleep"));
29
29
  const step_1 = require("../../step");
30
30
  class Worker {
31
31
  constructor(client, options) {
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { HatchetClient as Hatchet } from '../../src/clients/hatchet-client';
2
+ export default Hatchet;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const hatchet_client_1 = require("./clients/hatchet-client");
3
+ const hatchet_client_1 = require("../../src/clients/hatchet-client");
4
4
  exports.default = hatchet_client_1.HatchetClient;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
- "dist",
8
+ "*",
9
9
  "!**/*.test.js",
10
10
  "!**/*.test.d.ts"
11
11
  ],
@@ -13,6 +13,27 @@
13
13
  "type": "git",
14
14
  "url": "https://github.com/hatchet-dev/hatchet.git"
15
15
  },
16
+ "scripts": {
17
+ "prepare": "npm run build",
18
+ "build": "tsc && resolve-tspaths",
19
+ "test": "jest",
20
+ "test:watch": "jest --watch",
21
+ "generate": "./generate-protoc.sh",
22
+ "lint:check": "npm run eslint:check && npm run prettier:check",
23
+ "lint:fix": "npm run eslint:fix && npm run prettier:fix",
24
+ "eslint:check": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\"",
25
+ "eslint:fix": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\" --fix",
26
+ "prettier:check": "prettier \"hatchet/**/*.{ts,tsx}\" --list-different",
27
+ "prettier:fix": "prettier \"hatchet/**/*.{ts,tsx}\" --write",
28
+ "exec": "npx dotenv -- ts-node -r tsconfig-paths/register --project tsconfig.json",
29
+ "example:event": "npm run exec -- ./examples/example-event.ts",
30
+ "worker:simple": "npm run exec -- ./examples/simple-worker.ts",
31
+ "worker:dag": "npm run exec -- ./examples/dag-worker.ts",
32
+ "worker:concurrency": "npm run exec -- ./examples/concurrency/concurrency-worker.ts",
33
+ "event:concurrency": "npm run exec -- ./examples/concurrency/concurrency-event.ts",
34
+ "prepublish": "cp package.json dist/package.json",
35
+ "publish:ci": "npm run prepublish && cd dist && npm publish --access public"
36
+ },
16
37
  "keywords": [],
17
38
  "author": "",
18
39
  "license": "MIT",
@@ -48,24 +69,5 @@
48
69
  "protobufjs": "^7.2.6",
49
70
  "yaml": "^2.3.4",
50
71
  "zod": "^3.22.4"
51
- },
52
- "scripts": {
53
- "build": "tsc && resolve-tspaths",
54
- "test": "jest",
55
- "test:watch": "jest --watch",
56
- "generate": "./generate-protoc.sh",
57
- "lint:check": "npm run eslint:check && npm run prettier:check",
58
- "lint:fix": "npm run eslint:fix && npm run prettier:fix",
59
- "eslint:check": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\"",
60
- "eslint:fix": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\" --fix",
61
- "prettier:check": "prettier \"hatchet/**/*.{ts,tsx}\" --list-different",
62
- "prettier:fix": "prettier \"hatchet/**/*.{ts,tsx}\" --write",
63
- "exec": "npx dotenv -- ts-node -r tsconfig-paths/register --project tsconfig.json",
64
- "example:event": "npm run exec -- ./examples/example-event.ts",
65
- "worker:simple": "npm run exec -- ./examples/simple-worker.ts",
66
- "worker:dag": "npm run exec -- ./examples/dag-worker.ts",
67
- "worker:concurrency": "npm run exec -- ./examples/concurrency/concurrency-worker.ts",
68
- "event:concurrency": "npm run exec -- ./examples/concurrency/concurrency-event.ts",
69
- "prepublish": "cp package.json dist/package.json"
70
72
  }
71
- }
73
+ }
package/sdk.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { HatchetClient as Hatchet } from '../../src/clients/hatchet-client';
2
+ export default Hatchet;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const hatchet_client_1 = require("./clients/hatchet-client");
3
+ const hatchet_client_1 = require("../../src/clients/hatchet-client");
4
4
  exports.default = hatchet_client_1.HatchetClient;
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Context = exports.CreateStepSchema = void 0;
30
- const hatchet_error_1 = __importDefault(require("./util/errors/hatchet-error"));
30
+ const hatchet_error_1 = __importDefault(require("../../src/util/errors/hatchet-error"));
31
31
  const z = __importStar(require("zod"));
32
32
  const workflow_1 = require("./workflow");
33
33
  exports.CreateStepSchema = z.object({
@@ -1,4 +1,4 @@
1
- import { ClientConfig } from '../../clients/hatchet-client';
1
+ import { ClientConfig } from '../../../../src/clients/hatchet-client';
2
2
  import { ChannelCredentials } from 'nice-grpc';
3
3
  interface LoadClientConfigOptions {
4
4
  path?: string;
@@ -28,7 +28,7 @@ const yaml_1 = require("yaml");
28
28
  const fs_1 = require("fs");
29
29
  const p = __importStar(require("path"));
30
30
  const zod_1 = require("zod");
31
- const hatchet_client_1 = require("../../clients/hatchet-client");
31
+ const hatchet_client_1 = require("../../../../src/clients/hatchet-client");
32
32
  const nice_grpc_1 = require("nice-grpc");
33
33
  const DEFAULT_CONFIG_FILE = '.hatchet.yaml';
34
34
  class ConfigLoader {
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Hatchet - Typescript SDK
2
-
3
- Please refer to the [Hatchet Typescript SDK documentation](https://docs.hatchet.run/typescript-sdk/setup) for setup instructions and usage details.
@@ -1,11 +0,0 @@
1
- import { Channel, ClientFactory } from 'nice-grpc';
2
- import { EventsServiceClient } from '../../protoc/events/events';
3
- import { ClientConfig } from '../hatchet-client/client-config';
4
- import { Logger } from '../../util/logger';
5
- export declare class EventClient {
6
- config: ClientConfig;
7
- client: EventsServiceClient;
8
- logger: Logger;
9
- constructor(config: ClientConfig, channel: Channel, factory: ClientFactory);
10
- push<T>(type: string, input: T): Promise<import("../../protoc/events/events").Event>;
11
- }
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { HatchetClient as Hatchet } from './clients/hatchet-client';
2
- export default Hatchet;
package/dist/package.json DELETED
@@ -1,73 +0,0 @@
1
- {
2
- "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.1.0",
4
- "description": "Background task orchestration & visibility for developers",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist",
9
- "!**/*.test.js",
10
- "!**/*.test.d.ts"
11
- ],
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/hatchet-dev/hatchet.git"
15
- },
16
- "scripts": {
17
- "prepare": "npm run build",
18
- "build": "tsc && resolve-tspaths",
19
- "test": "jest",
20
- "test:watch": "jest --watch",
21
- "generate": "./generate-protoc.sh",
22
- "lint:check": "npm run eslint:check && npm run prettier:check",
23
- "lint:fix": "npm run eslint:fix && npm run prettier:fix",
24
- "eslint:check": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\"",
25
- "eslint:fix": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\" --fix",
26
- "prettier:check": "prettier \"hatchet/**/*.{ts,tsx}\" --list-different",
27
- "prettier:fix": "prettier \"hatchet/**/*.{ts,tsx}\" --write",
28
- "exec": "npx dotenv -- ts-node -r tsconfig-paths/register --project tsconfig.json",
29
- "example:event": "npm run exec -- ./examples/example-event.ts",
30
- "worker:simple": "npm run exec -- ./examples/simple-worker.ts",
31
- "worker:dag": "npm run exec -- ./examples/dag-worker.ts",
32
- "worker:concurrency": "npm run exec -- ./examples/concurrency/concurrency-worker.ts",
33
- "event:concurrency": "npm run exec -- ./examples/concurrency/concurrency-event.ts",
34
- "prepublish": "cp package.json dist/package.json",
35
- "publish": "npm publish dist --access public"
36
- },
37
- "keywords": [],
38
- "author": "",
39
- "license": "MIT",
40
- "devDependencies": {
41
- "@types/jest": "^29.5.11",
42
- "@typescript-eslint/eslint-plugin": "^6.4.0",
43
- "autoprefixer": "^10.4.16",
44
- "dotenv-cli": "^7.3.0",
45
- "eslint": "^8.56.0",
46
- "eslint-config-airbnb-typescript": "^17.1.0",
47
- "eslint-config-prettier": "^9.1.0",
48
- "eslint-config-standard-with-typescript": "^43.0.0",
49
- "eslint-import-resolver-typescript": "^3.6.1",
50
- "eslint-plugin-import": "^2.29.1",
51
- "eslint-plugin-jest": "^27.6.3",
52
- "eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
53
- "eslint-plugin-prettier": "^5.0.1",
54
- "eslint-plugin-promise": "^6.0.0",
55
- "eslint-plugin-unused-imports": "^3.0.0",
56
- "grpc-tools": "^1.12.4",
57
- "jest": "^29.7.0",
58
- "prettier": "^3.1.1",
59
- "resolve-tspaths": "^0.8.17",
60
- "ts-jest": "^29.1.1",
61
- "ts-node": "^10.9.2",
62
- "ts-proto": "^1.167.0",
63
- "typescript": "^5.3.3"
64
- },
65
- "dependencies": {
66
- "long": "^5.2.3",
67
- "nice-grpc": "^2.1.7",
68
- "nice-grpc-common": "^2.0.2",
69
- "protobufjs": "^7.2.6",
70
- "yaml": "^2.3.4",
71
- "zod": "^3.22.4"
72
- }
73
- }
package/dist/sdk.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { HatchetClient as Hatchet } from './clients/hatchet-client';
2
- export default Hatchet;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes