@cyberskill/shared 1.35.0 → 1.36.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 (119) hide show
  1. package/README.md +8 -12
  2. package/dist/_tsup-dts-rollup.d.cts +7239 -0
  3. package/dist/_tsup-dts-rollup.d.ts +7239 -0
  4. package/dist/cli.d.cts +1 -0
  5. package/dist/cli.d.ts +1 -0
  6. package/dist/configs/commitlint/base.d.cts +1 -5
  7. package/dist/configs/commitlint/base.d.ts +1 -5
  8. package/dist/configs/eslint/base.d.cts +1 -1154
  9. package/dist/configs/eslint/base.d.ts +1 -1154
  10. package/dist/configs/eslint/nestjs.d.cts +1 -1156
  11. package/dist/configs/eslint/nestjs.d.ts +1 -1156
  12. package/dist/configs/eslint/nextjs.d.cts +1 -1156
  13. package/dist/configs/eslint/nextjs.d.ts +1 -1156
  14. package/dist/configs/eslint/nodejs.d.cts +1 -1156
  15. package/dist/configs/eslint/nodejs.d.ts +1 -1156
  16. package/dist/configs/eslint/vite-react.d.cts +1 -1157
  17. package/dist/configs/eslint/vite-react.d.ts +1 -1157
  18. package/dist/configs/graphql/graphql-codegen.d.cts +1 -6
  19. package/dist/configs/graphql/graphql-codegen.d.ts +1 -6
  20. package/dist/configs/graphql/index.d.cts +1 -3
  21. package/dist/configs/graphql/index.d.ts +1 -3
  22. package/dist/configs/i18n/react/i18next.d.cts +1 -6
  23. package/dist/configs/i18n/react/i18next.d.ts +1 -6
  24. package/dist/configs/i18n/react/index.d.cts +1 -2
  25. package/dist/configs/i18n/react/index.d.ts +1 -2
  26. package/dist/configs/index.d.cts +1 -9
  27. package/dist/configs/index.d.ts +1 -9
  28. package/dist/configs/lint-staged/base.d.cts +1 -5
  29. package/dist/configs/lint-staged/base.d.ts +1 -5
  30. package/dist/configs/vitest/react/e2e.d.cts +1 -5
  31. package/dist/configs/vitest/react/e2e.d.ts +1 -5
  32. package/dist/configs/vitest/react/unit.d.cts +1 -5
  33. package/dist/configs/vitest/react/unit.d.ts +1 -5
  34. package/dist/configs/vitest/react/unit.setup.d.cts +1 -2
  35. package/dist/configs/vitest/react/unit.setup.d.ts +1 -2
  36. package/dist/constants/index.d.cts +3 -2
  37. package/dist/constants/index.d.ts +3 -2
  38. package/dist/constants/path.d.cts +2 -4
  39. package/dist/constants/path.d.ts +2 -4
  40. package/dist/constants/response-status.d.cts +1 -252
  41. package/dist/constants/response-status.d.ts +1 -252
  42. package/dist/index.d.cts +118 -40
  43. package/dist/index.d.ts +118 -40
  44. package/dist/nodejs/index.d.cts +2 -5
  45. package/dist/nodejs/index.d.ts +2 -5
  46. package/dist/nodejs/mongo.d.cts +1 -55
  47. package/dist/nodejs/mongo.d.ts +1 -55
  48. package/dist/nodejs/mongoose.d.cts +1 -25
  49. package/dist/nodejs/mongoose.d.ts +1 -25
  50. package/dist/react/apollo-client.d.cts +1 -9
  51. package/dist/react/apollo-client.d.ts +1 -9
  52. package/dist/react/index.d.cts +11 -15
  53. package/dist/react/index.d.ts +11 -15
  54. package/dist/react/loading.d.cts +4 -13
  55. package/dist/react/loading.d.ts +4 -13
  56. package/dist/react/loading.module.d.cts +1 -2
  57. package/dist/react/loading.module.d.ts +1 -2
  58. package/dist/react/next-intl.d.cts +5 -28
  59. package/dist/react/next-intl.d.ts +5 -28
  60. package/dist/react/storage.d.cts +1 -5
  61. package/dist/react/storage.d.ts +1 -5
  62. package/dist/styles/reset.css +1 -63
  63. package/dist/styles/reset.d.cts +1 -2
  64. package/dist/styles/reset.d.ts +1 -2
  65. package/dist/typescript/apollo.d.cts +5 -21
  66. package/dist/typescript/apollo.d.ts +5 -21
  67. package/dist/typescript/command.d.cts +4 -30
  68. package/dist/typescript/command.d.ts +4 -30
  69. package/dist/typescript/config.d.cts +1 -5
  70. package/dist/typescript/config.d.ts +1 -5
  71. package/dist/typescript/graphql-codegen.d.cts +1 -12
  72. package/dist/typescript/graphql-codegen.d.ts +1 -12
  73. package/dist/typescript/index.d.cts +72 -16
  74. package/dist/typescript/index.d.ts +72 -16
  75. package/dist/typescript/loading.d.cts +1 -8
  76. package/dist/typescript/loading.d.ts +1 -8
  77. package/dist/typescript/log.d.cts +1 -10
  78. package/dist/typescript/log.d.ts +1 -10
  79. package/dist/typescript/mongoose.d.cts +53 -163
  80. package/dist/typescript/mongoose.d.ts +53 -163
  81. package/dist/typescript/next-intl.d.cts +3 -23
  82. package/dist/typescript/next-intl.d.ts +3 -23
  83. package/dist/typescript/react.d.cts +2 -11
  84. package/dist/typescript/react.d.ts +2 -11
  85. package/dist/typescript/serializer.d.cts +1 -6
  86. package/dist/typescript/serializer.d.ts +1 -6
  87. package/dist/utils/command.d.cts +5 -17
  88. package/dist/utils/command.d.ts +5 -17
  89. package/dist/utils/common.d.cts +3 -5
  90. package/dist/utils/common.d.ts +3 -5
  91. package/dist/utils/config.d.cts +1 -5
  92. package/dist/utils/config.d.ts +1 -5
  93. package/dist/utils/datetime.d.cts +1 -3
  94. package/dist/utils/datetime.d.ts +1 -3
  95. package/dist/utils/fs.d.cts +1 -3
  96. package/dist/utils/fs.d.ts +1 -3
  97. package/dist/utils/index-nodejs.d.cts +22 -13
  98. package/dist/utils/index-nodejs.d.ts +22 -13
  99. package/dist/utils/index.d.cts +8 -8
  100. package/dist/utils/index.d.ts +8 -8
  101. package/dist/utils/log.d.cts +1 -5
  102. package/dist/utils/log.d.ts +1 -5
  103. package/dist/utils/mongoose.d.cts +8 -22
  104. package/dist/utils/mongoose.d.ts +8 -22
  105. package/dist/utils/npm-package.d.cts +4 -6
  106. package/dist/utils/npm-package.d.ts +4 -6
  107. package/dist/utils/serializer.d.cts +1 -5
  108. package/dist/utils/serializer.d.ts +1 -5
  109. package/dist/utils/storage-client.d.cts +1 -8
  110. package/dist/utils/storage-client.d.ts +1 -8
  111. package/dist/utils/storage-server.d.cts +3 -11
  112. package/dist/utils/storage-server.d.ts +3 -11
  113. package/dist/utils/validate.d.cts +1 -14
  114. package/dist/utils/validate.d.ts +1 -14
  115. package/package.json +10 -18
  116. package/dist/commands.d.cts +0 -1
  117. package/dist/commands.d.ts +0 -1
  118. /package/dist/{commands.cjs → cli.cjs} +0 -0
  119. /package/dist/{commands.js → cli.js} +0 -0
@@ -1,163 +1,53 @@
1
- import { Db, InsertOneResult, InsertManyResult, Filter, WithId, UpdateResult, DeleteResult, Collection, OptionalUnlessRequiredId } from 'mongodb';
2
- import mongoose, { Document, Model, PaginateModel, AggregatePaginateModel, FilterQuery, ProjectionType, QueryOptions, PopulateOptions, PaginateOptions, PopulateOption, PaginateResult, PipelineStage, AggregatePaginateResult, InsertManyOptions, UpdateQuery, ClientSession, QueryWithHelpers, Schema, SchemaDefinition } from 'mongoose';
3
-
4
- declare class C_Model extends Model {
5
- }
6
- declare class C_Db extends Db {
7
- }
8
- declare class C_Document extends Document {
9
- }
10
- declare class C_Collection<D extends Partial<C_Document>> extends Collection<D> {
11
- }
12
- interface I_GenericDocument extends Partial<C_Document> {
13
- id?: string;
14
- isDel?: boolean;
15
- createdAt?: Date;
16
- updatedAt?: Date;
17
- }
18
- interface I_VirtualNestedOptions {
19
- [key: string]: I_VirtualNestedOptions | number | string | boolean;
20
- }
21
- interface I_HookNextFunction {
22
- (error?: Error | null): void;
23
- }
24
- type T_MiddlewareContext<T> = T | QueryWithHelpers<T, T>;
25
- interface I_VirtualOptions {
26
- ref: string;
27
- localField: string;
28
- foreignField: string;
29
- count?: boolean;
30
- justOne?: boolean;
31
- options?: I_VirtualNestedOptions;
32
- }
33
- interface I_MongooseOptions<D extends Partial<C_Document>> {
34
- mongoose: typeof mongoose;
35
- virtuals?: {
36
- name: keyof D | string;
37
- options?: I_VirtualOptions;
38
- get?: (this: D) => void;
39
- }[];
40
- }
41
- type T_MongooseShema<D> = mongoose.Schema<D>;
42
- type T_MongoosePlugin = (schema: Schema, options?: Record<string, unknown>) => void;
43
- type T_Input_MongooseSchema<D> = SchemaDefinition<D>;
44
- interface I_GenerateSchemaOptions<D extends Partial<C_Document>> extends I_MongooseOptions<D> {
45
- schema: T_Input_MongooseSchema<D>;
46
- standalone?: boolean;
47
- }
48
- type T_MongooseModelMiddlewareFunction = (this: T_MiddlewareContext<C_Document>, next: I_HookNextFunction) => void;
49
- interface I_MongooseModelMiddleware {
50
- method: string;
51
- fn: T_MongooseModelMiddlewareFunction;
52
- }
53
- interface I_GenerateModelOptions<D extends Partial<C_Document>> extends I_MongooseOptions<D> {
54
- schema: T_Input_MongooseSchema<D>;
55
- name: string;
56
- aggregate?: boolean;
57
- middlewares?: I_MongooseModelMiddleware[];
58
- pagination?: boolean;
59
- }
60
- interface I_ExtendedModel<D extends Partial<C_Document>> extends Model<D>, PaginateModel<D>, AggregatePaginateModel<D> {
61
- }
62
- interface I_ReturnSuccess<D, E = unknown> {
63
- success: true;
64
- result: D & E;
65
- message?: string;
66
- code?: number | string;
67
- }
68
- interface I_ReturnFailure {
69
- success: false;
70
- message: string;
71
- code: number | string;
72
- }
73
- type I_Return<D = void, E = unknown> = I_ReturnSuccess<D, E> | I_ReturnFailure;
74
- type T_Filter<D> = Filter<D>;
75
- type T_InsertOneResult<D> = InsertOneResult<D>;
76
- type T_InsertManyResult<D> = InsertManyResult<D>;
77
- type T_FilterQuery<T> = FilterQuery<T>;
78
- type T_ProjectionType<T> = ProjectionType<T>;
79
- type T_QueryOptions<T> = QueryOptions<T>;
80
- type T_PaginateOptions = PaginateOptions;
81
- type T_PopulateOption = PopulateOption;
82
- type T_PopulateOptions = PopulateOptions;
83
- type T_PipelineStage = PipelineStage;
84
- type T_PaginateResult<T> = PaginateResult<T>;
85
- type T_AggregatePaginateResult<T> = AggregatePaginateResult<T>;
86
- type T_InsertManyOptions = InsertManyOptions;
87
- type T_UpdateQuery<T> = UpdateQuery<T>;
88
- type T_UpdateResult = UpdateResult;
89
- type T_DeleteResult = DeleteResult;
90
- type T_WithId<T> = WithId<T>;
91
- type T_OptionalUnlessRequiredId<T> = OptionalUnlessRequiredId<T>;
92
- type T_Input_Populate = string | string[] | T_PopulateOptions | T_PopulateOptions[];
93
- interface T_PaginateOptionsWithPopulate extends T_PaginateOptions, T_PopulateOption {
94
- }
95
- type T_GenerateSlugQueryResponse<D> = T_FilterQuery<D> & {
96
- $or: Array<{
97
- slug: string;
98
- } | {
99
- slugHistory: string;
100
- }>;
101
- } & {
102
- id?: {
103
- $ne: string;
104
- };
105
- };
106
- interface I_Input_FindOne<T> extends T_PopulateOption {
107
- filter: T_FilterQuery<T>;
108
- projection?: T_ProjectionType<T>;
109
- options?: T_QueryOptions<T>;
110
- }
111
- interface I_Input_FindAll<T> extends T_PopulateOption {
112
- filter: T_FilterQuery<T>;
113
- projection?: T_ProjectionType<T>;
114
- options?: T_QueryOptions<T>;
115
- }
116
- interface I_Input_FindPaging<T> {
117
- filter?: T_FilterQuery<T>;
118
- options?: T_PaginateOptionsWithPopulate;
119
- }
120
- interface I_Input_FindPagingAggregate {
121
- pipeline: T_PipelineStage[];
122
- options?: T_PaginateOptionsWithPopulate;
123
- }
124
- interface I_Input_CreateOne<T> {
125
- doc: T;
126
- }
127
- interface I_Input_CreateMany<T> {
128
- docs: T[];
129
- }
130
- interface I_Input_UpdateOne<T> extends T_PopulateOption {
131
- filter: T_FilterQuery<T>;
132
- update: T_UpdateQuery<T>;
133
- options?: I_UpdateOptionsExtended;
134
- }
135
- interface I_Input_UpdateMany<T> extends T_PopulateOption {
136
- filter: T_FilterQuery<T>;
137
- update: T_UpdateQuery<T>;
138
- options?: I_UpdateOptionsExtended;
139
- }
140
- interface I_Input_DeleteOne<T> {
141
- filter: T_FilterQuery<T>;
142
- options?: I_DeleteOptionsExtended;
143
- }
144
- interface I_Input_DeleteMany<T> {
145
- filter: T_FilterQuery<T>;
146
- options?: I_DeleteOptionsExtended;
147
- }
148
- interface I_UpdateOptionsExtended extends Omit<QueryOptions, 'session'> {
149
- session?: ClientSession;
150
- }
151
- interface I_DeleteOptionsExtended extends Omit<QueryOptions, 'session'> {
152
- session?: ClientSession;
153
- }
154
- interface I_SlugifyOptions {
155
- replacement?: string;
156
- remove?: RegExp;
157
- lower?: boolean;
158
- strict?: boolean;
159
- locale?: string;
160
- trim?: boolean;
161
- }
162
-
163
- export { C_Collection, C_Db, C_Document, C_Model, type I_DeleteOptionsExtended, type I_ExtendedModel, type I_GenerateModelOptions, type I_GenerateSchemaOptions, type I_GenericDocument, type I_HookNextFunction, type I_Input_CreateMany, type I_Input_CreateOne, type I_Input_DeleteMany, type I_Input_DeleteOne, type I_Input_FindAll, type I_Input_FindOne, type I_Input_FindPaging, type I_Input_FindPagingAggregate, type I_Input_UpdateMany, type I_Input_UpdateOne, type I_MongooseModelMiddleware, type I_MongooseOptions, type I_Return, type I_ReturnFailure, type I_ReturnSuccess, type I_SlugifyOptions, type I_UpdateOptionsExtended, type T_AggregatePaginateResult, type T_DeleteResult, type T_Filter, type T_FilterQuery, type T_GenerateSlugQueryResponse, type T_Input_MongooseSchema, type T_Input_Populate, type T_InsertManyOptions, type T_InsertManyResult, type T_InsertOneResult, type T_MiddlewareContext, type T_MongooseModelMiddlewareFunction, type T_MongoosePlugin, type T_MongooseShema, type T_OptionalUnlessRequiredId, type T_PaginateOptions, type T_PaginateOptionsWithPopulate, type T_PaginateResult, type T_PipelineStage, type T_PopulateOption, type T_PopulateOptions, type T_ProjectionType, type T_QueryOptions, type T_UpdateQuery, type T_UpdateResult, type T_WithId };
1
+ export { C_Model_alias_2 as C_Model } from '../_tsup-dts-rollup.cjs';
2
+ export { C_Db_alias_2 as C_Db } from '../_tsup-dts-rollup.cjs';
3
+ export { C_Document_alias_2 as C_Document } from '../_tsup-dts-rollup.cjs';
4
+ export { C_Collection_alias_2 as C_Collection } from '../_tsup-dts-rollup.cjs';
5
+ export { I_GenericDocument_alias_2 as I_GenericDocument } from '../_tsup-dts-rollup.cjs';
6
+ export { I_HookNextFunction_alias_2 as I_HookNextFunction } from '../_tsup-dts-rollup.cjs';
7
+ export { T_MiddlewareContext_alias_2 as T_MiddlewareContext } from '../_tsup-dts-rollup.cjs';
8
+ export { I_MongooseOptions_alias_2 as I_MongooseOptions } from '../_tsup-dts-rollup.cjs';
9
+ export { T_MongooseShema_alias_2 as T_MongooseShema } from '../_tsup-dts-rollup.cjs';
10
+ export { T_MongoosePlugin_alias_2 as T_MongoosePlugin } from '../_tsup-dts-rollup.cjs';
11
+ export { T_Input_MongooseSchema_alias_2 as T_Input_MongooseSchema } from '../_tsup-dts-rollup.cjs';
12
+ export { I_GenerateSchemaOptions_alias_2 as I_GenerateSchemaOptions } from '../_tsup-dts-rollup.cjs';
13
+ export { T_MongooseModelMiddlewareFunction_alias_2 as T_MongooseModelMiddlewareFunction } from '../_tsup-dts-rollup.cjs';
14
+ export { I_MongooseModelMiddleware_alias_2 as I_MongooseModelMiddleware } from '../_tsup-dts-rollup.cjs';
15
+ export { I_GenerateModelOptions_alias_2 as I_GenerateModelOptions } from '../_tsup-dts-rollup.cjs';
16
+ export { I_ExtendedModel_alias_2 as I_ExtendedModel } from '../_tsup-dts-rollup.cjs';
17
+ export { I_ReturnSuccess_alias_2 as I_ReturnSuccess } from '../_tsup-dts-rollup.cjs';
18
+ export { I_ReturnFailure_alias_2 as I_ReturnFailure } from '../_tsup-dts-rollup.cjs';
19
+ export { I_Return_alias_2 as I_Return } from '../_tsup-dts-rollup.cjs';
20
+ export { T_Filter_alias_2 as T_Filter } from '../_tsup-dts-rollup.cjs';
21
+ export { T_InsertOneResult_alias_2 as T_InsertOneResult } from '../_tsup-dts-rollup.cjs';
22
+ export { T_InsertManyResult_alias_2 as T_InsertManyResult } from '../_tsup-dts-rollup.cjs';
23
+ export { T_FilterQuery_alias_2 as T_FilterQuery } from '../_tsup-dts-rollup.cjs';
24
+ export { T_ProjectionType_alias_2 as T_ProjectionType } from '../_tsup-dts-rollup.cjs';
25
+ export { T_QueryOptions_alias_2 as T_QueryOptions } from '../_tsup-dts-rollup.cjs';
26
+ export { T_PaginateOptions_alias_2 as T_PaginateOptions } from '../_tsup-dts-rollup.cjs';
27
+ export { T_PopulateOption_alias_2 as T_PopulateOption } from '../_tsup-dts-rollup.cjs';
28
+ export { T_PopulateOptions_alias_2 as T_PopulateOptions } from '../_tsup-dts-rollup.cjs';
29
+ export { T_PipelineStage_alias_2 as T_PipelineStage } from '../_tsup-dts-rollup.cjs';
30
+ export { T_PaginateResult_alias_2 as T_PaginateResult } from '../_tsup-dts-rollup.cjs';
31
+ export { T_AggregatePaginateResult_alias_2 as T_AggregatePaginateResult } from '../_tsup-dts-rollup.cjs';
32
+ export { T_InsertManyOptions_alias_2 as T_InsertManyOptions } from '../_tsup-dts-rollup.cjs';
33
+ export { T_UpdateQuery_alias_2 as T_UpdateQuery } from '../_tsup-dts-rollup.cjs';
34
+ export { T_UpdateResult_alias_2 as T_UpdateResult } from '../_tsup-dts-rollup.cjs';
35
+ export { T_DeleteResult_alias_2 as T_DeleteResult } from '../_tsup-dts-rollup.cjs';
36
+ export { T_WithId_alias_2 as T_WithId } from '../_tsup-dts-rollup.cjs';
37
+ export { T_OptionalUnlessRequiredId_alias_2 as T_OptionalUnlessRequiredId } from '../_tsup-dts-rollup.cjs';
38
+ export { T_Input_Populate_alias_2 as T_Input_Populate } from '../_tsup-dts-rollup.cjs';
39
+ export { T_PaginateOptionsWithPopulate_alias_2 as T_PaginateOptionsWithPopulate } from '../_tsup-dts-rollup.cjs';
40
+ export { T_GenerateSlugQueryResponse_alias_2 as T_GenerateSlugQueryResponse } from '../_tsup-dts-rollup.cjs';
41
+ export { I_Input_FindOne_alias_2 as I_Input_FindOne } from '../_tsup-dts-rollup.cjs';
42
+ export { I_Input_FindAll_alias_2 as I_Input_FindAll } from '../_tsup-dts-rollup.cjs';
43
+ export { I_Input_FindPaging_alias_2 as I_Input_FindPaging } from '../_tsup-dts-rollup.cjs';
44
+ export { I_Input_FindPagingAggregate_alias_2 as I_Input_FindPagingAggregate } from '../_tsup-dts-rollup.cjs';
45
+ export { I_Input_CreateOne_alias_2 as I_Input_CreateOne } from '../_tsup-dts-rollup.cjs';
46
+ export { I_Input_CreateMany_alias_2 as I_Input_CreateMany } from '../_tsup-dts-rollup.cjs';
47
+ export { I_Input_UpdateOne_alias_2 as I_Input_UpdateOne } from '../_tsup-dts-rollup.cjs';
48
+ export { I_Input_UpdateMany_alias_2 as I_Input_UpdateMany } from '../_tsup-dts-rollup.cjs';
49
+ export { I_Input_DeleteOne_alias_2 as I_Input_DeleteOne } from '../_tsup-dts-rollup.cjs';
50
+ export { I_Input_DeleteMany_alias_2 as I_Input_DeleteMany } from '../_tsup-dts-rollup.cjs';
51
+ export { I_UpdateOptionsExtended_alias_2 as I_UpdateOptionsExtended } from '../_tsup-dts-rollup.cjs';
52
+ export { I_DeleteOptionsExtended_alias_2 as I_DeleteOptionsExtended } from '../_tsup-dts-rollup.cjs';
53
+ export { I_SlugifyOptions_alias_2 as I_SlugifyOptions } from '../_tsup-dts-rollup.cjs';
@@ -1,163 +1,53 @@
1
- import { Db, InsertOneResult, InsertManyResult, Filter, WithId, UpdateResult, DeleteResult, Collection, OptionalUnlessRequiredId } from 'mongodb';
2
- import mongoose, { Document, Model, PaginateModel, AggregatePaginateModel, FilterQuery, ProjectionType, QueryOptions, PopulateOptions, PaginateOptions, PopulateOption, PaginateResult, PipelineStage, AggregatePaginateResult, InsertManyOptions, UpdateQuery, ClientSession, QueryWithHelpers, Schema, SchemaDefinition } from 'mongoose';
3
-
4
- declare class C_Model extends Model {
5
- }
6
- declare class C_Db extends Db {
7
- }
8
- declare class C_Document extends Document {
9
- }
10
- declare class C_Collection<D extends Partial<C_Document>> extends Collection<D> {
11
- }
12
- interface I_GenericDocument extends Partial<C_Document> {
13
- id?: string;
14
- isDel?: boolean;
15
- createdAt?: Date;
16
- updatedAt?: Date;
17
- }
18
- interface I_VirtualNestedOptions {
19
- [key: string]: I_VirtualNestedOptions | number | string | boolean;
20
- }
21
- interface I_HookNextFunction {
22
- (error?: Error | null): void;
23
- }
24
- type T_MiddlewareContext<T> = T | QueryWithHelpers<T, T>;
25
- interface I_VirtualOptions {
26
- ref: string;
27
- localField: string;
28
- foreignField: string;
29
- count?: boolean;
30
- justOne?: boolean;
31
- options?: I_VirtualNestedOptions;
32
- }
33
- interface I_MongooseOptions<D extends Partial<C_Document>> {
34
- mongoose: typeof mongoose;
35
- virtuals?: {
36
- name: keyof D | string;
37
- options?: I_VirtualOptions;
38
- get?: (this: D) => void;
39
- }[];
40
- }
41
- type T_MongooseShema<D> = mongoose.Schema<D>;
42
- type T_MongoosePlugin = (schema: Schema, options?: Record<string, unknown>) => void;
43
- type T_Input_MongooseSchema<D> = SchemaDefinition<D>;
44
- interface I_GenerateSchemaOptions<D extends Partial<C_Document>> extends I_MongooseOptions<D> {
45
- schema: T_Input_MongooseSchema<D>;
46
- standalone?: boolean;
47
- }
48
- type T_MongooseModelMiddlewareFunction = (this: T_MiddlewareContext<C_Document>, next: I_HookNextFunction) => void;
49
- interface I_MongooseModelMiddleware {
50
- method: string;
51
- fn: T_MongooseModelMiddlewareFunction;
52
- }
53
- interface I_GenerateModelOptions<D extends Partial<C_Document>> extends I_MongooseOptions<D> {
54
- schema: T_Input_MongooseSchema<D>;
55
- name: string;
56
- aggregate?: boolean;
57
- middlewares?: I_MongooseModelMiddleware[];
58
- pagination?: boolean;
59
- }
60
- interface I_ExtendedModel<D extends Partial<C_Document>> extends Model<D>, PaginateModel<D>, AggregatePaginateModel<D> {
61
- }
62
- interface I_ReturnSuccess<D, E = unknown> {
63
- success: true;
64
- result: D & E;
65
- message?: string;
66
- code?: number | string;
67
- }
68
- interface I_ReturnFailure {
69
- success: false;
70
- message: string;
71
- code: number | string;
72
- }
73
- type I_Return<D = void, E = unknown> = I_ReturnSuccess<D, E> | I_ReturnFailure;
74
- type T_Filter<D> = Filter<D>;
75
- type T_InsertOneResult<D> = InsertOneResult<D>;
76
- type T_InsertManyResult<D> = InsertManyResult<D>;
77
- type T_FilterQuery<T> = FilterQuery<T>;
78
- type T_ProjectionType<T> = ProjectionType<T>;
79
- type T_QueryOptions<T> = QueryOptions<T>;
80
- type T_PaginateOptions = PaginateOptions;
81
- type T_PopulateOption = PopulateOption;
82
- type T_PopulateOptions = PopulateOptions;
83
- type T_PipelineStage = PipelineStage;
84
- type T_PaginateResult<T> = PaginateResult<T>;
85
- type T_AggregatePaginateResult<T> = AggregatePaginateResult<T>;
86
- type T_InsertManyOptions = InsertManyOptions;
87
- type T_UpdateQuery<T> = UpdateQuery<T>;
88
- type T_UpdateResult = UpdateResult;
89
- type T_DeleteResult = DeleteResult;
90
- type T_WithId<T> = WithId<T>;
91
- type T_OptionalUnlessRequiredId<T> = OptionalUnlessRequiredId<T>;
92
- type T_Input_Populate = string | string[] | T_PopulateOptions | T_PopulateOptions[];
93
- interface T_PaginateOptionsWithPopulate extends T_PaginateOptions, T_PopulateOption {
94
- }
95
- type T_GenerateSlugQueryResponse<D> = T_FilterQuery<D> & {
96
- $or: Array<{
97
- slug: string;
98
- } | {
99
- slugHistory: string;
100
- }>;
101
- } & {
102
- id?: {
103
- $ne: string;
104
- };
105
- };
106
- interface I_Input_FindOne<T> extends T_PopulateOption {
107
- filter: T_FilterQuery<T>;
108
- projection?: T_ProjectionType<T>;
109
- options?: T_QueryOptions<T>;
110
- }
111
- interface I_Input_FindAll<T> extends T_PopulateOption {
112
- filter: T_FilterQuery<T>;
113
- projection?: T_ProjectionType<T>;
114
- options?: T_QueryOptions<T>;
115
- }
116
- interface I_Input_FindPaging<T> {
117
- filter?: T_FilterQuery<T>;
118
- options?: T_PaginateOptionsWithPopulate;
119
- }
120
- interface I_Input_FindPagingAggregate {
121
- pipeline: T_PipelineStage[];
122
- options?: T_PaginateOptionsWithPopulate;
123
- }
124
- interface I_Input_CreateOne<T> {
125
- doc: T;
126
- }
127
- interface I_Input_CreateMany<T> {
128
- docs: T[];
129
- }
130
- interface I_Input_UpdateOne<T> extends T_PopulateOption {
131
- filter: T_FilterQuery<T>;
132
- update: T_UpdateQuery<T>;
133
- options?: I_UpdateOptionsExtended;
134
- }
135
- interface I_Input_UpdateMany<T> extends T_PopulateOption {
136
- filter: T_FilterQuery<T>;
137
- update: T_UpdateQuery<T>;
138
- options?: I_UpdateOptionsExtended;
139
- }
140
- interface I_Input_DeleteOne<T> {
141
- filter: T_FilterQuery<T>;
142
- options?: I_DeleteOptionsExtended;
143
- }
144
- interface I_Input_DeleteMany<T> {
145
- filter: T_FilterQuery<T>;
146
- options?: I_DeleteOptionsExtended;
147
- }
148
- interface I_UpdateOptionsExtended extends Omit<QueryOptions, 'session'> {
149
- session?: ClientSession;
150
- }
151
- interface I_DeleteOptionsExtended extends Omit<QueryOptions, 'session'> {
152
- session?: ClientSession;
153
- }
154
- interface I_SlugifyOptions {
155
- replacement?: string;
156
- remove?: RegExp;
157
- lower?: boolean;
158
- strict?: boolean;
159
- locale?: string;
160
- trim?: boolean;
161
- }
162
-
163
- export { C_Collection, C_Db, C_Document, C_Model, type I_DeleteOptionsExtended, type I_ExtendedModel, type I_GenerateModelOptions, type I_GenerateSchemaOptions, type I_GenericDocument, type I_HookNextFunction, type I_Input_CreateMany, type I_Input_CreateOne, type I_Input_DeleteMany, type I_Input_DeleteOne, type I_Input_FindAll, type I_Input_FindOne, type I_Input_FindPaging, type I_Input_FindPagingAggregate, type I_Input_UpdateMany, type I_Input_UpdateOne, type I_MongooseModelMiddleware, type I_MongooseOptions, type I_Return, type I_ReturnFailure, type I_ReturnSuccess, type I_SlugifyOptions, type I_UpdateOptionsExtended, type T_AggregatePaginateResult, type T_DeleteResult, type T_Filter, type T_FilterQuery, type T_GenerateSlugQueryResponse, type T_Input_MongooseSchema, type T_Input_Populate, type T_InsertManyOptions, type T_InsertManyResult, type T_InsertOneResult, type T_MiddlewareContext, type T_MongooseModelMiddlewareFunction, type T_MongoosePlugin, type T_MongooseShema, type T_OptionalUnlessRequiredId, type T_PaginateOptions, type T_PaginateOptionsWithPopulate, type T_PaginateResult, type T_PipelineStage, type T_PopulateOption, type T_PopulateOptions, type T_ProjectionType, type T_QueryOptions, type T_UpdateQuery, type T_UpdateResult, type T_WithId };
1
+ export { C_Model_alias_2 as C_Model } from '../_tsup-dts-rollup.js';
2
+ export { C_Db_alias_2 as C_Db } from '../_tsup-dts-rollup.js';
3
+ export { C_Document_alias_2 as C_Document } from '../_tsup-dts-rollup.js';
4
+ export { C_Collection_alias_2 as C_Collection } from '../_tsup-dts-rollup.js';
5
+ export { I_GenericDocument_alias_2 as I_GenericDocument } from '../_tsup-dts-rollup.js';
6
+ export { I_HookNextFunction_alias_2 as I_HookNextFunction } from '../_tsup-dts-rollup.js';
7
+ export { T_MiddlewareContext_alias_2 as T_MiddlewareContext } from '../_tsup-dts-rollup.js';
8
+ export { I_MongooseOptions_alias_2 as I_MongooseOptions } from '../_tsup-dts-rollup.js';
9
+ export { T_MongooseShema_alias_2 as T_MongooseShema } from '../_tsup-dts-rollup.js';
10
+ export { T_MongoosePlugin_alias_2 as T_MongoosePlugin } from '../_tsup-dts-rollup.js';
11
+ export { T_Input_MongooseSchema_alias_2 as T_Input_MongooseSchema } from '../_tsup-dts-rollup.js';
12
+ export { I_GenerateSchemaOptions_alias_2 as I_GenerateSchemaOptions } from '../_tsup-dts-rollup.js';
13
+ export { T_MongooseModelMiddlewareFunction_alias_2 as T_MongooseModelMiddlewareFunction } from '../_tsup-dts-rollup.js';
14
+ export { I_MongooseModelMiddleware_alias_2 as I_MongooseModelMiddleware } from '../_tsup-dts-rollup.js';
15
+ export { I_GenerateModelOptions_alias_2 as I_GenerateModelOptions } from '../_tsup-dts-rollup.js';
16
+ export { I_ExtendedModel_alias_2 as I_ExtendedModel } from '../_tsup-dts-rollup.js';
17
+ export { I_ReturnSuccess_alias_2 as I_ReturnSuccess } from '../_tsup-dts-rollup.js';
18
+ export { I_ReturnFailure_alias_2 as I_ReturnFailure } from '../_tsup-dts-rollup.js';
19
+ export { I_Return_alias_2 as I_Return } from '../_tsup-dts-rollup.js';
20
+ export { T_Filter_alias_2 as T_Filter } from '../_tsup-dts-rollup.js';
21
+ export { T_InsertOneResult_alias_2 as T_InsertOneResult } from '../_tsup-dts-rollup.js';
22
+ export { T_InsertManyResult_alias_2 as T_InsertManyResult } from '../_tsup-dts-rollup.js';
23
+ export { T_FilterQuery_alias_2 as T_FilterQuery } from '../_tsup-dts-rollup.js';
24
+ export { T_ProjectionType_alias_2 as T_ProjectionType } from '../_tsup-dts-rollup.js';
25
+ export { T_QueryOptions_alias_2 as T_QueryOptions } from '../_tsup-dts-rollup.js';
26
+ export { T_PaginateOptions_alias_2 as T_PaginateOptions } from '../_tsup-dts-rollup.js';
27
+ export { T_PopulateOption_alias_2 as T_PopulateOption } from '../_tsup-dts-rollup.js';
28
+ export { T_PopulateOptions_alias_2 as T_PopulateOptions } from '../_tsup-dts-rollup.js';
29
+ export { T_PipelineStage_alias_2 as T_PipelineStage } from '../_tsup-dts-rollup.js';
30
+ export { T_PaginateResult_alias_2 as T_PaginateResult } from '../_tsup-dts-rollup.js';
31
+ export { T_AggregatePaginateResult_alias_2 as T_AggregatePaginateResult } from '../_tsup-dts-rollup.js';
32
+ export { T_InsertManyOptions_alias_2 as T_InsertManyOptions } from '../_tsup-dts-rollup.js';
33
+ export { T_UpdateQuery_alias_2 as T_UpdateQuery } from '../_tsup-dts-rollup.js';
34
+ export { T_UpdateResult_alias_2 as T_UpdateResult } from '../_tsup-dts-rollup.js';
35
+ export { T_DeleteResult_alias_2 as T_DeleteResult } from '../_tsup-dts-rollup.js';
36
+ export { T_WithId_alias_2 as T_WithId } from '../_tsup-dts-rollup.js';
37
+ export { T_OptionalUnlessRequiredId_alias_2 as T_OptionalUnlessRequiredId } from '../_tsup-dts-rollup.js';
38
+ export { T_Input_Populate_alias_2 as T_Input_Populate } from '../_tsup-dts-rollup.js';
39
+ export { T_PaginateOptionsWithPopulate_alias_2 as T_PaginateOptionsWithPopulate } from '../_tsup-dts-rollup.js';
40
+ export { T_GenerateSlugQueryResponse_alias_2 as T_GenerateSlugQueryResponse } from '../_tsup-dts-rollup.js';
41
+ export { I_Input_FindOne_alias_2 as I_Input_FindOne } from '../_tsup-dts-rollup.js';
42
+ export { I_Input_FindAll_alias_2 as I_Input_FindAll } from '../_tsup-dts-rollup.js';
43
+ export { I_Input_FindPaging_alias_2 as I_Input_FindPaging } from '../_tsup-dts-rollup.js';
44
+ export { I_Input_FindPagingAggregate_alias_2 as I_Input_FindPagingAggregate } from '../_tsup-dts-rollup.js';
45
+ export { I_Input_CreateOne_alias_2 as I_Input_CreateOne } from '../_tsup-dts-rollup.js';
46
+ export { I_Input_CreateMany_alias_2 as I_Input_CreateMany } from '../_tsup-dts-rollup.js';
47
+ export { I_Input_UpdateOne_alias_2 as I_Input_UpdateOne } from '../_tsup-dts-rollup.js';
48
+ export { I_Input_UpdateMany_alias_2 as I_Input_UpdateMany } from '../_tsup-dts-rollup.js';
49
+ export { I_Input_DeleteOne_alias_2 as I_Input_DeleteOne } from '../_tsup-dts-rollup.js';
50
+ export { I_Input_DeleteMany_alias_2 as I_Input_DeleteMany } from '../_tsup-dts-rollup.js';
51
+ export { I_UpdateOptionsExtended_alias_2 as I_UpdateOptionsExtended } from '../_tsup-dts-rollup.js';
52
+ export { I_DeleteOptionsExtended_alias_2 as I_DeleteOptionsExtended } from '../_tsup-dts-rollup.js';
53
+ export { I_SlugifyOptions_alias_2 as I_SlugifyOptions } from '../_tsup-dts-rollup.js';
@@ -1,23 +1,3 @@
1
- import { Locale } from 'date-fns';
2
- import { Timezone, AbstractIntlMessages } from 'next-intl';
3
-
4
- interface I_NextIntlLanguage {
5
- label: string;
6
- value: string;
7
- flag: string;
8
- adapterLocale: Locale;
9
- icon: string;
10
- numberFormat: {
11
- code: string;
12
- currency: string;
13
- };
14
- timezone: Timezone;
15
- }
16
- interface I_NextIntlContextType {
17
- languages: I_NextIntlLanguage[];
18
- currentLanguage: I_NextIntlLanguage;
19
- setCurrentLanguage: (newLang: I_NextIntlLanguage) => void;
20
- }
21
- type T_NextIntlMessageList = Record<string, AbstractIntlMessages>;
22
-
23
- export type { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList };
1
+ export { I_NextIntlLanguage_alias_2 as I_NextIntlLanguage } from '../_tsup-dts-rollup.cjs';
2
+ export { I_NextIntlContextType_alias_2 as I_NextIntlContextType } from '../_tsup-dts-rollup.cjs';
3
+ export { T_NextIntlMessageList_alias_2 as T_NextIntlMessageList } from '../_tsup-dts-rollup.cjs';
@@ -1,23 +1,3 @@
1
- import { Locale } from 'date-fns';
2
- import { Timezone, AbstractIntlMessages } from 'next-intl';
3
-
4
- interface I_NextIntlLanguage {
5
- label: string;
6
- value: string;
7
- flag: string;
8
- adapterLocale: Locale;
9
- icon: string;
10
- numberFormat: {
11
- code: string;
12
- currency: string;
13
- };
14
- timezone: Timezone;
15
- }
16
- interface I_NextIntlContextType {
17
- languages: I_NextIntlLanguage[];
18
- currentLanguage: I_NextIntlLanguage;
19
- setCurrentLanguage: (newLang: I_NextIntlLanguage) => void;
20
- }
21
- type T_NextIntlMessageList = Record<string, AbstractIntlMessages>;
22
-
23
- export type { I_NextIntlContextType, I_NextIntlLanguage, T_NextIntlMessageList };
1
+ export { I_NextIntlLanguage_alias_2 as I_NextIntlLanguage } from '../_tsup-dts-rollup.js';
2
+ export { I_NextIntlContextType_alias_2 as I_NextIntlContextType } from '../_tsup-dts-rollup.js';
3
+ export { T_NextIntlMessageList_alias_2 as T_NextIntlMessageList } from '../_tsup-dts-rollup.js';
@@ -1,11 +1,2 @@
1
- import { ReactNode, ReactElement, JSX } from 'react';
2
-
3
- type T_Children = ReactNode | ReactNode[] | ReactElement | JSX.Element | null;
4
- interface I_LoadingContext {
5
- isLoading: boolean;
6
- isGlobalLoading: boolean;
7
- showLoading: (global?: boolean) => void;
8
- hideLoading: () => void;
9
- }
10
-
11
- export type { I_LoadingContext, T_Children };
1
+ export { T_Children_alias_2 as T_Children } from '../_tsup-dts-rollup.cjs';
2
+ export { I_LoadingContext_alias_2 as I_LoadingContext } from '../_tsup-dts-rollup.cjs';
@@ -1,11 +1,2 @@
1
- import { ReactNode, ReactElement, JSX } from 'react';
2
-
3
- type T_Children = ReactNode | ReactNode[] | ReactElement | JSX.Element | null;
4
- interface I_LoadingContext {
5
- isLoading: boolean;
6
- isGlobalLoading: boolean;
7
- showLoading: (global?: boolean) => void;
8
- hideLoading: () => void;
9
- }
10
-
11
- export type { I_LoadingContext, T_Children };
1
+ export { T_Children_alias_2 as T_Children } from '../_tsup-dts-rollup.js';
2
+ export { I_LoadingContext_alias_2 as I_LoadingContext } from '../_tsup-dts-rollup.js';
@@ -1,6 +1 @@
1
- interface I_Serializer<T> {
2
- serialize: (value: T) => string;
3
- deserialize: (value: string) => T;
4
- }
5
-
6
- export type { I_Serializer };
1
+ export { I_Serializer_alias_2 as I_Serializer } from '../_tsup-dts-rollup.cjs';
@@ -1,6 +1 @@
1
- interface I_Serializer<T> {
2
- serialize: (value: T) => string;
3
- deserialize: (value: string) => T;
4
- }
5
-
6
- export type { I_Serializer };
1
+ export { I_Serializer_alias_2 as I_Serializer } from '../_tsup-dts-rollup.js';
@@ -1,17 +1,5 @@
1
- import { I_ErrorEntry, I_BoxedLogOptions } from '../typescript/command.cjs';
2
-
3
- declare function printBoxedLog<T extends string | I_ErrorEntry[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions): void;
4
- declare const commandLog: {
5
- success: (message: string) => void;
6
- error: (message: string) => void;
7
- warning: (message: string) => void;
8
- info: (message: string) => void;
9
- printBoxedLog: typeof printBoxedLog;
10
- };
11
- declare function saveErrorListToStorage(errorList: I_ErrorEntry[]): Promise<void>;
12
- declare function getStoredErrorLists(): Promise<I_ErrorEntry[]>;
13
- declare function clearAllErrorLists(): Promise<void>;
14
- declare function parseCommandOutput(output: string): void;
15
- declare function executeCommand(command: string, parser?: typeof parseCommandOutput): Promise<void>;
16
-
17
- export { clearAllErrorLists, commandLog, executeCommand, getStoredErrorLists, saveErrorListToStorage };
1
+ export { saveErrorListToStorage_alias_1 as saveErrorListToStorage } from '../_tsup-dts-rollup.cjs';
2
+ export { getStoredErrorLists_alias_1 as getStoredErrorLists } from '../_tsup-dts-rollup.cjs';
3
+ export { clearAllErrorLists_alias_1 as clearAllErrorLists } from '../_tsup-dts-rollup.cjs';
4
+ export { executeCommand_alias_1 as executeCommand } from '../_tsup-dts-rollup.cjs';
5
+ export { commandLog_alias_1 as commandLog } from '../_tsup-dts-rollup.cjs';
@@ -1,17 +1,5 @@
1
- import { I_ErrorEntry, I_BoxedLogOptions } from '../typescript/command.js';
2
-
3
- declare function printBoxedLog<T extends string | I_ErrorEntry[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions): void;
4
- declare const commandLog: {
5
- success: (message: string) => void;
6
- error: (message: string) => void;
7
- warning: (message: string) => void;
8
- info: (message: string) => void;
9
- printBoxedLog: typeof printBoxedLog;
10
- };
11
- declare function saveErrorListToStorage(errorList: I_ErrorEntry[]): Promise<void>;
12
- declare function getStoredErrorLists(): Promise<I_ErrorEntry[]>;
13
- declare function clearAllErrorLists(): Promise<void>;
14
- declare function parseCommandOutput(output: string): void;
15
- declare function executeCommand(command: string, parser?: typeof parseCommandOutput): Promise<void>;
16
-
17
- export { clearAllErrorLists, commandLog, executeCommand, getStoredErrorLists, saveErrorListToStorage };
1
+ export { saveErrorListToStorage_alias_1 as saveErrorListToStorage } from '../_tsup-dts-rollup.js';
2
+ export { getStoredErrorLists_alias_1 as getStoredErrorLists } from '../_tsup-dts-rollup.js';
3
+ export { clearAllErrorLists_alias_1 as clearAllErrorLists } from '../_tsup-dts-rollup.js';
4
+ export { executeCommand_alias_1 as executeCommand } from '../_tsup-dts-rollup.js';
5
+ export { commandLog_alias_1 as commandLog } from '../_tsup-dts-rollup.js';
@@ -1,5 +1,3 @@
1
- declare function isJson(str: string): boolean;
2
- declare function regexSearchMapper(str: string): string;
3
- declare function removeAccent(str: string): string;
4
-
5
- export { isJson, regexSearchMapper, removeAccent };
1
+ export { isJson_alias_1 as isJson } from '../_tsup-dts-rollup.cjs';
2
+ export { regexSearchMapper_alias_1 as regexSearchMapper } from '../_tsup-dts-rollup.cjs';
3
+ export { removeAccent_alias_1 as removeAccent } from '../_tsup-dts-rollup.cjs';
@@ -1,5 +1,3 @@
1
- declare function isJson(str: string): boolean;
2
- declare function regexSearchMapper(str: string): string;
3
- declare function removeAccent(str: string): string;
4
-
5
- export { isJson, regexSearchMapper, removeAccent };
1
+ export { isJson_alias_1 as isJson } from '../_tsup-dts-rollup.js';
2
+ export { regexSearchMapper_alias_1 as regexSearchMapper } from '../_tsup-dts-rollup.js';
3
+ export { removeAccent_alias_1 as removeAccent } from '../_tsup-dts-rollup.js';
@@ -1,5 +1 @@
1
- import { I_Config } from '../typescript/config.cjs';
2
-
3
- declare function deepMerge(...configs: (I_Config | I_Config[])[]): I_Config;
4
-
5
- export { deepMerge };
1
+ export { deepMerge_alias_1 as deepMerge } from '../_tsup-dts-rollup.cjs';
@@ -1,5 +1 @@
1
- import { I_Config } from '../typescript/config.js';
2
-
3
- declare function deepMerge(...configs: (I_Config | I_Config[])[]): I_Config;
4
-
5
- export { deepMerge };
1
+ export { deepMerge_alias_1 as deepMerge } from '../_tsup-dts-rollup.js';