3.0.0 • Published 3 years ago

@datafire/wedpax v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@datafire/wedpax

Client library for Wedpax

Installation and Usage

npm install --save @datafire/wedpax
let 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

Output

Search

wedpax.Search({}, context)

Input

  • input object
    • City string
    • CatgoryId integer
    • PageNumber integer

Output

UserService

wedpax.UserService({}, context)

Input

  • input object
    • serviceId integer

Output

UserServices

wedpax.UserServices({}, context)

Input

  • input object
    • userId integer

Output

Authenticate

wedpax.Authenticate({}, context)

Input

Output

ExternalAuthenticate

wedpax.ExternalAuthenticate({}, context)

Input

Output

GetExternalAuthenticationProviders

wedpax.GetExternalAuthenticationProviders(null, context)

Input

This action has no parameters

Output

Login

wedpax.Login({}, context)

Input

Output

RefreshToken

wedpax.RefreshToken({}, context)

Input

  • input object
    • userName string

Output

IsTenantAvailable

wedpax.IsTenantAvailable({}, context)

Input

Output

Register

wedpax.Register({}, context)

Input

Output

api.services.app.AddressServices.Create.post

wedpax.api.services.app.AddressServices.Create.post({}, context)

Input

Output

api.services.app.AddressServices.Delete.delete

wedpax.api.services.app.AddressServices.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.AddressServices.Get.get

wedpax.api.services.app.AddressServices.Get.get({}, context)

Input

  • input object
    • Id integer

Output

api.services.app.AddressServices.GetAll.get

wedpax.api.services.app.AddressServices.GetAll.get({}, context)

Input

  • input object
    • Sorting string
    • SkipCount integer
    • MaxResultCount integer

Output

GetCities

wedpax.GetCities({}, context)

Input

  • input object
    • provinceId integer

Output

GetProvince

wedpax.GetProvince(null, context)

Input

This action has no parameters

Output

api.services.app.AddressServices.Update.put

wedpax.api.services.app.AddressServices.Update.put({}, context)

Input

Output

api.services.app.CategoryService.Create.post

wedpax.api.services.app.CategoryService.Create.post({}, context)

Input

Output

api.services.app.CategoryService.Delete.delete

wedpax.api.services.app.CategoryService.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.CategoryService.Get.get

wedpax.api.services.app.CategoryService.Get.get({}, context)

Input

  • input object
    • Id integer

Output

api.services.app.CategoryService.GetAll.get

wedpax.api.services.app.CategoryService.GetAll.get({}, context)

Input

  • input object
    • TotalCount integer
    • Items array

Output

GetById

wedpax.GetById({}, context)

Input

  • input object
    • id integer

Output

GetByName

wedpax.GetByName({}, context)

Input

  • input object
    • title string

Output

GetCategories

wedpax.GetCategories(null, context)

Input

This action has no parameters

Output

api.services.app.CategoryService.Update.put

wedpax.api.services.app.CategoryService.Update.put({}, context)

Input

Output

ChangeUiTheme

wedpax.ChangeUiTheme({}, context)

Input

Output

Output schema unknown

api.services.app.Role.Create.post

wedpax.api.services.app.Role.Create.post({}, context)

Input

Output

api.services.app.Role.Delete.delete

wedpax.api.services.app.Role.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.Role.Get.get

wedpax.api.services.app.Role.Get.get({}, context)

Input

  • input object
    • Id integer

Output

api.services.app.Role.GetAll.get

wedpax.api.services.app.Role.GetAll.get({}, context)

Input

  • input object
    • Keyword string
    • SkipCount integer
    • MaxResultCount integer

Output

GetAllPermissions

wedpax.GetAllPermissions(null, context)

Input

This action has no parameters

Output

GetRoleForEdit

wedpax.GetRoleForEdit({}, context)

Input

  • input object
    • Id integer

Output

GetRolesAsync

wedpax.GetRolesAsync({}, context)

Input

  • input object
    • Permission string

Output

api.services.app.Role.Update.put

wedpax.api.services.app.Role.Update.put({}, context)

Input

Output

api.services.app.ServiceFacilityService.Create.post

wedpax.api.services.app.ServiceFacilityService.Create.post({}, context)

Input

Output

api.services.app.ServiceFacilityService.Delete.delete

wedpax.api.services.app.ServiceFacilityService.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.ServiceFacilityService.Get.get

wedpax.api.services.app.ServiceFacilityService.Get.get({}, context)

Input

  • input object
    • Id integer

Output

api.services.app.ServiceFacilityService.GetAll.get

wedpax.api.services.app.ServiceFacilityService.GetAll.get({}, context)

Input

  • input object
    • input array

Output

GetFacilities

wedpax.GetFacilities(null, context)

Input

This action has no parameters

Output

GetServiceFacility

wedpax.GetServiceFacility({}, context)

Input

  • input object
    • facilities array

Output

api.services.app.ServiceFacilityService.Update.put

wedpax.api.services.app.ServiceFacilityService.Update.put({}, context)

Input

Output

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

Output

api.services.app.Tenant.Delete.delete

wedpax.api.services.app.Tenant.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.Tenant.Get.get

wedpax.api.services.app.Tenant.Get.get({}, context)

Input

  • input object
    • Id integer

Output

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

Output

api.services.app.Tenant.Update.put

wedpax.api.services.app.Tenant.Update.put({}, context)

Input

Output

AddManagerToUserRoles

wedpax.AddManagerToUserRoles({}, context)

Input

  • input object

Output

Output schema unknown

ChangeLanguage

wedpax.ChangeLanguage({}, context)

Input

Output

Output schema unknown

ChangePassword

wedpax.ChangePassword({}, context)

Input

Output

  • output boolean

ConfrimCode

wedpax.ConfrimCode({}, context)

Input

Output

Output schema unknown

api.services.app.User.Create.post

wedpax.api.services.app.User.Create.post({}, context)

Input

Output

api.services.app.User.Delete.delete

wedpax.api.services.app.User.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.User.Get.get

wedpax.api.services.app.User.Get.get({}, context)

Input

  • input object
    • Id integer

Output

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

Output

GetRoles

wedpax.GetRoles(null, context)

Input

This action has no parameters

Output

GetToEntity

wedpax.GetToEntity({}, context)

Input

  • input object
    • userId integer

Output

ProhibitPermission

wedpax.ProhibitPermission({}, context)

Input

Output

Output schema unknown

ResetPassword

wedpax.ResetPassword({}, context)

Input

Output

  • output boolean

api.services.app.User.Update.put

wedpax.api.services.app.User.Update.put({}, context)

Input

Output

api.services.app.WeddingVendorServices.Create.post

wedpax.api.services.app.WeddingVendorServices.Create.post({}, context)

Input

Output

api.services.app.WeddingVendorServices.Delete.delete

wedpax.api.services.app.WeddingVendorServices.Delete.delete({}, context)

Input

  • input object
    • Id integer

Output

Output schema unknown

api.services.app.WeddingVendorServices.Get.get

wedpax.api.services.app.WeddingVendorServices.Get.get({}, context)

Input

  • input object
    • Id integer

Output

api.services.app.WeddingVendorServices.GetAll.get

wedpax.api.services.app.WeddingVendorServices.GetAll.get({}, context)

Input

  • input object
    • Sorting string
    • SkipCount integer
    • MaxResultCount integer

Output

api.services.app.WeddingVendorServices.Update.put

wedpax.api.services.app.WeddingVendorServices.Update.put({}, context)

Input

Output

Definitions

ApplicationInfoDto

  • ApplicationInfoDto object
    • features object
    • releaseDate string
    • version string

AuthenticateModel

  • AuthenticateModel object
    • password required string
    • rememberClient boolean
    • userNameOrEmailAddress required string

AuthenticateResultModel

  • AuthenticateResultModel object
    • accessToken string
    • encryptedAccessToken string
    • expireInSeconds integer
    • roles array
      • items string
    • userId integer

BaseServices

  • BaseServices object
    • capacity integer
    • category required ServiceCategory
    • categoryId required integer
    • creationTime string
    • description required string
    • geoDetails GeoDetails
    • id integer
    • images required array
    • mainImage string
    • phone string
    • status boolean
    • title string
    • user required User

ChangePasswordDto

  • ChangePasswordDto object
    • currentPassword required string
    • newPassword required string

ChangeUiThemeInput

  • ChangeUiThemeInput object
    • theme required string

ChangeUserLanguageDto

  • ChangeUserLanguageDto object
    • languageName required string

CityDto

  • CityDto object
    • id integer
    • title string

ConfirmCodeDto

  • ConfirmCodeDto object
    • code required integer
    • userName required string

CreateRoleDto

  • CreateRoleDto object
    • description string
    • displayName required string
    • grantedPermissions array
      • items string
    • name required string
    • normalizedName string

CreateTenantDto

  • CreateTenantDto object
    • adminEmailAddress required string
    • connectionString string
    • isActive boolean
    • name required string
    • tenancyName required string

CreateUserDto

  • CreateUserDto object
    • userName required string

CreateWeddingVendorDto

  • CreateWeddingVendorDto object
    • base64Images array
    • capacity integer
    • categoryId required integer
    • description required string
    • lat number
    • lng number
    • mainImage string
    • phone string
    • serviceFacilities array
      • items integer
    • title required string
    • userId integer

ExternalAuthenticateModel

  • ExternalAuthenticateModel object
    • authProvider required string
    • providerAccessCode required string
    • providerKey required string

ExternalAuthenticateResultModel

  • ExternalAuthenticateResultModel object
    • accessToken string
    • encryptedAccessToken string
    • expireInSeconds integer
    • waitingForActivation boolean

ExternalLoginProviderInfoModel

  • ExternalLoginProviderInfoModel object
    • clientId string
    • name string

FlatPermissionDto

  • FlatPermissionDto object
    • description string
    • displayName string
    • name string

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

GeoDetailsCreateDto

  • GeoDetailsCreateDto object
    • lat required number
    • lng required number
    • phone required string
    • serviceId required integer

GeoDetailsDto

  • GeoDetailsDto object
    • address string
    • area string
    • city string
    • country string
    • district string
    • id integer

GeoDetailsUpdateDto

  • GeoDetailsUpdateDto object
    • id integer
    • lat required number
    • lng required number
    • phone required string
    • serviceId required integer

GetCurrentLoginInformationsOutput

GetRoleForEditOutput

ImageData

  • ImageData object
    • content string
    • fileType string
    • id string
    • isMain boolean

IsTenantAvailableInput

  • IsTenantAvailableInput object
    • tenancyName required string

IsTenantAvailableOutput

  • IsTenantAvailableOutput object
    • state integer (values: 1, 2, 3)
    • tenantId integer

ListResultDtoPermissionDto

ListResultDtoRoleDto

ListResultDtoRoleListDto

LoginModel

  • LoginModel object
    • mobileNumber required string
    • password string

PagedResultDtoGeoDetailsDto

PagedResultDtoRoleDto

  • PagedResultDtoRoleDto object
    • items array
    • totalCount integer

PagedResultDtoServiceCategoryDto

PagedResultDtoServiceFacilityDto

PagedResultDtoTenantDto

PagedResultDtoUserDto

  • PagedResultDtoUserDto object
    • items array
    • totalCount integer

PagedResultDtoWeddingVendorDto

PermissionDto

  • PermissionDto object
    • description string
    • displayName string
    • id integer
    • name string

ProhibitPermissionInput

  • ProhibitPermissionInput object
    • permissionName string
    • userId integer

ProvinceDto

  • ProvinceDto object
    • id integer
    • title string

RegisterInput

  • RegisterInput object
    • userName required string

RegisterOutput

  • RegisterOutput object
    • canLogin boolean

ResetPasswordDto

  • ResetPasswordDto object
    • adminPassword required string
    • newPassword required string
    • userId required integer

RoleDto

  • RoleDto object
    • description string
    • displayName required string
    • grantedPermissions array
      • items string
    • id integer
    • name required string
    • normalizedName string

RoleEditDto

  • RoleEditDto object
    • description string
    • displayName required string
    • id integer
    • isStatic boolean
    • name required string

RoleListDto

  • RoleListDto object
    • creationTime string
    • displayName string
    • id integer
    • isDefault boolean
    • isStatic boolean
    • name string

ServiceCategory

  • ServiceCategory object
    • baseServices array
    • children array
    • creationTime string
    • icon string
    • id integer
    • parentId integer
    • title required string

ServiceCategoryDto

  • ServiceCategoryDto object
    • children array
    • icon string
    • id integer
    • parentId integer
    • title required string

ServiceCategoryUpdateDto

ServiceCategroyCreateDto

  • ServiceCategroyCreateDto object

ServiceFacilityCreateDto

  • ServiceFacilityCreateDto object
    • icon string
    • title required string

ServiceFacilityDto

  • ServiceFacilityDto object
    • icon string
    • id integer
    • title string

ServiceFacilityUpdateDto

  • ServiceFacilityUpdateDto object
    • icon string
    • id integer
    • title string

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

ServiceListModel

  • ServiceListModel object
    • address string
    • capacity integer
    • facilityDtos array
    • id integer
    • images array
      • items string
    • priceType integer (values: 1, 2, 3, 4)
    • rate integer
    • title string

Setting

  • Setting object
    • creationTime string
    • creatorUserId integer
    • id integer
    • lastModificationTime string
    • lastModifierUserId integer
    • name required string
    • tenantId integer
    • userId integer
    • value string

TenantDto

  • TenantDto object
    • id integer
    • isActive boolean
    • name required string
    • tenancyName required string

TenantLoginInfoDto

  • TenantLoginInfoDto object
    • id integer
    • name string
    • tenancyName string

UpdateWeddingVendorDto

  • UpdateWeddingVendorDto object
    • base64Images array
    • capacity integer
    • categoryId required integer
    • description required string
    • facilityDtos array
    • id integer
    • lat number
    • lng number
    • mainImage string
    • phone string
    • title required string
    • userId integer

User

  • User object
    • accessFailedCount integer
    • authenticationSource string
    • claims array
    • 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
    • name required string
    • normalizedEmailAddress required string
    • normalizedUserName required string
    • password required string
    • passwordResetCode string
    • permissions array
    • phoneNumber string
    • roles array
    • securityStamp string
    • settings array
    • surname required string
    • tenantId integer
    • tokens array
    • userName required string

UserClaim

  • UserClaim object
    • claimType string
    • claimValue string
    • creationTime string
    • creatorUserId integer
    • id integer
    • tenantId integer
    • userId integer

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
    • surname required string
    • userName required string

UserLogin

  • UserLogin object
    • id integer
    • loginProvider required string
    • providerKey required string
    • tenantId integer
    • userId integer

UserLoginInfoDto

  • UserLoginInfoDto object
    • emailAddress string
    • id integer
    • name string
    • surname string
    • userName string

UserPermissionSetting

  • UserPermissionSetting object
    • creationTime string
    • creatorUserId integer
    • id integer
    • isGranted boolean
    • name required string
    • tenantId integer
    • userId integer

UserRole

  • UserRole object
    • creationTime string
    • creatorUserId integer
    • id integer
    • roleId integer
    • tenantId integer
    • userId integer

UserServicesDto

  • UserServicesDto object
    • mainImage string
    • serviceId integer
    • status boolean
    • title string

UserToken

  • UserToken object
    • expireDate string
    • id integer
    • loginProvider string
    • name string
    • tenantId integer
    • userId integer
    • value string

WeddingVendorDto

  • WeddingVendorDto object
    • categoryId integer
    • creationTime string
    • description string
    • id integer
    • mainImage string
    • title string
    • userDto UserDto