Skip to content

Instantly share code, notes, and snippets.

View Koreanderson's full-sized avatar
🦊

Brian Koreanderson

🦊
View GitHub Profile
@Koreanderson
Koreanderson / free-gift-transform.js
Created April 21, 2026 19:09
Young Living - Cart Transform Free Gift
// @ts-check
/**
* @typedef {import("../generated/api").CartTransformRunInput} CartTransformRunInput
* @typedef {import("../generated/api").CartTransformRunResult} CartTransformRunResult
*/
/**
* @type {CartTransformRunResult}
*/
### Mutation
mutation webhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: WebhookSubscriptionInput!) {
webhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) {
webhookSubscription {
id
topic
filter
format
endpoint {
@Koreanderson
Koreanderson / payload.json
Created November 28, 2023 20:02
Draft Order Creation Webhook Payload
{
"id": 890612572568261625,
"note": null,
"email": "jon@doe.ca",
"taxes_included": false,
"currency": "USD",
"invoice_sent_at": null,
"created_at": "2023-11-28T15:00:18-05:00",
"updated_at": "2023-11-28T15:00:18-05:00",
"tax_exempt": false,
@Koreanderson
Koreanderson / itemList.js
Last active January 31, 2017 04:23
Products
module.exports = {
potion: {
name: 'potion',
price: 300,
quantity: 5
},
ether: {
name: 'ether',
price: 400,
quantity: 5
GulpUglifyError: unable to minify JavaScript
at createError (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/lib/create-error.js:6:14)
at wrapper (/Users/Brian/work/em/amcorporate/node_modules/lodash/_createHybrid.js:87:15)
at trycatch (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/minifier.js:26:12)
at DestroyableTransform.minify [as _transform] (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/minifier.js:76:19)
at DestroyableTransform.Transform._read (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/node_modules/readable-stream/lib/_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/node_modules/readable-stream/lib/_stream_transform.js:147:83)
at doWrite (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/node_modules/readable-stream/lib/_stream_writable.js:313:64)
at writeOrBuffer (/Users/Brian/work/em/amcorporate/node_modules/gulp-uglify/node_modules/