@common-stack/store-mongo 7.0.4-alpha.0 → 7.0.4-alpha.4
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.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/interfaces/get-all-args.d.ts +1 -1
- package/lib/mixins/base-service-mixin.d.ts +2 -2
- package/lib/mixins/base-service-mixin.js +27 -27
- package/lib/mixins/base-service-mixin.js.map +1 -1
- package/lib/services/base-proxy-service.js +12 -12
- package/lib/services/base-proxy-service.js.map +1 -1
- package/package.json +2 -2
- package/lib/legacy-generated/generated-models.d.ts +0 -318
- package/lib/legacy-generated/generated-models.js +0 -25
- package/lib/legacy-generated/generated-models.js.map +0 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PAGINATION_OPTIONS}from'./interfaces/base-repository.js';export{generateMongo}from'./helpers/mongoose-connection.js';export{BaseService}from'./services/base-service.js';export{BaseProxyService}from'./services/base-proxy-service.js';export{addIdVirtualFields,commonModeSchemaOptions}from'./store/models/common-options.js';export{BaseRepository}from'./store/repositories/base-repository.js';export{BulkDataLoader}from'./dataloaders/bulk-dataloader.js';export{BaseServiceMixin}from'./mixins/base-service-mixin.js'
|
|
1
|
+
export{PAGINATION_OPTIONS}from'./interfaces/base-repository.js';export{generateMongo}from'./helpers/mongoose-connection.js';export{BaseService}from'./services/base-service.js';export{BaseProxyService}from'./services/base-proxy-service.js';export{addIdVirtualFields,commonModeSchemaOptions}from'./store/models/common-options.js';export{BaseRepository}from'./store/repositories/base-repository.js';export{BulkDataLoader}from'./dataloaders/bulk-dataloader.js';export{BaseServiceMixin}from'./mixins/base-service-mixin.js';//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ServiceBroker, ServiceSchema } from 'moleculer';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseServiceCommands } from 'common';
|
|
3
3
|
import { IBaseService } from '../interfaces';
|
|
4
|
-
export declare const BaseServiceMixin: <T, C, U>(service: IBaseService<T, C, U>, broker?: ServiceBroker, name?: string, events?:
|
|
4
|
+
export declare const BaseServiceMixin: <T, C, U>(service: IBaseService<T, C, U>, broker?: ServiceBroker, name?: string, events?: BaseServiceCommands[]) => Partial<ServiceSchema>;
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import {upperFirst}from'lodash-es';import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import {upperFirst}from'lodash-es';import {BaseServiceCommands}from'common';const defaultEvents = [
|
|
2
|
+
BaseServiceCommands.Create,
|
|
3
|
+
BaseServiceCommands.BulkCreate,
|
|
4
|
+
BaseServiceCommands.Update,
|
|
5
|
+
BaseServiceCommands.Delete,
|
|
6
|
+
BaseServiceCommands.DeleteMany,
|
|
7
7
|
];
|
|
8
8
|
const BaseServiceMixin = (service, broker, name, events = defaultEvents) => ({
|
|
9
9
|
name: 'BaseServiceMixin',
|
|
10
10
|
actions: {
|
|
11
|
-
[
|
|
11
|
+
[BaseServiceCommands.Get]: {
|
|
12
12
|
params: {
|
|
13
13
|
id: 'string',
|
|
14
14
|
},
|
|
15
15
|
handler: async (ctx) => service.get(ctx.params.id),
|
|
16
16
|
},
|
|
17
|
-
[
|
|
17
|
+
[BaseServiceCommands.Count]: {
|
|
18
18
|
params: {
|
|
19
19
|
criteria: { type: 'object', optional: true },
|
|
20
20
|
},
|
|
21
21
|
handler: async (ctx) => service.count(ctx.params.criteria),
|
|
22
22
|
},
|
|
23
|
-
[
|
|
23
|
+
[BaseServiceCommands.BulkCreate]: {
|
|
24
24
|
params: {
|
|
25
25
|
data: { type: 'array', items: 'object' },
|
|
26
26
|
},
|
|
27
27
|
handler: async (ctx) => {
|
|
28
28
|
const response = await service.bulkCreate(ctx.params.data);
|
|
29
|
-
if (events.includes(
|
|
30
|
-
await broker?.emit(`${name}.on${upperFirst(
|
|
29
|
+
if (events.includes(BaseServiceCommands.BulkCreate)) {
|
|
30
|
+
await broker?.emit(`${name}.on${upperFirst(BaseServiceCommands.BulkCreate)}`, response);
|
|
31
31
|
}
|
|
32
32
|
return response;
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
|
-
[
|
|
35
|
+
[BaseServiceCommands.Create]: {
|
|
36
36
|
params: {
|
|
37
37
|
data: 'object',
|
|
38
38
|
},
|
|
39
39
|
handler: async (ctx) => {
|
|
40
40
|
const response = await service.create(ctx.params.data);
|
|
41
|
-
if (events.includes(
|
|
42
|
-
await broker?.emit(`${name}.on${upperFirst(
|
|
41
|
+
if (events.includes(BaseServiceCommands.Create)) {
|
|
42
|
+
await broker?.emit(`${name}.on${upperFirst(BaseServiceCommands.Create)}`, response);
|
|
43
43
|
}
|
|
44
44
|
return response;
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
|
-
[
|
|
47
|
+
[BaseServiceCommands.Delete]: {
|
|
48
48
|
params: {
|
|
49
49
|
id: 'string',
|
|
50
50
|
},
|
|
51
51
|
handler: async (ctx) => {
|
|
52
52
|
const { id } = ctx.params;
|
|
53
53
|
const response = await service.delete(id);
|
|
54
|
-
if (events.includes(
|
|
55
|
-
await broker?.emit(`${name}.on${upperFirst(
|
|
54
|
+
if (events.includes(BaseServiceCommands.Delete)) {
|
|
55
|
+
await broker?.emit(`${name}.on${upperFirst(BaseServiceCommands.Delete)}`, { id });
|
|
56
56
|
}
|
|
57
57
|
return response;
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
|
-
[
|
|
60
|
+
[BaseServiceCommands.GetAll]: {
|
|
61
61
|
params: {
|
|
62
62
|
criteria: 'object|optional',
|
|
63
63
|
sort: 'object|optional',
|
|
@@ -67,7 +67,7 @@ const BaseServiceMixin = (service, broker, name, events = defaultEvents) => ({
|
|
|
67
67
|
},
|
|
68
68
|
handler: async (ctx) => service.getAll(ctx.params),
|
|
69
69
|
},
|
|
70
|
-
[
|
|
70
|
+
[BaseServiceCommands.GetAllWithCount]: {
|
|
71
71
|
params: {
|
|
72
72
|
criteria: 'object|optional',
|
|
73
73
|
sort: 'object|optional',
|
|
@@ -77,7 +77,7 @@ const BaseServiceMixin = (service, broker, name, events = defaultEvents) => ({
|
|
|
77
77
|
},
|
|
78
78
|
handler: async (ctx) => service.getAllWithCount(ctx.params),
|
|
79
79
|
},
|
|
80
|
-
[
|
|
80
|
+
[BaseServiceCommands.Insert]: {
|
|
81
81
|
params: {
|
|
82
82
|
data: 'object',
|
|
83
83
|
overwrite: 'boolean|optional',
|
|
@@ -85,14 +85,14 @@ const BaseServiceMixin = (service, broker, name, events = defaultEvents) => ({
|
|
|
85
85
|
handler: async (ctx) => {
|
|
86
86
|
const { data } = ctx.params;
|
|
87
87
|
const response = await service.insert(data, ctx.params.overwrite);
|
|
88
|
-
const action = data?.id ?
|
|
88
|
+
const action = data?.id ? BaseServiceCommands.Update : BaseServiceCommands.Create;
|
|
89
89
|
if (events.includes(action)) {
|
|
90
90
|
await broker?.emit(`${name}.on${upperFirst(action)}`, response);
|
|
91
91
|
}
|
|
92
92
|
return response;
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
|
-
[
|
|
95
|
+
[BaseServiceCommands.Update]: {
|
|
96
96
|
params: {
|
|
97
97
|
id: 'string',
|
|
98
98
|
data: 'object',
|
|
@@ -100,21 +100,21 @@ const BaseServiceMixin = (service, broker, name, events = defaultEvents) => ({
|
|
|
100
100
|
},
|
|
101
101
|
handler: async (ctx) => {
|
|
102
102
|
const response = await service.update(ctx.params.id, ctx.params.data, ctx.params.overwrite);
|
|
103
|
-
if (events.includes(
|
|
104
|
-
await broker?.emit(`${name}.on${upperFirst(
|
|
103
|
+
if (events.includes(BaseServiceCommands.Update)) {
|
|
104
|
+
await broker?.emit(`${name}.on${upperFirst(BaseServiceCommands.Update)}`, response);
|
|
105
105
|
}
|
|
106
106
|
return response;
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
|
-
[
|
|
109
|
+
[BaseServiceCommands.DeleteMany]: {
|
|
110
110
|
params: {
|
|
111
111
|
criteria: 'object',
|
|
112
112
|
},
|
|
113
113
|
handler: async (ctx) => {
|
|
114
114
|
const { criteria } = ctx.params;
|
|
115
115
|
const response = await service.delete(criteria);
|
|
116
|
-
if (events.includes(
|
|
117
|
-
await broker?.emit(`${name}.on${upperFirst(
|
|
116
|
+
if (events.includes(BaseServiceCommands.DeleteMany)) {
|
|
117
|
+
await broker?.emit(`${name}.on${upperFirst(BaseServiceCommands.DeleteMany)}`, criteria);
|
|
118
118
|
}
|
|
119
119
|
return response;
|
|
120
120
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-service-mixin.js","sources":["../../src/mixins/base-service-mixin.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-service-mixin.js","sources":["../../src/mixins/base-service-mixin.ts"],"sourcesContent":[null],"names":[],"mappings":"4EAMA,MAAM,aAAa,GAAG;AAClB,IAAA,mBAAmB,CAAC,MAAM;AAC1B,IAAA,mBAAmB,CAAC,UAAU;AAC9B,IAAA,mBAAmB,CAAC,MAAM;AAC1B,IAAA,mBAAmB,CAAC,MAAM;AAC1B,IAAA,mBAAmB,CAAC,UAAU;CACjC,CAAC;AAEW,MAAA,gBAAgB,GAAG,CAC5B,OAA8B,EAC9B,MAAsB,EACtB,IAAa,EACb,MAAM,GAAG,aAAa,MACI;AAC1B,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,OAAO,EAAE;AACL,QAAA,CAAC,mBAAmB,CAAC,GAAG,GAAG;AACvB,YAAA,MAAM,EAAE;AACJ,gBAAA,EAAE,EAAE,QAAQ;AACf,aAAA;AACD,YAAA,OAAO,EAAE,OAAO,GAA4B,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;AAC9E,SAAA;AACD,QAAA,CAAC,mBAAmB,CAAC,KAAK,GAAG;AACzB,YAAA,MAAM,EAA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,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBAC5F,IAAI,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE;AAC7C,oBAAA,MAAM,MAAM,EAAE,IAAI,CAAC,CAAA,EAAG,IAAI,CAAM,GAAA,EAAA,UAAU,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;iBACvF;AACD,gBAAA,OAAO,QAAQ,CAAC;aACnB;AACJ,SAAA;AACD,QAAA,CAAC,mBAAmB,CAAC,UAAU,GAAG;AAC9B,YAAA,MAAM,EAAE;AACJ,gBAAA,QAAQ,EAAE,QAAQ;AACrB,aAAA;AACD,YAAA,OAAO,EAAE,OAAO,GAA0B,KAAI;AAC1C,gBAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;gBAChC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAChD,IAAI,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE;AACjD,oBAAA,MAAM,MAAM,EAAE,IAAI,CAAC,CAAA,EAAG,IAAI,CAAM,GAAA,EAAA,UAAU,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;iBAC3F;AACD,gBAAA,OAAO,QAAQ,CAAC;aACnB;AACJ,SAAA;AACJ,KAAA;AACJ,CAAA"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject,optional}from'inversify';import {ServiceBroker}from'moleculer';import'@cdm-logger/core';import {CommonType}from'@common-stack/core';import {
|
|
1
|
+
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject,optional}from'inversify';import {ServiceBroker}from'moleculer';import'@cdm-logger/core';import {CommonType}from'@common-stack/core';import {BaseServiceCommands}from'common';let BaseProxyService = class BaseProxyService {
|
|
2
2
|
broker;
|
|
3
3
|
constructor(broker, logger) {
|
|
4
4
|
this.broker = broker;
|
|
5
5
|
}
|
|
6
6
|
getByName(name) {
|
|
7
|
-
return this.callAction(
|
|
7
|
+
return this.callAction(BaseServiceCommands.GetByName, { name });
|
|
8
8
|
}
|
|
9
9
|
bulkCreate(data) {
|
|
10
|
-
return this.callAction(
|
|
10
|
+
return this.callAction(BaseServiceCommands.BulkCreate, { data });
|
|
11
11
|
}
|
|
12
12
|
count(criteria) {
|
|
13
|
-
return this.callAction(
|
|
13
|
+
return this.callAction(BaseServiceCommands.Count, { criteria });
|
|
14
14
|
}
|
|
15
15
|
create(data) {
|
|
16
|
-
return this.callAction(
|
|
16
|
+
return this.callAction(BaseServiceCommands.Create, { data });
|
|
17
17
|
}
|
|
18
18
|
delete(id) {
|
|
19
|
-
return this.callAction(
|
|
19
|
+
return this.callAction(BaseServiceCommands.Delete, { id });
|
|
20
20
|
}
|
|
21
21
|
get(id) {
|
|
22
|
-
return this.callAction(
|
|
22
|
+
return this.callAction(BaseServiceCommands.Get, { id });
|
|
23
23
|
}
|
|
24
24
|
getAll(options) {
|
|
25
|
-
return this.callAction(
|
|
25
|
+
return this.callAction(BaseServiceCommands.GetAll, options);
|
|
26
26
|
}
|
|
27
27
|
getByIds(ids) {
|
|
28
|
-
return this.callAction(
|
|
28
|
+
return this.callAction(BaseServiceCommands.GetByIds, { ids });
|
|
29
29
|
}
|
|
30
30
|
getAllWithCount(options) {
|
|
31
|
-
return this.callAction(
|
|
31
|
+
return this.callAction(BaseServiceCommands.GetAllWithCount, options);
|
|
32
32
|
}
|
|
33
33
|
insert(data, overwrite) {
|
|
34
|
-
return this.callAction(
|
|
34
|
+
return this.callAction(BaseServiceCommands.Insert, { data, overwrite });
|
|
35
35
|
}
|
|
36
36
|
update(id, data, overwrite) {
|
|
37
|
-
return this.callAction(
|
|
37
|
+
return this.callAction(BaseServiceCommands.Update, { id, data, overwrite });
|
|
38
38
|
}
|
|
39
39
|
async callAction(command, params) {
|
|
40
40
|
return this.broker.call(`${this.topic}.${command}`, params);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-proxy-service.js","sources":["../../src/services/base-proxy-service.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-proxy-service.js","sources":["../../src/services/base-proxy-service.ts"],"sourcesContent":[null],"names":[],"mappings":"yPAYsB,IAAA,gBAAgB,GAA/B,MAAe,gBAAgB,CAAA;AAOb,IAAA,MAAA,CAAA;IAFrB,WAEqB,CAAA,MAAqB,EAGtC,MAAyB,EAAA;QAHR,IAAM,CAAA,MAAA,GAAN,MAAM,CAAe;KAItC;AAEJ,IAAA,SAAS,CAAC,IAAY,EAAA;AAClB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;KACnE;AAED,IAAA,UAAU,CAAC,IAAS,EAAA;AAChB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAqB,mBAAmB,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;KACxF;AAED,IAAA,KAAK,CAAC,QAAgC,EAAA;AAClC,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;KACnE;AAED,IAAA,MAAM,CAAC,IAAO,EAAA;AACV,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;KAChE;AAED,IAAA,MAAM,CAAC,EAAkC,EAAA;AACrC,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;KAC9D;AAED,IAAA,GAAG,CAAC,EAAmC,EAAA;AACnC,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,GAAG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QAAQ,EAAE,CAAA;qCAFc,aAAa,EAAA,MAAA,CAAA,CAAA;AAPxB,CAAA,EAAA,gBAAgB,CA4DrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/store-mongo",
|
|
3
|
-
"version": "7.0.4-alpha.
|
|
3
|
+
"version": "7.0.4-alpha.4",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "cb21c835bacd29268384b4b779fa2e28f25552b6",
|
|
42
42
|
"typescript": {
|
|
43
43
|
"definition": "lib/index.d.ts"
|
|
44
44
|
}
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
2
|
-
export type Maybe<T> = T | null;
|
|
3
|
-
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
-
export type Exact<T extends {
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
}> = {
|
|
7
|
-
[K in keyof T]: T[K];
|
|
8
|
-
};
|
|
9
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
-
};
|
|
12
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
-
};
|
|
15
|
-
export type MakeEmpty<T extends {
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
}, K extends keyof T> = {
|
|
18
|
-
[_ in K]?: never;
|
|
19
|
-
};
|
|
20
|
-
export type Incremental<T> = T | {
|
|
21
|
-
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
22
|
-
};
|
|
23
|
-
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
24
|
-
[P in K]-?: NonNullable<T[P]>;
|
|
25
|
-
};
|
|
26
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
27
|
-
export type Scalars = {
|
|
28
|
-
ID: {
|
|
29
|
-
input: string;
|
|
30
|
-
output: string;
|
|
31
|
-
};
|
|
32
|
-
String: {
|
|
33
|
-
input: string;
|
|
34
|
-
output: string;
|
|
35
|
-
};
|
|
36
|
-
Boolean: {
|
|
37
|
-
input: boolean;
|
|
38
|
-
output: boolean;
|
|
39
|
-
};
|
|
40
|
-
Int: {
|
|
41
|
-
input: number;
|
|
42
|
-
output: number;
|
|
43
|
-
};
|
|
44
|
-
Float: {
|
|
45
|
-
input: number;
|
|
46
|
-
output: number;
|
|
47
|
-
};
|
|
48
|
-
AnyObject: {
|
|
49
|
-
input: any;
|
|
50
|
-
output: any;
|
|
51
|
-
};
|
|
52
|
-
Date: {
|
|
53
|
-
input: any;
|
|
54
|
-
output: any;
|
|
55
|
-
};
|
|
56
|
-
DateTime: {
|
|
57
|
-
input: any;
|
|
58
|
-
output: any;
|
|
59
|
-
};
|
|
60
|
-
JSON: {
|
|
61
|
-
input: any;
|
|
62
|
-
output: any;
|
|
63
|
-
};
|
|
64
|
-
JSONObject: {
|
|
65
|
-
input: any;
|
|
66
|
-
output: any;
|
|
67
|
-
};
|
|
68
|
-
Observable: {
|
|
69
|
-
input: any;
|
|
70
|
-
output: any;
|
|
71
|
-
};
|
|
72
|
-
Time: {
|
|
73
|
-
input: any;
|
|
74
|
-
output: any;
|
|
75
|
-
};
|
|
76
|
-
Timestamp: {
|
|
77
|
-
input: any;
|
|
78
|
-
output: any;
|
|
79
|
-
};
|
|
80
|
-
URI: {
|
|
81
|
-
input: any;
|
|
82
|
-
output: any;
|
|
83
|
-
};
|
|
84
|
-
URIInput: {
|
|
85
|
-
input: any;
|
|
86
|
-
output: any;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export type IAdminIdeSettings = {
|
|
90
|
-
__typename?: 'AdminIdeSettings';
|
|
91
|
-
dummy?: Maybe<Scalars['Int']['output']>;
|
|
92
|
-
};
|
|
93
|
-
export declare enum IBaseServiceCommands {
|
|
94
|
-
BulkCreate = "bulkCreate",
|
|
95
|
-
Count = "count",
|
|
96
|
-
Create = "create",
|
|
97
|
-
Delete = "delete",
|
|
98
|
-
DeleteMany = "deleteMany",
|
|
99
|
-
Get = "get",
|
|
100
|
-
GetAll = "getAll",
|
|
101
|
-
GetAllWithCount = "getAllWithCount",
|
|
102
|
-
GetByIds = "getByIds",
|
|
103
|
-
GetByName = "getByName",
|
|
104
|
-
Insert = "insert",
|
|
105
|
-
Update = "update"
|
|
106
|
-
}
|
|
107
|
-
/** Represents a null return value. */
|
|
108
|
-
export type IEmptyResponse = {
|
|
109
|
-
__typename?: 'EmptyResponse';
|
|
110
|
-
alwaysNil?: Maybe<Scalars['String']['output']>;
|
|
111
|
-
};
|
|
112
|
-
export type IFieldError = {
|
|
113
|
-
__typename?: 'FieldError';
|
|
114
|
-
field: Scalars['String']['output'];
|
|
115
|
-
message: Scalars['String']['output'];
|
|
116
|
-
};
|
|
117
|
-
/** All Moleculer Topic names are extended from this. */
|
|
118
|
-
export declare enum IMoleculerServiceName {
|
|
119
|
-
Dummy = "dummy"
|
|
120
|
-
}
|
|
121
|
-
export type IMutation = {
|
|
122
|
-
__typename?: 'Mutation';
|
|
123
|
-
dummy?: Maybe<Scalars['Int']['output']>;
|
|
124
|
-
};
|
|
125
|
-
/** An object with an ID. */
|
|
126
|
-
export type INode = {
|
|
127
|
-
/** The ID of the node. */
|
|
128
|
-
id: Scalars['ID']['output'];
|
|
129
|
-
};
|
|
130
|
-
export type IPageInfo = {
|
|
131
|
-
__typename?: 'PageInfo';
|
|
132
|
-
hasNextPage: Scalars['Boolean']['output'];
|
|
133
|
-
};
|
|
134
|
-
export type IQuery = {
|
|
135
|
-
__typename?: 'Query';
|
|
136
|
-
/** Looks up a node by ID. */
|
|
137
|
-
node?: Maybe<INode>;
|
|
138
|
-
};
|
|
139
|
-
export type IQueryNodeArgs = {
|
|
140
|
-
id: Scalars['ID']['input'];
|
|
141
|
-
};
|
|
142
|
-
export type ISort = {
|
|
143
|
-
key: Scalars['String']['input'];
|
|
144
|
-
value: ISortEnum;
|
|
145
|
-
};
|
|
146
|
-
export declare enum ISortEnum {
|
|
147
|
-
Asc = "ASC",
|
|
148
|
-
Desc = "DESC"
|
|
149
|
-
}
|
|
150
|
-
export type ISubscription = {
|
|
151
|
-
__typename?: 'Subscription';
|
|
152
|
-
dummy?: Maybe<Scalars['Int']['output']>;
|
|
153
|
-
};
|
|
154
|
-
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
155
|
-
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
156
|
-
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
157
|
-
};
|
|
158
|
-
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
159
|
-
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
160
|
-
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
161
|
-
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
162
|
-
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
163
|
-
subscribe: SubscriptionSubscribeFn<{
|
|
164
|
-
[key in TKey]: TResult;
|
|
165
|
-
}, TParent, TContext, TArgs>;
|
|
166
|
-
resolve?: SubscriptionResolveFn<TResult, {
|
|
167
|
-
[key in TKey]: TResult;
|
|
168
|
-
}, TContext, TArgs>;
|
|
169
|
-
}
|
|
170
|
-
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
171
|
-
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
172
|
-
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
173
|
-
}
|
|
174
|
-
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
175
|
-
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
176
|
-
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
177
|
-
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
178
|
-
export type NextResolverFn<T> = () => Promise<T>;
|
|
179
|
-
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
180
|
-
/** Mapping of interface types */
|
|
181
|
-
export type IResolversInterfaceTypes<_RefType extends Record<string, unknown>> = {
|
|
182
|
-
Node: never;
|
|
183
|
-
};
|
|
184
|
-
/** Mapping between all available schema types and the resolvers types */
|
|
185
|
-
export type IResolversTypes = {
|
|
186
|
-
AdminIdeSettings: ResolverTypeWrapper<IAdminIdeSettings>;
|
|
187
|
-
AnyObject: ResolverTypeWrapper<Scalars['AnyObject']['output']>;
|
|
188
|
-
BaseServiceCommands: IBaseServiceCommands;
|
|
189
|
-
Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>;
|
|
190
|
-
Date: ResolverTypeWrapper<Scalars['Date']['output']>;
|
|
191
|
-
DateTime: ResolverTypeWrapper<Scalars['DateTime']['output']>;
|
|
192
|
-
EmptyResponse: ResolverTypeWrapper<IEmptyResponse>;
|
|
193
|
-
FieldError: ResolverTypeWrapper<IFieldError>;
|
|
194
|
-
ID: ResolverTypeWrapper<Scalars['ID']['output']>;
|
|
195
|
-
Int: ResolverTypeWrapper<Scalars['Int']['output']>;
|
|
196
|
-
JSON: ResolverTypeWrapper<Scalars['JSON']['output']>;
|
|
197
|
-
JSONObject: ResolverTypeWrapper<Scalars['JSONObject']['output']>;
|
|
198
|
-
MoleculerServiceName: IMoleculerServiceName;
|
|
199
|
-
Mutation: ResolverTypeWrapper<{}>;
|
|
200
|
-
Node: ResolverTypeWrapper<IResolversInterfaceTypes<IResolversTypes>['Node']>;
|
|
201
|
-
Observable: ResolverTypeWrapper<Scalars['Observable']['output']>;
|
|
202
|
-
PageInfo: ResolverTypeWrapper<IPageInfo>;
|
|
203
|
-
Query: ResolverTypeWrapper<{}>;
|
|
204
|
-
Sort: ISort;
|
|
205
|
-
SortEnum: ISortEnum;
|
|
206
|
-
String: ResolverTypeWrapper<Scalars['String']['output']>;
|
|
207
|
-
Subscription: ResolverTypeWrapper<{}>;
|
|
208
|
-
Time: ResolverTypeWrapper<Scalars['Time']['output']>;
|
|
209
|
-
Timestamp: ResolverTypeWrapper<Scalars['Timestamp']['output']>;
|
|
210
|
-
URI: ResolverTypeWrapper<Scalars['URI']['output']>;
|
|
211
|
-
URIInput: ResolverTypeWrapper<Scalars['URIInput']['output']>;
|
|
212
|
-
};
|
|
213
|
-
/** Mapping between all available schema types and the resolvers parents */
|
|
214
|
-
export type IResolversParentTypes = {
|
|
215
|
-
AdminIdeSettings: IAdminIdeSettings;
|
|
216
|
-
AnyObject: Scalars['AnyObject']['output'];
|
|
217
|
-
Boolean: Scalars['Boolean']['output'];
|
|
218
|
-
Date: Scalars['Date']['output'];
|
|
219
|
-
DateTime: Scalars['DateTime']['output'];
|
|
220
|
-
EmptyResponse: IEmptyResponse;
|
|
221
|
-
FieldError: IFieldError;
|
|
222
|
-
ID: Scalars['ID']['output'];
|
|
223
|
-
Int: Scalars['Int']['output'];
|
|
224
|
-
JSON: Scalars['JSON']['output'];
|
|
225
|
-
JSONObject: Scalars['JSONObject']['output'];
|
|
226
|
-
Mutation: {};
|
|
227
|
-
Node: IResolversInterfaceTypes<IResolversParentTypes>['Node'];
|
|
228
|
-
Observable: Scalars['Observable']['output'];
|
|
229
|
-
PageInfo: IPageInfo;
|
|
230
|
-
Query: {};
|
|
231
|
-
Sort: ISort;
|
|
232
|
-
String: Scalars['String']['output'];
|
|
233
|
-
Subscription: {};
|
|
234
|
-
Time: Scalars['Time']['output'];
|
|
235
|
-
Timestamp: Scalars['Timestamp']['output'];
|
|
236
|
-
URI: Scalars['URI']['output'];
|
|
237
|
-
URIInput: Scalars['URIInput']['output'];
|
|
238
|
-
};
|
|
239
|
-
export type IAdminIdeSettingsResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminIdeSettings'] = IResolversParentTypes['AdminIdeSettings']> = {
|
|
240
|
-
dummy?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
241
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
242
|
-
};
|
|
243
|
-
export interface IAnyObjectScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['AnyObject'], any> {
|
|
244
|
-
name: 'AnyObject';
|
|
245
|
-
}
|
|
246
|
-
export interface IDateScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Date'], any> {
|
|
247
|
-
name: 'Date';
|
|
248
|
-
}
|
|
249
|
-
export interface IDateTimeScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['DateTime'], any> {
|
|
250
|
-
name: 'DateTime';
|
|
251
|
-
}
|
|
252
|
-
export type IEmptyResponseResolvers<ContextType = any, ParentType extends IResolversParentTypes['EmptyResponse'] = IResolversParentTypes['EmptyResponse']> = {
|
|
253
|
-
alwaysNil?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
254
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
255
|
-
};
|
|
256
|
-
export type IFieldErrorResolvers<ContextType = any, ParentType extends IResolversParentTypes['FieldError'] = IResolversParentTypes['FieldError']> = {
|
|
257
|
-
field?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
258
|
-
message?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
259
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
260
|
-
};
|
|
261
|
-
export interface IJsonScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSON'], any> {
|
|
262
|
-
name: 'JSON';
|
|
263
|
-
}
|
|
264
|
-
export interface IJsonObjectScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSONObject'], any> {
|
|
265
|
-
name: 'JSONObject';
|
|
266
|
-
}
|
|
267
|
-
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
268
|
-
dummy?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
269
|
-
};
|
|
270
|
-
export type INodeResolvers<ContextType = any, ParentType extends IResolversParentTypes['Node'] = IResolversParentTypes['Node']> = {
|
|
271
|
-
__resolveType: TypeResolveFn<null, ParentType, ContextType>;
|
|
272
|
-
id?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
273
|
-
};
|
|
274
|
-
export interface IObservableScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Observable'], any> {
|
|
275
|
-
name: 'Observable';
|
|
276
|
-
}
|
|
277
|
-
export type IPageInfoResolvers<ContextType = any, ParentType extends IResolversParentTypes['PageInfo'] = IResolversParentTypes['PageInfo']> = {
|
|
278
|
-
hasNextPage?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
279
|
-
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
280
|
-
};
|
|
281
|
-
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
282
|
-
node?: Resolver<Maybe<IResolversTypes['Node']>, ParentType, ContextType, RequireFields<IQueryNodeArgs, 'id'>>;
|
|
283
|
-
};
|
|
284
|
-
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
285
|
-
dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, 'dummy', ParentType, ContextType>;
|
|
286
|
-
};
|
|
287
|
-
export interface ITimeScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Time'], any> {
|
|
288
|
-
name: 'Time';
|
|
289
|
-
}
|
|
290
|
-
export interface ITimestampScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Timestamp'], any> {
|
|
291
|
-
name: 'Timestamp';
|
|
292
|
-
}
|
|
293
|
-
export interface IUriScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['URI'], any> {
|
|
294
|
-
name: 'URI';
|
|
295
|
-
}
|
|
296
|
-
export interface IUriInputScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['URIInput'], any> {
|
|
297
|
-
name: 'URIInput';
|
|
298
|
-
}
|
|
299
|
-
export type IResolvers<ContextType = any> = {
|
|
300
|
-
AdminIdeSettings?: IAdminIdeSettingsResolvers<ContextType>;
|
|
301
|
-
AnyObject?: GraphQLScalarType;
|
|
302
|
-
Date?: GraphQLScalarType;
|
|
303
|
-
DateTime?: GraphQLScalarType;
|
|
304
|
-
EmptyResponse?: IEmptyResponseResolvers<ContextType>;
|
|
305
|
-
FieldError?: IFieldErrorResolvers<ContextType>;
|
|
306
|
-
JSON?: GraphQLScalarType;
|
|
307
|
-
JSONObject?: GraphQLScalarType;
|
|
308
|
-
Mutation?: IMutationResolvers<ContextType>;
|
|
309
|
-
Node?: INodeResolvers<ContextType>;
|
|
310
|
-
Observable?: GraphQLScalarType;
|
|
311
|
-
PageInfo?: IPageInfoResolvers<ContextType>;
|
|
312
|
-
Query?: IQueryResolvers<ContextType>;
|
|
313
|
-
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
314
|
-
Time?: GraphQLScalarType;
|
|
315
|
-
Timestamp?: GraphQLScalarType;
|
|
316
|
-
URI?: GraphQLScalarType;
|
|
317
|
-
URIInput?: GraphQLScalarType;
|
|
318
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var IBaseServiceCommands;
|
|
2
|
-
(function (IBaseServiceCommands) {
|
|
3
|
-
IBaseServiceCommands["BulkCreate"] = "bulkCreate";
|
|
4
|
-
IBaseServiceCommands["Count"] = "count";
|
|
5
|
-
IBaseServiceCommands["Create"] = "create";
|
|
6
|
-
IBaseServiceCommands["Delete"] = "delete";
|
|
7
|
-
IBaseServiceCommands["DeleteMany"] = "deleteMany";
|
|
8
|
-
IBaseServiceCommands["Get"] = "get";
|
|
9
|
-
IBaseServiceCommands["GetAll"] = "getAll";
|
|
10
|
-
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount";
|
|
11
|
-
IBaseServiceCommands["GetByIds"] = "getByIds";
|
|
12
|
-
IBaseServiceCommands["GetByName"] = "getByName";
|
|
13
|
-
IBaseServiceCommands["Insert"] = "insert";
|
|
14
|
-
IBaseServiceCommands["Update"] = "update";
|
|
15
|
-
})(IBaseServiceCommands || (IBaseServiceCommands = {}));
|
|
16
|
-
/** All Moleculer Topic names are extended from this. */
|
|
17
|
-
var IMoleculerServiceName;
|
|
18
|
-
(function (IMoleculerServiceName) {
|
|
19
|
-
IMoleculerServiceName["Dummy"] = "dummy";
|
|
20
|
-
})(IMoleculerServiceName || (IMoleculerServiceName = {}));
|
|
21
|
-
var ISortEnum;
|
|
22
|
-
(function (ISortEnum) {
|
|
23
|
-
ISortEnum["Asc"] = "ASC";
|
|
24
|
-
ISortEnum["Desc"] = "DESC";
|
|
25
|
-
})(ISortEnum || (ISortEnum = {}));export{IBaseServiceCommands,IMoleculerServiceName,ISortEnum};//# sourceMappingURL=generated-models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-models.js","sources":["../../src/legacy-generated/generated-models.ts"],"sourcesContent":[null],"names":[],"mappings":"IAiCY,qBAaX;AAbD,CAAA,UAAY,oBAAoB,EAAA;AAC5B,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,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EAbW,oBAAoB,KAApB,oBAAoB,GAa/B,EAAA,CAAA,CAAA,CAAA;AAcD;IACY,sBAEX;AAFD,CAAA,UAAY,qBAAqB,EAAA;AAC7B,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OA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