|
|
@ -125,6 +125,8 @@ fastify.post('/api/stores', {
|
|
|
|
contactNumber: { type: "string", default: null },
|
|
|
|
contactNumber: { type: "string", default: null },
|
|
|
|
alternativeContactNumber: { type: "string", default: null },
|
|
|
|
alternativeContactNumber: { type: "string", default: null },
|
|
|
|
store_address: { type: "string", default: null },
|
|
|
|
store_address: { type: "string", default: null },
|
|
|
|
|
|
|
|
address1: { type: 'string', default: null },
|
|
|
|
|
|
|
|
address2: { type: 'string', default: null },
|
|
|
|
city: { type: "string", default: null },
|
|
|
|
city: { type: "string", default: null },
|
|
|
|
state: { type: "string", default: null },
|
|
|
|
state: { type: "string", default: null },
|
|
|
|
country: { type: "string", default: null },
|
|
|
|
country: { type: "string", default: null },
|
|
|
@ -170,6 +172,8 @@ fastify.post('/api/salesSignUp', {
|
|
|
|
state: { type: 'string', default: null },
|
|
|
|
state: { type: 'string', default: null },
|
|
|
|
zip: { type: 'string', default: null },
|
|
|
|
zip: { type: 'string', default: null },
|
|
|
|
country: { type: 'string', default: null },
|
|
|
|
country: { type: 'string', default: null },
|
|
|
|
|
|
|
|
address1: { type: 'string', default: null },
|
|
|
|
|
|
|
|
address2: { type: 'string', default: null },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: ["firstName", "lastName"]
|
|
|
|
required: ["firstName", "lastName"]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -296,6 +300,8 @@ fastify.put('/api/editSalesUser/:salesId', {
|
|
|
|
state: { type: 'string', default: null },
|
|
|
|
state: { type: 'string', default: null },
|
|
|
|
zip: { type: 'string', default: null },
|
|
|
|
zip: { type: 'string', default: null },
|
|
|
|
country: { type: 'string', default: null },
|
|
|
|
country: { type: 'string', default: null },
|
|
|
|
|
|
|
|
address1: { type: 'string', default: null },
|
|
|
|
|
|
|
|
address2: { type: 'string', default: null },
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -343,6 +349,8 @@ fastify.put('/api/editStore/:storeId', {
|
|
|
|
state: { type: "string" },
|
|
|
|
state: { type: "string" },
|
|
|
|
country: { type: "string" },
|
|
|
|
country: { type: "string" },
|
|
|
|
zip: { type: "string" },
|
|
|
|
zip: { type: "string" },
|
|
|
|
|
|
|
|
address1: { type: 'string', default: null },
|
|
|
|
|
|
|
|
address2: { type: 'string', default: null },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
alternativeNumber: { type: "string" },
|
|
|
|
alternativeNumber: { type: "string" },
|
|
|
|