|  |  |  | @ -41,7 +41,7 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |                        }, | 
			
		
	
		
			
				
					|  |  |  |  |                   }, | 
			
		
	
		
			
				
					|  |  |  |  |                }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 | 
			
		
	
		
			
				
					|  |  |  |  |                price: { | 
			
		
	
		
			
				
					|  |  |  |  |                 type: "array", | 
			
		
	
		
			
				
					|  |  |  |  |                  maxItems: 2500, | 
			
		
	
	
		
			
				
					|  |  |  | @ -49,13 +49,11 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |                      type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |                      properties: { | 
			
		
	
		
			
				
					|  |  |  |  |                       price: { type: "string", default: null }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                      }, | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |              }, | 
			
		
	
		
			
				
					|  |  |  |  |                 capacity: { type: "string"}, | 
			
		
	
		
			
				
					|  |  |  |  |                 | 
			
		
	
		
			
				
					|  |  |  |  |                 status: {type: "string"} | 
			
		
	
		
			
				
					|  |  |  |  |               | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -545,106 +543,17 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |           ], | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         // preHandler: [
 | 
			
		
	
		
			
				
					|  |  |  |  |         //   fastify.auth([fastify.operatorAuthenticate]),
 | 
			
		
	
		
			
				
					|  |  |  |  |         //   validationHandler.validatePhoneFormat,
 | 
			
		
	
		
			
				
					|  |  |  |  |         // ],
 | 
			
		
	
		
			
				
					|  |  |  |  |         preHandler: fastify.auth([fastify.authenticate]), | 
			
		
	
		
			
				
					|  |  |  |  |         handler: tankersController.updatePipelineInfo, | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       fastify.get("/api/getTanks/status", { | 
			
		
	
		
			
				
					|  |  |  |  |         schema: { | 
			
		
	
		
			
				
					|  |  |  |  |           tags: ["Supplier"], | 
			
		
	
		
			
				
					|  |  |  |  |           description: "This is for Get Tank Data for status connected", | 
			
		
	
		
			
				
					|  |  |  |  |           summary: "This is for to Get Tank Data for status connected ", | 
			
		
	
		
			
				
					|  |  |  |  |           querystring: { | 
			
		
	
		
			
				
					|  |  |  |  |             status: {type: 'string'} | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |           security: [ | 
			
		
	
		
			
				
					|  |  |  |  |             { | 
			
		
	
		
			
				
					|  |  |  |  |               basicAuth: [], | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |           ], | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         preHandler: fastify.auth([fastify.authenticate]), | 
			
		
	
		
			
				
					|  |  |  |  |         handler: tankersController.status, | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |       method: "POST", | 
			
		
	
		
			
				
					|  |  |  |  |       url: "/api/addTankers5/:supplierId", | 
			
		
	
		
			
				
					|  |  |  |  |       schema: { | 
			
		
	
		
			
				
					|  |  |  |  |         tags: ["Supplier"], | 
			
		
	
		
			
				
					|  |  |  |  |         description: "This is to cretae New Tanker", | 
			
		
	
		
			
				
					|  |  |  |  |         summary: "This is to Create New Tanker.", | 
			
		
	
		
			
				
					|  |  |  |  |         params: { | 
			
		
	
		
			
				
					|  |  |  |  |           required: ["supplierId"], | 
			
		
	
		
			
				
					|  |  |  |  |           type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |           properties: { | 
			
		
	
		
			
				
					|  |  |  |  |             supplierId: { | 
			
		
	
		
			
				
					|  |  |  |  |               type: "string", | 
			
		
	
		
			
				
					|  |  |  |  |               description: "supplierId", | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         body: { | 
			
		
	
		
			
				
					|  |  |  |  |           type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |           properties: { | 
			
		
	
		
			
				
					|  |  |  |  |               supplier_name: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |               supplier_address:{ type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |               tankerName: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |               phoneNumber: { type: "string"}, | 
			
		
	
		
			
				
					|  |  |  |  |               alternative_phoneNumber: { type: "string"}, | 
			
		
	
		
			
				
					|  |  |  |  |               typeofwater: { | 
			
		
	
		
			
				
					|  |  |  |  |                 type: "array", | 
			
		
	
		
			
				
					|  |  |  |  |                  maxItems: 2500, | 
			
		
	
		
			
				
					|  |  |  |  |                  items: { | 
			
		
	
		
			
				
					|  |  |  |  |                      type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |                      properties: { | 
			
		
	
		
			
				
					|  |  |  |  |                       typeofwater: { type: "string", default: null }, | 
			
		
	
		
			
				
					|  |  |  |  |                      }, | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |              }, | 
			
		
	
		
			
				
					|  |  |  |  |               | 
			
		
	
		
			
				
					|  |  |  |  |              price: { | 
			
		
	
		
			
				
					|  |  |  |  |               type: "array", | 
			
		
	
		
			
				
					|  |  |  |  |                maxItems: 2500, | 
			
		
	
		
			
				
					|  |  |  |  |                items: { | 
			
		
	
		
			
				
					|  |  |  |  |                    type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |                    properties: { | 
			
		
	
		
			
				
					|  |  |  |  |                     price: { type: "string", default: null }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                    }, | 
			
		
	
		
			
				
					|  |  |  |  |               }, | 
			
		
	
		
			
				
					|  |  |  |  |            }, | 
			
		
	
		
			
				
					|  |  |  |  |               capacity: { type: "string"}, | 
			
		
	
		
			
				
					|  |  |  |  |               | 
			
		
	
		
			
				
					|  |  |  |  |               status: {type: "string"} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         security: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
		
			
				
					|  |  |  |  |             basicAuth: [], | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |  |    | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |      preHandler: fastify.auth([fastify.authenticate]), | 
			
		
	
		
			
				
					|  |  |  |  |       handler: tankersController.addTankers1, | 
			
		
	
		
			
				
					|  |  |  |  |       // onResponse: (request, reply) => {
 | 
			
		
	
		
			
				
					|  |  |  |  |       //   validationHandler.sendPhoneVerificationCode(request, reply);
 | 
			
		
	
		
			
				
					|  |  |  |  |       // },
 | 
			
		
	
		
			
				
					|  |  |  |  |       //onResponse: validationHandler.sendPhoneVerificationCode,
 | 
			
		
	
		
			
				
					|  |  |  |  |     }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |        | 
			
		
	
		
			
				
					|  |  |  |  |     next(); | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |