0.3.46 • Published 4 months ago

@vhiweb/munio-client-js v0.3.46

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Installing

npm i @vhiweb/munio-client-js

or if you are using yarn

yarn add @vhiweb/munio-client-js

Then you need to import this library into your application.

import Munio from "@vhiweb/munio-client-js";
const munio = new Munio();

Init using API

To initialize the app use munio.init() all your host client and apiKey would be found on our munio website or please contact us.

munio.init({
  host: "example",
  client: `example`,
  AppKey: "example",
});

Client

  • Get Client For get client information, you can use getClient() function.
munio.getClient();
  • Get Client Permissions For get client permissions, you can use getClientPermissions() function.
munio.getClientPermissions();
  • Get Client Appreance Config For get client appreance config website, you can use getCLientAppreanceConfig() function.
munio.getCLientAppreanceConfig();
  • Get Client Setting Policies For get client setting policies, you can use getSettingPolicies() function.
munio.getSettingPolicies();
  • Get Firebase App Service Account For get firebase app service account, you can use getFirebaseAppServiceAccount() function.
munio.getFirebaseAppServiceAccount();

Authentication

  • Login With Email For login using email, you can use LoginWithEmail({your_data}) function.
munio.LoginWithEmail({
  login: "example@munio.test",
  password: "munioTest1234 ",
  grant_type: "example",
});
  • Login With SSO For login using SSO (Social Media), you can use LoginWithSSO({your_data}) function.
munio.LoginWithSSO({
  token,
  grant_type: "example",
});
  • Register With Email For register using email, you can use RegisterWithEmail({your_data}) function.
munio.RegisterWithEmail({
  name: "Munio Test",
  email: "example@munio.test",
  phone: "08123456781",
  password: "munioTest1234",
  password_confirmation: "munioTest1234",
  grant_type: "example",
});
  • Forgot Passowrd For check email if forgot password, you can use forgotPassword({your_data}) function.
munio.forgotPassword({
  email: "your_email",
});
  • Send OTP For send OTP, you can use sendOTP({your_data}) function.
munio.sendOTP({
  email: "your_email",
});
  • Resend OTP For resend OTP, you can use resendOTP({your_data}) function.
munio.resendOTP({
  email: "your_email",
});
  • Verify OTP For verify OTP, you can use verifyOTP({your_data}) function.
munio.verifyOTP({
  email: "your_email",
  code: "your_code",
});
  • Change or Reset Password For change or reset password, you can use changePassword({your_data}) function.
munio.changePassword({
  password: "your_new_password",
  password_confirmation: "your_new_password_confirmation",
  code: "your_code",
});
  • Check User For check if email belongs to several clients, you can use checkUsers() function.
munio.checkUsers();
  • Profile For get user prfoile information, you can use getProfile() function.
munio.getProfile();
  • Update Profile For update user prfoile information, you can use updateProfile({your_data}) function.
munio.updateProfile({
  name: "Munio Test Update",
  email: "example_update@munio.test",
  phone: "081234567813",
  member: {},
  avatar: 'base64'
});
  • Profile Membership For get profile membership, you can use getProfileMembership() function.
munio.getProfileMembership();
  • Profile Membership Packcage For get profile membership, you can use getProfileMembershipPackage() function..
munio.getProfileMembershipPackage();

Events

  • Get Upcoming Detail To get list of Events, you can use getEvent(your_data) function.
munio.getEvent(category:string, page: number, pageNumber: number, q:string, theme:string, type:string, eventDate:string )
  • Get Upcoming Detail To get list of Upcoming Event, you can use getUpcomingEvent(your_data) function.
munio.getUpcomingEvent(pageNumber: string, page: number);
  • Get Event Detail To get Detail Event, you can use getEventDetail('your slug') function.
munio.getEventDetail(slug: string);
  • Get Themes Event To get list of Themes Event, you can use getThemesEvent() function.
munio.getThemesEvent();
  • Get Categories Event To get list of Categories Event, you can use getCategoriesEvents(your_data) function.
munio.getCategoriesEvents(pageNumber: string, page: number, category: string, q:string);
  • Registration Event For registration event (rsvp), you can use RegistrationEvent({your_data}) function.
munio.RegistrationEvent({
  name: "Munio Test",
  email: "example@munio.test",
  phone: "08123456781",
  package_id: 1,
  qty: 1,
  form_response: [],
  payment_method_id: 1
});
  • Get Detail RSVP To get detail RSVP, you can use getRsvpsDetail(your_data) function.
munio.getRsvpsDetail(number: string);
  • Get List Package Event To get list package event, you can use getListPackageEvent(your_data) function.
munio.getListPackageEvent(id);

Transactions

  • Get Payment Channels To get payment channels, you can use getPaymentChannels(your_data) function.
munio.getPaymentChannels(amount: number);
  • Get List Payment Channels To get list payment channels, you can use getListPaymentChannels(your_data) function.
munio.getListPaymentChannels(type: string, id: any, amount: number);
  • Get Invoice Detail To get invoice detail, you can use getInvoicesDetail(your_data) function.
munio.getInvoicesDetail(hash: string);
  • Update Invoice Detail To update invoice detail, you can use updateInvoiceStatus({your_data}) function.
munio.updateInvoiceStatus({
  status: 'status_value'
});

Posts

  • Get Posts To get list of Posts, you can use getPosts() and getLatestPostsfunction.
munio.getPosts(page: number, q:string)
munio.getLatestPosts(page: number, q:string);
  • Get Categories Post To get list of Categories Post, you can use getCategoriesPost() and getPostsCategories()function.
munio.getCategoriesPost(pageNumber: string, page: number, category: string, q:string);
munio.getPostsCategories();
  • Get Detail Post To get detail post, you can use getPostsDetail(your_data) function.
munio.getPostsDetail(slug: any);

Vacancies

  • Get Vacancies To get vacancies, you can use getVacancies() function.
munio.getVacancies(pageNumber: string);
munio.getFilterVacancies(categoryvacancy?: string,industryvacancy?: string,typevacancy?:string,q?:string, page?: number);
  • Get Categories Vacancy To get categories you can use getVacanciesCategories() function.
munio.getVacanciesCategories();
  • Get Type Vacancy To get Type you can use getVacanciesTypes() function.
munio.getVacanciesTypes();
  • Get Industries Vacancy To get Industries you can use getIndustries() function.
munio.getIndustries();
  • Get Vacancy Detail To get Detail you can use getVacanciesDetail(your_data) function.
munio.getDetailVacancy(slug: string);

Campaigns

  • Get Campaigns To get Campaigns you can use getCampaigns(your_data) function.
munio.getCampaigns(page?: number, q?: string, per_page?: number, categories: string, date: any);
  • Get Campaigns Finished To get Campaigns was finished, you can use getCampaignsFinished({your_data}) function.
munio.getCampaignsFinished(page?: number, q?: string, per_page?: number, categories: string, date: any);
  • Get Campaign Detail To get Campaign Detail you can use getCampaignDetail(your_data) function.
munio.getCampaignDetail(id: string);
  • Get Campaign Categories To get Campaigns you can use getCampaignCategories() function.
munio.getCampaignCategories();
  • Create Donation To create donation, you can use CreateDonation({your_data}) function.
munio.CreateDonation({
  amount: 'amount_value'
  campaign_id: 'campaign_id_value'
  payment_method_id: 'payment_method_id_value'
  name: 'name_value'
  phone: 'phone_value'
  email: 'email_value'
  is_anonymous email: 'is_anonymous_value'
});

Activities

  • Get Identifier To get Identifier you can use getIdentifierActivities() function.
munio.getIdentifierActivities();
  • Count View To count view for 'events' or 'news', you can use countView({your_data}) function.
munio.countView({
  type: 'type'
  slug: 'slug_value'
  identifier: 'identifier_value'
});
  • Count Share To count share for 'events' or 'news', you can use countShare({your_data}) function.
munio.countShare({
  type: 'type'
  slug: 'slug_value'
  identifier: 'identifier_value'
});

Commerce - Product

  • Get Products Commerce To get List Products you can use getProductsCommerce(yourdata) function.
munio.getProductsCommerce(page?: number, q?: string, per_page?: number, category?: string, order?: string, orderby?: string, show_all?: boolean);
  • Get Categories Product Commerce To get Categories Product you can use getCategoriesProductCommerce() function.
munio.getCategoriesProductCommerce();
  • Get Product Commerce Detail To get Campaign Detail you can use getProductCommerceDetail(your_data) function.
munio.getProductCommerceDetail(id);

Commerce - Orders

  • Create Order To create order, you can use CreateOrders({your_data}) function.
munio.CreateOrders({
  name: 'name_value'
  email: 'email_value'
  phone: 'phone_value'
  address: 'address_value'
  country: 'country_value'
  state: 'state_value'
  district: 'district_value'
  subdistrict: 'subdistrict_value'
  postcode: 'postcode_value'
  items: 'items_value'
  shipping_destination_id: 'shipping_destination_id_value'
  shipping_courier: 'shipping_courier_value'
  payment_method_id: 'payment_method_id_value'
});
  • Get Order Detail To get order detail, you can use getOrderDetail() function.
munio.getOrderDetail();
  • Get Orders Shipment States To get Orders Shipment States, you can use getOrdersShipmentStates() function.
munio.getOrdersShipmentStates();
  • Get Orders Shipment State Detail To get Orders Shipment State Detail, you can use getOrdersShipmentStateDetail(your_data) function.
munio.getOrdersShipmentStateDetail(id);
  • Get Orders Shipment Districts To get Orders Shipment Districts, you can use getOrdersShipmentDistricts(your_data) function.
munio.getOrdersShipmentDistricts(state);
  • Get Orders Shipment District Detail To get Orders Shipment District Detail, you can use getOrdersShipmentDistrictDetail(your_data) function.
munio.getOrdersShipmentDistrictDetail(id);
  • Get Orders Shipment Subdistricts To get Orders Shipment Subdistricts, you can use getOrdersShipmentSubdistricts(your_data) function.
munio.getOrdersShipmentSubdistricts(district);
  • Get Orders Shipment Subdistrict Detail To get Orders Shipment Subdistrict Detail, you can use getOrdersShipmentSubdistrictDetail(your_data) function.
munio.getOrdersShipmentSubdistrictDetail(id);
  • Check Order Shipment Costs To Check Order Shipment Costs, you can use CheckOrderShipementCosts(your_data) function.
munio.CheckOrderShipementCosts(products, shipping_destination_id);

Other

  • Get List To get list Major, you can use ggetMajorList() function.
munio.getMajorList();

:warning: Note: Munio Client JS is still under development, and some function might be change.

0.3.46

4 months ago

0.3.45

6 months ago

0.3.44

10 months ago

0.3.43

11 months ago

0.3.42

1 year ago

0.3.41

1 year ago

0.3.39

1 year ago

0.3.40

1 year ago

0.3.38

1 year ago

0.3.37

1 year ago

0.3.36

1 year ago

0.3.35

1 year ago

0.3.34

1 year ago

0.3.33

1 year ago

0.3.32

1 year ago

0.3.31

1 year ago

0.3.30

1 year ago

0.3.29

1 year ago

0.3.28

1 year ago

0.3.27

1 year ago

0.3.26

1 year ago

0.3.25

1 year ago

0.3.24

1 year ago

0.3.23

1 year ago

0.3.22

1 year ago

0.3.21

1 year ago

0.3.20

1 year ago

0.3.17

1 year ago

0.3.19

1 year ago

0.3.18

1 year ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.14

1 year ago

0.3.13

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

1 year ago

0.3.9

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.3.1

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago