@cyberskill/shared 1.93.0 → 1.95.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 (45) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +106 -0
  2. package/dist/_tsup-dts-rollup.d.ts +106 -0
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.d.cts +13 -0
  5. package/dist/index.d.ts +13 -0
  6. package/dist/index.js +1 -1
  7. package/dist/nodejs/apollo-server/apollo-server.type.d.cts +1 -0
  8. package/dist/nodejs/apollo-server/apollo-server.type.d.ts +1 -0
  9. package/dist/nodejs/apollo-server/apollo-server.util.cjs +1 -0
  10. package/dist/nodejs/apollo-server/apollo-server.util.d.cts +2 -0
  11. package/dist/nodejs/apollo-server/apollo-server.util.d.ts +2 -0
  12. package/dist/nodejs/apollo-server/apollo-server.util.js +1 -0
  13. package/dist/nodejs/apollo-server/index.cjs +1 -1
  14. package/dist/nodejs/apollo-server/index.d.cts +3 -0
  15. package/dist/nodejs/apollo-server/index.d.ts +3 -0
  16. package/dist/nodejs/apollo-server/index.js +1 -1
  17. package/dist/nodejs/cli/cli.util.cjs +1 -1
  18. package/dist/nodejs/cli/cli.util.js +1 -1
  19. package/dist/nodejs/cli/index.cjs +1 -1
  20. package/dist/nodejs/cli/index.js +1 -1
  21. package/dist/nodejs/express/express.d.d.cts +1 -0
  22. package/dist/nodejs/express/express.d.d.ts +1 -0
  23. package/dist/nodejs/express/express.type.d.cts +2 -0
  24. package/dist/nodejs/express/express.type.d.ts +2 -0
  25. package/dist/nodejs/express/express.util.cjs +1 -0
  26. package/dist/nodejs/express/express.util.d.cts +4 -0
  27. package/dist/nodejs/express/express.util.d.ts +4 -0
  28. package/dist/nodejs/express/express.util.js +1 -0
  29. package/dist/nodejs/express/index.cjs +1 -1
  30. package/dist/nodejs/express/index.d.cts +6 -0
  31. package/dist/nodejs/express/index.d.ts +6 -0
  32. package/dist/nodejs/express/index.js +1 -1
  33. package/dist/nodejs/index.cjs +1 -1
  34. package/dist/nodejs/index.d.cts +13 -0
  35. package/dist/nodejs/index.d.ts +13 -0
  36. package/dist/nodejs/index.js +1 -1
  37. package/dist/nodejs/ws/index.d.cts +4 -0
  38. package/dist/nodejs/ws/index.d.ts +4 -0
  39. package/dist/nodejs/ws/ts.util.cjs +1 -0
  40. package/dist/nodejs/ws/ts.util.d.cts +2 -0
  41. package/dist/nodejs/ws/ts.util.d.ts +2 -0
  42. package/dist/nodejs/ws/ts.util.js +1 -0
  43. package/dist/nodejs/ws/ws.type.d.cts +2 -0
  44. package/dist/nodejs/ws/ws.type.d.ts +2 -0
  45. package/package.json +3 -3
@@ -7,19 +7,26 @@ import { ApolloClient } from '@apollo/client';
7
7
  import { ApolloClientOptions } from '@apollo/client';
8
8
  import type { ApolloError as ApolloError_2 } from '@apollo/client';
9
9
  import type { ApolloLink } from '@apollo/client';
10
+ import { ApolloServer } from '@apollo/server';
11
+ import type { Application } from 'express';
10
12
  import type { ClientSession } from 'mongoose';
11
13
  import type { CodegenConfig } from '@graphql-codegen/cli';
12
14
  import { Collection } from 'mongodb';
13
15
  import type { ComponentType } from 'react';
14
16
  import type consola from 'consola';
15
17
  import { Context } from 'react';
18
+ import cors from 'cors';
16
19
  import { Db } from 'mongodb';
17
20
  import type { DeleteResult } from 'mongodb';
21
+ import { Disposable as Disposable_2 } from 'graphql-ws';
18
22
  import { Document as Document_2 } from 'mongoose';
19
23
  import type { ErrorHandlingMiddlewareFunction } from 'mongoose';
20
24
  import type { ErrorHandlingMiddlewareWithOption } from 'mongoose';
25
+ import express from 'express';
26
+ import { expressMiddleware } from '@apollo/server/express4';
21
27
  import type { Filter } from 'mongodb';
22
28
  import type { FilterQuery } from 'mongoose';
29
+ import type { GraphQLSchema } from 'graphql';
23
30
  import { I_ApolloErrorContext as I_ApolloErrorContext_2 } from './apollo-error.type.js';
24
31
  import { I_Command as I_Command_2 } from './command.type.js';
25
32
  import { I_LoadingContext as I_LoadingContext_2 } from './loading.type.js';
@@ -53,6 +60,8 @@ import type { ReactElement } from 'react';
53
60
  import type { ReactNode } from 'react';
54
61
  import type { Schema } from 'mongoose';
55
62
  import type { SchemaDefinition } from 'mongoose';
63
+ import type { Server } from 'node:http';
64
+ import { SessionOptions } from 'express-session';
56
65
  import { TFunction } from 'i18next';
57
66
  import type { Timezone } from 'next-intl';
58
67
  import { toast } from 'react-hot-toast';
@@ -63,6 +72,7 @@ import type { UriFunction } from '@apollo/client';
63
72
  import type { UserConfig } from 'vite';
64
73
  import { useTranslation } from 'react-i18next';
65
74
  import { useTranslations } from 'next-intl';
75
+ import { WebSocketServer } from 'ws';
66
76
  import type { WithId } from 'mongodb';
67
77
 
68
78
  export { aggregatePaginate }
@@ -208,12 +218,40 @@ export { COMMIT_LINT_PACKAGE_NAME as COMMIT_LINT_PACKAGE_NAME_alias_1 }
208
218
  export { COMMIT_LINT_PACKAGE_NAME as COMMIT_LINT_PACKAGE_NAME_alias_2 }
209
219
  export { COMMIT_LINT_PACKAGE_NAME as COMMIT_LINT_PACKAGE_NAME_alias_3 }
210
220
 
221
+ declare function createApolloServer(options: I_ApolloServerOptions): ApolloServer;
222
+ export { createApolloServer }
223
+ export { createApolloServer as createApolloServer_alias_1 }
224
+ export { createApolloServer as createApolloServer_alias_2 }
225
+ export { createApolloServer as createApolloServer_alias_3 }
226
+
227
+ declare function createCors(options: I_CorsOptions): (req: cors.CorsRequest, res: {
228
+ statusCode?: number | undefined;
229
+ setHeader(key: string, value: string): any;
230
+ end(): any;
231
+ }, next: (err?: any) => any) => void;
232
+ export { createCors }
233
+ export { createCors as createCors_alias_1 }
234
+ export { createCors as createCors_alias_2 }
235
+ export { createCors as createCors_alias_3 }
236
+
237
+ declare function createExpress(options: I_ExpressOptions): Application;
238
+ export { createExpress }
239
+ export { createExpress as createExpress_alias_1 }
240
+ export { createExpress as createExpress_alias_2 }
241
+ export { createExpress as createExpress_alias_3 }
242
+
211
243
  declare function createGraphqlCodegenConfig({ uri, from, to, target, }: I_GraphqlCodegenConfig): CodegenConfig;
212
244
  export { createGraphqlCodegenConfig }
213
245
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_1 }
214
246
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_2 }
215
247
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_3 }
216
248
 
249
+ declare function createWSServer(options: I_WSOptions): WebSocketServer;
250
+ export { createWSServer }
251
+ export { createWSServer as createWSServer_alias_1 }
252
+ export { createWSServer as createWSServer_alias_2 }
253
+ export { createWSServer as createWSServer_alias_3 }
254
+
217
255
  declare const CYBERSKILL_CLI = "cyberskill";
218
256
  export { CYBERSKILL_CLI }
219
257
  export { CYBERSKILL_CLI as CYBERSKILL_CLI_alias_1 }
@@ -1482,6 +1520,16 @@ export { existsSync as existsSync_alias_1 }
1482
1520
  export { existsSync as existsSync_alias_2 }
1483
1521
  export { existsSync as existsSync_alias_3 }
1484
1522
 
1523
+ export { express }
1524
+ export { express as express_alias_1 }
1525
+ export { express as express_alias_2 }
1526
+ export { express as express_alias_3 }
1527
+
1528
+ export { expressMiddleware }
1529
+ export { expressMiddleware as expressMiddleware_alias_1 }
1530
+ export { expressMiddleware as expressMiddleware_alias_2 }
1531
+ export { expressMiddleware as expressMiddleware_alias_3 }
1532
+
1485
1533
  declare function formatCommand(command: T_Command, context?: I_CommandContext): string | I_Command_2;
1486
1534
  export { formatCommand }
1487
1535
  export { formatCommand as formatCommand_alias_1 }
@@ -1596,6 +1644,17 @@ export { I_ApolloProviderProps as I_ApolloProviderProps_alias_1 }
1596
1644
  export { I_ApolloProviderProps as I_ApolloProviderProps_alias_2 }
1597
1645
  export { I_ApolloProviderProps as I_ApolloProviderProps_alias_3 }
1598
1646
 
1647
+ declare interface I_ApolloServerOptions {
1648
+ server: Server;
1649
+ schema: GraphQLSchema;
1650
+ isDev?: boolean;
1651
+ drainServer?: () => Promise<void>;
1652
+ }
1653
+ export { I_ApolloServerOptions }
1654
+ export { I_ApolloServerOptions as I_ApolloServerOptions_alias_1 }
1655
+ export { I_ApolloServerOptions as I_ApolloServerOptions_alias_2 }
1656
+ export { I_ApolloServerOptions as I_ApolloServerOptions_alias_3 }
1657
+
1599
1658
  declare interface I_CheckPackage {
1600
1659
  isCurrentProject: boolean;
1601
1660
  installedPath: string;
@@ -1636,6 +1695,15 @@ export { I_CommandContext as I_CommandContext_alias_1 }
1636
1695
  export { I_CommandContext as I_CommandContext_alias_2 }
1637
1696
  export { I_CommandContext as I_CommandContext_alias_3 }
1638
1697
 
1698
+ declare interface I_CorsOptions {
1699
+ isDev?: boolean;
1700
+ corsWhitelist?: string[];
1701
+ }
1702
+ export { I_CorsOptions }
1703
+ export { I_CorsOptions as I_CorsOptions_alias_1 }
1704
+ export { I_CorsOptions as I_CorsOptions_alias_2 }
1705
+ export { I_CorsOptions as I_CorsOptions_alias_3 }
1706
+
1639
1707
  declare interface I_CreateModelOptions<T extends Partial<C_Document>> extends I_MongooseOptions<T> {
1640
1708
  schema: T_Input_MongooseSchema<T>;
1641
1709
  name: string;
@@ -1680,6 +1748,15 @@ export { I_EslintError as I_EslintError_alias_1 }
1680
1748
  export { I_EslintError as I_EslintError_alias_2 }
1681
1749
  export { I_EslintError as I_EslintError_alias_3 }
1682
1750
 
1751
+ declare interface I_ExpressOptions {
1752
+ staticFolder: string;
1753
+ sessionOptions?: SessionOptions;
1754
+ }
1755
+ export { I_ExpressOptions }
1756
+ export { I_ExpressOptions as I_ExpressOptions_alias_1 }
1757
+ export { I_ExpressOptions as I_ExpressOptions_alias_2 }
1758
+ export { I_ExpressOptions as I_ExpressOptions_alias_3 }
1759
+
1683
1760
  declare interface I_ExtendedModel<T extends Partial<C_Document>> extends Model<T>, PaginateModel<T>, AggregatePaginateModel<T> {
1684
1761
  }
1685
1762
  export { I_ExtendedModel }
@@ -1721,6 +1798,15 @@ export { I_GraphqlCodegenConfig as I_GraphqlCodegenConfig_alias_1 }
1721
1798
  export { I_GraphqlCodegenConfig as I_GraphqlCodegenConfig_alias_2 }
1722
1799
  export { I_GraphqlCodegenConfig as I_GraphqlCodegenConfig_alias_3 }
1723
1800
 
1801
+ declare interface I_GraphqlWSOptions {
1802
+ schema: GraphQLSchema;
1803
+ server: WebSocketServer;
1804
+ }
1805
+ export { I_GraphqlWSOptions }
1806
+ export { I_GraphqlWSOptions as I_GraphqlWSOptions_alias_1 }
1807
+ export { I_GraphqlWSOptions as I_GraphqlWSOptions_alias_2 }
1808
+ export { I_GraphqlWSOptions as I_GraphqlWSOptions_alias_3 }
1809
+
1724
1810
  declare interface I_Input_CreateMany<T> {
1725
1811
  docs: T[];
1726
1812
  }
@@ -2027,6 +2113,21 @@ declare interface I_VirtualOptions {
2027
2113
  options?: I_VirtualNestedOptions;
2028
2114
  }
2029
2115
 
2116
+ declare interface I_WSOptions {
2117
+ server: Server;
2118
+ path: string;
2119
+ }
2120
+ export { I_WSOptions }
2121
+ export { I_WSOptions as I_WSOptions_alias_1 }
2122
+ export { I_WSOptions as I_WSOptions_alias_2 }
2123
+ export { I_WSOptions as I_WSOptions_alias_3 }
2124
+
2125
+ declare function initGraphQLWS(options: I_GraphqlWSOptions): Disposable_2;
2126
+ export { initGraphQLWS }
2127
+ export { initGraphQLWS as initGraphQLWS_alias_1 }
2128
+ export { initGraphQLWS as initGraphQLWS_alias_2 }
2129
+ export { initGraphQLWS as initGraphQLWS_alias_3 }
2130
+
2030
2131
  declare function initI18next(options: InitOptions): Promise<TFunction<"translation", undefined>>;
2031
2132
  export { initI18next }
2032
2133
  export { initI18next as initI18next_alias_1 }
@@ -2659,6 +2760,11 @@ export { serializer as serializer_alias_1 }
2659
2760
  export { serializer as serializer_alias_2 }
2660
2761
  export { serializer as serializer_alias_3 }
2661
2762
 
2763
+ export { SessionOptions }
2764
+ export { SessionOptions as SessionOptions_alias_1 }
2765
+ export { SessionOptions as SessionOptions_alias_2 }
2766
+ export { SessionOptions as SessionOptions_alias_3 }
2767
+
2662
2768
  declare function setGlobalApolloErrorCallback(callback: (err: ApolloError_2) => void): void;
2663
2769
  export { setGlobalApolloErrorCallback }
2664
2770
  export { setGlobalApolloErrorCallback as setGlobalApolloErrorCallback_alias_1 }
@@ -7,19 +7,26 @@ import { ApolloClient } from '@apollo/client';
7
7
  import { ApolloClientOptions } from '@apollo/client';
8
8
  import type { ApolloError as ApolloError_2 } from '@apollo/client';
9
9
  import type { ApolloLink } from '@apollo/client';
10
+ import { ApolloServer } from '@apollo/server';
11
+ import type { Application } from 'express';
10
12
  import type { ClientSession } from 'mongoose';
11
13
  import type { CodegenConfig } from '@graphql-codegen/cli';
12
14
  import { Collection } from 'mongodb';
13
15
  import type { ComponentType } from 'react';
14
16
  import type consola from 'consola';
15
17
  import { Context } from 'react';
18
+ import cors from 'cors';
16
19
  import { Db } from 'mongodb';
17
20
  import type { DeleteResult } from 'mongodb';
21
+ import { Disposable as Disposable_2 } from 'graphql-ws';
18
22
  import { Document as Document_2 } from 'mongoose';
19
23
  import type { ErrorHandlingMiddlewareFunction } from 'mongoose';
20
24
  import type { ErrorHandlingMiddlewareWithOption } from 'mongoose';
25
+ import express from 'express';
26
+ import { expressMiddleware } from '@apollo/server/express4';
21
27
  import type { Filter } from 'mongodb';
22
28
  import type { FilterQuery } from 'mongoose';
29
+ import type { GraphQLSchema } from 'graphql';
23
30
  import { I_ApolloErrorContext as I_ApolloErrorContext_2 } from './apollo-error.type.js';
24
31
  import { I_Command as I_Command_2 } from './command.type.js';
25
32
  import { I_LoadingContext as I_LoadingContext_2 } from './loading.type.js';
@@ -53,6 +60,8 @@ import type { ReactElement } from 'react';
53
60
  import type { ReactNode } from 'react';
54
61
  import type { Schema } from 'mongoose';
55
62
  import type { SchemaDefinition } from 'mongoose';
63
+ import type { Server } from 'node:http';
64
+ import { SessionOptions } from 'express-session';
56
65
  import { TFunction } from 'i18next';
57
66
  import type { Timezone } from 'next-intl';
58
67
  import { toast } from 'react-hot-toast';
@@ -63,6 +72,7 @@ import type { UriFunction } from '@apollo/client';
63
72
  import type { UserConfig } from 'vite';
64
73
  import { useTranslation } from 'react-i18next';
65
74
  import { useTranslations } from 'next-intl';
75
+ import { WebSocketServer } from 'ws';
66
76
  import type { WithId } from 'mongodb';
67
77
 
68
78
  export { aggregatePaginate }
@@ -208,12 +218,40 @@ export { COMMIT_LINT_PACKAGE_NAME as COMMIT_LINT_PACKAGE_NAME_alias_1 }
208
218
  export { COMMIT_LINT_PACKAGE_NAME as COMMIT_LINT_PACKAGE_NAME_alias_2 }
209
219
  export { COMMIT_LINT_PACKAGE_NAME as COMMIT_LINT_PACKAGE_NAME_alias_3 }
210
220
 
221
+ declare function createApolloServer(options: I_ApolloServerOptions): ApolloServer;
222
+ export { createApolloServer }
223
+ export { createApolloServer as createApolloServer_alias_1 }
224
+ export { createApolloServer as createApolloServer_alias_2 }
225
+ export { createApolloServer as createApolloServer_alias_3 }
226
+
227
+ declare function createCors(options: I_CorsOptions): (req: cors.CorsRequest, res: {
228
+ statusCode?: number | undefined;
229
+ setHeader(key: string, value: string): any;
230
+ end(): any;
231
+ }, next: (err?: any) => any) => void;
232
+ export { createCors }
233
+ export { createCors as createCors_alias_1 }
234
+ export { createCors as createCors_alias_2 }
235
+ export { createCors as createCors_alias_3 }
236
+
237
+ declare function createExpress(options: I_ExpressOptions): Application;
238
+ export { createExpress }
239
+ export { createExpress as createExpress_alias_1 }
240
+ export { createExpress as createExpress_alias_2 }
241
+ export { createExpress as createExpress_alias_3 }
242
+
211
243
  declare function createGraphqlCodegenConfig({ uri, from, to, target, }: I_GraphqlCodegenConfig): CodegenConfig;
212
244
  export { createGraphqlCodegenConfig }
213
245
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_1 }
214
246
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_2 }
215
247
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_3 }
216
248
 
249
+ declare function createWSServer(options: I_WSOptions): WebSocketServer;
250
+ export { createWSServer }
251
+ export { createWSServer as createWSServer_alias_1 }
252
+ export { createWSServer as createWSServer_alias_2 }
253
+ export { createWSServer as createWSServer_alias_3 }
254
+
217
255
  declare const CYBERSKILL_CLI = "cyberskill";
218
256
  export { CYBERSKILL_CLI }
219
257
  export { CYBERSKILL_CLI as CYBERSKILL_CLI_alias_1 }
@@ -1482,6 +1520,16 @@ export { existsSync as existsSync_alias_1 }
1482
1520
  export { existsSync as existsSync_alias_2 }
1483
1521
  export { existsSync as existsSync_alias_3 }
1484
1522
 
1523
+ export { express }
1524
+ export { express as express_alias_1 }
1525
+ export { express as express_alias_2 }
1526
+ export { express as express_alias_3 }
1527
+
1528
+ export { expressMiddleware }
1529
+ export { expressMiddleware as expressMiddleware_alias_1 }
1530
+ export { expressMiddleware as expressMiddleware_alias_2 }
1531
+ export { expressMiddleware as expressMiddleware_alias_3 }
1532
+
1485
1533
  declare function formatCommand(command: T_Command, context?: I_CommandContext): string | I_Command_2;
1486
1534
  export { formatCommand }
1487
1535
  export { formatCommand as formatCommand_alias_1 }
@@ -1596,6 +1644,17 @@ export { I_ApolloProviderProps as I_ApolloProviderProps_alias_1 }
1596
1644
  export { I_ApolloProviderProps as I_ApolloProviderProps_alias_2 }
1597
1645
  export { I_ApolloProviderProps as I_ApolloProviderProps_alias_3 }
1598
1646
 
1647
+ declare interface I_ApolloServerOptions {
1648
+ server: Server;
1649
+ schema: GraphQLSchema;
1650
+ isDev?: boolean;
1651
+ drainServer?: () => Promise<void>;
1652
+ }
1653
+ export { I_ApolloServerOptions }
1654
+ export { I_ApolloServerOptions as I_ApolloServerOptions_alias_1 }
1655
+ export { I_ApolloServerOptions as I_ApolloServerOptions_alias_2 }
1656
+ export { I_ApolloServerOptions as I_ApolloServerOptions_alias_3 }
1657
+
1599
1658
  declare interface I_CheckPackage {
1600
1659
  isCurrentProject: boolean;
1601
1660
  installedPath: string;
@@ -1636,6 +1695,15 @@ export { I_CommandContext as I_CommandContext_alias_1 }
1636
1695
  export { I_CommandContext as I_CommandContext_alias_2 }
1637
1696
  export { I_CommandContext as I_CommandContext_alias_3 }
1638
1697
 
1698
+ declare interface I_CorsOptions {
1699
+ isDev?: boolean;
1700
+ corsWhitelist?: string[];
1701
+ }
1702
+ export { I_CorsOptions }
1703
+ export { I_CorsOptions as I_CorsOptions_alias_1 }
1704
+ export { I_CorsOptions as I_CorsOptions_alias_2 }
1705
+ export { I_CorsOptions as I_CorsOptions_alias_3 }
1706
+
1639
1707
  declare interface I_CreateModelOptions<T extends Partial<C_Document>> extends I_MongooseOptions<T> {
1640
1708
  schema: T_Input_MongooseSchema<T>;
1641
1709
  name: string;
@@ -1680,6 +1748,15 @@ export { I_EslintError as I_EslintError_alias_1 }
1680
1748
  export { I_EslintError as I_EslintError_alias_2 }
1681
1749
  export { I_EslintError as I_EslintError_alias_3 }
1682
1750
 
1751
+ declare interface I_ExpressOptions {
1752
+ staticFolder: string;
1753
+ sessionOptions?: SessionOptions;
1754
+ }
1755
+ export { I_ExpressOptions }
1756
+ export { I_ExpressOptions as I_ExpressOptions_alias_1 }
1757
+ export { I_ExpressOptions as I_ExpressOptions_alias_2 }
1758
+ export { I_ExpressOptions as I_ExpressOptions_alias_3 }
1759
+
1683
1760
  declare interface I_ExtendedModel<T extends Partial<C_Document>> extends Model<T>, PaginateModel<T>, AggregatePaginateModel<T> {
1684
1761
  }
1685
1762
  export { I_ExtendedModel }
@@ -1721,6 +1798,15 @@ export { I_GraphqlCodegenConfig as I_GraphqlCodegenConfig_alias_1 }
1721
1798
  export { I_GraphqlCodegenConfig as I_GraphqlCodegenConfig_alias_2 }
1722
1799
  export { I_GraphqlCodegenConfig as I_GraphqlCodegenConfig_alias_3 }
1723
1800
 
1801
+ declare interface I_GraphqlWSOptions {
1802
+ schema: GraphQLSchema;
1803
+ server: WebSocketServer;
1804
+ }
1805
+ export { I_GraphqlWSOptions }
1806
+ export { I_GraphqlWSOptions as I_GraphqlWSOptions_alias_1 }
1807
+ export { I_GraphqlWSOptions as I_GraphqlWSOptions_alias_2 }
1808
+ export { I_GraphqlWSOptions as I_GraphqlWSOptions_alias_3 }
1809
+
1724
1810
  declare interface I_Input_CreateMany<T> {
1725
1811
  docs: T[];
1726
1812
  }
@@ -2027,6 +2113,21 @@ declare interface I_VirtualOptions {
2027
2113
  options?: I_VirtualNestedOptions;
2028
2114
  }
2029
2115
 
2116
+ declare interface I_WSOptions {
2117
+ server: Server;
2118
+ path: string;
2119
+ }
2120
+ export { I_WSOptions }
2121
+ export { I_WSOptions as I_WSOptions_alias_1 }
2122
+ export { I_WSOptions as I_WSOptions_alias_2 }
2123
+ export { I_WSOptions as I_WSOptions_alias_3 }
2124
+
2125
+ declare function initGraphQLWS(options: I_GraphqlWSOptions): Disposable_2;
2126
+ export { initGraphQLWS }
2127
+ export { initGraphQLWS as initGraphQLWS_alias_1 }
2128
+ export { initGraphQLWS as initGraphQLWS_alias_2 }
2129
+ export { initGraphQLWS as initGraphQLWS_alias_3 }
2130
+
2030
2131
  declare function initI18next(options: InitOptions): Promise<TFunction<"translation", undefined>>;
2031
2132
  export { initI18next }
2032
2133
  export { initI18next as initI18next_alias_1 }
@@ -2659,6 +2760,11 @@ export { serializer as serializer_alias_1 }
2659
2760
  export { serializer as serializer_alias_2 }
2660
2761
  export { serializer as serializer_alias_3 }
2661
2762
 
2763
+ export { SessionOptions }
2764
+ export { SessionOptions as SessionOptions_alias_1 }
2765
+ export { SessionOptions as SessionOptions_alias_2 }
2766
+ export { SessionOptions as SessionOptions_alias_3 }
2767
+
2662
2768
  declare function setGlobalApolloErrorCallback(callback: (err: ApolloError_2) => void): void;
2663
2769
  export { setGlobalApolloErrorCallback }
2664
2770
  export { setGlobalApolloErrorCallback as setGlobalApolloErrorCallback_alias_1 }