tango-app-api-store-builder 1.0.0-beta-112 → 1.0.0-beta-113

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.
@@ -1,17 +0,0 @@
1
- import express from 'express';
2
- import { validate } from 'tango-app-api-middleware';
3
- import * as fixtureTemplateController from '../controllers/fixtureTemplate.controller.js';
4
- import * as validateDtos from '../dtos/validation.dtos.js';
5
-
6
-
7
- export const fixtureTemplateRouter = express.Router();
8
-
9
- fixtureTemplateRouter
10
- .post( '/createTemplate', validate( validateDtos.createTemplate ), fixtureTemplateController.createTemplate )
11
- .post( '/updateTemplate/:templateId', fixtureTemplateController.updateTemplate )
12
- .post( '/deleteTemplate', validate( validateDtos.templateId ), fixtureTemplateController.deleteTemplate )
13
- .post( '/duplicateTemplate', validate( validateDtos.templateId ), fixtureTemplateController.duplicateTemplate )
14
- .post( '/getTemplateList', validate( validateDtos.fixtureVMListSchema ), fixtureTemplateController.getTemplateList )
15
- .get( '/getTemplateDetails', validate( validateDtos.queryTemplateId ), fixtureTemplateController.getTemplateDetails )
16
- .post( '/updateFixtureTask', validate( validateDtos.updateFixtureTask ), fixtureTemplateController.updateFixtureTask );
17
-
@@ -1,16 +0,0 @@
1
- import express from 'express';
2
- import * as managePlanoController from '../controllers/managePlano.controller.js';
3
-
4
- import { isAllowedSessionHandler } from 'tango-app-api-middleware';
5
-
6
- export const managePlanoRouter = express.Router();
7
-
8
- managePlanoRouter
9
- .post( '/updateStorePlano', managePlanoController.updateStorePlano )
10
- .post( '/getplanoFeedback', managePlanoController.getplanoFeedback )
11
- .post( '/getStoreFixturesfeedback', managePlanoController.getStoreFixturesfeedback )
12
- .get( '/fixtureList', managePlanoController.fixtureList )
13
- .get( '/templateList', managePlanoController.templateList )
14
- .get( '/fixtureBrandsList', managePlanoController.fixtureBrandsList )
15
- .get( '/fixtureVMList', managePlanoController.fixtureVMList )
16
- .post( '/updateFixtureStatus', isAllowedSessionHandler, managePlanoController.updateFixtureStatus );
@@ -1,40 +0,0 @@
1
- import express from 'express';
2
- import { isAllowedSessionHandler, validate } from 'tango-app-api-middleware';
3
- import * as planoLibraryController from '../controllers/planoLibrary.controller.js';
4
- import * as validateDtos from '../dtos/validation.dtos.js';
5
-
6
-
7
- export const planoLibraryRouter = express.Router();
8
-
9
- planoLibraryRouter
10
- .post( '/fixtureBulkUpload', isAllowedSessionHandler, validate( validateDtos.fixtureBulkUpload ), planoLibraryController.fixtureBulkUpload )
11
- .post( '/createFixture', isAllowedSessionHandler, validate( validateDtos.createFixture ), planoLibraryController.createFixture )
12
- .post( '/updateFixture/:fixtureId', isAllowedSessionHandler, validate( validateDtos.updateFixture ), planoLibraryController.updateFixture )
13
- .get( '/fixtureDetails', isAllowedSessionHandler, validate( validateDtos.fixtureId ), planoLibraryController.getFixture )
14
- .post( '/fixtureList', isAllowedSessionHandler, validate( validateDtos.fixtureVMListSchema ), planoLibraryController.FixtureLibraryList )
15
- .post( '/duplicateFixture', isAllowedSessionHandler, validate( validateDtos.bodyFixtureId ), planoLibraryController.duplicateFixture )
16
- .post( '/deleteFixture', isAllowedSessionHandler, validate( validateDtos.bodyFixtureId ), planoLibraryController.deleteFixture )
17
- .get( '/fixtureSizeList', isAllowedSessionHandler, validate( validateDtos.getClient ), planoLibraryController.getFixLibWidth );
18
-
19
- planoLibraryRouter
20
- .post( '/addVmType', isAllowedSessionHandler, validate( validateDtos.addVmType ), planoLibraryController.addVmType )
21
- .post( '/uploadVmtypeImage/:vmId', isAllowedSessionHandler, planoLibraryController.uploadVmImage )
22
- .post( '/deleteVmType', isAllowedSessionHandler, planoLibraryController.deleteVmType )
23
- .get( '/getVmTypeList', isAllowedSessionHandler, validate( validateDtos.getClient ), planoLibraryController.getVmTypeList )
24
- .post( '/deleteVmTypeImage', isAllowedSessionHandler, validate( validateDtos.deleteVMTypeImage ), planoLibraryController.deletevmTypeImage );
25
-
26
- planoLibraryRouter
27
- .post( '/getBrandList', isAllowedSessionHandler, validate( validateDtos.brandDetails ), planoLibraryController.getBrandList )
28
- .post( '/addUpdateBrand', isAllowedSessionHandler, validate( validateDtos.addUpdateBrand ), planoLibraryController.addUpdateBrandList )
29
- .post( '/uploadBrandList', isAllowedSessionHandler, validate( validateDtos.uploadBrandList ), planoLibraryController.uploadBrandList )
30
- .post( '/updateTaskconfig', isAllowedSessionHandler, validate( validateDtos.updateTaskConfig ), planoLibraryController.updateTaskConfig )
31
- .get( '/getTaskConfig', isAllowedSessionHandler, validate( validateDtos.getClient ), planoLibraryController.getTaskConfig );
32
-
33
- planoLibraryRouter
34
- .post( '/addUpdateVm', isAllowedSessionHandler, validate( validateDtos.addUpdateVm ), planoLibraryController.addUpdateVm )
35
- .post( '/getVmLibList', isAllowedSessionHandler, validate( validateDtos.fixtureVMListSchema ), planoLibraryController.getVmLibList )
36
- .post( '/duplicateVmLib', isAllowedSessionHandler, validate( validateDtos.deleteVmLib ), planoLibraryController.duplicateVmLib )
37
- .post( '/deleteVmLib', isAllowedSessionHandler, validate( validateDtos.deleteVmLib ), planoLibraryController.deleteVmLibrary )
38
- .get( '/getVmDetails', isAllowedSessionHandler, validate( validateDtos.getVmDetails ), planoLibraryController.getVmDetails )
39
- .post( '/vmBulkUpload', isAllowedSessionHandler, validate( validateDtos.vmBulkUpload ), planoLibraryController.vmBulkUpload );
40
-
@@ -1,37 +0,0 @@
1
- import model from 'tango-api-schema';
2
-
3
- export const findOne = async ( query={}, field={} ) => {
4
- return await model.fixtureLibraryModel.findOne( query, field );
5
- };
6
-
7
- export const findAndSort = async ( query={}, field={}, sort={} ) => {
8
- return await model.fixtureLibraryModel.find( query, field ).sort( sort ).collation( { locale: 'en_US', numericOrdering: true } );
9
- };
10
-
11
- export const find = async ( query={}, field={} ) => {
12
- return await model.fixtureLibraryModel.find( query, field );
13
- };
14
-
15
- export const updateOne = async ( query={}, record={} ) => {
16
- return await model.fixtureLibraryModel.updateOne( query, { $set: record } );
17
- };
18
-
19
- export const deleteOne = async ( query={} ) => {
20
- return await model.fixtureLibraryModel.deleteOne( query );
21
- };
22
-
23
- export const insertMany = async ( data = [] ) => {
24
- return await model.fixtureLibraryModel.insertMany( data );
25
- };
26
-
27
- export const deleteMany = async ( data = [] ) => {
28
- return await model.fixtureLibraryModel.deleteMany( data );
29
- };
30
-
31
- export const create = async ( data = {} ) => {
32
- return await model.fixtureLibraryModel.create( data );
33
- };
34
-
35
- export const aggregate = async ( query=[] ) => {
36
- return await model.fixtureLibraryModel.aggregate( query );
37
- };
@@ -1,49 +0,0 @@
1
- import model from 'tango-api-schema';
2
-
3
- export async function find( query={}, field={} ) {
4
- return model.planoVmModel.find( query, field );
5
- }
6
-
7
- export async function findOne( query={}, field={} ) {
8
- return model.planoVmModel.findOne( query, field );
9
- }
10
- export async function findAndSort( query={}, field={}, sort={} ) {
11
- return model.planoVmModel.find( query, field ).sort( sort ).collation( { locale: 'en_US', numericOrdering: true } );
12
- }
13
-
14
- export async function insertMany( data ) {
15
- return model.planoVmModel.insertMany( data );
16
- }
17
-
18
- export async function deleteMany( data ) {
19
- return model.planoVmModel.deleteMany( data );
20
- }
21
-
22
-
23
- export async function aggregate( query ) {
24
- return model.planoVmModel.aggregate( query );
25
- }
26
-
27
-
28
- export async function deleteOne( query ) {
29
- return model.planoVmModel.deleteOne( query );
30
- }
31
-
32
- export async function create( data ) {
33
- return model.planoVmModel.create( data );
34
- }
35
-
36
- export async function upsertOne( query, record ) {
37
- return model.planoVmModel.findOneAndUpdate(
38
- query,
39
- record,
40
- { upsert: true, new: true },
41
- );
42
- }
43
- export async function updateOne( query, record ) {
44
- return model.planoVmModel.updateOne( query, { $set: record }, { upsert: true } );
45
- }
46
-
47
- export async function count( query ) {
48
- return model.planoVmModel.countDocuments( query );
49
- }
@@ -1,39 +0,0 @@
1
- import model from 'tango-api-schema';
2
-
3
- export const findOne = async ( query={}, field={} ) => {
4
- return await model.planoProductCategoryModel.findOne( query, field );
5
- };
6
-
7
- export const findAndSort = async ( query={}, field={}, sort={} ) => {
8
- return await model.planoProductCategoryModel.find( query, field ).sort( sort ).collation( { locale: 'en_US', numericOrdering: true } );
9
- };
10
-
11
- export const find = async ( query={}, field={} ) => {
12
- return await model.planoProductCategoryModel.find( query, field );
13
- };
14
-
15
- export const updateOne = async ( query={}, record={} ) => {
16
- return await model.planoProductCategoryModel.updateOne( query, { $set: record }, { upsert: true } );
17
- };
18
-
19
- export const deleteOne = async ( query={} ) => {
20
- return await model.planoProductCategoryModel.deleteOne( query );
21
- };
22
-
23
- export const insertMany = async ( data = [] ) => {
24
- return await model.planoProductCategoryModel.insertMany( data );
25
- };
26
-
27
- export const deleteMany = async ( data = [] ) => {
28
- return await model.planoProductCategoryModel.deleteMany( data );
29
- };
30
-
31
- export const create = async ( data = {} ) => {
32
- return await model.planoProductCategoryModel.create( data );
33
- };
34
-
35
- export const aggregate = async ( query=[] ) => {
36
- return await model.planoProductCategoryModel.aggregate( query );
37
- };
38
-
39
-
@@ -1,33 +0,0 @@
1
- import model from 'tango-api-schema';
2
-
3
- export const findOne = async ( query ={}, field = {} ) => {
4
- return model.vmTypeModel.findOne( query, field );
5
- };
6
-
7
- export const deleteOne = async ( query ={} ) => {
8
- return model.vmTypeModel.deleteOne( query );
9
- };
10
-
11
- export const deleteMany = async ( query ={} ) => {
12
- return model.vmTypeModel.deleteMany( query );
13
- };
14
-
15
- export const create = async ( data ) => {
16
- return model.vmTypeModel.create( data );
17
- };
18
-
19
- export const find = async ( query ={}, field = {} ) => {
20
- return model.vmTypeModel.find( query, field );
21
- };
22
-
23
- export const updateOne = async ( query ={}, record = {} ) => {
24
- return model.vmTypeModel.updateOne( query, { $set: record } );
25
- };
26
-
27
- export const updateKeys = async ( query ={}, record = {} ) => {
28
- return model.vmTypeModel.updateOne( query, record );
29
- };
30
-
31
- export const insertMany = async ( data ) => {
32
- return model.vmTypeModel.insertMany( data );
33
- };