@common-stack/client-core 0.6.1-alpha.2 → 0.6.1-alpha.4

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.
@@ -4,19 +4,19 @@ import { ConnectionParams } from 'subscriptions-transport-ws';
4
4
  import { Resolvers, IdGetterObj, PossibleTypesMap, TypePolicies, Operation, ApolloLink } from '@apollo/client';
5
5
  import { ErrorLink } from '@apollo/client/link/error';
6
6
  import { IBaseClientFeatureShape } from './base-client-feature';
7
- export declare type ResolverType = Resolvers | Resolvers[] | ((service: any) => Resolvers) | ((service: any) => Resolvers)[] | ((service: any) => any) | ((service: any) => any)[];
8
- export declare type ApolloLinkFunc = (container: interfaces.Container) => ApolloLink;
9
- export declare type ApolloConnectionParamFunc = ((container: interfaces.Container) => ConnectionParams | Promise<ConnectionParams>) | ConnectionParams;
10
- export declare type IWSConnectionCallbackFunc = (webSocket: any, error: Error[], result?: any) => void | Promise<void>;
11
- export declare type ApolloWSConnectionCallbackFunc = (container: interfaces.Container) => IWSConnectionCallbackFunc;
12
- declare type IRetryLinkAttemptFuncs = (count: number, operation: Operation, error: any) => boolean | Promise<boolean>;
13
- declare type IClientStateQueryDefault<T, V> = {
7
+ export type ResolverType = Resolvers | Resolvers[] | ((service: any) => Resolvers) | ((service: any) => Resolvers)[] | ((service: any) => any) | ((service: any) => any)[];
8
+ export type ApolloLinkFunc = (container: interfaces.Container) => ApolloLink;
9
+ export type ApolloConnectionParamFunc = ((container: interfaces.Container) => ConnectionParams | Promise<ConnectionParams>) | ConnectionParams;
10
+ export type IWSConnectionCallbackFunc = (webSocket: any, error: Error[], result?: any) => void | Promise<void>;
11
+ export type ApolloWSConnectionCallbackFunc = (container: interfaces.Container) => IWSConnectionCallbackFunc;
12
+ type IRetryLinkAttemptFuncs = (count: number, operation: Operation, error: any) => boolean | Promise<boolean>;
13
+ type IClientStateQueryDefault<T, V> = {
14
14
  type: 'query';
15
15
  } & Cache.WriteQueryOptions<T, V>;
16
- declare type IClientStateFragmentDefault<T, V> = {
16
+ type IClientStateFragmentDefault<T, V> = {
17
17
  type: 'fragment';
18
18
  } & Cache.WriteFragmentOptions<T, V>;
19
- export declare type IClientStateDefault<T = unknown, V = unknown> = IClientStateFragmentDefault<T, V> | IClientStateQueryDefault<T, V>;
19
+ export type IClientStateDefault<T = unknown, V = unknown> = IClientStateFragmentDefault<T, V> | IClientStateQueryDefault<T, V>;
20
20
  export interface IClientStateConfig {
21
21
  /**
22
22
  * @param: resolvers
@@ -0,0 +1,15 @@
1
+ import { CdmLogger } from '@cdm-logger/core';
2
+ import { ApolloClient } from '@apollo/client';
3
+ import { interfaces } from 'inversify';
4
+ export interface EpicDependencies<S = unknown> {
5
+ apolloClient: ApolloClient<any>;
6
+ routes: any;
7
+ logger: CdmLogger.ILogger;
8
+ services?: {
9
+ [key: string]: S;
10
+ };
11
+ config?: {
12
+ loadRoot: boolean;
13
+ };
14
+ container: interfaces.Container;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/client-core",
3
- "version": "0.6.1-alpha.2",
3
+ "version": "0.6.1-alpha.4",
4
4
  "description": "common core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -19,7 +19,7 @@
19
19
  "watch": "yarn build:lib:watch"
20
20
  },
21
21
  "dependencies": {
22
- "@common-stack/core": "0.6.1-alpha.0"
22
+ "@common-stack/core": "0.6.1-alpha.4"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
@@ -31,5 +31,5 @@
31
31
  "typescript": {
32
32
  "definition": "lib/index.d.ts"
33
33
  },
34
- "gitHead": "7ea27df9674fd1488ddc72eaec239b1242b63616"
34
+ "gitHead": "8f1002595ef0da183fc26d37a4a185b9c94cfc76"
35
35
  }