@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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/nodejs/index.cjs +1 -1
- package/dist/nodejs/index.js +1 -1
- package/dist/nodejs/mongo.cjs +1 -1
- package/dist/nodejs/mongo.js +1 -1
- package/dist/utils/index-nodejs.cjs +1 -1
- package/dist/utils/index-nodejs.js +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/mongoose.cjs +1 -1
- package/dist/utils/mongoose.js +1 -1
- package/package.json +1 -1
- package/dist/commands.d.cts +0 -1
- package/dist/commands.d.ts +0 -1
- package/dist/configs/commitlint/base.d.cts +0 -5
- package/dist/configs/commitlint/base.d.ts +0 -5
- package/dist/configs/eslint/base.d.cts +0 -1154
- package/dist/configs/eslint/base.d.ts +0 -1154
- package/dist/configs/eslint/nestjs.d.cts +0 -1156
- package/dist/configs/eslint/nestjs.d.ts +0 -1156
- package/dist/configs/eslint/nextjs.d.cts +0 -1156
- package/dist/configs/eslint/nextjs.d.ts +0 -1156
- package/dist/configs/eslint/nodejs.d.cts +0 -1156
- package/dist/configs/eslint/nodejs.d.ts +0 -1156
- package/dist/configs/eslint/vite-react.d.cts +0 -1157
- package/dist/configs/eslint/vite-react.d.ts +0 -1157
- package/dist/configs/graphql/graphql-codegen.d.cts +0 -6
- package/dist/configs/graphql/graphql-codegen.d.ts +0 -6
- package/dist/configs/graphql/index.d.cts +0 -3
- package/dist/configs/graphql/index.d.ts +0 -3
- package/dist/configs/i18n/react/i18next.d.cts +0 -6
- package/dist/configs/i18n/react/i18next.d.ts +0 -6
- package/dist/configs/i18n/react/index.d.cts +0 -2
- package/dist/configs/i18n/react/index.d.ts +0 -2
- package/dist/configs/index.d.cts +0 -9
- package/dist/configs/index.d.ts +0 -9
- package/dist/configs/lint-staged/base.d.cts +0 -5
- package/dist/configs/lint-staged/base.d.ts +0 -5
- package/dist/configs/vitest/react/e2e.d.cts +0 -5
- package/dist/configs/vitest/react/e2e.d.ts +0 -5
- package/dist/configs/vitest/react/unit.d.cts +0 -5
- package/dist/configs/vitest/react/unit.d.ts +0 -5
- package/dist/configs/vitest/react/unit.setup.d.cts +0 -2
- package/dist/configs/vitest/react/unit.setup.d.ts +0 -2
- package/dist/constants/index.d.cts +0 -2
- package/dist/constants/index.d.ts +0 -2
- package/dist/constants/path.d.cts +0 -4
- package/dist/constants/path.d.ts +0 -4
- package/dist/constants/response-status.d.cts +0 -252
- package/dist/constants/response-status.d.ts +0 -252
- package/dist/index.d.cts +0 -40
- package/dist/index.d.ts +0 -40
- package/dist/nodejs/index.d.cts +0 -5
- package/dist/nodejs/index.d.ts +0 -5
- package/dist/nodejs/mongo.d.cts +0 -55
- package/dist/nodejs/mongo.d.ts +0 -55
- package/dist/nodejs/mongoose.d.cts +0 -25
- package/dist/nodejs/mongoose.d.ts +0 -25
- package/dist/react/apollo-client.d.cts +0 -9
- package/dist/react/apollo-client.d.ts +0 -9
- package/dist/react/index.d.cts +0 -15
- package/dist/react/index.d.ts +0 -15
- package/dist/react/loading.d.cts +0 -13
- package/dist/react/loading.d.ts +0 -13
- package/dist/react/loading.module.d.cts +0 -2
- package/dist/react/loading.module.d.ts +0 -2
- package/dist/react/next-intl.d.cts +0 -28
- package/dist/react/next-intl.d.ts +0 -28
- package/dist/react/storage.d.cts +0 -5
- package/dist/react/storage.d.ts +0 -5
- package/dist/styles/reset.d.cts +0 -2
- package/dist/styles/reset.d.ts +0 -2
- package/dist/typescript/apollo.d.cts +0 -21
- package/dist/typescript/apollo.d.ts +0 -21
- package/dist/typescript/command.d.cts +0 -30
- package/dist/typescript/command.d.ts +0 -30
- package/dist/typescript/config.d.cts +0 -5
- package/dist/typescript/config.d.ts +0 -5
- package/dist/typescript/graphql-codegen.d.cts +0 -12
- package/dist/typescript/graphql-codegen.d.ts +0 -12
- package/dist/typescript/index.d.cts +0 -16
- package/dist/typescript/index.d.ts +0 -16
- package/dist/typescript/loading.d.cts +0 -8
- package/dist/typescript/loading.d.ts +0 -8
- package/dist/typescript/log.d.cts +0 -10
- package/dist/typescript/log.d.ts +0 -10
- package/dist/typescript/mongoose.d.cts +0 -163
- package/dist/typescript/mongoose.d.ts +0 -163
- package/dist/typescript/next-intl.d.cts +0 -23
- package/dist/typescript/next-intl.d.ts +0 -23
- package/dist/typescript/react.d.cts +0 -11
- package/dist/typescript/react.d.ts +0 -11
- package/dist/typescript/serializer.d.cts +0 -6
- package/dist/typescript/serializer.d.ts +0 -6
- package/dist/utils/command.d.cts +0 -17
- package/dist/utils/command.d.ts +0 -17
- package/dist/utils/common.d.cts +0 -5
- package/dist/utils/common.d.ts +0 -5
- package/dist/utils/config.d.cts +0 -5
- package/dist/utils/config.d.ts +0 -5
- package/dist/utils/datetime.d.cts +0 -3
- package/dist/utils/datetime.d.ts +0 -3
- package/dist/utils/fs.d.cts +0 -3
- package/dist/utils/fs.d.ts +0 -3
- package/dist/utils/index-nodejs.d.cts +0 -11
- package/dist/utils/index-nodejs.d.ts +0 -11
- package/dist/utils/index.d.cts +0 -10
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/log.d.cts +0 -5
- package/dist/utils/log.d.ts +0 -5
- package/dist/utils/mongoose.d.cts +0 -19
- package/dist/utils/mongoose.d.ts +0 -19
- package/dist/utils/npm-package.d.cts +0 -6
- package/dist/utils/npm-package.d.ts +0 -6
- package/dist/utils/serializer.d.cts +0 -5
- package/dist/utils/serializer.d.ts +0 -5
- package/dist/utils/storage-client.d.cts +0 -8
- package/dist/utils/storage-client.d.ts +0 -8
- package/dist/utils/storage-server.d.cts +0 -11
- package/dist/utils/storage-server.d.ts +0 -11
- package/dist/utils/validate.d.cts +0 -14
- 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';
|
package/dist/nodejs/index.d.cts
DELETED
package/dist/nodejs/index.d.ts
DELETED
package/dist/nodejs/mongo.d.cts
DELETED
|
@@ -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 };
|
package/dist/nodejs/mongo.d.ts
DELETED
|
@@ -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 };
|
package/dist/react/index.d.cts
DELETED
|
@@ -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';
|
package/dist/react/index.d.ts
DELETED
|
@@ -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';
|
package/dist/react/loading.d.cts
DELETED
|
@@ -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 };
|
package/dist/react/loading.d.ts
DELETED
|
@@ -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,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 };
|
package/dist/react/storage.d.cts
DELETED
package/dist/react/storage.d.ts
DELETED
package/dist/styles/reset.d.cts
DELETED
package/dist/styles/reset.d.ts
DELETED
|
@@ -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,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';
|