@common-stack/store-mongo
Advanced tools
Comparing version 0.3.1-alpha.2 to 0.3.1-alpha.3
@@ -214,17 +214,17 @@ /******/ (() => { // webpackBootstrap | ||
(function (IBaseServiceCommands) { | ||
IBaseServiceCommands["count"] = "count"; | ||
IBaseServiceCommands["get"] = "get"; | ||
IBaseServiceCommands["getAll"] = "getAll"; | ||
IBaseServiceCommands["getByIds"] = "getByIds"; | ||
IBaseServiceCommands["create"] = "create"; | ||
IBaseServiceCommands["insert"] = "insert"; | ||
IBaseServiceCommands["bulkCreate"] = "bulkCreate"; | ||
IBaseServiceCommands["update"] = "update"; | ||
IBaseServiceCommands["delete"] = "delete"; | ||
IBaseServiceCommands["getAllWithCount"] = "getAllWithCount"; | ||
IBaseServiceCommands["Count"] = "count"; | ||
IBaseServiceCommands["Get"] = "get"; | ||
IBaseServiceCommands["GetAll"] = "getAll"; | ||
IBaseServiceCommands["GetByIds"] = "getByIds"; | ||
IBaseServiceCommands["Create"] = "create"; | ||
IBaseServiceCommands["Insert"] = "insert"; | ||
IBaseServiceCommands["BulkCreate"] = "bulkCreate"; | ||
IBaseServiceCommands["Update"] = "update"; | ||
IBaseServiceCommands["Delete"] = "delete"; | ||
IBaseServiceCommands["GetAllWithCount"] = "getAllWithCount"; | ||
})(IBaseServiceCommands = exports.IBaseServiceCommands || (exports.IBaseServiceCommands = {})); | ||
var ICacheControlScope; | ||
(function (ICacheControlScope) { | ||
ICacheControlScope["PUBLIC"] = "PUBLIC"; | ||
ICacheControlScope["PRIVATE"] = "PRIVATE"; | ||
ICacheControlScope["Public"] = "PUBLIC"; | ||
ICacheControlScope["Private"] = "PRIVATE"; | ||
})(ICacheControlScope = exports.ICacheControlScope || (exports.ICacheControlScope = {})); | ||
@@ -234,8 +234,8 @@ /** All Moleculer Topic names are extended from this. */ | ||
(function (IMoleculerServiceName) { | ||
IMoleculerServiceName["dummy"] = "dummy"; | ||
IMoleculerServiceName["Dummy"] = "dummy"; | ||
})(IMoleculerServiceName = exports.IMoleculerServiceName || (exports.IMoleculerServiceName = {})); | ||
var ISortEnum; | ||
(function (ISortEnum) { | ||
ISortEnum["ASC"] = "ASC"; | ||
ISortEnum["DESC"] = "DESC"; | ||
ISortEnum["Asc"] = "ASC"; | ||
ISortEnum["Desc"] = "DESC"; | ||
})(ISortEnum = exports.ISortEnum || (exports.ISortEnum = {})); | ||
@@ -315,3 +315,3 @@ | ||
actions: { | ||
[interfaces_1.IBaseServiceCommands.get]: { | ||
[interfaces_1.IBaseServiceCommands.Get]: { | ||
params: { | ||
@@ -322,3 +322,3 @@ id: 'string', | ||
}, | ||
[interfaces_1.IBaseServiceCommands.count]: { | ||
[interfaces_1.IBaseServiceCommands.Count]: { | ||
params: { | ||
@@ -329,3 +329,3 @@ criteria: { type: 'object', optional: true }, | ||
}, | ||
[interfaces_1.IBaseServiceCommands.bulkCreate]: { | ||
[interfaces_1.IBaseServiceCommands.BulkCreate]: { | ||
params: { | ||
@@ -336,3 +336,3 @@ data: { type: 'array', items: 'object' }, | ||
}, | ||
[interfaces_1.IBaseServiceCommands.create]: { | ||
[interfaces_1.IBaseServiceCommands.Create]: { | ||
params: { | ||
@@ -343,3 +343,3 @@ data: 'object', | ||
}, | ||
[interfaces_1.IBaseServiceCommands.delete]: { | ||
[interfaces_1.IBaseServiceCommands.Delete]: { | ||
params: { | ||
@@ -350,3 +350,3 @@ id: 'string', | ||
}, | ||
[interfaces_1.IBaseServiceCommands.getAll]: { | ||
[interfaces_1.IBaseServiceCommands.GetAll]: { | ||
params: { | ||
@@ -361,3 +361,3 @@ criteria: 'object|optional', | ||
}, | ||
[interfaces_1.IBaseServiceCommands.getAllWithCount]: { | ||
[interfaces_1.IBaseServiceCommands.GetAllWithCount]: { | ||
params: { | ||
@@ -372,3 +372,3 @@ criteria: 'object|optional', | ||
}, | ||
[interfaces_1.IBaseServiceCommands.insert]: { | ||
[interfaces_1.IBaseServiceCommands.Insert]: { | ||
params: { | ||
@@ -380,3 +380,3 @@ data: 'object', | ||
}, | ||
[interfaces_1.IBaseServiceCommands.update]: { | ||
[interfaces_1.IBaseServiceCommands.Update]: { | ||
params: { | ||
@@ -438,30 +438,30 @@ id: 'string', | ||
bulkCreate(data) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.bulkCreate, { data }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.BulkCreate, { data }); | ||
} | ||
count(criteria) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.count, { criteria }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.Count, { criteria }); | ||
} | ||
create(data) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.create, { data }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.Create, { data }); | ||
} | ||
delete(id) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.delete, { id }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.Delete, { id }); | ||
} | ||
get(id) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.get, { id }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.Get, { id }); | ||
} | ||
getAll(options) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.getAll, options); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.GetAll, options); | ||
} | ||
getByIds(ids) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.getByIds, { ids }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.GetByIds, { ids }); | ||
} | ||
getAllWithCount(options) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.getAllWithCount, options); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.GetAllWithCount, options); | ||
} | ||
insert(data, overwrite) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.insert, { data, overwrite }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.Insert, { data, overwrite }); | ||
} | ||
update(id, data, overwrite) { | ||
return this.callAction(interfaces_1.IBaseServiceCommands.update, { id, data, overwrite }); | ||
return this.callAction(interfaces_1.IBaseServiceCommands.Update, { id, data, overwrite }); | ||
} | ||
@@ -468,0 +468,0 @@ async callAction(command, params) { |
@@ -35,16 +35,16 @@ export declare type Maybe<T> = T | null; | ||
export declare enum IBaseServiceCommands { | ||
count = "count", | ||
get = "get", | ||
getAll = "getAll", | ||
getByIds = "getByIds", | ||
create = "create", | ||
insert = "insert", | ||
bulkCreate = "bulkCreate", | ||
update = "update", | ||
delete = "delete", | ||
getAllWithCount = "getAllWithCount" | ||
Count = "count", | ||
Get = "get", | ||
GetAll = "getAll", | ||
GetByIds = "getByIds", | ||
Create = "create", | ||
Insert = "insert", | ||
BulkCreate = "bulkCreate", | ||
Update = "update", | ||
Delete = "delete", | ||
GetAllWithCount = "getAllWithCount" | ||
} | ||
export declare enum ICacheControlScope { | ||
PUBLIC = "PUBLIC", | ||
PRIVATE = "PRIVATE" | ||
Public = "PUBLIC", | ||
Private = "PRIVATE" | ||
} | ||
@@ -63,3 +63,3 @@ /** Represents a null return value. */ | ||
export declare enum IMoleculerServiceName { | ||
dummy = "dummy" | ||
Dummy = "dummy" | ||
} | ||
@@ -84,3 +84,3 @@ export declare type IMutation = { | ||
}; | ||
export declare type IQuerynodeArgs = { | ||
export declare type IQueryNodeArgs = { | ||
id: Scalars['ID']; | ||
@@ -93,4 +93,4 @@ }; | ||
export declare enum ISortEnum { | ||
ASC = "ASC", | ||
DESC = "DESC" | ||
Asc = "ASC", | ||
Desc = "DESC" | ||
} | ||
@@ -97,0 +97,0 @@ export declare type ISubscription = { |
{ | ||
"name": "@common-stack/store-mongo", | ||
"version": "0.3.1-alpha.2", | ||
"version": "0.3.1-alpha.3", | ||
"description": "Sample core for higher packages to depend on", | ||
@@ -34,3 +34,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "93ab0883e0c9b1e570211103263d7d3eeaf1ceb0" | ||
"gitHead": "10990baa463e44ea7100d96fc66eb4aac2e1d02c" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package