utils/url.js
Helps with URL functions.
Example:app.utils.url.domain(link);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: domain
Animate your life. Don't be static.
utils/url.js
Helps with URL functions.
Example:app.utils.url.domain(link);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: domain
api/fortnox.js
Makes it easy to work with Fortnox API.
Example:app.api.fortnox.createOrder(options, order);
app.api.fortnox.updateCustomer(options, customer);
app.api.fortnox.getCustomers(options, email);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: createOrder, updateCustomer, createCustomer, getCustomers
utils/relatedFields.js
Helps to parse left to right sync related fields.
Example:app.utils.relatedFields.parse("Model+sku,regular_price_sek+price");
Will return: { Model: 'sku', regular_price_sek: 'price' }
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: parse
v1.js
Cron to perform multiple imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.
Example:node import-from-airtable-to-woocommerce-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
cron-airtable-base-name= \
cron-airtable-table-name= \
cron-airtable-view-name= \
cron-airtable-api-key= \
cron-airtable-table-key= \
cron-airtable-key-name= \
cron-airtable-key-value= \
console-key is read from airtable column itself. console-prefix is built automatically using both conf and cron keys.
Check also: https://console.ylo.one/
Airtable configuration schema table example: https://airtable.com/shrOSB0DFqir5c46L/tblL26Ms8WZWh6Uh0
Airtable cron schema table example: https://airtable.com/shrgvXVaLXQX1R7kU/tblyc4T3h51AxaUf8
Help: Coming soon! 😀
An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-airtable-to-woocommerce-cron
Available Methods: start, startUps, workerStartUps, callbacks, api, build, cron, parseArgv, consoleColors, camelCase, properCase, workers, enhance, publish, utils, has
v1.js
Imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.
Example:node import-from-airtable-to-woocommerce-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=product \
airtable-base-name= \
airtable-table-name=Pricelist \
airtable-view-name=wordpress \
airtable-table-key=Model \
airtable-key-name=wp \
airtable-key-value=publish \
import-fields=Model+sku,regular_price_sek+regular_price \
airtable-api-key=keyUuJlo2wY5OZBxg
optional:console-key=my-console-key
console-prefix=import-from-airtable-to-woocommerce-v1
Help: Coming soon! 😀
An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-airtable-to-woocommerce
Available Methods: start, startUps, workerStartUps, callbacks, api, build, parseArgv, console, exit, consoleColors, camelCase, properCase, workers, enhance, publish, sync, utils, has
utils/object.js
Helps to work with JS objects. Like finding existing items, whether an item has been changed, or converting item keys to propercase.
Example:app.utils.object.keyProperCase(object);
app.utils.object.changed(leftObject, rightObject, arrayOfKeysToMatch);
app.utils.object.exists(object, key, value);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: exists, has, changed, keyProperCase
api/woo.js
Makes it easy to work with the WooCommerce API and perform tasks such as fetching and updating products. Fetches all records/products if page number not provided.
Example:app.api.woo.getProducts(options);
app.api.woo.updateProduct(options, product);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: updateOrder, list, updateProduct, getLoadedProduct, getProduct, getProducts, getOrders
enhance/workers.js
This module allows you to concurrently execute multiple asynchronous requests, making it ideal for handling long lists of tasks. You can create a list of tasks using the app.workers.task method, and then start them all at once using the app.workers.do method. The promise returned by this module will only be resolved once all of the tasks have been completed. This enables you to effectively manage and process large volumes of data in an efficient and timely manner.
Example:app.workers.task(function() { /* task one */ }, "task-name");
app.workers.task(function() { /* task two */ }, "task-name");
app.workers.task(function() { /* task three */ }, "task-name");
await app.workers.do("task-name");
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: start
enhance/string.js
Converts strings to camelcase or propercase.
Example:app.camelCase("this line should be camel case.")
app.properCase("this line should be proper case.")
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: start
enhance/console.js
Specifies colors for using in console log. Contains both forground and background colors too.
List: reset, bright, dim, underscore, blink, reverse, hidden, fgBlack, fgRed, fgGreen, fgYellow, fgBlue, fgMagenta, fgCyan, fgWhite, fgGray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray.
Example:console.log(app.consoleColors.bgRed, "This text should show in red background color.");
Can also send console logs to console.ylo.one. Please check here: https://console.ylo.one/
Options are specified as console-key & console-prefix.
Example:app.console("[blue]This should go to console.ylo.one[/blue]");
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: logged, start