tango-app-api-analysis-zone 3.0.0-alpha.32 → 3.0.0-alpha.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-analysis-zone",
3
- "version": "3.0.0-alpha.32",
3
+ "version": "3.0.0-alpha.33",
4
4
  "description": "zone Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,4 +1,5 @@
1
1
  import { logger, download } from 'tango-app-api-middleware';
2
+ import { findOneUserAssignedStore } from '../services/userAssignedStore.service.js';
2
3
 
3
4
  // Lamda Service Call //
4
5
  async function LamdaServiceCall( url, data ) {
@@ -1,4 +1,5 @@
1
1
  import { logger, download } from 'tango-app-api-middleware';
2
+ import { findOneUserAssignedStore } from '../services/userAssignedStore.service.js';
2
3
 
3
4
  // Lamda Service Call //
4
5
  async function LamdaServiceCall( url, data ) {
@@ -1,4 +1,5 @@
1
1
  import { logger } from 'tango-app-api-middleware';
2
+ import { findOneUserAssignedStore } from '../services/userAssignedStore.service.js';
2
3
 
3
4
  // Lamda Service Call //
4
5
  async function LamdaServiceCall( url, data ) {
@@ -0,0 +1,9 @@
1
+ import userAssignedStoreModel from 'tango-api-schema/schema/userAssignedStore.model.js';
2
+
3
+ export async function aggregateUserAssignedStore( query ) {
4
+ return await userAssignedStoreModel.aggregate( query );
5
+ };
6
+
7
+ export async function findOneUserAssignedStore( query, record ) {
8
+ return await userAssignedStoreModel.findOne( query, record );
9
+ };