Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-17 22:20:21 +00:00
parent ce58fd0fbe
commit ef70da5380
145 changed files with 145 additions and 145 deletions

View File

@@ -79,5 +79,5 @@
"prepare": "npm run build"
},
"types": "index.d.ts",
"version": "1.0.769"
"version": "1.0.770"
}

View File

@@ -1,4 +1,4 @@
const { AddressService } = require("m3o/address");
const { AddressService } = require("micro-js-client/address");
// Lookup a list of UK addresses by postcode
async function lookupPostcode() {

View File

@@ -1,4 +1,4 @@
const { AnswerService } = require("m3o/answer");
const { AnswerService } = require("micro-js-client/answer");
// Ask a question and receive an instant answer
async function askAquestion() {

View File

@@ -1,4 +1,4 @@
const { CacheService } = require("m3o/cache");
const { CacheService } = require("micro-js-client/cache");
// Decrement a value (if it's a number). If key not found it is equivalent to set.
async function decrementAvalue() {

View File

@@ -1,4 +1,4 @@
const { CacheService } = require("m3o/cache");
const { CacheService } = require("micro-js-client/cache");
// Delete a value from the cache. If key not found a success response is returned.
async function deleteAvalue() {

View File

@@ -1,4 +1,4 @@
const { CacheService } = require("m3o/cache");
const { CacheService } = require("micro-js-client/cache");
// Get an item from the cache by key. If key is not found, an empty response is returned.
async function getAvalue() {

View File

@@ -1,4 +1,4 @@
const { CacheService } = require("m3o/cache");
const { CacheService } = require("micro-js-client/cache");
// Increment a value (if it's a number). If key not found it is equivalent to set.
async function incrementAvalue() {

View File

@@ -1,4 +1,4 @@
const { CacheService } = require("m3o/cache");
const { CacheService } = require("micro-js-client/cache");
// Set an item in the cache. Overwrites any existing value already set.
async function setAvalue() {

View File

@@ -1,4 +1,4 @@
const { CryptoService } = require("m3o/crypto");
const { CryptoService } = require("micro-js-client/crypto");
// Returns the history for the previous close
async function getPreviousClose() {

View File

@@ -1,4 +1,4 @@
const { CryptoService } = require("m3o/crypto");
const { CryptoService } = require("micro-js-client/crypto");
// Get news related to a currency
async function getCryptocurrencyNews() {

View File

@@ -1,4 +1,4 @@
const { CryptoService } = require("m3o/crypto");
const { CryptoService } = require("micro-js-client/crypto");
// Get the last price for a given crypto ticker
async function getCryptocurrencyPrice() {

View File

@@ -1,4 +1,4 @@
const { CryptoService } = require("m3o/crypto");
const { CryptoService } = require("micro-js-client/crypto");
// Get the last quote for a given crypto ticker
async function getAcryptocurrencyQuote() {

View File

@@ -1,4 +1,4 @@
const { CurrencyService } = require("m3o/currency");
const { CurrencyService } = require("micro-js-client/currency");
// Codes returns the supported currency codes for the API
async function getSupportedCodes() {

View File

@@ -1,4 +1,4 @@
const { CurrencyService } = require("m3o/currency");
const { CurrencyService } = require("micro-js-client/currency");
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
async function convert10usdToGbp() {

View File

@@ -1,4 +1,4 @@
const { CurrencyService } = require("m3o/currency");
const { CurrencyService } = require("micro-js-client/currency");
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
async function convertUsdToGbp() {

View File

@@ -1,4 +1,4 @@
const { CurrencyService } = require("m3o/currency");
const { CurrencyService } = require("micro-js-client/currency");
// Returns the historic rates for a currency on a given date
async function historicRatesForAcurrency() {

View File

@@ -1,4 +1,4 @@
const { CurrencyService } = require("m3o/currency");
const { CurrencyService } = require("micro-js-client/currency");
// Rates returns the currency rates for a given code e.g USD
async function getRatesForUsd() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Count records in a table
async function countEntriesInAtable() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Create a record in the database. Optionally include an "id" field otherwise it's set automatically.
async function createArecord() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Delete a record in the database by id.
async function deleteArecord() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Drop a table in the DB
async function dropTable() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// List tables in the DB
async function listTables() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Read data from a table. Lookup can be by ID or via querying any field in the record.
async function readRecords() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Rename a table
async function renameTable() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Truncate the records in a table
async function truncateTable() {

View File

@@ -1,4 +1,4 @@
const { DbService } = require("m3o/db");
const { DbService } = require("micro-js-client/db");
// Update a record in the database. Include an "id" in the record to update.
async function updateArecord() {

View File

@@ -1,4 +1,4 @@
const { EmailService } = require("m3o/email");
const { EmailService } = require("micro-js-client/email");
// Send an email by passing in from, to, subject, and a text or html body
async function sendEmail() {

View File

@@ -1,4 +1,4 @@
const { EmojiService } = require("m3o/emoji");
const { EmojiService } = require("micro-js-client/emoji");
// Find an emoji by its alias e.g :beer:
async function findEmoji() {

View File

@@ -1,4 +1,4 @@
const { EmojiService } = require("m3o/emoji");
const { EmojiService } = require("micro-js-client/emoji");
// Get the flag for a country. Requires country code e.g GB for great britain
async function getFlagByCountryCode() {

View File

@@ -1,4 +1,4 @@
const { EmojiService } = require("m3o/emoji");
const { EmojiService } = require("micro-js-client/emoji");
// Print text and renders the emojis with aliases e.g
// let's grab a :beer: becomes let's grab a 🍺

View File

@@ -1,4 +1,4 @@
const { EmojiService } = require("m3o/emoji");
const { EmojiService } = require("micro-js-client/emoji");
// Send an emoji to anyone via SMS. Messages are sent in the form '<message> Sent from <from>'
async function sendAtextContainingAnEmojiToAnyoneViaSms() {

View File

@@ -1,4 +1,4 @@
const { EvchargersService } = require("m3o/evchargers");
const { EvchargersService } = require("micro-js-client/evchargers");
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
async function getReferenceData() {

View File

@@ -1,4 +1,4 @@
const { EvchargersService } = require("m3o/evchargers");
const { EvchargersService } = require("micro-js-client/evchargers");
// Search by giving a coordinate and a max distance, or bounding box and optional filters
async function searchByBoundingBox() {

View File

@@ -1,4 +1,4 @@
const { EvchargersService } = require("m3o/evchargers");
const { EvchargersService } = require("micro-js-client/evchargers");
// Search by giving a coordinate and a max distance, or bounding box and optional filters
async function searchByLocation() {

View File

@@ -1,4 +1,4 @@
const { EvchargersService } = require("m3o/evchargers");
const { EvchargersService } = require("micro-js-client/evchargers");
// Search by giving a coordinate and a max distance, or bounding box and optional filters
async function searchWithFiltersFastChargersOnly() {

View File

@@ -1,4 +1,4 @@
const { EventService } = require("m3o/event");
const { EventService } = require("micro-js-client/event");
// Consume events from a given topic.
async function consumeFromAtopic() {

View File

@@ -12,9 +12,9 @@ func PublishAnEvent() {
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := eventService.Publish(&event.PublishRequest{
Message: map[string]interface{}{
"id": "1",
"type": "signup",
"user": "john",
"id": "1",
},
Topic: "user",
})

View File

@@ -1,4 +1,4 @@
const { EventService } = require("m3o/event");
const { EventService } = require("micro-js-client/event");
// Publish a event to the event stream.
async function publishAnEvent() {

View File

@@ -1,4 +1,4 @@
const { EventService } = require("m3o/event");
const { EventService } = require("micro-js-client/event");
// Read stored events
async function readEventsOnAtopic() {

View File

@@ -1,4 +1,4 @@
const { FileService } = require("m3o/file");
const { FileService } = require("micro-js-client/file");
// Delete a file by project name/path
async function deleteFile() {

View File

@@ -1,4 +1,4 @@
const { FileService } = require("m3o/file");
const { FileService } = require("micro-js-client/file");
// List files by their project and optionally a path.
async function listFiles() {

View File

@@ -1,4 +1,4 @@
const { FileService } = require("m3o/file");
const { FileService } = require("micro-js-client/file");
// Read a file by path
async function readFile() {

View File

@@ -1,4 +1,4 @@
const { FileService } = require("m3o/file");
const { FileService } = require("micro-js-client/file");
// Save a file
async function saveFile() {

View File

@@ -1,4 +1,4 @@
const { ForexService } = require("m3o/forex");
const { ForexService } = require("micro-js-client/forex");
// Returns the data for the previous close
async function getPreviousClose() {

View File

@@ -1,4 +1,4 @@
const { ForexService } = require("m3o/forex");
const { ForexService } = require("micro-js-client/forex");
// Get the latest price for a given forex ticker
async function getAnFxPrice() {

View File

@@ -1,4 +1,4 @@
const { ForexService } = require("m3o/forex");
const { ForexService } = require("micro-js-client/forex");
// Get the latest quote for the forex
async function getAfxQuote() {

View File

@@ -1,4 +1,4 @@
const { FunctionService } = require("m3o/function");
const { FunctionService } = require("micro-js-client/function");
// Call a function by name
async function callAfunction() {

View File

@@ -1,4 +1,4 @@
const { FunctionService } = require("m3o/function");
const { FunctionService } = require("micro-js-client/function");
// Delete a function by name
async function deleteAfunction() {

View File

@@ -1,4 +1,4 @@
const { FunctionService } = require("m3o/function");
const { FunctionService } = require("micro-js-client/function");
// Deploy a group of functions
async function deployAfunction() {

View File

@@ -1,4 +1,4 @@
const { FunctionService } = require("m3o/function");
const { FunctionService } = require("micro-js-client/function");
// Get the info for a deployed function
async function describeFunctionStatus() {

View File

@@ -1,4 +1,4 @@
const { FunctionService } = require("m3o/function");
const { FunctionService } = require("micro-js-client/function");
// List all the deployed functions
async function listFunctions() {

View File

@@ -1,4 +1,4 @@
const { GeocodingService } = require("m3o/geocoding");
const { GeocodingService } = require("micro-js-client/geocoding");
// Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results
async function geocodeAnAddress() {

View File

@@ -1,4 +1,4 @@
const { GeocodingService } = require("m3o/geocoding");
const { GeocodingService } = require("micro-js-client/geocoding");
// Reverse lookup an address from gps coordinates
async function reverseGeocodeLocation() {

View File

@@ -1,4 +1,4 @@
const { GifsService } = require("m3o/gifs");
const { GifsService } = require("micro-js-client/gifs");
// Search for a GIF
async function search() {

View File

@@ -1,4 +1,4 @@
const { GoogleService } = require("m3o/google");
const { GoogleService } = require("micro-js-client/google");
// Search for videos on Google
async function searchForVideos() {

View File

@@ -1,4 +1,4 @@
const { HelloworldService } = require("m3o/helloworld");
const { HelloworldService } = require("micro-js-client/helloworld");
// Call returns a personalised "Hello $name" response
async function callTheHelloworldService() {

View File

@@ -1,4 +1,4 @@
const { HelloworldService } = require("m3o/helloworld");
const { HelloworldService } = require("micro-js-client/helloworld");
// Stream returns a stream of "Hello $name" responses
async function streamsResponsesFromTheServerUsingWebsockets() {

View File

@@ -1,4 +1,4 @@
const { HolidaysService } = require("m3o/holidays");
const { HolidaysService } = require("micro-js-client/holidays");
// Get the list of countries that are supported by this API
async function listCountries() {

View File

@@ -1,4 +1,4 @@
const { HolidaysService } = require("m3o/holidays");
const { HolidaysService } = require("micro-js-client/holidays");
// List the holiday dates for a given country and year
async function getHolidays() {

View File

@@ -1,4 +1,4 @@
const { IdService } = require("m3o/id");
const { IdService } = require("micro-js-client/id");
// Generate a unique ID. Defaults to uuid.
async function generateAbigflakeId() {

View File

@@ -1,4 +1,4 @@
const { IdService } = require("m3o/id");
const { IdService } = require("micro-js-client/id");
// Generate a unique ID. Defaults to uuid.
async function generateAshortId() {

View File

@@ -1,4 +1,4 @@
const { IdService } = require("m3o/id");
const { IdService } = require("micro-js-client/id");
// Generate a unique ID. Defaults to uuid.
async function generateAsnowflakeId() {

View File

@@ -1,4 +1,4 @@
const { IdService } = require("m3o/id");
const { IdService } = require("micro-js-client/id");
// Generate a unique ID. Defaults to uuid.
async function generateAuniqueId() {

View File

@@ -1,4 +1,4 @@
const { IdService } = require("m3o/id");
const { IdService } = require("micro-js-client/id");
// List the types of IDs available. No query params needed.
async function listTheTypesOfIdsAvailable() {

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64),
// or by uploading the conversion result.

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Delete an image previously uploaded.
async function deleteAnUploadedImage() {

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
// If one of width or height is 0, the image aspect ratio is preserved.

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
// If one of width or height is 0, the image aspect ratio is preserved.

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
// If one of width or height is 0, the image aspect ratio is preserved.

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
// To resize an image before uploading, see the Resize endpoint.

View File

@@ -1,4 +1,4 @@
const { ImageService } = require("m3o/image");
const { ImageService } = require("micro-js-client/image");
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
// To resize an image before uploading, see the Resize endpoint.

View File

@@ -1,4 +1,4 @@
const { IpService } = require("m3o/ip");
const { IpService } = require("micro-js-client/ip");
// Lookup the geolocation information for an IP address
async function lookupIpInfo() {

View File

@@ -1,4 +1,4 @@
const { LocationService } = require("m3o/location");
const { LocationService } = require("micro-js-client/location");
// Read an entity by its ID
async function getLocationById() {

View File

@@ -1,4 +1,4 @@
const { LocationService } = require("m3o/location");
const { LocationService } = require("micro-js-client/location");
// Save an entity's current position
async function saveAnEntity() {

View File

@@ -1,4 +1,4 @@
const { LocationService } = require("m3o/location");
const { LocationService } = require("micro-js-client/location");
// Search for entities in a given radius
async function searchForLocations() {

View File

@@ -1,4 +1,4 @@
const { MqService } = require("m3o/mq");
const { MqService } = require("micro-js-client/mq");
// Publish a message. Specify a topic to group messages for a specific topic.
async function publishAmessage() {

View File

@@ -1,4 +1,4 @@
const { MqService } = require("m3o/mq");
const { MqService } = require("micro-js-client/mq");
// Subscribe to messages for a given topic.
async function subscribeToAtopic() {

View File

@@ -1,4 +1,4 @@
const { NotesService } = require("m3o/notes");
const { NotesService } = require("micro-js-client/notes");
// Create a new note
async function createAnote() {

View File

@@ -1,4 +1,4 @@
const { NotesService } = require("m3o/notes");
const { NotesService } = require("micro-js-client/notes");
// Delete a note
async function deleteAnote() {

View File

@@ -1,4 +1,4 @@
const { NotesService } = require("m3o/notes");
const { NotesService } = require("micro-js-client/notes");
// Subscribe to notes events
async function subscribeToEvents() {

View File

@@ -1,4 +1,4 @@
const { NotesService } = require("m3o/notes");
const { NotesService } = require("micro-js-client/notes");
// List all the notes
async function listAllNotes() {

View File

@@ -1,4 +1,4 @@
const { NotesService } = require("m3o/notes");
const { NotesService } = require("micro-js-client/notes");
// Read a note
async function readAnote() {

View File

@@ -1,4 +1,4 @@
const { NotesService } = require("m3o/notes");
const { NotesService } = require("micro-js-client/notes");
// Update a note
async function updateAnote() {

View File

@@ -1,4 +1,4 @@
const { OtpService } = require("m3o/otp");
const { OtpService } = require("micro-js-client/otp");
// Generate an OTP (one time pass) code
async function generateOtp() {

View File

@@ -1,4 +1,4 @@
const { OtpService } = require("m3o/otp");
const { OtpService } = require("micro-js-client/otp");
// Validate the OTP code
async function validateOtp() {

View File

@@ -1,4 +1,4 @@
const { PostcodeService } = require("m3o/postcode");
const { PostcodeService } = require("micro-js-client/postcode");
// Lookup a postcode to retrieve the related region, county, etc
async function lookupPostcode() {

View File

@@ -1,4 +1,4 @@
const { PostcodeService } = require("m3o/postcode");
const { PostcodeService } = require("micro-js-client/postcode");
// Return a random postcode and its related info
async function returnArandomPostcodeAndItsInformation() {

View File

@@ -1,4 +1,4 @@
const { PostcodeService } = require("m3o/postcode");
const { PostcodeService } = require("micro-js-client/postcode");
// Validate a postcode.
async function returnArandomPostcodeAndItsInformation() {

View File

@@ -1,4 +1,4 @@
const { PrayerService } = require("m3o/prayer");
const { PrayerService } = require("micro-js-client/prayer");
// Get the prayer (salah) times for a location on a given date
async function prayerTimes() {

View File

@@ -1,4 +1,4 @@
const { QrService } = require("m3o/qr");
const { QrService } = require("micro-js-client/qr");
// Generate a QR code with a specific text and size
async function generateAqrCode() {

View File

@@ -1,4 +1,4 @@
const { QuranService } = require("m3o/quran");
const { QuranService } = require("micro-js-client/quran");
// List the Chapters (surahs) of the Quran
async function listChapters() {

View File

@@ -1,4 +1,4 @@
const { QuranService } = require("m3o/quran");
const { QuranService } = require("micro-js-client/quran");
// Search the Quran for any form of query or questions
async function searchTheQuran() {

View File

@@ -1,4 +1,4 @@
const { QuranService } = require("m3o/quran");
const { QuranService } = require("micro-js-client/quran");
// Get a summary for a given chapter (surah)
async function getChapterSummary() {

View File

@@ -1,4 +1,4 @@
const { QuranService } = require("m3o/quran");
const { QuranService } = require("micro-js-client/quran");
// Lookup the verses (ayahs) for a chapter including
// translation, interpretation and breakdown by individual

View File

@@ -1,4 +1,4 @@
const { RoutingService } = require("m3o/routing");
const { RoutingService } = require("micro-js-client/routing");
// Turn by turn directions from a start point to an end point including maneuvers and bearings
async function turnByTurnDirections() {

View File

@@ -1,4 +1,4 @@
const { RoutingService } = require("m3o/routing");
const { RoutingService } = require("micro-js-client/routing");
// Get the eta for a route from origin to destination. The eta is an estimated time based on car routes
async function etaFromPointAtoPointB() {

View File

@@ -1,4 +1,4 @@
const { RoutingService } = require("m3o/routing");
const { RoutingService } = require("micro-js-client/routing");
// Retrieve a route as a simple list of gps points along with total distance and estimated duration
async function gpsPointsForAroute() {

View File

@@ -1,4 +1,4 @@
const { RssService } = require("m3o/rss");
const { RssService } = require("micro-js-client/rss");
// Add a new RSS feed with a name, url, and category
async function addAnewFeed() {

View File

@@ -1,4 +1,4 @@
const { RssService } = require("m3o/rss");
const { RssService } = require("micro-js-client/rss");
// Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries.
async function readAfeed() {

View File

@@ -1,4 +1,4 @@
const { RssService } = require("m3o/rss");
const { RssService } = require("micro-js-client/rss");
// List the saved RSS fields
async function listRssFeeds() {

Some files were not shown because too many files have changed in this diff Show More