@common-stack/store-mongo 6.0.2-alpha.1 → 6.0.6-alpha.34
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/lib/index.cjs +1 -1
- package/lib/index.mjs +1 -1
- package/lib/interfaces/generated-models.cjs +5 -10
- package/lib/interfaces/generated-models.cjs.map +1 -1
- package/lib/interfaces/generated-models.d.ts +85 -35
- package/lib/interfaces/generated-models.mjs +6 -11
- package/lib/interfaces/generated-models.mjs.map +1 -1
- package/package.json +3 -3
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var baseRepository=require('./interfaces/base-repository.cjs'),generatedModels=require('./interfaces/generated-models.cjs'),mongooseConnection=require('./helpers/mongoose-connection.cjs'),baseService=require('./services/base-service.cjs'),baseProxyService=require('./services/base-proxy-service.cjs'),commonOptions=require('./store/models/common-options.cjs'),baseRepository$1=require('./store/repositories/base-repository.cjs'),bulkDataloader=require('./dataloaders/bulk-dataloader.cjs'),baseServiceMixin=require('./mixins/base-service-mixin.cjs');Object.defineProperty(exports,'PAGINATION_OPTIONS',{enumerable:true,get:function(){return baseRepository.PAGINATION_OPTIONS}});Object.defineProperty(exports,'IBaseServiceCommands',{enumerable:true,get:function(){return generatedModels.IBaseServiceCommands}});Object.defineProperty(exports,'
|
|
1
|
+
'use strict';var baseRepository=require('./interfaces/base-repository.cjs'),generatedModels=require('./interfaces/generated-models.cjs'),mongooseConnection=require('./helpers/mongoose-connection.cjs'),baseService=require('./services/base-service.cjs'),baseProxyService=require('./services/base-proxy-service.cjs'),commonOptions=require('./store/models/common-options.cjs'),baseRepository$1=require('./store/repositories/base-repository.cjs'),bulkDataloader=require('./dataloaders/bulk-dataloader.cjs'),baseServiceMixin=require('./mixins/base-service-mixin.cjs');Object.defineProperty(exports,'PAGINATION_OPTIONS',{enumerable:true,get:function(){return baseRepository.PAGINATION_OPTIONS}});Object.defineProperty(exports,'IBaseServiceCommands',{enumerable:true,get:function(){return generatedModels.IBaseServiceCommands}});Object.defineProperty(exports,'IMoleculerServiceName',{enumerable:true,get:function(){return generatedModels.IMoleculerServiceName}});Object.defineProperty(exports,'ISortEnum',{enumerable:true,get:function(){return generatedModels.ISortEnum}});exports.generateMongo=mongooseConnection.generateMongo;Object.defineProperty(exports,'BaseService',{enumerable:true,get:function(){return baseService.BaseService}});Object.defineProperty(exports,'BaseProxyService',{enumerable:true,get:function(){return baseProxyService.BaseProxyService}});exports.addIdVirtualFields=commonOptions.addIdVirtualFields;exports.commonModeSchemaOptions=commonOptions.commonModeSchemaOptions;Object.defineProperty(exports,'BaseRepository',{enumerable:true,get:function(){return baseRepository$1.BaseRepository}});Object.defineProperty(exports,'BulkDataLoader',{enumerable:true,get:function(){return bulkDataloader.BulkDataLoader}});exports.BaseServiceMixin=baseServiceMixin.BaseServiceMixin;//# sourceMappingURL=index.cjs.map
|
package/lib/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PAGINATION_OPTIONS}from'./interfaces/base-repository.mjs';export{IBaseServiceCommands,
|
|
1
|
+
export{PAGINATION_OPTIONS}from'./interfaces/base-repository.mjs';export{IBaseServiceCommands,IMoleculerServiceName,ISortEnum}from'./interfaces/generated-models.mjs';export{generateMongo}from'./helpers/mongoose-connection.mjs';export{BaseService}from'./services/base-service.mjs';export{BaseProxyService}from'./services/base-proxy-service.mjs';export{addIdVirtualFields,commonModeSchemaOptions}from'./store/models/common-options.mjs';export{BaseRepository}from'./store/repositories/base-repository.mjs';export{BulkDataLoader}from'./dataloaders/bulk-dataloader.mjs';export{BaseServiceMixin}from'./mixins/base-service-mixin.mjs';//# sourceMappingURL=index.mjs.map
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
'use strict';exports.IBaseServiceCommands=void 0;
|
|
2
2
|
(function (IBaseServiceCommands) {
|
|
3
|
+
IBaseServiceCommands["BulkCreate"] = "bulkCreate";
|
|
3
4
|
IBaseServiceCommands["Count"] = "count";
|
|
5
|
+
IBaseServiceCommands["Create"] = "create";
|
|
6
|
+
IBaseServiceCommands["Delete"] = "delete";
|
|
7
|
+
IBaseServiceCommands["DeleteMany"] = "deleteMany";
|
|
4
8
|
IBaseServiceCommands["Get"] = "get";
|
|
5
9
|
IBaseServiceCommands["GetAll"] = "getAll";
|
|
10
|
+
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount";
|
|
6
11
|
IBaseServiceCommands["GetByIds"] = "getByIds";
|
|
7
|
-
IBaseServiceCommands["Create"] = "create";
|
|
8
12
|
IBaseServiceCommands["Insert"] = "insert";
|
|
9
|
-
IBaseServiceCommands["BulkCreate"] = "bulkCreate";
|
|
10
13
|
IBaseServiceCommands["Update"] = "update";
|
|
11
|
-
IBaseServiceCommands["Delete"] = "delete";
|
|
12
|
-
IBaseServiceCommands["DeleteMany"] = "deleteMany";
|
|
13
|
-
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount";
|
|
14
14
|
})(exports.IBaseServiceCommands || (exports.IBaseServiceCommands = {}));
|
|
15
|
-
exports.ICacheControlScope=void 0;
|
|
16
|
-
(function (ICacheControlScope) {
|
|
17
|
-
ICacheControlScope["Public"] = "PUBLIC";
|
|
18
|
-
ICacheControlScope["Private"] = "PRIVATE";
|
|
19
|
-
})(exports.ICacheControlScope || (exports.ICacheControlScope = {}));
|
|
20
15
|
/** All Moleculer Topic names are extended from this. */
|
|
21
16
|
exports.IMoleculerServiceName=void 0;
|
|
22
17
|
(function (IMoleculerServiceName) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-models.cjs","sources":["../../src/interfaces/generated-models.ts"],"sourcesContent":[null],"names":["IBaseServiceCommands","
|
|
1
|
+
{"version":3,"file":"generated-models.cjs","sources":["../../src/interfaces/generated-models.ts"],"sourcesContent":[null],"names":["IBaseServiceCommands","IMoleculerServiceName","ISortEnum"],"mappings":"aAgCYA,oCAYX;AAZD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAA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
|
}> = {
|
|
@@ -10,54 +11,103 @@ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
|
10
11
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
11
12
|
[SubKey in K]: Maybe<T[SubKey]>;
|
|
12
13
|
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
13
22
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
14
23
|
export type Scalars = {
|
|
15
|
-
ID:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
AnyObject: {
|
|
45
|
+
input: any;
|
|
46
|
+
output: any;
|
|
47
|
+
};
|
|
48
|
+
Date: {
|
|
49
|
+
input: any;
|
|
50
|
+
output: any;
|
|
51
|
+
};
|
|
52
|
+
DateTime: {
|
|
53
|
+
input: any;
|
|
54
|
+
output: any;
|
|
55
|
+
};
|
|
56
|
+
JSON: {
|
|
57
|
+
input: any;
|
|
58
|
+
output: any;
|
|
59
|
+
};
|
|
60
|
+
JSONObject: {
|
|
61
|
+
input: any;
|
|
62
|
+
output: any;
|
|
63
|
+
};
|
|
64
|
+
Observable: {
|
|
65
|
+
input: any;
|
|
66
|
+
output: any;
|
|
67
|
+
};
|
|
68
|
+
Time: {
|
|
69
|
+
input: any;
|
|
70
|
+
output: any;
|
|
71
|
+
};
|
|
72
|
+
Timestamp: {
|
|
73
|
+
input: any;
|
|
74
|
+
output: any;
|
|
75
|
+
};
|
|
76
|
+
URI: {
|
|
77
|
+
input: any;
|
|
78
|
+
output: any;
|
|
79
|
+
};
|
|
80
|
+
URIInput: {
|
|
81
|
+
input: any;
|
|
82
|
+
output: any;
|
|
83
|
+
};
|
|
30
84
|
};
|
|
31
85
|
export type IAdminIdeSettings = {
|
|
32
86
|
__typename?: 'AdminIdeSettings';
|
|
33
|
-
dummy?: Maybe<Scalars['Int']>;
|
|
87
|
+
dummy?: Maybe<Scalars['Int']['output']>;
|
|
34
88
|
};
|
|
35
89
|
export declare enum IBaseServiceCommands {
|
|
90
|
+
BulkCreate = "bulkCreate",
|
|
36
91
|
Count = "count",
|
|
92
|
+
Create = "create",
|
|
93
|
+
Delete = "delete",
|
|
94
|
+
DeleteMany = "deleteMany",
|
|
37
95
|
Get = "get",
|
|
38
96
|
GetAll = "getAll",
|
|
97
|
+
GetAllWithCount = "getAllWithCount",
|
|
39
98
|
GetByIds = "getByIds",
|
|
40
|
-
Create = "create",
|
|
41
99
|
Insert = "insert",
|
|
42
|
-
|
|
43
|
-
Update = "update",
|
|
44
|
-
Delete = "delete",
|
|
45
|
-
DeleteMany = "deleteMany",
|
|
46
|
-
GetAllWithCount = "getAllWithCount"
|
|
47
|
-
}
|
|
48
|
-
export declare enum ICacheControlScope {
|
|
49
|
-
Public = "PUBLIC",
|
|
50
|
-
Private = "PRIVATE"
|
|
100
|
+
Update = "update"
|
|
51
101
|
}
|
|
52
102
|
/** Represents a null return value. */
|
|
53
103
|
export type IEmptyResponse = {
|
|
54
104
|
__typename?: 'EmptyResponse';
|
|
55
|
-
alwaysNil?: Maybe<Scalars['String']>;
|
|
105
|
+
alwaysNil?: Maybe<Scalars['String']['output']>;
|
|
56
106
|
};
|
|
57
107
|
export type IFieldError = {
|
|
58
108
|
__typename?: 'FieldError';
|
|
59
|
-
field: Scalars['String'];
|
|
60
|
-
message: Scalars['String'];
|
|
109
|
+
field: Scalars['String']['output'];
|
|
110
|
+
message: Scalars['String']['output'];
|
|
61
111
|
};
|
|
62
112
|
/** All Moleculer Topic names are extended from this. */
|
|
63
113
|
export declare enum IMoleculerServiceName {
|
|
@@ -65,16 +115,16 @@ export declare enum IMoleculerServiceName {
|
|
|
65
115
|
}
|
|
66
116
|
export type IMutation = {
|
|
67
117
|
__typename?: 'Mutation';
|
|
68
|
-
dummy?: Maybe<Scalars['Int']>;
|
|
118
|
+
dummy?: Maybe<Scalars['Int']['output']>;
|
|
69
119
|
};
|
|
70
120
|
/** An object with an ID. */
|
|
71
121
|
export type INode = {
|
|
72
122
|
/** The ID of the node. */
|
|
73
|
-
id: Scalars['ID'];
|
|
123
|
+
id: Scalars['ID']['output'];
|
|
74
124
|
};
|
|
75
125
|
export type IPageInfo = {
|
|
76
126
|
__typename?: 'PageInfo';
|
|
77
|
-
hasNextPage: Scalars['Boolean'];
|
|
127
|
+
hasNextPage: Scalars['Boolean']['output'];
|
|
78
128
|
};
|
|
79
129
|
export type IQuery = {
|
|
80
130
|
__typename?: 'Query';
|
|
@@ -82,10 +132,10 @@ export type IQuery = {
|
|
|
82
132
|
node?: Maybe<INode>;
|
|
83
133
|
};
|
|
84
134
|
export type IQueryNodeArgs = {
|
|
85
|
-
id: Scalars['ID'];
|
|
135
|
+
id: Scalars['ID']['input'];
|
|
86
136
|
};
|
|
87
137
|
export type ISort = {
|
|
88
|
-
key: Scalars['String'];
|
|
138
|
+
key: Scalars['String']['input'];
|
|
89
139
|
value: ISortEnum;
|
|
90
140
|
};
|
|
91
141
|
export declare enum ISortEnum {
|
|
@@ -94,5 +144,5 @@ export declare enum ISortEnum {
|
|
|
94
144
|
}
|
|
95
145
|
export type ISubscription = {
|
|
96
146
|
__typename?: 'Subscription';
|
|
97
|
-
dummy?: Maybe<Scalars['Int']>;
|
|
147
|
+
dummy?: Maybe<Scalars['Int']['output']>;
|
|
98
148
|
};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
var IBaseServiceCommands;
|
|
2
2
|
(function (IBaseServiceCommands) {
|
|
3
|
+
IBaseServiceCommands["BulkCreate"] = "bulkCreate";
|
|
3
4
|
IBaseServiceCommands["Count"] = "count";
|
|
5
|
+
IBaseServiceCommands["Create"] = "create";
|
|
6
|
+
IBaseServiceCommands["Delete"] = "delete";
|
|
7
|
+
IBaseServiceCommands["DeleteMany"] = "deleteMany";
|
|
4
8
|
IBaseServiceCommands["Get"] = "get";
|
|
5
9
|
IBaseServiceCommands["GetAll"] = "getAll";
|
|
10
|
+
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount";
|
|
6
11
|
IBaseServiceCommands["GetByIds"] = "getByIds";
|
|
7
|
-
IBaseServiceCommands["Create"] = "create";
|
|
8
12
|
IBaseServiceCommands["Insert"] = "insert";
|
|
9
|
-
IBaseServiceCommands["BulkCreate"] = "bulkCreate";
|
|
10
13
|
IBaseServiceCommands["Update"] = "update";
|
|
11
|
-
IBaseServiceCommands["Delete"] = "delete";
|
|
12
|
-
IBaseServiceCommands["DeleteMany"] = "deleteMany";
|
|
13
|
-
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount";
|
|
14
14
|
})(IBaseServiceCommands || (IBaseServiceCommands = {}));
|
|
15
|
-
var ICacheControlScope;
|
|
16
|
-
(function (ICacheControlScope) {
|
|
17
|
-
ICacheControlScope["Public"] = "PUBLIC";
|
|
18
|
-
ICacheControlScope["Private"] = "PRIVATE";
|
|
19
|
-
})(ICacheControlScope || (ICacheControlScope = {}));
|
|
20
15
|
/** All Moleculer Topic names are extended from this. */
|
|
21
16
|
var IMoleculerServiceName;
|
|
22
17
|
(function (IMoleculerServiceName) {
|
|
@@ -26,4 +21,4 @@ var ISortEnum;
|
|
|
26
21
|
(function (ISortEnum) {
|
|
27
22
|
ISortEnum["Asc"] = "ASC";
|
|
28
23
|
ISortEnum["Desc"] = "DESC";
|
|
29
|
-
})(ISortEnum || (ISortEnum = {}));export{IBaseServiceCommands,
|
|
24
|
+
})(ISortEnum || (ISortEnum = {}));export{IBaseServiceCommands,IMoleculerServiceName,ISortEnum};//# sourceMappingURL=generated-models.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-models.mjs","sources":["../../src/interfaces/generated-models.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generated-models.mjs","sources":["../../src/interfaces/generated-models.ts"],"sourcesContent":[null],"names":[],"mappings":"IAgCY,qBAYX;AAZD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,oBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,oBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,oBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAmC,CAAA;AACnC,IAAA,oBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACnB,CAAC,EAZW,oBAAoB,KAApB,oBAAoB,GAY/B,EAAA,CAAA,CAAA,CAAA;AAcD;IACY,sBAEX;AAFD,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACjB,CAAC,EAFW,qBAAqB,KAArB,qBAAqB,GAEhC,EAAA,CAAA,CAAA,CAAA;IAkCW,UAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/store-mongo",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6-alpha.34",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"watch": "npm run build:lib:watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@common-stack/core": "6.0.
|
|
26
|
+
"@common-stack/core": "6.0.6-alpha.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"moleculer": "^0.14.33",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"typescript": {
|
|
41
41
|
"definition": "lib/index.d.ts"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a18390ead2b175b764970e162055142a2f694e9e"
|
|
44
44
|
}
|