1.9.0 • Published 3 years ago

@keugs/keugsapis v1.9.0

Weekly downloads
43
License
Apache 2.0
Repository
-
Last release
3 years ago

@keugs/keugsapis

@KeugsKeugsapis - JavaScript client for @keugs/keugsapis keugsapis definitions This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.1
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install @keugs/keugsapis --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your @keugs/keugsapis from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var @KeugsKeugsapis = require('@keugs/keugsapis');

var defaultClient = @KeugsKeugsapis.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-KEUGS-KEY'] = "Token"

var api = new @KeugsKeugsapis.AuthApi()
var opts = {
  'confirmVisitorRequest': new @KeugsKeugsapis.ConfirmVisitorRequest() // {ConfirmVisitorRequest} 
};
api.confirmVisitor(opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://keugs.cloud.tyk.io/api/v1

ClassMethodHTTP requestDescription
@KeugsKeugsapis.AuthApiconfirmVisitorPOST /auth/register/confirmConfirms if the email and code is valid
@KeugsKeugsapis.AuthApifindMyWorkspaceGET /auth/workspace/{workspaceName}searches for a workspace by name
@KeugsKeugsapis.AuthApiforgotPasswordPOST /auth/forgot_passwordRequest for a password reset
@KeugsKeugsapis.AuthApiloginPOST /authAuthorize login request
@KeugsKeugsapis.AuthApiregisterUserWorkspacePOST /auth/register/workspaceCreates a new workspace associated with a user
@KeugsKeugsapis.AuthApiverifyVisitorPOST /auth/register/verifySends a code to the email/mobile no for verification
@KeugsKeugsapis.BankContactApiaddBankContactPOST /bank_contactsAdd a new bankContact
@KeugsKeugsapis.BankContactApifindBankContactsPOST /bank_contacts/queryFind bankcontact based on query
@KeugsKeugsapis.CardApideleteCardDELETE /card/{cardId}Delete card by ID
@KeugsKeugsapis.CardApifindCardPOST /card/queryFind Cards based on query
@KeugsKeugsapis.CardApigetCardByIdGET /card/{cardId}Find card by ID
@KeugsKeugsapis.CardApisetDefaultCardGET /card/{cardId}/defaultSet the specified card as the default card
@KeugsKeugsapis.CategoryApiaddCategoryPOST /categoryAdd a new category
@KeugsKeugsapis.CategoryApideleteCategoryDELETE /category/{categoryId}Delete category by ID
@KeugsKeugsapis.CategoryApifindCategoriesPOST /category/queryFind Customers based on query
@KeugsKeugsapis.CategoryApigetCategoryByIdGET /category/{categoryId}Find category by ID
@KeugsKeugsapis.CategoryApiupdateCategoryPUT /category/{categoryId}Update an existing category
@KeugsKeugsapis.CustomerApiaddCustomerPOST /customerAdd a new customer to the database
@KeugsKeugsapis.CustomerApideleteCustomerDELETE /customer/{customerId}Delete customer by ID
@KeugsKeugsapis.CustomerApifindCustomersPOST /customer/queryFind Customers based on query
@KeugsKeugsapis.CustomerApigetCustomerByIdGET /customer/{customerId}Find customer by ID
@KeugsKeugsapis.CustomerApiupdateCustomerPUT /customer/{customerId}Update an existing customer
@KeugsKeugsapis.DeliveryApiaddDeliveryPOST /deliveryAdd a new delivery to the database
@KeugsKeugsapis.DeliveryApicancelDeliveryDELETE /delivery/{deliveryId}Cancel delivery by ID
@KeugsKeugsapis.DeliveryApifindDeliveriesPOST /delivery/queryFind Deliveries based on query
@KeugsKeugsapis.DeliveryApigetDeliveryByIdGET /delivery/{deliveryId}Find delivery by ID
@KeugsKeugsapis.DeliveryApitrackDeliveryGET /delivery/track/{referenceNo}Tracks a particular delivery. This operation returns a stream
@KeugsKeugsapis.DeliveryApiupdateDeliveryPUT /delivery/{deliveryId}Update an existing delivery
@KeugsKeugsapis.DeviceApifindDevicesPOST /device/queryFind Devices based on query
@KeugsKeugsapis.DeviceApigetDeviceGET /device/{userId}get all devices
@KeugsKeugsapis.DeviceApiregisterPOST /device/registerRegister a device to a user
@KeugsKeugsapis.DeviceApiunregisterPOST /device/unregisterUnregister a device from a user
@KeugsKeugsapis.DispatchApifindDispatchesPOST /dispatch/queryretrieves multiple dispatch depending on the query given.
@KeugsKeugsapis.DispatchApigetDispatchGET /dispatch/{dispatchId}retrieves a particular dispatch
@KeugsKeugsapis.DispatchApiupdateDispatchPUT /dispatch/{dispatchId}Update an existing dispatch
@KeugsKeugsapis.InvoiceApifindInvoicePOST /invoice/queryFind Invoice based on query
@KeugsKeugsapis.InvoiceApigenerateInvoicePOST /invoice/generategenerates a new invoice
@KeugsKeugsapis.InvoiceApigetInvoiceByIdGET /invoice/{invoiceId}Find invoice by ID
@KeugsKeugsapis.ItemApiaddItemPOST /itemAdd a new item
@KeugsKeugsapis.ItemApideleteItemDELETE /item/{itemId}Delete item by ID
@KeugsKeugsapis.ItemApifindItemsPOST /item/queryFind Items based on query
@KeugsKeugsapis.ItemApigetItemByIdGET /item/{itemId}Find item by ID
@KeugsKeugsapis.ItemApiupdateItemPUT /item/{itemId}Update an existing Item
@KeugsKeugsapis.NotificationApifindNotificationsPOST /notification/queryFind Notification based on query
@KeugsKeugsapis.NotificationApigetNotificationByIdGET /notification/{notificationId}Find notification by ID
@KeugsKeugsapis.NotificationApireadNotificationGET /notification/read/{notificationId}read notification
@KeugsKeugsapis.NotificationApisendNotificationPOST /notificationsends notification(s)
@KeugsKeugsapis.NotificationApisubscribePOST /subscribeSubscribe to a notification event
@KeugsKeugsapis.NotificationApiunsubscribePOST /unsubscribeUnsubscribe from receiving a specific notification
@KeugsKeugsapis.PaymentApiaddPaymentPOST /paymentsmake a new payment
@KeugsKeugsapis.PlanApifindPlansPOST /plan/queryFind Plan based on query
@KeugsKeugsapis.PlanApigetPlanByIdGET /plan/{planId}Find plan by ID
@KeugsKeugsapis.PricingApiaddPriceConfigurationPOST /pricing/configurationAdds a new price configuration
@KeugsKeugsapis.PricingApideletePricingConfigurationDELETE /pricing/configuration/{configurationId}Delete price configuration by ID
@KeugsKeugsapis.PricingApifetchDeliveryEstimatePOST /pricing/delivery_estimateGets price estimate for a delivery
@KeugsKeugsapis.PricingApigetPriceConfigurationPOST /pricing/configuration/queryRetrieves a list of price configuration
@KeugsKeugsapis.PricingApigetPriceConfigurationByIdGET /pricing/configuration/{configurationId}Find price configuration by ID
@KeugsKeugsapis.PricingApiupdatePriceConfigurationPUT /pricing/configuration/{configurationId}Update an existing price configuration
@KeugsKeugsapis.PurchaseApifindPurchasePOST /purchase/queryFind Purchase based on query
@KeugsKeugsapis.PurchaseApigetPurchaseByIdGET /purchase/{purchaseId}Find purchase by ID
@KeugsKeugsapis.RatingsApiaddRatingPOST /ratingsAdds a new ratings
@KeugsKeugsapis.RatingsApigetRatingsPOST /ratings/queryRetrieves a list of rating
@KeugsKeugsapis.RegionApigetRegionByIdGET /region/{regionId}Find region by ID
@KeugsKeugsapis.RegionApigetRegionsPOST /region/queryRetrieves a list of regions
@KeugsKeugsapis.RoleApiaddRolePOST /roleAdd a new role to the database
@KeugsKeugsapis.RoleApiaddUserToRoleGET /role/{roleId}/add/{userId}Adds a user to a role
@KeugsKeugsapis.RoleApideleteRoleDELETE /role/{roleId}Delete role by ID
@KeugsKeugsapis.RoleApifindRolesPOST /role/queryFind Roles based on query
@KeugsKeugsapis.RoleApigetRoleByIdGET /role/{roleId}Find role by ID
@KeugsKeugsapis.RoleApisetRolePermissionPOST /role/set_permissionUpdates a particular permission
@KeugsKeugsapis.RoleApiupdateRolePUT /role/{roleId}Update an existing role
@KeugsKeugsapis.StoreApiaddStorePOST /storeAdd a new store
@KeugsKeugsapis.StoreApideleteStoreDELETE /store/{storeId}Delete store by ID
@KeugsKeugsapis.StoreApifindStoresPOST /store/queryFind Stores based on query
@KeugsKeugsapis.StoreApigetStoreByIdGET /store/{storeId}Find store by ID
@KeugsKeugsapis.StoreApiupdateStorePUT /store/{storeId}Update an existing store
@KeugsKeugsapis.SubscriptionApiaddSubscriptionPOST /subscriptionAdd a new subscription
@KeugsKeugsapis.SubscriptionApideleteSubscriptionDELETE /subscription/{subscriptionId}Delete subscription by ID
@KeugsKeugsapis.SubscriptionApifindSubscriptionsPOST /subscription/queryFind Subscription based on query
@KeugsKeugsapis.SubscriptionApigetSubscriptionByIdGET /subscription/{subscriptionId}Find subscription by ID
@KeugsKeugsapis.TransactionApidepositPOST /transaction/depositInitiate a deposit
@KeugsKeugsapis.TransactionApifindTransactionPOST /transaction/queryFind Transaction based on query
@KeugsKeugsapis.TransactionApigetTotalAmountPOST /transaction/total_amountGet the sum of transaction amount
@KeugsKeugsapis.TransactionApigetTransactionByIdGET /transaction/{transactionId}Find transaction by id
@KeugsKeugsapis.TransactionApiinitializeTransactionPOST /transactionInitialize a new transaction
@KeugsKeugsapis.TransactionApitransferPOST /transaction/transferInitiate a new transfer
@KeugsKeugsapis.TransactionApiwithdrawPOST /transaction/withdrawWithdraw funds to a bank account
@KeugsKeugsapis.UploadApiuploadFilePOST /uploadUpload a file to storage
@KeugsKeugsapis.UserApiaddUserPOST /userAdd a new user to the database
@KeugsKeugsapis.UserApideleteUserDELETE /user/{userId}Delete user by ID
@KeugsKeugsapis.UserApifindUsersPOST /user/queryFind Users based on query
@KeugsKeugsapis.UserApigetUserByIdGET /user/{userId}Find user by ID
@KeugsKeugsapis.UserApigetUserRoleGET /user/{userId}/roleGet user's role by ID
@KeugsKeugsapis.UserApiupdateUserPUT /user/{userId}Update an existing user
@KeugsKeugsapis.VehicleApiaddVehiclePOST /vehicleAdd a new vehicle
@KeugsKeugsapis.VehicleApideleteVehicleDELETE /vehicle/{vehicleId}Delete vehicle by ID
@KeugsKeugsapis.VehicleApifindVehiclesPOST /vehicle/queryFind Vehicles based on query
@KeugsKeugsapis.VehicleApigetVehicleByIdGET /vehicle/{vehicleId}Find vehicle by ID
@KeugsKeugsapis.VehicleApiupdateVehiclePUT /vehicle/{vehicleId}Update an existing vehicle
@KeugsKeugsapis.WalletApiaddWalletPOST /walletadd a new wallet to the database
@KeugsKeugsapis.WalletApifindWalletsPOST /wallet/queryFind Wallets based on query
@KeugsKeugsapis.WalletApigetWalletByIdGET /wallet/{walletId}Find wallet by ID
@KeugsKeugsapis.WalletApigetWalletTotalDepositGET /wallet/{userId}/total_depositsSum Total deposits
@KeugsKeugsapis.WalletApigetWalletTotalExpenseGET /wallet/{userId}/total_expensesSum total expenses
@KeugsKeugsapis.WalletApiupdateWalletPUT /wallet/{walletId}Update an existing wallet
@KeugsKeugsapis.WebhookApitriggerWebHookPOST /webhookTrigger the webhook
@KeugsKeugsapis.WorkspaceApicreateWorkspacePOST /workspacecreate workspace
@KeugsKeugsapis.WorkspaceApifindWorkspacesPOST /workspace/queryFind Workspace based on query
@KeugsKeugsapis.WorkspaceApigetWorkspaceByIdGET /workspace/{workspaceId}Find workspace by ID
@KeugsKeugsapis.WorkspaceApiupdateWorkspacePUT /workspace/{workspaceId}Update an existing workspace
@KeugsKeugsapis.WorkspaceApiworkspaceExistGET /workspace/{name}/existFind workspace by ID
@KeugsKeugsapis.ZoneApigetZoneByIdGET /zone/{zoneId}Find zone by ID
@KeugsKeugsapis.ZoneApigetZonesPOST /zone/queryRetrieves a list of zones

Documentation for Models

Documentation for Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-KEUGS-KEY
  • Location: HTTP header

bearerAuth

  • Type: Bearer authentication (JWT)
1.9.0

3 years ago

1.8.9

3 years ago

1.8.8

3 years ago

1.8.7

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.8.4

3 years ago

1.8.3

3 years ago

1.8.2

3 years ago

1.8.0

3 years ago

1.7.7

3 years ago

1.7.6

3 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.6.8

4 years ago

1.6.7

4 years ago

1.6.6

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.5.9

4 years ago

1.5.3

4 years ago

1.4.9

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.3

4 years ago

1.4.0

4 years ago

1.3.9

4 years ago

1.3.7

4 years ago

1.3.8

4 years ago

1.3.2

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.0.9

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago