@cyberskill/shared 1.32.0 → 1.33.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 (123) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/nodejs/index.cjs +1 -1
  4. package/dist/nodejs/index.js +1 -1
  5. package/dist/nodejs/mongo.cjs +1 -1
  6. package/dist/nodejs/mongo.js +1 -1
  7. package/dist/utils/index-nodejs.cjs +1 -1
  8. package/dist/utils/index-nodejs.js +1 -1
  9. package/dist/utils/index.cjs +1 -1
  10. package/dist/utils/index.js +1 -1
  11. package/dist/utils/mongoose.cjs +1 -1
  12. package/dist/utils/mongoose.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/commands.d.cts +0 -1
  15. package/dist/commands.d.ts +0 -1
  16. package/dist/configs/commitlint/base.d.cts +0 -5
  17. package/dist/configs/commitlint/base.d.ts +0 -5
  18. package/dist/configs/eslint/base.d.cts +0 -1154
  19. package/dist/configs/eslint/base.d.ts +0 -1154
  20. package/dist/configs/eslint/nestjs.d.cts +0 -1156
  21. package/dist/configs/eslint/nestjs.d.ts +0 -1156
  22. package/dist/configs/eslint/nextjs.d.cts +0 -1156
  23. package/dist/configs/eslint/nextjs.d.ts +0 -1156
  24. package/dist/configs/eslint/nodejs.d.cts +0 -1156
  25. package/dist/configs/eslint/nodejs.d.ts +0 -1156
  26. package/dist/configs/eslint/vite-react.d.cts +0 -1157
  27. package/dist/configs/eslint/vite-react.d.ts +0 -1157
  28. package/dist/configs/graphql/graphql-codegen.d.cts +0 -6
  29. package/dist/configs/graphql/graphql-codegen.d.ts +0 -6
  30. package/dist/configs/graphql/index.d.cts +0 -3
  31. package/dist/configs/graphql/index.d.ts +0 -3
  32. package/dist/configs/i18n/react/i18next.d.cts +0 -6
  33. package/dist/configs/i18n/react/i18next.d.ts +0 -6
  34. package/dist/configs/i18n/react/index.d.cts +0 -2
  35. package/dist/configs/i18n/react/index.d.ts +0 -2
  36. package/dist/configs/index.d.cts +0 -9
  37. package/dist/configs/index.d.ts +0 -9
  38. package/dist/configs/lint-staged/base.d.cts +0 -5
  39. package/dist/configs/lint-staged/base.d.ts +0 -5
  40. package/dist/configs/vitest/react/e2e.d.cts +0 -5
  41. package/dist/configs/vitest/react/e2e.d.ts +0 -5
  42. package/dist/configs/vitest/react/unit.d.cts +0 -5
  43. package/dist/configs/vitest/react/unit.d.ts +0 -5
  44. package/dist/configs/vitest/react/unit.setup.d.cts +0 -2
  45. package/dist/configs/vitest/react/unit.setup.d.ts +0 -2
  46. package/dist/constants/index.d.cts +0 -2
  47. package/dist/constants/index.d.ts +0 -2
  48. package/dist/constants/path.d.cts +0 -4
  49. package/dist/constants/path.d.ts +0 -4
  50. package/dist/constants/response-status.d.cts +0 -252
  51. package/dist/constants/response-status.d.ts +0 -252
  52. package/dist/index.d.cts +0 -40
  53. package/dist/index.d.ts +0 -40
  54. package/dist/nodejs/index.d.cts +0 -5
  55. package/dist/nodejs/index.d.ts +0 -5
  56. package/dist/nodejs/mongo.d.cts +0 -55
  57. package/dist/nodejs/mongo.d.ts +0 -55
  58. package/dist/nodejs/mongoose.d.cts +0 -25
  59. package/dist/nodejs/mongoose.d.ts +0 -25
  60. package/dist/react/apollo-client.d.cts +0 -9
  61. package/dist/react/apollo-client.d.ts +0 -9
  62. package/dist/react/index.d.cts +0 -15
  63. package/dist/react/index.d.ts +0 -15
  64. package/dist/react/loading.d.cts +0 -13
  65. package/dist/react/loading.d.ts +0 -13
  66. package/dist/react/loading.module.d.cts +0 -2
  67. package/dist/react/loading.module.d.ts +0 -2
  68. package/dist/react/next-intl.d.cts +0 -28
  69. package/dist/react/next-intl.d.ts +0 -28
  70. package/dist/react/storage.d.cts +0 -5
  71. package/dist/react/storage.d.ts +0 -5
  72. package/dist/styles/reset.d.cts +0 -2
  73. package/dist/styles/reset.d.ts +0 -2
  74. package/dist/typescript/apollo.d.cts +0 -21
  75. package/dist/typescript/apollo.d.ts +0 -21
  76. package/dist/typescript/command.d.cts +0 -30
  77. package/dist/typescript/command.d.ts +0 -30
  78. package/dist/typescript/config.d.cts +0 -5
  79. package/dist/typescript/config.d.ts +0 -5
  80. package/dist/typescript/graphql-codegen.d.cts +0 -12
  81. package/dist/typescript/graphql-codegen.d.ts +0 -12
  82. package/dist/typescript/index.d.cts +0 -16
  83. package/dist/typescript/index.d.ts +0 -16
  84. package/dist/typescript/loading.d.cts +0 -8
  85. package/dist/typescript/loading.d.ts +0 -8
  86. package/dist/typescript/log.d.cts +0 -10
  87. package/dist/typescript/log.d.ts +0 -10
  88. package/dist/typescript/mongoose.d.cts +0 -163
  89. package/dist/typescript/mongoose.d.ts +0 -163
  90. package/dist/typescript/next-intl.d.cts +0 -23
  91. package/dist/typescript/next-intl.d.ts +0 -23
  92. package/dist/typescript/react.d.cts +0 -11
  93. package/dist/typescript/react.d.ts +0 -11
  94. package/dist/typescript/serializer.d.cts +0 -6
  95. package/dist/typescript/serializer.d.ts +0 -6
  96. package/dist/utils/command.d.cts +0 -17
  97. package/dist/utils/command.d.ts +0 -17
  98. package/dist/utils/common.d.cts +0 -5
  99. package/dist/utils/common.d.ts +0 -5
  100. package/dist/utils/config.d.cts +0 -5
  101. package/dist/utils/config.d.ts +0 -5
  102. package/dist/utils/datetime.d.cts +0 -3
  103. package/dist/utils/datetime.d.ts +0 -3
  104. package/dist/utils/fs.d.cts +0 -3
  105. package/dist/utils/fs.d.ts +0 -3
  106. package/dist/utils/index-nodejs.d.cts +0 -11
  107. package/dist/utils/index-nodejs.d.ts +0 -11
  108. package/dist/utils/index.d.cts +0 -10
  109. package/dist/utils/index.d.ts +0 -10
  110. package/dist/utils/log.d.cts +0 -5
  111. package/dist/utils/log.d.ts +0 -5
  112. package/dist/utils/mongoose.d.cts +0 -19
  113. package/dist/utils/mongoose.d.ts +0 -19
  114. package/dist/utils/npm-package.d.cts +0 -6
  115. package/dist/utils/npm-package.d.ts +0 -6
  116. package/dist/utils/serializer.d.cts +0 -5
  117. package/dist/utils/serializer.d.ts +0 -5
  118. package/dist/utils/storage-client.d.cts +0 -8
  119. package/dist/utils/storage-client.d.ts +0 -8
  120. package/dist/utils/storage-server.d.cts +0 -11
  121. package/dist/utils/storage-server.d.ts +0 -11
  122. package/dist/utils/validate.d.cts +0 -14
  123. package/dist/utils/validate.d.ts +0 -14
package/dist/index.d.ts DELETED
@@ -1,40 +0,0 @@
1
- export { I_Config } from './typescript/config.js';
2
- export { PROJECT_ROOT, WORKING_DIRECTORY } from './constants/path.js';
3
- export { RESPONSE_STATUS } from './constants/response-status.js';
4
- export { MongoController } from './nodejs/mongo.js';
5
- export { MongooseController } from './nodejs/mongoose.js';
6
- export { ApolloProvider } from './react/apollo-client.js';
7
- export { Loading, LoadingContext, LoadingProvider, useLoading } from './react/loading.js';
8
- export { NextIntlContext, NextIntlProvider, useNextIntl, useTranslateNextIntl, withNextIntl } from './react/next-intl.js';
9
- export { useStorage } from './react/storage.js';
10
- export { I_ApolloOptions, I_ApolloProviderProps } from './typescript/apollo.js';
11
- export { E_ErrorType, I_BoxedLogOptions, I_ErrorEntry, I_EslintError } from './typescript/command.js';
12
- export { I_GraphqlCodegenConfig } from './typescript/graphql-codegen.js';
13
- export { I_LoadingProps } from './typescript/loading.js';
14
- export { T_ThrowResponseArgs } from './typescript/log.js';
15
- export { C_Collection, C_Db, C_Document, C_Model, I_DeleteOptionsExtended, I_ExtendedModel, I_GenerateModelOptions, I_GenerateSchemaOptions, I_GenericDocument, I_HookNextFunction, I_Input_CreateMany, I_Input_CreateOne, I_Input_DeleteMany, I_Input_DeleteOne, I_Input_FindAll, I_Input_FindOne, I_Input_FindPaging, I_Input_FindPagingAggregate, I_Input_UpdateMany, I_Input_UpdateOne, I_MongooseModelMiddleware, I_MongooseOptions, I_Return, I_ReturnFailure, I_ReturnSuccess, I_SlugifyOptions, I_UpdateOptionsExtended, T_AggregatePaginateResult, T_DeleteResult, T_Filter, T_FilterQuery, T_GenerateSlugQueryResponse, T_Input_MongooseSchema, T_Input_Populate, T_InsertManyOptions, T_InsertManyResult, T_InsertOneResult, T_MiddlewareContext, T_MongooseModelMiddlewareFunction, T_MongoosePlugin, T_MongooseShema, T_OptionalUnlessRequiredId, T_PaginateOptions, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_PopulateOption, T_PopulateOptions, T_ProjectionType, T_QueryOptions, T_UpdateQuery, T_UpdateResult, T_WithId } from './typescript/mongoose.js';
16
- export { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList } from './typescript/next-intl.js';
17
- export { I_LoadingContext, T_Children } from './typescript/react.js';
18
- export { I_Serializer } from './typescript/serializer.js';
19
- export { clearAllErrorLists, commandLog, executeCommand, getStoredErrorLists, saveErrorListToStorage } from './utils/command.js';
20
- export { fileExists } from './utils/fs.js';
21
- export { generateModel, generateSchema, generateShortId, generateSlug, generateSlugQuery, getMongoGenericFields } from './utils/mongoose.js';
22
- export { getLatestPackageVersion, isCurrentProject, isPackageOutdated, updatePackage } from './utils/npm-package.js';
23
- export { initNodePersist, storageDir, storageServer } from './utils/storage-server.js';
24
- export { isJson, regexSearchMapper, removeAccent } from './utils/common.js';
25
- export { deepMerge } from './utils/config.js';
26
- export { getMongoDateTime } from './utils/datetime.js';
27
- export { throwResponse } from './utils/log.js';
28
- export { serializer } from './utils/serializer.js';
29
- export { storageClient } from './utils/storage-client.js';
30
- export { validate } from './utils/validate.js';
31
- export { ApolloCache, ApolloClient, ApolloClientOptions } from '@apollo/client';
32
- export { default as aggregatePaginate } from 'mongoose-aggregate-paginate-v2';
33
- export { default as mongoosePaginate } from 'mongoose-paginate-v2';
34
- import 'react/jsx-runtime';
35
- import 'react';
36
- import 'use-intl';
37
- import 'mongodb';
38
- import 'mongoose';
39
- import 'date-fns';
40
- import 'next-intl';
@@ -1,5 +0,0 @@
1
- export { MongoController } from './mongo.cjs';
2
- export { MongooseController } from './mongoose.cjs';
3
- import '../typescript/mongoose.cjs';
4
- import 'mongodb';
5
- import 'mongoose';
@@ -1,5 +0,0 @@
1
- export { MongoController } from './mongo.js';
2
- export { MongooseController } from './mongoose.js';
3
- import '../typescript/mongoose.js';
4
- import 'mongodb';
5
- import 'mongoose';
@@ -1,55 +0,0 @@
1
- import { C_Document, C_Db, T_InsertOneResult, T_InsertManyResult, T_Filter, T_WithId, T_UpdateResult, T_DeleteResult } from '../typescript/mongoose.cjs';
2
- import 'mongodb';
3
- import 'mongoose';
4
-
5
- declare class MongoController<D extends Partial<C_Document>> {
6
- private collection;
7
- constructor(db: C_Db, collectionName: string);
8
- createOne(document: D): Promise<{
9
- success: boolean;
10
- message: string;
11
- result?: T_InsertOneResult<D>;
12
- }>;
13
- createMany(documents: D[]): Promise<{
14
- success: boolean;
15
- message: string;
16
- result?: T_InsertManyResult<D>;
17
- }>;
18
- findOne(filter: T_Filter<D>): Promise<{
19
- success: boolean;
20
- message: string;
21
- result?: T_WithId<D> | null;
22
- }>;
23
- findAll(filter?: T_Filter<D>): Promise<{
24
- success: boolean;
25
- message: string;
26
- result?: T_WithId<D>[];
27
- }>;
28
- count(filter?: T_Filter<D>): Promise<{
29
- success: boolean;
30
- message: string;
31
- result?: number;
32
- }>;
33
- updateOne(filter: T_Filter<D>, update: Partial<D>): Promise<{
34
- success: boolean;
35
- message: string;
36
- result?: T_UpdateResult;
37
- }>;
38
- updateMany(filter: T_Filter<D>, update: Partial<D>): Promise<{
39
- success: boolean;
40
- message: string;
41
- result?: T_UpdateResult;
42
- }>;
43
- deleteOne(filter: T_Filter<D>): Promise<{
44
- success: boolean;
45
- message: string;
46
- result?: T_DeleteResult;
47
- }>;
48
- deleteMany(filter: T_Filter<D>): Promise<{
49
- success: boolean;
50
- message: string;
51
- result?: T_DeleteResult;
52
- }>;
53
- }
54
-
55
- export { MongoController };
@@ -1,55 +0,0 @@
1
- import { C_Document, C_Db, T_InsertOneResult, T_InsertManyResult, T_Filter, T_WithId, T_UpdateResult, T_DeleteResult } from '../typescript/mongoose.js';
2
- import 'mongodb';
3
- import 'mongoose';
4
-
5
- declare class MongoController<D extends Partial<C_Document>> {
6
- private collection;
7
- constructor(db: C_Db, collectionName: string);
8
- createOne(document: D): Promise<{
9
- success: boolean;
10
- message: string;
11
- result?: T_InsertOneResult<D>;
12
- }>;
13
- createMany(documents: D[]): Promise<{
14
- success: boolean;
15
- message: string;
16
- result?: T_InsertManyResult<D>;
17
- }>;
18
- findOne(filter: T_Filter<D>): Promise<{
19
- success: boolean;
20
- message: string;
21
- result?: T_WithId<D> | null;
22
- }>;
23
- findAll(filter?: T_Filter<D>): Promise<{
24
- success: boolean;
25
- message: string;
26
- result?: T_WithId<D>[];
27
- }>;
28
- count(filter?: T_Filter<D>): Promise<{
29
- success: boolean;
30
- message: string;
31
- result?: number;
32
- }>;
33
- updateOne(filter: T_Filter<D>, update: Partial<D>): Promise<{
34
- success: boolean;
35
- message: string;
36
- result?: T_UpdateResult;
37
- }>;
38
- updateMany(filter: T_Filter<D>, update: Partial<D>): Promise<{
39
- success: boolean;
40
- message: string;
41
- result?: T_UpdateResult;
42
- }>;
43
- deleteOne(filter: T_Filter<D>): Promise<{
44
- success: boolean;
45
- message: string;
46
- result?: T_DeleteResult;
47
- }>;
48
- deleteMany(filter: T_Filter<D>): Promise<{
49
- success: boolean;
50
- message: string;
51
- result?: T_DeleteResult;
52
- }>;
53
- }
54
-
55
- export { MongoController };
@@ -1,25 +0,0 @@
1
- import { C_Document, I_ExtendedModel, T_FilterQuery, T_ProjectionType, T_QueryOptions, T_Input_Populate, I_Return, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_AggregatePaginateResult, T_InsertManyOptions, T_UpdateQuery, I_UpdateOptionsExtended, T_UpdateResult, I_DeleteOptionsExtended, T_DeleteResult } from '../typescript/mongoose.cjs';
2
- import 'mongodb';
3
- import 'mongoose';
4
-
5
- declare class MongooseController<D extends Partial<C_Document>> {
6
- private model;
7
- constructor(model: I_ExtendedModel<D>);
8
- private getModelName;
9
- findOne(filter?: T_FilterQuery<D>, projection?: T_ProjectionType<D>, options?: T_QueryOptions<D>, populate?: T_Input_Populate): Promise<I_Return<D>>;
10
- findAll(filter?: T_FilterQuery<D>, projection?: T_ProjectionType<D>, options?: T_QueryOptions<D>, populate?: T_Input_Populate): Promise<I_Return<D[]>>;
11
- findPaging(filter?: T_FilterQuery<D>, options?: T_PaginateOptionsWithPopulate): Promise<I_Return<T_PaginateResult<D>>>;
12
- findPagingAggregate(pipeline: T_PipelineStage[], options?: T_PaginateOptionsWithPopulate): Promise<I_Return<T_AggregatePaginateResult<D>>>;
13
- count(filter?: T_FilterQuery<D>): Promise<I_Return<number>>;
14
- createOne(doc: D | Partial<D>): Promise<I_Return<D>>;
15
- createMany(docs: (D | Partial<D>)[], options?: T_InsertManyOptions): Promise<I_Return<D[]>>;
16
- updateOne(filter?: T_FilterQuery<D>, update?: T_UpdateQuery<D>, options?: I_UpdateOptionsExtended): Promise<I_Return<D>>;
17
- updateMany(filter?: T_FilterQuery<D>, update?: T_UpdateQuery<D>, options?: I_UpdateOptionsExtended): Promise<I_Return<T_UpdateResult>>;
18
- deleteOne(filter?: T_FilterQuery<D>, options?: I_DeleteOptionsExtended): Promise<I_Return<D>>;
19
- deleteMany(filter?: T_FilterQuery<D>, options?: I_DeleteOptionsExtended): Promise<I_Return<T_DeleteResult>>;
20
- generateShortId(id: string): Promise<I_Return<string>>;
21
- generateSlug(fieldName: string, fields: D, filters?: T_FilterQuery<D>): Promise<I_Return<string>>;
22
- aggregate(pipeline: T_PipelineStage[]): Promise<I_Return<D[]>>;
23
- }
24
-
25
- export { MongooseController };
@@ -1,25 +0,0 @@
1
- import { C_Document, I_ExtendedModel, T_FilterQuery, T_ProjectionType, T_QueryOptions, T_Input_Populate, I_Return, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_AggregatePaginateResult, T_InsertManyOptions, T_UpdateQuery, I_UpdateOptionsExtended, T_UpdateResult, I_DeleteOptionsExtended, T_DeleteResult } from '../typescript/mongoose.js';
2
- import 'mongodb';
3
- import 'mongoose';
4
-
5
- declare class MongooseController<D extends Partial<C_Document>> {
6
- private model;
7
- constructor(model: I_ExtendedModel<D>);
8
- private getModelName;
9
- findOne(filter?: T_FilterQuery<D>, projection?: T_ProjectionType<D>, options?: T_QueryOptions<D>, populate?: T_Input_Populate): Promise<I_Return<D>>;
10
- findAll(filter?: T_FilterQuery<D>, projection?: T_ProjectionType<D>, options?: T_QueryOptions<D>, populate?: T_Input_Populate): Promise<I_Return<D[]>>;
11
- findPaging(filter?: T_FilterQuery<D>, options?: T_PaginateOptionsWithPopulate): Promise<I_Return<T_PaginateResult<D>>>;
12
- findPagingAggregate(pipeline: T_PipelineStage[], options?: T_PaginateOptionsWithPopulate): Promise<I_Return<T_AggregatePaginateResult<D>>>;
13
- count(filter?: T_FilterQuery<D>): Promise<I_Return<number>>;
14
- createOne(doc: D | Partial<D>): Promise<I_Return<D>>;
15
- createMany(docs: (D | Partial<D>)[], options?: T_InsertManyOptions): Promise<I_Return<D[]>>;
16
- updateOne(filter?: T_FilterQuery<D>, update?: T_UpdateQuery<D>, options?: I_UpdateOptionsExtended): Promise<I_Return<D>>;
17
- updateMany(filter?: T_FilterQuery<D>, update?: T_UpdateQuery<D>, options?: I_UpdateOptionsExtended): Promise<I_Return<T_UpdateResult>>;
18
- deleteOne(filter?: T_FilterQuery<D>, options?: I_DeleteOptionsExtended): Promise<I_Return<D>>;
19
- deleteMany(filter?: T_FilterQuery<D>, options?: I_DeleteOptionsExtended): Promise<I_Return<T_DeleteResult>>;
20
- generateShortId(id: string): Promise<I_Return<string>>;
21
- generateSlug(fieldName: string, fields: D, filters?: T_FilterQuery<D>): Promise<I_Return<string>>;
22
- aggregate(pipeline: T_PipelineStage[]): Promise<I_Return<D[]>>;
23
- }
24
-
25
- export { MongooseController };
@@ -1,9 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { I_ApolloProviderProps } from '../typescript/apollo.cjs';
3
- import '@apollo/client';
4
- import 'react';
5
- import '../typescript/react.cjs';
6
-
7
- declare function ApolloProvider({ isNextJS, options, children, client: CustomClient, provider: CustomProvider, cache: CustomCache, }: I_ApolloProviderProps): react_jsx_runtime.JSX.Element;
8
-
9
- export { ApolloProvider };
@@ -1,9 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { I_ApolloProviderProps } from '../typescript/apollo.js';
3
- import '@apollo/client';
4
- import 'react';
5
- import '../typescript/react.js';
6
-
7
- declare function ApolloProvider({ isNextJS, options, children, client: CustomClient, provider: CustomProvider, cache: CustomCache, }: I_ApolloProviderProps): react_jsx_runtime.JSX.Element;
8
-
9
- export { ApolloProvider };
@@ -1,15 +0,0 @@
1
- export { ApolloProvider } from './apollo-client.cjs';
2
- export { Loading, LoadingContext, LoadingProvider, useLoading } from './loading.cjs';
3
- export { NextIntlContext, NextIntlProvider, useNextIntl, useTranslateNextIntl, withNextIntl } from './next-intl.cjs';
4
- export { useStorage } from './storage.cjs';
5
- import 'react/jsx-runtime';
6
- import '../typescript/apollo.cjs';
7
- import '@apollo/client';
8
- import 'react';
9
- import '../typescript/react.cjs';
10
- import '../typescript/loading.cjs';
11
- import 'use-intl';
12
- import '../typescript/next-intl.cjs';
13
- import 'date-fns';
14
- import 'next-intl';
15
- import '../typescript/serializer.cjs';
@@ -1,15 +0,0 @@
1
- export { ApolloProvider } from './apollo-client.js';
2
- export { Loading, LoadingContext, LoadingProvider, useLoading } from './loading.js';
3
- export { NextIntlContext, NextIntlProvider, useNextIntl, useTranslateNextIntl, withNextIntl } from './next-intl.js';
4
- export { useStorage } from './storage.js';
5
- import 'react/jsx-runtime';
6
- import '../typescript/apollo.js';
7
- import '@apollo/client';
8
- import 'react';
9
- import '../typescript/react.js';
10
- import '../typescript/loading.js';
11
- import 'use-intl';
12
- import '../typescript/next-intl.js';
13
- import 'date-fns';
14
- import 'next-intl';
15
- import '../typescript/serializer.js';
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { I_LoadingProps } from '../typescript/loading.cjs';
4
- import { I_LoadingContext, T_Children } from '../typescript/react.cjs';
5
-
6
- declare const LoadingContext: react.Context<I_LoadingContext | undefined>;
7
- declare function useLoading(): I_LoadingContext;
8
- declare function Loading({ full, block, className, message, ...rest }: I_LoadingProps): react_jsx_runtime.JSX.Element;
9
- declare function LoadingProvider({ children }: {
10
- children: T_Children;
11
- }): react_jsx_runtime.JSX.Element;
12
-
13
- export { Loading, LoadingContext, LoadingProvider, useLoading };
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { I_LoadingProps } from '../typescript/loading.js';
4
- import { I_LoadingContext, T_Children } from '../typescript/react.js';
5
-
6
- declare const LoadingContext: react.Context<I_LoadingContext | undefined>;
7
- declare function useLoading(): I_LoadingContext;
8
- declare function Loading({ full, block, className, message, ...rest }: I_LoadingProps): react_jsx_runtime.JSX.Element;
9
- declare function LoadingProvider({ children }: {
10
- children: T_Children;
11
- }): react_jsx_runtime.JSX.Element;
12
-
13
- export { Loading, LoadingContext, LoadingProvider, useLoading };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,28 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as use_intl from 'use-intl';
3
- import * as react from 'react';
4
- import { ComponentType } from 'react';
5
- import { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList } from '../typescript/next-intl.cjs';
6
- import { T_Children } from '../typescript/react.cjs';
7
- import 'date-fns';
8
- import 'next-intl';
9
-
10
- declare const NextIntlContext: react.Context<I_NextIntlContextType | undefined>;
11
- declare function useNextIntl(): I_NextIntlContextType;
12
- declare const useTranslateNextIntl: typeof use_intl.useTranslations;
13
- declare function withNextIntl<T extends {
14
- children: T_Children;
15
- }>(Component: ComponentType<T>): {
16
- (props: T & {
17
- languages: I_NextIntlLanguage[];
18
- messages: T_NextIntlMessageList;
19
- }): react_jsx_runtime.JSX.Element | null;
20
- displayName: string;
21
- };
22
- declare function NextIntlProvider({ children, languages, messages, }: {
23
- children: T_Children;
24
- languages: I_NextIntlLanguage[];
25
- messages: T_NextIntlMessageList;
26
- }): react_jsx_runtime.JSX.Element;
27
-
28
- export { NextIntlContext, NextIntlProvider, useNextIntl, useTranslateNextIntl, withNextIntl };
@@ -1,28 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as use_intl from 'use-intl';
3
- import * as react from 'react';
4
- import { ComponentType } from 'react';
5
- import { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList } from '../typescript/next-intl.js';
6
- import { T_Children } from '../typescript/react.js';
7
- import 'date-fns';
8
- import 'next-intl';
9
-
10
- declare const NextIntlContext: react.Context<I_NextIntlContextType | undefined>;
11
- declare function useNextIntl(): I_NextIntlContextType;
12
- declare const useTranslateNextIntl: typeof use_intl.useTranslations;
13
- declare function withNextIntl<T extends {
14
- children: T_Children;
15
- }>(Component: ComponentType<T>): {
16
- (props: T & {
17
- languages: I_NextIntlLanguage[];
18
- messages: T_NextIntlMessageList;
19
- }): react_jsx_runtime.JSX.Element | null;
20
- displayName: string;
21
- };
22
- declare function NextIntlProvider({ children, languages, messages, }: {
23
- children: T_Children;
24
- languages: I_NextIntlLanguage[];
25
- messages: T_NextIntlMessageList;
26
- }): react_jsx_runtime.JSX.Element;
27
-
28
- export { NextIntlContext, NextIntlProvider, useNextIntl, useTranslateNextIntl, withNextIntl };
@@ -1,5 +0,0 @@
1
- import { I_Serializer } from '../typescript/serializer.cjs';
2
-
3
- declare function useStorage<T>(key: string, initialValue: T, serializer?: I_Serializer<T>): readonly [T, (value: T | ((val: T) => T)) => void];
4
-
5
- export { useStorage };
@@ -1,5 +0,0 @@
1
- import { I_Serializer } from '../typescript/serializer.js';
2
-
3
- declare function useStorage<T>(key: string, initialValue: T, serializer?: I_Serializer<T>): readonly [T, (value: T | ((val: T) => T)) => void];
4
-
5
- export { useStorage };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,21 +0,0 @@
1
- import { ApolloClientOptions, ApolloCache, ApolloClient } from '@apollo/client';
2
- export { ApolloCache, ApolloClient, ApolloClientOptions } from '@apollo/client';
3
- import { ComponentType } from 'react';
4
- import { T_Children } from './react.cjs';
5
-
6
- interface I_ApolloOptions extends Omit<ApolloClientOptions<unknown>, 'cache'> {
7
- uri?: string;
8
- wsUrl?: string;
9
- cache?: ApolloCache<unknown>;
10
- }
11
- interface I_ApolloProviderProps {
12
- children: T_Children;
13
- isNextJS?: boolean;
14
- options?: I_ApolloOptions;
15
- client?: ApolloClient<unknown>;
16
- makeClient?: () => ApolloClient<unknown>;
17
- provider?: ComponentType<I_ApolloProviderProps>;
18
- cache?: ApolloCache<unknown>;
19
- }
20
-
21
- export type { I_ApolloOptions, I_ApolloProviderProps };
@@ -1,21 +0,0 @@
1
- import { ApolloClientOptions, ApolloCache, ApolloClient } from '@apollo/client';
2
- export { ApolloCache, ApolloClient, ApolloClientOptions } from '@apollo/client';
3
- import { ComponentType } from 'react';
4
- import { T_Children } from './react.js';
5
-
6
- interface I_ApolloOptions extends Omit<ApolloClientOptions<unknown>, 'cache'> {
7
- uri?: string;
8
- wsUrl?: string;
9
- cache?: ApolloCache<unknown>;
10
- }
11
- interface I_ApolloProviderProps {
12
- children: T_Children;
13
- isNextJS?: boolean;
14
- options?: I_ApolloOptions;
15
- client?: ApolloClient<unknown>;
16
- makeClient?: () => ApolloClient<unknown>;
17
- provider?: ComponentType<I_ApolloProviderProps>;
18
- cache?: ApolloCache<unknown>;
19
- }
20
-
21
- export type { I_ApolloOptions, I_ApolloProviderProps };
@@ -1,30 +0,0 @@
1
- declare enum E_ErrorType {
2
- Error = "error",
3
- Warning = "warning"
4
- }
5
- interface I_ErrorEntry {
6
- type: E_ErrorType;
7
- file: string;
8
- message: string;
9
- position?: string;
10
- rule?: string;
11
- }
12
- interface I_EslintError {
13
- filePath: string;
14
- messages: Array<{
15
- line: number;
16
- column: number;
17
- severity: number;
18
- message: string;
19
- ruleId: string;
20
- }>;
21
- }
22
- interface I_BoxedLogOptions {
23
- color?: string;
24
- padding?: number;
25
- margin?: number;
26
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
27
- titleColor?: string;
28
- }
29
-
30
- export { E_ErrorType, type I_BoxedLogOptions, type I_ErrorEntry, type I_EslintError };
@@ -1,30 +0,0 @@
1
- declare enum E_ErrorType {
2
- Error = "error",
3
- Warning = "warning"
4
- }
5
- interface I_ErrorEntry {
6
- type: E_ErrorType;
7
- file: string;
8
- message: string;
9
- position?: string;
10
- rule?: string;
11
- }
12
- interface I_EslintError {
13
- filePath: string;
14
- messages: Array<{
15
- line: number;
16
- column: number;
17
- severity: number;
18
- message: string;
19
- ruleId: string;
20
- }>;
21
- }
22
- interface I_BoxedLogOptions {
23
- color?: string;
24
- padding?: number;
25
- margin?: number;
26
- borderStyle?: 'round' | 'single' | 'double' | 'bold';
27
- titleColor?: string;
28
- }
29
-
30
- export { E_ErrorType, type I_BoxedLogOptions, type I_ErrorEntry, type I_EslintError };
@@ -1,5 +0,0 @@
1
- interface I_Config {
2
- [key: string]: string | number | boolean | I_Config | I_Config[];
3
- }
4
-
5
- export type { I_Config };
@@ -1,5 +0,0 @@
1
- interface I_Config {
2
- [key: string]: string | number | boolean | I_Config | I_Config[];
3
- }
4
-
5
- export type { I_Config };
@@ -1,12 +0,0 @@
1
- interface I_GraphqlCodegenConfig {
2
- uri: string;
3
- from: string;
4
- to: string;
5
- withComponent?: boolean;
6
- withHOC?: boolean;
7
- withHooks?: boolean;
8
- withMutationFn?: boolean;
9
- withRefetchFn?: boolean;
10
- }
11
-
12
- export type { I_GraphqlCodegenConfig };
@@ -1,12 +0,0 @@
1
- interface I_GraphqlCodegenConfig {
2
- uri: string;
3
- from: string;
4
- to: string;
5
- withComponent?: boolean;
6
- withHOC?: boolean;
7
- withHooks?: boolean;
8
- withMutationFn?: boolean;
9
- withRefetchFn?: boolean;
10
- }
11
-
12
- export type { I_GraphqlCodegenConfig };
@@ -1,16 +0,0 @@
1
- export { I_ApolloOptions, I_ApolloProviderProps } from './apollo.cjs';
2
- export { E_ErrorType, I_BoxedLogOptions, I_ErrorEntry, I_EslintError } from './command.cjs';
3
- export { I_Config } from './config.cjs';
4
- export { I_GraphqlCodegenConfig } from './graphql-codegen.cjs';
5
- export { I_LoadingProps } from './loading.cjs';
6
- export { T_ThrowResponseArgs } from './log.cjs';
7
- export { C_Collection, C_Db, C_Document, C_Model, I_DeleteOptionsExtended, I_ExtendedModel, I_GenerateModelOptions, I_GenerateSchemaOptions, I_GenericDocument, I_HookNextFunction, I_Input_CreateMany, I_Input_CreateOne, I_Input_DeleteMany, I_Input_DeleteOne, I_Input_FindAll, I_Input_FindOne, I_Input_FindPaging, I_Input_FindPagingAggregate, I_Input_UpdateMany, I_Input_UpdateOne, I_MongooseModelMiddleware, I_MongooseOptions, I_Return, I_ReturnFailure, I_ReturnSuccess, I_SlugifyOptions, I_UpdateOptionsExtended, T_AggregatePaginateResult, T_DeleteResult, T_Filter, T_FilterQuery, T_GenerateSlugQueryResponse, T_Input_MongooseSchema, T_Input_Populate, T_InsertManyOptions, T_InsertManyResult, T_InsertOneResult, T_MiddlewareContext, T_MongooseModelMiddlewareFunction, T_MongoosePlugin, T_MongooseShema, T_OptionalUnlessRequiredId, T_PaginateOptions, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_PopulateOption, T_PopulateOptions, T_ProjectionType, T_QueryOptions, T_UpdateQuery, T_UpdateResult, T_WithId } from './mongoose.cjs';
8
- export { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList } from './next-intl.cjs';
9
- export { I_LoadingContext, T_Children } from './react.cjs';
10
- export { I_Serializer } from './serializer.cjs';
11
- export { ApolloCache, ApolloClient, ApolloClientOptions } from '@apollo/client';
12
- import 'react';
13
- import 'mongodb';
14
- import 'mongoose';
15
- import 'date-fns';
16
- import 'next-intl';
@@ -1,16 +0,0 @@
1
- export { I_ApolloOptions, I_ApolloProviderProps } from './apollo.js';
2
- export { E_ErrorType, I_BoxedLogOptions, I_ErrorEntry, I_EslintError } from './command.js';
3
- export { I_Config } from './config.js';
4
- export { I_GraphqlCodegenConfig } from './graphql-codegen.js';
5
- export { I_LoadingProps } from './loading.js';
6
- export { T_ThrowResponseArgs } from './log.js';
7
- export { C_Collection, C_Db, C_Document, C_Model, I_DeleteOptionsExtended, I_ExtendedModel, I_GenerateModelOptions, I_GenerateSchemaOptions, I_GenericDocument, I_HookNextFunction, I_Input_CreateMany, I_Input_CreateOne, I_Input_DeleteMany, I_Input_DeleteOne, I_Input_FindAll, I_Input_FindOne, I_Input_FindPaging, I_Input_FindPagingAggregate, I_Input_UpdateMany, I_Input_UpdateOne, I_MongooseModelMiddleware, I_MongooseOptions, I_Return, I_ReturnFailure, I_ReturnSuccess, I_SlugifyOptions, I_UpdateOptionsExtended, T_AggregatePaginateResult, T_DeleteResult, T_Filter, T_FilterQuery, T_GenerateSlugQueryResponse, T_Input_MongooseSchema, T_Input_Populate, T_InsertManyOptions, T_InsertManyResult, T_InsertOneResult, T_MiddlewareContext, T_MongooseModelMiddlewareFunction, T_MongoosePlugin, T_MongooseShema, T_OptionalUnlessRequiredId, T_PaginateOptions, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_PopulateOption, T_PopulateOptions, T_ProjectionType, T_QueryOptions, T_UpdateQuery, T_UpdateResult, T_WithId } from './mongoose.js';
8
- export { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList } from './next-intl.js';
9
- export { I_LoadingContext, T_Children } from './react.js';
10
- export { I_Serializer } from './serializer.js';
11
- export { ApolloCache, ApolloClient, ApolloClientOptions } from '@apollo/client';
12
- import 'react';
13
- import 'mongodb';
14
- import 'mongoose';
15
- import 'date-fns';
16
- import 'next-intl';
@@ -1,8 +0,0 @@
1
- interface I_LoadingProps {
2
- full?: boolean;
3
- block?: boolean;
4
- className?: string;
5
- message?: string;
6
- }
7
-
8
- export type { I_LoadingProps };
@@ -1,8 +0,0 @@
1
- interface I_LoadingProps {
2
- full?: boolean;
3
- block?: boolean;
4
- className?: string;
5
- message?: string;
6
- }
7
-
8
- export type { I_LoadingProps };
@@ -1,10 +0,0 @@
1
- interface T_ThrowResponseArgs {
2
- message?: string;
3
- status?: {
4
- CODE: string | number;
5
- MESSAGE: string;
6
- };
7
- type?: 'graphql' | 'rest';
8
- }
9
-
10
- export type { T_ThrowResponseArgs };
@@ -1,10 +0,0 @@
1
- interface T_ThrowResponseArgs {
2
- message?: string;
3
- status?: {
4
- CODE: string | number;
5
- MESSAGE: string;
6
- };
7
- type?: 'graphql' | 'rest';
8
- }
9
-
10
- export type { T_ThrowResponseArgs };