3.0.0 • Published 5 years ago
@datafire/wedpax v3.0.0
@datafire/wedpax
Client library for Wedpax
Installation and Usage
npm install --save @datafire/wedpaxlet wedpax = require('@datafire/wedpax').create({
bearerAuth: ""
});
.then(data => {
console.log(data);
});Description
Actions
api.ServiceQuery.Get.get
wedpax.api.ServiceQuery.Get.get({}, context)Input
- input
object- CurrentPage
integer - PageSize
integer - Sorting.PropertyName
string - Sorting.OrderByDescending
boolean
- CurrentPage
Output
Search
wedpax.Search({}, context)Input
- input
object- City
string - CatgoryId
integer - PageNumber
integer
- City
Output
- output
array- items ServiceListModel
UserService
wedpax.UserService({}, context)Input
- input
object- serviceId
integer
- serviceId
Output
- output UpdateWeddingVendorDto
UserServices
wedpax.UserServices({}, context)Input
- input
object- userId
integer
- userId
Output
- output
array- items UserServicesDto
Authenticate
wedpax.Authenticate({}, context)Input
- input
object- model AuthenticateModel
Output
- output AuthenticateResultModel
ExternalAuthenticate
wedpax.ExternalAuthenticate({}, context)Input
- input
object
Output
GetExternalAuthenticationProviders
wedpax.GetExternalAuthenticationProviders(null, context)Input
This action has no parameters
Output
- output
array
Login
wedpax.Login({}, context)Input
- input
object- model LoginModel
Output
- output AuthenticateResultModel
RefreshToken
wedpax.RefreshToken({}, context)Input
- input
object- userName
string
- userName
Output
- output AuthenticateResultModel
IsTenantAvailable
wedpax.IsTenantAvailable({}, context)Input
- input
object- input IsTenantAvailableInput
Output
- output IsTenantAvailableOutput
Register
wedpax.Register({}, context)Input
- input
object- input RegisterInput
Output
- output RegisterOutput
api.services.app.AddressServices.Create.post
wedpax.api.services.app.AddressServices.Create.post({}, context)Input
- input
object- input GeoDetailsCreateDto
Output
- output GeoDetailsDto
api.services.app.AddressServices.Delete.delete
wedpax.api.services.app.AddressServices.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.AddressServices.Get.get
wedpax.api.services.app.AddressServices.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output GeoDetailsDto
api.services.app.AddressServices.GetAll.get
wedpax.api.services.app.AddressServices.GetAll.get({}, context)Input
- input
object- Sorting
string - SkipCount
integer - MaxResultCount
integer
- Sorting
Output
GetCities
wedpax.GetCities({}, context)Input
- input
object- provinceId
integer
- provinceId
Output
- output
array- items CityDto
GetProvince
wedpax.GetProvince(null, context)Input
This action has no parameters
Output
- output
array- items ProvinceDto
api.services.app.AddressServices.Update.put
wedpax.api.services.app.AddressServices.Update.put({}, context)Input
- input
object- input GeoDetailsUpdateDto
Output
- output GeoDetailsDto
api.services.app.CategoryService.Create.post
wedpax.api.services.app.CategoryService.Create.post({}, context)Input
- input
object- categoryDto ServiceCategroyCreateDto
Output
- output ServiceCategoryDto
api.services.app.CategoryService.Delete.delete
wedpax.api.services.app.CategoryService.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.CategoryService.Get.get
wedpax.api.services.app.CategoryService.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output ServiceCategoryDto
api.services.app.CategoryService.GetAll.get
wedpax.api.services.app.CategoryService.GetAll.get({}, context)Input
- input
object- TotalCount
integer - Items
array
- TotalCount
Output
GetById
wedpax.GetById({}, context)Input
- input
object- id
integer
- id
Output
- output ServiceCategory
GetByName
wedpax.GetByName({}, context)Input
- input
object- title
string
- title
Output
- output ServiceCategoryDto
GetCategories
wedpax.GetCategories(null, context)Input
This action has no parameters
Output
- output
array- items ServiceCategoryDto
api.services.app.CategoryService.Update.put
wedpax.api.services.app.CategoryService.Update.put({}, context)Input
- input
object- input ServiceCategoryUpdateDto
Output
- output ServiceCategoryDto
ChangeUiTheme
wedpax.ChangeUiTheme({}, context)Input
- input
object- input ChangeUiThemeInput
Output
Output schema unknown
api.services.app.Role.Create.post
wedpax.api.services.app.Role.Create.post({}, context)Input
- input
object- input CreateRoleDto
Output
- output RoleDto
api.services.app.Role.Delete.delete
wedpax.api.services.app.Role.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.Role.Get.get
wedpax.api.services.app.Role.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output RoleDto
api.services.app.Role.GetAll.get
wedpax.api.services.app.Role.GetAll.get({}, context)Input
- input
object- Keyword
string - SkipCount
integer - MaxResultCount
integer
- Keyword
Output
- output PagedResultDto[RoleDto]
GetAllPermissions
wedpax.GetAllPermissions(null, context)Input
This action has no parameters
Output
- output ListResultDto[PermissionDto]
GetRoleForEdit
wedpax.GetRoleForEdit({}, context)Input
- input
object- Id
integer
- Id
Output
- output GetRoleForEditOutput
GetRolesAsync
wedpax.GetRolesAsync({}, context)Input
- input
object- Permission
string
- Permission
Output
- output ListResultDto[RoleListDto]
api.services.app.Role.Update.put
wedpax.api.services.app.Role.Update.put({}, context)Input
- input
object- input RoleDto
Output
- output RoleDto
api.services.app.ServiceFacilityService.Create.post
wedpax.api.services.app.ServiceFacilityService.Create.post({}, context)Input
- input
object- input ServiceFacilityCreateDto
Output
- output ServiceFacilityDto
api.services.app.ServiceFacilityService.Delete.delete
wedpax.api.services.app.ServiceFacilityService.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.ServiceFacilityService.Get.get
wedpax.api.services.app.ServiceFacilityService.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output ServiceFacilityDto
api.services.app.ServiceFacilityService.GetAll.get
wedpax.api.services.app.ServiceFacilityService.GetAll.get({}, context)Input
- input
object- input
array
- input
Output
GetFacilities
wedpax.GetFacilities(null, context)Input
This action has no parameters
Output
- output
array- items ServiceFacilityDto
GetServiceFacility
wedpax.GetServiceFacility({}, context)Input
- input
object- facilities
array
- facilities
Output
- output
array- items ServiceFacilityDto
api.services.app.ServiceFacilityService.Update.put
wedpax.api.services.app.ServiceFacilityService.Update.put({}, context)Input
- input
object- input ServiceFacilityUpdateDto
Output
- output ServiceFacilityDto
GetCurrentLoginInformations
wedpax.GetCurrentLoginInformations(null, context)Input
This action has no parameters
Output
api.services.app.Tenant.Create.post
wedpax.api.services.app.Tenant.Create.post({}, context)Input
- input
object- input CreateTenantDto
Output
- output TenantDto
api.services.app.Tenant.Delete.delete
wedpax.api.services.app.Tenant.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.Tenant.Get.get
wedpax.api.services.app.Tenant.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output TenantDto
api.services.app.Tenant.GetAll.get
wedpax.api.services.app.Tenant.GetAll.get({}, context)Input
- input
object- Keyword
string - IsActive
boolean - SkipCount
integer - MaxResultCount
integer
- Keyword
Output
- output PagedResultDto[TenantDto]
api.services.app.Tenant.Update.put
wedpax.api.services.app.Tenant.Update.put({}, context)Input
- input
object- input TenantDto
Output
- output TenantDto
AddManagerToUserRoles
wedpax.AddManagerToUserRoles({}, context)Input
- input
object- user User
Output
Output schema unknown
ChangeLanguage
wedpax.ChangeLanguage({}, context)Input
- input
object- input ChangeUserLanguageDto
Output
Output schema unknown
ChangePassword
wedpax.ChangePassword({}, context)Input
- input
object- input ChangePasswordDto
Output
- output
boolean
ConfrimCode
wedpax.ConfrimCode({}, context)Input
- input
object- input ConfirmCodeDto
Output
Output schema unknown
api.services.app.User.Create.post
wedpax.api.services.app.User.Create.post({}, context)Input
- input
object- input CreateUserDto
Output
- output UserDto
api.services.app.User.Delete.delete
wedpax.api.services.app.User.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.User.Get.get
wedpax.api.services.app.User.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output UserDto
api.services.app.User.GetAll.get
wedpax.api.services.app.User.GetAll.get({}, context)Input
- input
object- Keyword
string - IsActive
boolean - SkipCount
integer - MaxResultCount
integer
- Keyword
Output
- output PagedResultDto[UserDto]
GetRoles
wedpax.GetRoles(null, context)Input
This action has no parameters
Output
- output ListResultDto[RoleDto]
GetToEntity
wedpax.GetToEntity({}, context)Input
- input
object- userId
integer
- userId
Output
- output User
ProhibitPermission
wedpax.ProhibitPermission({}, context)Input
- input
object- input ProhibitPermissionInput
Output
Output schema unknown
ResetPassword
wedpax.ResetPassword({}, context)Input
- input
object- input ResetPasswordDto
Output
- output
boolean
api.services.app.User.Update.put
wedpax.api.services.app.User.Update.put({}, context)Input
- input
object- input UserDto
Output
- output UserDto
api.services.app.WeddingVendorServices.Create.post
wedpax.api.services.app.WeddingVendorServices.Create.post({}, context)Input
- input
object- model CreateWeddingVendorDto
Output
- output WeddingVendorDto
api.services.app.WeddingVendorServices.Delete.delete
wedpax.api.services.app.WeddingVendorServices.Delete.delete({}, context)Input
- input
object- Id
integer
- Id
Output
Output schema unknown
api.services.app.WeddingVendorServices.Get.get
wedpax.api.services.app.WeddingVendorServices.Get.get({}, context)Input
- input
object- Id
integer
- Id
Output
- output WeddingVendorDto
api.services.app.WeddingVendorServices.GetAll.get
wedpax.api.services.app.WeddingVendorServices.GetAll.get({}, context)Input
- input
object- Sorting
string - SkipCount
integer - MaxResultCount
integer
- Sorting
Output
api.services.app.WeddingVendorServices.Update.put
wedpax.api.services.app.WeddingVendorServices.Update.put({}, context)Input
- input
object- model UpdateWeddingVendorDto
Output
- output WeddingVendorDto
Definitions
ApplicationInfoDto
- ApplicationInfoDto
object- features
object - releaseDate
string - version
string
- features
AuthenticateModel
- AuthenticateModel
object- password required
string - rememberClient
boolean - userNameOrEmailAddress required
string
- password required
AuthenticateResultModel
- AuthenticateResultModel
object- accessToken
string - encryptedAccessToken
string - expireInSeconds
integer - roles
array- items
string
- items
- userId
integer
- accessToken
BaseServices
- BaseServices
object- capacity
integer - category required ServiceCategory
- categoryId required
integer - creationTime
string - description required
string - geoDetails GeoDetails
- id
integer - images required
array- items ServiceImages
- mainImage
string - phone
string - status
boolean - title
string - user required User
- capacity
ChangePasswordDto
- ChangePasswordDto
object- currentPassword required
string - newPassword required
string
- currentPassword required
ChangeUiThemeInput
- ChangeUiThemeInput
object- theme required
string
- theme required
ChangeUserLanguageDto
- ChangeUserLanguageDto
object- languageName required
string
- languageName required
CityDto
- CityDto
object- id
integer - title
string
- id
ConfirmCodeDto
- ConfirmCodeDto
object- code required
integer - userName required
string
- code required
CreateRoleDto
- CreateRoleDto
object- description
string - displayName required
string - grantedPermissions
array- items
string
- items
- name required
string - normalizedName
string
- description
CreateTenantDto
- CreateTenantDto
object- adminEmailAddress required
string - connectionString
string - isActive
boolean - name required
string - tenancyName required
string
- adminEmailAddress required
CreateUserDto
- CreateUserDto
object- userName required
string
- userName required
CreateWeddingVendorDto
- CreateWeddingVendorDto
object- base64Images
array- items ImageData
- capacity
integer - categoryId required
integer - description required
string - lat
number - lng
number - mainImage
string - phone
string - serviceFacilities
array- items
integer
- items
- title required
string - userId
integer
- base64Images
ExternalAuthenticateModel
- ExternalAuthenticateModel
object- authProvider required
string - providerAccessCode required
string - providerKey required
string
- authProvider required
ExternalAuthenticateResultModel
- ExternalAuthenticateResultModel
object- accessToken
string - encryptedAccessToken
string - expireInSeconds
integer - waitingForActivation
boolean
- accessToken
ExternalLoginProviderInfoModel
- ExternalLoginProviderInfoModel
object- clientId
string - name
string
- clientId
FlatPermissionDto
- FlatPermissionDto
object- description
string - displayName
string - name
string
- description
GeoDetails
- GeoDetails
object- address
string - baseServices BaseServices
- city
string - country
string - creationTime
string - district
string - id
integer - lat
number - lng
number - locality
string - place
string - province
string - serviceId
integer
- address
GeoDetailsCreateDto
- GeoDetailsCreateDto
object- lat required
number - lng required
number - phone required
string - serviceId required
integer
- lat required
GeoDetailsDto
- GeoDetailsDto
object- address
string - area
string - city
string - country
string - district
string - id
integer
- address
GeoDetailsUpdateDto
- GeoDetailsUpdateDto
object- id
integer - lat required
number - lng required
number - phone required
string - serviceId required
integer
- id
GetCurrentLoginInformationsOutput
- GetCurrentLoginInformationsOutput
object- application ApplicationInfoDto
- tenant TenantLoginInfoDto
- user UserLoginInfoDto
GetRoleForEditOutput
- GetRoleForEditOutput
object- grantedPermissionNames
array- items
string
- items
- permissions
array- items FlatPermissionDto
- role RoleEditDto
- grantedPermissionNames
ImageData
- ImageData
object- content
string - fileType
string - id
string - isMain
boolean
- content
IsTenantAvailableInput
- IsTenantAvailableInput
object- tenancyName required
string
- tenancyName required
IsTenantAvailableOutput
- IsTenantAvailableOutput
object- state
integer(values: 1, 2, 3) - tenantId
integer
- state
ListResultDtoPermissionDto
- ListResultDtoPermissionDto
object- items
array- items PermissionDto
- items
ListResultDtoRoleDto
ListResultDtoRoleListDto
- ListResultDtoRoleListDto
object- items
array- items RoleListDto
- items
LoginModel
- LoginModel
object- mobileNumber required
string - password
string
- mobileNumber required
PagedResultDtoGeoDetailsDto
- PagedResultDtoGeoDetailsDto
object- items
array- items GeoDetailsDto
- totalCount
integer
- items
PagedResultDtoRoleDto
PagedResultDtoServiceCategoryDto
- PagedResultDtoServiceCategoryDto
object- items
array- items ServiceCategoryDto
- totalCount
integer
- items
PagedResultDtoServiceFacilityDto
- PagedResultDtoServiceFacilityDto
object- items
array- items ServiceFacilityDto
- totalCount
integer
- items
PagedResultDtoTenantDto
PagedResultDtoUserDto
PagedResultDtoWeddingVendorDto
- PagedResultDtoWeddingVendorDto
object- items
array- items WeddingVendorDto
- totalCount
integer
- items
PermissionDto
- PermissionDto
object- description
string - displayName
string - id
integer - name
string
- description
ProhibitPermissionInput
- ProhibitPermissionInput
object- permissionName
string - userId
integer
- permissionName
ProvinceDto
- ProvinceDto
object- id
integer - title
string
- id
RegisterInput
- RegisterInput
object- userName required
string
- userName required
RegisterOutput
- RegisterOutput
object- canLogin
boolean
- canLogin
ResetPasswordDto
- ResetPasswordDto
object- adminPassword required
string - newPassword required
string - userId required
integer
- adminPassword required
RoleDto
- RoleDto
object- description
string - displayName required
string - grantedPermissions
array- items
string
- items
- id
integer - name required
string - normalizedName
string
- description
RoleEditDto
- RoleEditDto
object- description
string - displayName required
string - id
integer - isStatic
boolean - name required
string
- description
RoleListDto
- RoleListDto
object- creationTime
string - displayName
string - id
integer - isDefault
boolean - isStatic
boolean - name
string
- creationTime
ServiceCategory
- ServiceCategory
object- baseServices
array- items BaseServices
- children
array- items ServiceCategory
- creationTime
string - icon
string - id
integer - parentId
integer - title required
string
- baseServices
ServiceCategoryDto
- ServiceCategoryDto
object- children
array- items ServiceCategoryDto
- icon
string - id
integer - parentId
integer - title required
string
- children
ServiceCategoryUpdateDto
- ServiceCategoryUpdateDto
object- children
array- items ServiceCategoryDto
- icon
string - id
integer - parent ServiceCategoryDto
- parentId
integer - title required
string
- children
ServiceCategroyCreateDto
- ServiceCategroyCreateDto
object- icon
string - id
integer - parent ServiceCategoryDto
- parentId
integer - title required
string
- icon
ServiceFacilityCreateDto
- ServiceFacilityCreateDto
object- icon
string - title required
string
- icon
ServiceFacilityDto
- ServiceFacilityDto
object- icon
string - id
integer - title
string
- icon
ServiceFacilityUpdateDto
- ServiceFacilityUpdateDto
object- icon
string - id
integer - title
string
- icon
ServiceImages
- ServiceImages
object- alt required
string - baseServices BaseServices
- creationTime
string - id
integer - isMain
boolean - serviceId
integer - state
boolean - thumbUrl required
string - title required
string - url required
string
- alt required
ServiceListModel
- ServiceListModel
object- address
string - capacity
integer - facilityDtos
array- items ServiceFacilityDto
- id
integer - images
array- items
string
- items
- priceType
integer(values: 1, 2, 3, 4) - rate
integer - title
string
- address
Setting
- Setting
object- creationTime
string - creatorUserId
integer - id
integer - lastModificationTime
string - lastModifierUserId
integer - name required
string - tenantId
integer - userId
integer - value
string
- creationTime
TenantDto
- TenantDto
object- id
integer - isActive
boolean - name required
string - tenancyName required
string
- id
TenantLoginInfoDto
- TenantLoginInfoDto
object- id
integer - name
string - tenancyName
string
- id
UpdateWeddingVendorDto
- UpdateWeddingVendorDto
object- base64Images
array- items ImageData
- capacity
integer - categoryId required
integer - description required
string - facilityDtos
array- items ServiceFacilityDto
- id
integer - lat
number - lng
number - mainImage
string - phone
string - title required
string - userId
integer
- base64Images
User
- User
object- accessFailedCount
integer - authenticationSource
string - claims
array- items UserClaim
- code
integer - concurrencyStamp
string - creationTime
string - creatorUser User
- creatorUserId
integer - deleterUser User
- deleterUserId
integer - deletionTime
string - emailAddress required
string - emailConfirmationCode
string - expireTime
string - fullName
string - id
integer - isActive
boolean - isDeleted
boolean - isEmailConfirmed
boolean - isLockoutEnabled
boolean - isPhoneNumberConfirmed
boolean - isTwoFactorEnabled
boolean - lastModificationTime
string - lastModifierUser User
- lastModifierUserId
integer - lockoutEndDateUtc
string - logins
array- items UserLogin
- name required
string - normalizedEmailAddress required
string - normalizedUserName required
string - password required
string - passwordResetCode
string - permissions
array- items UserPermissionSetting
- phoneNumber
string - roles
array- items UserRole
- securityStamp
string - settings
array- items Setting
- surname required
string - tenantId
integer - tokens
array- items UserToken
- userName required
string
- accessFailedCount
UserClaim
- UserClaim
object- claimType
string - claimValue
string - creationTime
string - creatorUserId
integer - id
integer - tenantId
integer - userId
integer
- claimType
UserDto
- UserDto
object- code
integer - creationTime
string - emailAddress required
string - expireTime
string - fullName
string - id
integer - isActive
boolean - isExist
boolean - lastLoginTime
string - name required
string - roleNames
array- items
string
- items
- surname required
string - userName required
string
- code
UserLogin
- UserLogin
object- id
integer - loginProvider required
string - providerKey required
string - tenantId
integer - userId
integer
- id
UserLoginInfoDto
- UserLoginInfoDto
object- emailAddress
string - id
integer - name
string - surname
string - userName
string
- emailAddress
UserPermissionSetting
- UserPermissionSetting
object- creationTime
string - creatorUserId
integer - id
integer - isGranted
boolean - name required
string - tenantId
integer - userId
integer
- creationTime
UserRole
- UserRole
object- creationTime
string - creatorUserId
integer - id
integer - roleId
integer - tenantId
integer - userId
integer
- creationTime
UserServicesDto
- UserServicesDto
object- mainImage
string - serviceId
integer - status
boolean - title
string
- mainImage
UserToken
- UserToken
object- expireDate
string - id
integer - loginProvider
string - name
string - tenantId
integer - userId
integer - value
string
- expireDate
WeddingVendorDto
- WeddingVendorDto
object- categoryId
integer - creationTime
string - description
string - id
integer - mainImage
string - title
string - userDto UserDto
- categoryId
3.0.0
5 years ago