@launchedla/snacktime
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -116,3 +116,17 @@ interface CommonProps { | ||
} | ||
export declare type Action = UpdatedBundleAction | CronSwappedPatternsAction | ChangedShipDateAction | CancelledBundleAction | RedeemedOfferAction | RedeemedLoyaltyKeyAction | RedeemedBirthdayGiftAction | AcceptedCancellationSaveAction | OrderNowAction | SwapOutOfStockPatternsReportAction | RemoveOOSAddOnsReportAction | ExamineInsufficientInventoryErrorsReportAction | CampaignAddOnVariantsAdded | AddQuickAddOn | CronSwappedAddOnsAction | ChargeFailedAction | RepairedBundleAction | RepairedBundlesReportAction; | ||
interface ShipmentNotificationSentAction extends CommonProps { | ||
label: 'ShipmentNotificationSent'; | ||
notificationType: 'customer' | 'internal' | 'customer_and_internal'; | ||
statusCode: string; | ||
data: { | ||
trackingNumber?: string; | ||
carrier?: string; | ||
originalEta?: string; | ||
eta?: string; | ||
state?: string; | ||
city?: string; | ||
zip?: string; | ||
}; | ||
} | ||
export declare type Action = UpdatedBundleAction | CronSwappedPatternsAction | ChangedShipDateAction | CancelledBundleAction | RedeemedOfferAction | RedeemedLoyaltyKeyAction | RedeemedBirthdayGiftAction | AcceptedCancellationSaveAction | OrderNowAction | SwapOutOfStockPatternsReportAction | RemoveOOSAddOnsReportAction | ExamineInsufficientInventoryErrorsReportAction | CampaignAddOnVariantsAdded | AddQuickAddOn | CronSwappedAddOnsAction | ChargeFailedAction | RepairedBundleAction | RepairedBundlesReportAction | ShipmentNotificationSentAction; | ||
export interface RecordActionRequiredProps { | ||
@@ -119,0 +133,0 @@ customerId?: number; |
{ | ||
"name": "exporter", | ||
"version": "1.0.0", | ||
"lockfileVersion": 1, | ||
"lockfileVersion": 2, | ||
"requires": true, | ||
"packages": { | ||
"": { | ||
"name": "exporter", | ||
"version": "1.0.0", | ||
"license": "ISC", | ||
"dependencies": { | ||
"aws-sdk": "^2.777.0", | ||
"lodash": "^4.17.20", | ||
"p-queue": "^6.6.2" | ||
}, | ||
"devDependencies": { | ||
"@launchedla/snacktime": "0.0.7", | ||
"@types/lodash": "^4.14.162", | ||
"@types/node": "^14.14.2", | ||
"prettier": "^2.1.2", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.3" | ||
} | ||
}, | ||
"node_modules/@launchedla/snacktime": { | ||
"version": "0.0.7", | ||
"resolved": "https://registry.npmjs.org/@launchedla/snacktime/-/snacktime-0.0.7.tgz", | ||
"integrity": "sha512-EgKLKYvM+a0S9f2tqtOonrmRSJ9e5tvd4ykE7MU7uS2A2U4KHWVLZqmk0sPXg3ctiystP2NgP2ZqaM9nRQX1LQ==", | ||
"dev": true, | ||
"dependencies": { | ||
"aws-sdk": "^2.772.0" | ||
} | ||
}, | ||
"node_modules/@types/lodash": { | ||
"version": "4.14.162", | ||
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.162.tgz", | ||
"integrity": "sha512-alvcho1kRUnnD1Gcl4J+hK0eencvzq9rmzvFPRmP5rPHx9VVsJj6bKLTATPVf9ktgv4ujzh7T+XWKp+jhuODig==", | ||
"dev": true | ||
}, | ||
"node_modules/@types/node": { | ||
"version": "14.14.2", | ||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.2.tgz", | ||
"integrity": "sha512-jeYJU2kl7hL9U5xuI/BhKPZ4vqGM/OmK6whiFAXVhlstzZhVamWhDSmHyGLIp+RVyuF9/d0dqr2P85aFj4BvJg==", | ||
"dev": true | ||
}, | ||
"node_modules/arg": { | ||
"version": "4.1.3", | ||
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", | ||
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", | ||
"dev": true | ||
}, | ||
"node_modules/aws-sdk": { | ||
"version": "2.777.0", | ||
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.777.0.tgz", | ||
"integrity": "sha512-eUUphwNARaex2uBCCWp/UGT5LabqbCgIZDXhJp5n2kGBuNlzkZMrLe5AiSo8OnaaP2ZnfaonxZKT87Ny56EKyA==", | ||
"dependencies": { | ||
"buffer": "4.9.2", | ||
"events": "1.1.1", | ||
"ieee754": "1.1.13", | ||
"jmespath": "0.15.0", | ||
"querystring": "0.2.0", | ||
"sax": "1.2.1", | ||
"url": "0.10.3", | ||
"uuid": "3.3.2", | ||
"xml2js": "0.4.19" | ||
}, | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
} | ||
}, | ||
"node_modules/base64-js": { | ||
"version": "1.3.1", | ||
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", | ||
"integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==" | ||
}, | ||
"node_modules/buffer": { | ||
"version": "4.9.2", | ||
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", | ||
"integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", | ||
"dependencies": { | ||
"base64-js": "^1.0.2", | ||
"ieee754": "^1.1.4", | ||
"isarray": "^1.0.0" | ||
} | ||
}, | ||
"node_modules/buffer-from": { | ||
"version": "1.1.1", | ||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", | ||
"integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", | ||
"dev": true | ||
}, | ||
"node_modules/diff": { | ||
"version": "4.0.2", | ||
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", | ||
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", | ||
"dev": true, | ||
"engines": { | ||
"node": ">=0.3.1" | ||
} | ||
}, | ||
"node_modules/eventemitter3": { | ||
"version": "4.0.7", | ||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", | ||
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" | ||
}, | ||
"node_modules/events": { | ||
"version": "1.1.1", | ||
"resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", | ||
"integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", | ||
"engines": { | ||
"node": ">=0.4.x" | ||
} | ||
}, | ||
"node_modules/ieee754": { | ||
"version": "1.1.13", | ||
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", | ||
"integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" | ||
}, | ||
"node_modules/isarray": { | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", | ||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" | ||
}, | ||
"node_modules/jmespath": { | ||
"version": "0.15.0", | ||
"resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.15.0.tgz", | ||
"integrity": "sha1-o/Iiqarp+Wb10nx5ZRDigJF2Qhc=", | ||
"engines": { | ||
"node": ">= 0.6.0" | ||
} | ||
}, | ||
"node_modules/lodash": { | ||
"version": "4.17.20", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", | ||
"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" | ||
}, | ||
"node_modules/make-error": { | ||
"version": "1.3.6", | ||
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", | ||
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", | ||
"dev": true | ||
}, | ||
"node_modules/p-finally": { | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", | ||
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", | ||
"engines": { | ||
"node": ">=4" | ||
} | ||
}, | ||
"node_modules/p-queue": { | ||
"version": "6.6.2", | ||
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz", | ||
"integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==", | ||
"dependencies": { | ||
"eventemitter3": "^4.0.4", | ||
"p-timeout": "^3.2.0" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
}, | ||
"funding": { | ||
"url": "https://github.com/sponsors/sindresorhus" | ||
} | ||
}, | ||
"node_modules/p-timeout": { | ||
"version": "3.2.0", | ||
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", | ||
"integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", | ||
"dependencies": { | ||
"p-finally": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/prettier": { | ||
"version": "2.1.2", | ||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz", | ||
"integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==", | ||
"dev": true, | ||
"bin": { | ||
"prettier": "bin-prettier.js" | ||
}, | ||
"engines": { | ||
"node": ">=10.13.0" | ||
} | ||
}, | ||
"node_modules/punycode": { | ||
"version": "1.3.2", | ||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", | ||
"integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" | ||
}, | ||
"node_modules/querystring": { | ||
"version": "0.2.0", | ||
"resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", | ||
"integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", | ||
"deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", | ||
"engines": { | ||
"node": ">=0.4.x" | ||
} | ||
}, | ||
"node_modules/sax": { | ||
"version": "1.2.1", | ||
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", | ||
"integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=" | ||
}, | ||
"node_modules/source-map": { | ||
"version": "0.6.1", | ||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", | ||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", | ||
"dev": true, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
}, | ||
"node_modules/source-map-support": { | ||
"version": "0.5.19", | ||
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", | ||
"integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", | ||
"dev": true, | ||
"dependencies": { | ||
"buffer-from": "^1.0.0", | ||
"source-map": "^0.6.0" | ||
} | ||
}, | ||
"node_modules/ts-node": { | ||
"version": "9.0.0", | ||
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.0.0.tgz", | ||
"integrity": "sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==", | ||
"dev": true, | ||
"dependencies": { | ||
"arg": "^4.1.0", | ||
"diff": "^4.0.1", | ||
"make-error": "^1.1.1", | ||
"source-map-support": "^0.5.17", | ||
"yn": "3.1.1" | ||
}, | ||
"bin": { | ||
"ts-node": "dist/bin.js", | ||
"ts-node-script": "dist/bin-script.js", | ||
"ts-node-transpile-only": "dist/bin-transpile.js", | ||
"ts-script": "dist/bin-script-deprecated.js" | ||
}, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=2.7" | ||
} | ||
}, | ||
"node_modules/typescript": { | ||
"version": "4.0.3", | ||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", | ||
"integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==", | ||
"dev": true, | ||
"bin": { | ||
"tsc": "bin/tsc", | ||
"tsserver": "bin/tsserver" | ||
}, | ||
"engines": { | ||
"node": ">=4.2.0" | ||
} | ||
}, | ||
"node_modules/url": { | ||
"version": "0.10.3", | ||
"resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", | ||
"integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=", | ||
"dependencies": { | ||
"punycode": "1.3.2", | ||
"querystring": "0.2.0" | ||
} | ||
}, | ||
"node_modules/uuid": { | ||
"version": "3.3.2", | ||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", | ||
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", | ||
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", | ||
"bin": { | ||
"uuid": "bin/uuid" | ||
} | ||
}, | ||
"node_modules/xml2js": { | ||
"version": "0.4.19", | ||
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", | ||
"integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", | ||
"dependencies": { | ||
"sax": ">=0.6.0", | ||
"xmlbuilder": "~9.0.1" | ||
} | ||
}, | ||
"node_modules/xmlbuilder": { | ||
"version": "9.0.7", | ||
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", | ||
"integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=", | ||
"engines": { | ||
"node": ">=4.0" | ||
} | ||
}, | ||
"node_modules/yn": { | ||
"version": "3.1.1", | ||
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", | ||
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", | ||
"dev": true, | ||
"engines": { | ||
"node": ">=6" | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -7,0 +311,0 @@ "@launchedla/snacktime": { |
@@ -25,3 +25,6 @@ { | ||
"typescript": "^4.0.3" | ||
}, | ||
"volta": { | ||
"node": "16.13.1" | ||
} | ||
} |
@@ -6,2 +6,2 @@ # Snacktime Exporter | ||
- Install [Amazon ECR Credential Helper](https://github.com/awslabs/amazon-ecr-credential-helper). | ||
- `docker build -t snacktime-exporter . && docker tag snacktime-exporter:latest 547830974098.dkr.ecr.us-east-2.amazonaws.com/snacktime-exporter:latest && AWS_PROFILE=launchedla docker push 547830974098.dkr.ecr.us-east-2.amazonaws.com/snacktime-exporter:latest` | ||
- `docker build --platform linux/x86_64 -t snacktime-exporter . && docker tag snacktime-exporter:latest 547830974098.dkr.ecr.us-east-2.amazonaws.com/snacktime-exporter:latest && AWS_PROFILE=launchedla docker push 547830974098.dkr.ecr.us-east-2.amazonaws.com/snacktime-exporter:latest` |
{ | ||
"name": "@launchedla/snacktime", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "Snacktime is a wrapper for the Launched LA internal database that will replicate into Snowflake. It is a replacement for Shopify metafields and an enhanced place to store event-driven data.", | ||
@@ -40,2 +40,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -136,2 +136,17 @@ interface CommonProps { | ||
interface ShipmentNotificationSentAction extends CommonProps { | ||
label: 'ShipmentNotificationSent' | ||
notificationType: 'customer' | 'internal' | 'customer_and_internal' | ||
statusCode: string | ||
data: { | ||
trackingNumber?: string | ||
carrier?: string | ||
originalEta?: string | ||
eta?: string | ||
state?: string | ||
city?: string | ||
zip?: string | ||
} | ||
} | ||
export type Action = | ||
@@ -156,2 +171,3 @@ | UpdatedBundleAction | ||
| RepairedBundlesReportAction | ||
| ShipmentNotificationSentAction | ||
@@ -158,0 +174,0 @@ export interface RecordActionRequiredProps { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
809498
42
2394