-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Prashant-Surya/feat/temporal-sdk-upgrade
Upgrade library to support temporal sdk v1.4.0
- Loading branch information
Showing
19 changed files
with
3,168 additions
and
1,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * from './temporal-module-options.interface'; | ||
export * from './shared-temporal-config.interface'; | ||
export * from './shared-worker-config.interface'; | ||
export * from './shared-runtime-config.interface'; | ||
export * from './shared-connection-config.interface'; | ||
export * from './temporal-module.interface'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { FactoryProvider, ModuleMetadata, Type } from '@nestjs/common'; | ||
import { NativeConnectionOptions } from '@temporalio/worker'; | ||
|
||
export interface SharedConnectionConfigurationFactory { | ||
createSharedConfiguration(): Promise<NativeConnectionOptions> | NativeConnectionOptions; | ||
} | ||
|
||
export interface SharedConnectionAsyncConfiguration | ||
extends Pick<ModuleMetadata, 'imports'> { | ||
/** | ||
* Existing Provider to be used. | ||
*/ | ||
useExisting?: Type<SharedConnectionConfigurationFactory>; | ||
/** | ||
* Type (class name) of provider (instance to be registered and injected). | ||
*/ | ||
useClass?: Type<SharedConnectionConfigurationFactory>; | ||
/** | ||
* Factory function that returns an instance of the provider to be injected. | ||
*/ | ||
useFactory?: (...args: any[]) => Promise<NativeConnectionOptions> | NativeConnectionOptions; | ||
/** | ||
* Optional list of providers to be injected into the context of the Factory function. | ||
*/ | ||
inject?: FactoryProvider['inject']; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { FactoryProvider, ModuleMetadata, Type } from '@nestjs/common'; | ||
import { RuntimeOptions } from '@temporalio/worker'; | ||
|
||
export interface SharedRuntimeConfigurationFactory { | ||
createSharedConfiguration(): Promise<RuntimeOptions> | RuntimeOptions; | ||
} | ||
|
||
export interface SharedRuntimeAsyncConfiguration | ||
extends Pick<ModuleMetadata, 'imports'> { | ||
/** | ||
* Existing Provider to be used. | ||
*/ | ||
useExisting?: Type<SharedRuntimeConfigurationFactory>; | ||
/** | ||
* Type (class name) of provider (instance to be registered and injected). | ||
*/ | ||
useClass?: Type<SharedRuntimeConfigurationFactory>; | ||
/** | ||
* Factory function that returns an instance of the provider to be injected. | ||
*/ | ||
useFactory?: (...args: any[]) => Promise<RuntimeOptions> | RuntimeOptions; | ||
/** | ||
* Optional list of providers to be injected into the context of the Factory function. | ||
*/ | ||
inject?: FactoryProvider['inject']; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.