Skip to content

Commit 6b081c3

Browse files
Fix Issue 166 - Enumerable missing
Signed-off-by: Xavier Geerinck <[email protected]>
1 parent 2cb8957 commit 6b081c3

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/implementation/Client/GRPCClient/state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { IRequestMetadata } from '../../../types/RequestMetadata.type';
77
import IClientState from '../../../interfaces/Client/IClientState';
88
import { KeyValueType } from '../../../types/KeyValue.type';
99
import { merge } from '../../../utils/Map.util';
10-
import { StateQueryType } from '../../../types/StateQuery.type';
11-
import { StateQueryResponseType } from '../../../types/StateQueryResponse.type';
10+
import { StateQueryType } from '../../../types/state/StateQuery.type';
11+
import { StateQueryResponseType } from '../../../types/state/StateQueryResponse.type';
1212

1313
// https://docs.dapr.io/reference/api/state_api/
1414
export default class GRPCClientState implements IClientState {

src/implementation/Client/HTTPClient/state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { OperationType } from '../../../types/Operation.type';
44
import { IRequestMetadata } from '../../../types/RequestMetadata.type';
55
import IClientState from '../../../interfaces/Client/IClientState';
66
import { KeyValueType } from '../../../types/KeyValue.type';
7-
import { StateQueryType } from '../../../types/StateQuery.type';
8-
import { StateQueryResponseType } from '../../../types/StateQueryResponse.type';
7+
import { StateQueryType } from '../../../types/state/StateQuery.type';
8+
import { StateQueryResponseType } from '../../../types/state/StateQueryResponse.type';
99

1010
// https://docs.dapr.io/reference/api/state_api/
1111
export default class HTTPClientState implements IClientState {

src/interfaces/Client/IClientState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { OperationType } from "../../types/Operation.type";
22
import { IRequestMetadata } from "../../types/RequestMetadata.type";
33
import { KeyValuePairType } from "../../types/KeyValuePair.type";
44
import { KeyValueType } from "../../types/KeyValue.type";
5-
import { StateQueryType } from "../../types/StateQuery.type";
6-
import { StateQueryResponseType } from "../../types/StateQueryResponse.type";
5+
import { StateQueryType } from "../../types/state/StateQuery.type";
6+
import { StateQueryResponseType } from "../../types/state/StateQueryResponse.type";
77

88
export default interface IClientState {
99
save(storeName: string, stateObjects: KeyValuePairType[]): Promise<void>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type Enumerable<T> = T | Array<T>;
File renamed without changes.

src/types/StateQuery.type.ts renamed to src/types/state/StateQuery.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Enumerable } from "./Enumerable.type"
1+
import { Enumerable } from "../common/Enumerable.type"
22

33
export type StateQueryType = {
44
filter: StateQueryFilter;
File renamed without changes.

0 commit comments

Comments
 (0)