Skip to content

Latest commit

 

History

History
2057 lines (2057 loc) · 79.1 KB

File metadata and controls

2057 lines (2057 loc) · 79.1 KB

{ "openapi": "3.0.3", "info": { "title": "Lottery", "description": "This documentation has been automatically generated by Treblle. Visit https://treblle.com/ and get started for FREE.", "version": "1.0.0" }, "servers": [{ "url": "https://gwtechsoft.com/api" }], "paths": { "/.ipify.org": { "get": { "operationId": "e64f7ad8-02a4-432c-8b4e-095b476152d3", "tags": [".ipify.org"], "parameters": [ { "name": "format", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /.ipify.org", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "//": { "get": { "operationId": "5a666b8a-814d-4d76-b90f-517f8ca12efc", "parameters": [ { "name": "XDEBUG_SESSION_START", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET //", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/admin/getwiningnumber": { "post": { "operationId": "b55d072f-e453-43f3-a248-57cf964b2a48", "tags": ["admin"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "lotteryCategoryName": { "type": "string" }, "fromDate": { "type": "string" }, "toDate": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /admin/getwiningnumber", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "/auth/signin": { "post": { "operationId": "ff9d75d1-e301-457b-a80b-4401e488b32b", "tags": ["auth"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "userName": { "type": "string" }, "password": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /auth/signin", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "user": { "type": "object", "properties": { "$__": { "type": "object", "properties": { "strictMode": { "type": "string" }, "selected": { "type": "array", "items": { "type": "string" } }, "getters": { "type": "array", "items": { "type": "string" } }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "wasPopulated": { "type": "string" }, "activePaths": { "type": "object", "properties": { "paths": { "type": "object", "properties": { "role": { "type": "string" }, "password": { "type": "string" }, "userName": { "type": "string" }, "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "states": { "type": "object", "properties": { "ignore": { "type": "array", "items": { "type": "string" } }, "default": { "type": "array", "items": { "type": "string" } }, "init": { "type": "object", "properties": { "_id": { "type": "string" }, "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "modify": { "type": "array", "items": { "type": "string" } }, "require": { "type": "array", "items": { "type": "string" } } } }, "stateNames": { "type": "array", "items": { "type": "string" } } } }, "pathsToScopes": { "type": "array", "items": { "type": "string" } }, "cachedRequired": { "type": "array", "items": { "type": "string" } }, "session": { "type": "array", "items": { "type": "string" } }, "$setCalled": { "type": "array", "items": { "type": "string" } }, "emitter": { "type": "object", "properties": { "_events": { "type": "array", "items": { "type": "string" } }, "_eventsCount": { "type": "string" }, "_maxListeners": { "type": "string" } } }, "$options": { "type": "object", "properties": { "skipId": { "type": "string" }, "isNew": { "type": "string" }, "willInit": { "type": "string" }, "defaults": { "type": "string" } } } } }, "isNew": { "type": "string" }, "$locals": { "type": "array", "items": { "type": "string" } }, "$op": { "type": "array", "items": { "type": "string" } }, "_doc": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "createdAt": { "type": "array", "items": { "type": "string" } }, "updatedAt": { "type": "array", "items": { "type": "string" } }, "__v": { "type": "string" } } }, "$init": { "type": "string" } } }, "token": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "/invalid-url": { "get": { "operationId": "2231adf8-35fd-49d3-b87b-721a2adb3738", "parameters": [ { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "toDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "gameCategory", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "gameNumber", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /invalid-url", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "object", "properties": { "64b147dd131b8071fccf6f35": { "type": "object", "properties": { "sum": { "type": "string" }, "name": { "type": "string" }, "company": { "type": "string" }, "ticketCount": { "type": "string" } } } } }, "limitInfo": { "type": "string" }, "0": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "seller": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "string" }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "1": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "seller": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "string" }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "2": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "seller": { "type": "array", "items": { "type": "string" } }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "3": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "seller": { "type": "array", "items": { "type": "string" } }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "4": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" }, "seller": { "type": "array", "items": { "type": "string" } } } }, "5": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" }, "seller": { "type": "array", "items": { "type": "string" } } } }, "6": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "7": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "v": { "type": "string" } } } } } } } } } } }, "/sbuadmin/getselldetails": { "get": { "operationId": "8dc8c085-0e5e-48b4-896d-ec4295a3fae9", "tags": ["sbuadmin"], "parameters": [ { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /sbuadmin/getselldetails", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "array", "items": { "type": "string" } } } } } } } } } }, "/sbuadmin/getselldetailsallloterycategory": { "get": { "operationId": "a03c5ecd-b4cb-47f7-81e3-cfa241d7291c", "tags": ["sbuadmin"], "parameters": [ { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /sbuadmin/getselldetailsallloterycategory", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "object", "properties": { "GEORGIA MIDI": { "type": "object", "properties": { "name": { "type": "string" }, "sum": { "type": "string" }, "paid": { "type": "string" } } } } } } } } } } } } }, "/sbuadmin/getselldetailsbygamecategory": { "get": { "operationId": "d95fafe3-3f27-427f-a8cf-71bfae23235e", "tags": ["sbuadmin"], "parameters": [ { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /sbuadmin/getselldetailsbygamecategory", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "array", "items": { "type": "string" } } } } } } } } } }, "/seller/getwiningnumber": { "post": { "operationId": "5efefcc1-231f-4124-a0c0-3b3f0afaa006", "tags": ["seller"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "fromDate": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "toDate": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /seller/getwiningnumber", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "array", "items": { "type": "string" } }, "lotteryName": { "type": "string" }, "numbers": { "type": "object", "properties": { "second": { "type": "string" }, "third": { "type": "string" }, "l3c": { "type": "string" } } } } } }, "message": { "type": "string" } } } } } } } } }, "/seller/lotterytimecheck": { "get": { "operationId": "3a8cc567-5450-4083-a768-031c19624e20", "tags": ["seller"], "parameters": [ { "name": "lotId", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /seller/lotterytimecheck", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "string" }, "time": { "type": "string" }, "startTime": { "type": "string" }, "endTime": { "type": "string" } } } } } } } } }, "/seller/newticket": { "post": { "operationId": "71ce8f4b-50e0-4d1e-a351-511f2550f0df", "tags": ["seller"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "sellerId": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "numbers": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /seller/newticket", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "message": { "type": "string" }, "ticketId": { "type": "string" } } } } } } } } }, "/seller/signin": { "post": { "operationId": "42c00c32-93b6-4ad2-bafa-ffbc9c640dac", "tags": ["seller"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "password": { "type": "string" }, "imei": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /seller/signin", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "user": { "type": "object", "properties": { "$": { "type": "object", "properties": { "strictMode": { "type": "string" }, "selected": { "type": "array", "items": { "type": "string" } }, "getters": { "type": "array", "items": { "type": "string" } }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "wasPopulated": { "type": "string" }, "activePaths": { "type": "object", "properties": { "paths": { "type": "object", "properties": { "role": { "type": "string" }, "password": { "type": "string" }, "userName": { "type": "string" }, "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "states": { "type": "object", "properties": { "ignore": { "type": "array", "items": { "type": "string" } }, "default": { "type": "array", "items": { "type": "string" } }, "init": { "type": "object", "properties": { "_id": { "type": "string" }, "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "modify": { "type": "array", "items": { "type": "string" } }, "require": { "type": "array", "items": { "type": "string" } } } }, "stateNames": { "type": "array", "items": { "type": "string" } } } }, "pathsToScopes": { "type": "array", "items": { "type": "string" } }, "cachedRequired": { "type": "array", "items": { "type": "string" } }, "session": { "type": "array", "items": { "type": "string" } }, "$setCalled": { "type": "array", "items": { "type": "string" } }, "emitter": { "type": "object", "properties": { "_events": { "type": "array", "items": { "type": "string" } }, "_eventsCount": { "type": "string" }, "_maxListeners": { "type": "string" } } }, "$options": { "type": "object", "properties": { "skipId": { "type": "string" }, "isNew": { "type": "string" }, "willInit": { "type": "string" }, "defaults": { "type": "string" } } } } }, "isNew": { "type": "string" }, "$locals": { "type": "array", "items": { "type": "string" } }, "$op": { "type": "array", "items": { "type": "string" } }, "_doc": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "createdAt": { "type": "array", "items": { "type": "string" } }, "updatedAt": { "type": "array", "items": { "type": "string" } }, "v": { "type": "string" } } }, "$init": { "type": "string" } } }, "subadmin": { "type": "object", "properties": { "$": { "type": "object", "properties": { "strictMode": { "type": "string" }, "selected": { "type": "array", "items": { "type": "string" } }, "getters": { "type": "array", "items": { "type": "string" } }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "wasPopulated": { "type": "string" }, "activePaths": { "type": "object", "properties": { "paths": { "type": "object", "properties": { "role": { "type": "string" }, "password": { "type": "string" }, "userName": { "type": "string" }, "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "string" }, "companyName": { "type": "string" }, "address": { "type": "string" }, "phoneNumber": { "type": "string" }, "managerId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "states": { "type": "object", "properties": { "ignore": { "type": "array", "items": { "type": "string" } }, "default": { "type": "array", "items": { "type": "string" } }, "init": { "type": "object", "properties": { "_id": { "type": "string" }, "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "userName": { "type": "string" }, "password": { "type": "string" }, "companyName": { "type": "string" }, "address": { "type": "string" }, "phoneNumber": { "type": "string" }, "role": { "type": "string" }, "managerId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "modify": { "type": "array", "items": { "type": "string" } }, "require": { "type": "array", "items": { "type": "string" } } } }, "stateNames": { "type": "array", "items": { "type": "string" } } } }, "pathsToScopes": { "type": "array", "items": { "type": "string" } }, "cachedRequired": { "type": "array", "items": { "type": "string" } }, "session": { "type": "array", "items": { "type": "string" } }, "$setCalled": { "type": "array", "items": { "type": "string" } }, "emitter": { "type": "object", "properties": { "_events": { "type": "array", "items": { "type": "string" } }, "_eventsCount": { "type": "string" }, "_maxListeners": { "type": "string" } } }, "$options": { "type": "object", "properties": { "skipId": { "type": "string" }, "isNew": { "type": "string" }, "willInit": { "type": "string" }, "defaults": { "type": "string" } } } } }, "isNew": { "type": "string" }, "$locals": { "type": "array", "items": { "type": "string" } }, "$op": { "type": "array", "items": { "type": "string" } }, "_doc": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "userName": { "type": "string" }, "password": { "type": "string" }, "companyName": { "type": "string" }, "address": { "type": "string" }, "phoneNumber": { "type": "string" }, "role": { "type": "string" }, "managerId": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "createdAt": { "type": "array", "items": { "type": "string" } }, "updatedAt": { "type": "array", "items": { "type": "string" } }, "__v": { "type": "string" } } }, "$init": { "type": "string" } } }, "token": { "type": "string" } } } } } } } } }, "/subadmin/addblocknumber": { "post": { "operationId": "c35235c5-640a-443b-b5f8-434646857789", "tags": ["subadmin"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "number": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /subadmin/addblocknumber", "content": { "application/json": { "schema": { "type": "object", "properties": { "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "number": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } } } } } } } }, "/subadmin/addlimitbut": { "post": { "operationId": "11eaf881-ba3a-4cbd-a241-f2c2374d307c", "tags": ["subadmin"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "gameNumber": { "type": "string" }, "limitsButs": { "type": "string" }, "seller": { "type": "string" }, "limits": { "type": "array", "items": { "type": "object", "properties": { "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" } } } } } } } } }, "responses": { "200": { "description": "POST /subadmin/addlimitbut", "content": { "application/json": { "schema": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "v": { "type": "string" }, "seller": { "type": "string" }, "$": { "type": "object", "properties": { "strictMode": { "type": "string" }, "selected": { "type": "array", "items": { "type": "string" } }, "getters": { "type": "array", "items": { "type": "string" } }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "wasPopulated": { "type": "string" }, "activePaths": { "type": "object", "properties": { "paths": { "type": "object", "properties": { "lotteryCategoryName": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "limits": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "states": { "type": "object", "properties": { "ignore": { "type": "array", "items": { "type": "string" } }, "default": { "type": "array", "items": { "type": "string" } }, "init": { "type": "object", "properties": { "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "limits": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "modify": { "type": "array", "items": { "type": "string" } }, "require": { "type": "array", "items": { "type": "string" } } } }, "stateNames": { "type": "array", "items": { "type": "string" } } } }, "pathsToScopes": { "type": "array", "items": { "type": "string" } }, "cachedRequired": { "type": "array", "items": { "type": "string" } }, "session": { "type": "array", "items": { "type": "string" } }, "$setCalled": { "type": "array", "items": { "type": "string" } }, "emitter": { "type": "object", "properties": { "_events": { "type": "array", "items": { "type": "string" } }, "_eventsCount": { "type": "string" }, "_maxListeners": { "type": "string" } } }, "$options": { "type": "object", "properties": { "skipId": { "type": "string" }, "isNew": { "type": "string" }, "willInit": { "type": "string" }, "defaults": { "type": "string" } } } } }, "isNew": { "type": "string" }, "$locals": { "type": "array", "items": { "type": "string" } }, "$op": { "type": "array", "items": { "type": "string" } }, "_doc": { "type": "object", "properties": { "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "subAdmin": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "lotteryCategoryName": { "type": "string" }, "limits": { "type": "array", "items": { "type": "string" } }, "createdAt": { "type": "array", "items": { "type": "string" } }, "updatedAt": { "type": "array", "items": { "type": "string" } }, "v": { "type": "string" } } }, "$init": { "type": "string" } } } } } } } } }, "/subadmin/addsuperVisor": { "post": { "operationId": "2d239a35-5dc8-4ef0-b55e-4161ee0284e3", "tags": ["subadmin"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "userName": { "type": "string" }, "password": { "type": "string" }, "isActive": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /subadmin/addsuperVisor", "content": { "application/json": { "schema": { "type": "object", "properties": { "$": { "type": "object", "properties": { "strictMode": { "type": "string" }, "inserting": { "type": "string" }, "getters": { "type": "array", "items": { "type": "string" } }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "wasPopulated": { "type": "string" }, "activePaths": { "type": "object", "properties": { "paths": { "type": "object", "properties": { "role": { "type": "string" }, "password": { "type": "string" }, "userName": { "type": "string" } } }, "states": { "type": "object", "properties": { "ignore": { "type": "array", "items": { "type": "string" } }, "default": { "type": "array", "items": { "type": "string" } }, "init": { "type": "array", "items": { "type": "string" } }, "modify": { "type": "array", "items": { "type": "string" } }, "require": { "type": "object", "properties": { "role": { "type": "string" }, "password": { "type": "string" }, "userName": { "type": "string" } } } } }, "stateNames": { "type": "array", "items": { "type": "string" } } } }, "pathsToScopes": { "type": "array", "items": { "type": "string" } }, "cachedRequired": { "type": "array", "items": { "type": "string" } }, "session": { "type": "array", "items": { "type": "string" } }, "$setCalled": { "type": "array", "items": { "type": "string" } }, "emitter": { "type": "object", "properties": { "_events": { "type": "array", "items": { "type": "string" } }, "_eventsCount": { "type": "string" }, "_maxListeners": { "type": "string" } } }, "$options": { "type": "object", "properties": { "defaults": { "type": "string" } } }, "validating": { "type": "array", "items": { "type": "string" } }, "backup": { "type": "object", "properties": { "activePaths": { "type": "object", "properties": { "modify": { "type": "object", "properties": { "userName": { "type": "string" }, "password": { "type": "string" }, "isActive": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } } }, "default": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "_id": { "type": "string" } } } } } } }, "savedState": { "type": "array", "items": { "type": "string" } } } }, "isNew": { "type": "string" }, "$locals": { "type": "array", "items": { "type": "string" } }, "$op": { "type": "array", "items": { "type": "string" } }, "_doc": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "object", "properties": { "_bsontype": { "type": "string" }, "id": { "type": "array", "items": { "type": "string" } } } }, "createdAt": { "type": "array", "items": { "type": "string" } }, "updatedAt": { "type": "array", "items": { "type": "string" } }, "__v": { "type": "string" } } } } } } } } } } }, "/subadmin/getlimitbut": { "get": { "operationId": "9c5d7d60-2e2b-478f-b651-f2d43768278d", "tags": ["subadmin"], "parameters": [ { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "general", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /subadmin/getlimitbut", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } } } } } } } } }, "/subadmin/getsalereports": { "get": { "operationId": "865bc82b-e87b-44e4-b7e5-cbf0c6e64be6", "tags": ["subadmin"], "parameters": [ { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "toDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /subadmin/getsalereports", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "object", "properties": { "Bank-1": { "type": "object", "properties": { "name": { "type": "string" }, "sum": { "type": "string" }, "paid": { "type": "string" } } } } } } } } } } } } }, "/subadmin/gettickets": { "get": { "operationId": "2bbf2a6f-4948-4643-a926-a669d2eae9c2", "tags": ["subadmin"], "parameters": [ { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "toDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /subadmin/gettickets", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "array", "items": { "type": "string" } } } } } } } } } }, "/subadmin/getwiningnumber": { "post": { "operationId": "aaf07686-809a-4bd9-b924-b3033bded894", "tags": ["subadmin"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "lotteryCategoryName": { "type": "string" }, "fromDate": { "type": "string" }, "toDate": { "type": "string" } } } } } }, "responses": { "200": { "description": "POST /subadmin/getwiningnumber", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "message": { "type": "string" }, "data": { "type": "array", "items": { "type": "object", "properties": { "date": { "type": "array", "items": { "type": "string" } }, "lotteryName": { "type": "string" }, "numbers": { "type": "object", "properties": { "second": { "type": "string" }, "third": { "type": "string" }, "l3c": { "type": "string" } } } } } } } } } } } } } }, "/subadmin/getwintickets": { "get": { "operationId": "d5e2c02c-6cbf-4be0-aed0-7c68b72b8f24", "tags": ["subadmin"], "parameters": [ { "name": "seller", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "fromDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "toDate", "in": "query", "required": false, "schema": { "type": "string" } }, { "name": "lotteryCategoryName", "in": "query", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "GET /subadmin/getwintickets", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "string" }, "data": { "type": "array", "items": { "type": "string" } } } } } } } } } }, "/subadmin/updatelimitbut/{id}entifier": { "patch": { "operationId": "febd8efb-99ef-46f1-aa47-ccb63f336a6b", "tags": ["subadmin"], "requestBody": { "required": true, "content": { "application/x-www-form-urlencoded": { "schema": { "type": "object", "properties": { "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "seller": { "type": "string" }, "limits": { "type": "array", "items": { "type": "object", "properties": { "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" } } } } } } } } }, "parameters": [ { "name": "identifier", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "PATCH /subadmin/updatelimitbut/{id}entifier", "content": { "application/json": { "schema": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "subAdmin": { "type": "string" }, "lotteryCategoryName": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" }, "gameNumber": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" }, "seller": { "type": "object", "properties": { "imei": { "type": "string" }, "email": { "type": "string" }, "isActive": { "type": "string" }, "_id": { "type": "string" }, "userName": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" }, "subAdminId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "__v": { "type": "string" } } }, "limits": { "type": "array", "items": { "type": "object", "properties": { "soldQuantity": { "type": "string" }, "_id": { "type": "string" }, "gameCategory": { "type": "string" }, "limitsButs": { "type": "string" } } } } } } } } } } } } }, "components": { "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer" } } }, "security": [{ "BearerAuth": [] }] }