@launchedla/snacktime
Advanced tools
Comparing version 0.0.10 to 0.0.11
import { Action, BundleUpdate, RecordActionRequiredProps } from './types'; | ||
import { typedefs, unionTypeResolver, APIAction, convertActionsForGraph } from './graphql-types'; | ||
declare const _default: ({ actionsTableName, awsRegion, dynamoDBEndpoint, shopifyDomain, }: { | ||
@@ -16,2 +17,2 @@ actionsTableName: string; | ||
export default _default; | ||
export { Action, BundleUpdate, RecordActionRequiredProps }; | ||
export { Action, BundleUpdate, RecordActionRequiredProps, typedefs, unionTypeResolver, APIAction, convertActionsForGraph, }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convertActionsForGraph = exports.unionTypeResolver = exports.typedefs = void 0; | ||
const aws_sdk_1 = require("aws-sdk"); | ||
const graphql_types_1 = require("./graphql-types"); | ||
Object.defineProperty(exports, "typedefs", { enumerable: true, get: function () { return graphql_types_1.typedefs; } }); | ||
Object.defineProperty(exports, "unionTypeResolver", { enumerable: true, get: function () { return graphql_types_1.unionTypeResolver; } }); | ||
Object.defineProperty(exports, "convertActionsForGraph", { enumerable: true, get: function () { return graphql_types_1.convertActionsForGraph; } }); | ||
exports.default = ({ actionsTableName, awsRegion, dynamoDBEndpoint, shopifyDomain, }) => { | ||
@@ -5,0 +10,0 @@ const client = new aws_sdk_1.DynamoDB.DocumentClient({ endpoint: dynamoDBEndpoint, region: awsRegion }); |
@@ -1,1 +0,1 @@ | ||
export {}; | ||
export declare const createRandomNumber: () => number; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createRandomNumber = void 0; | ||
const _1 = __importDefault(require("./")); | ||
@@ -18,3 +19,3 @@ const create_table_1 = __importDefault(require("./create-table")); | ||
}); | ||
const createRandomNumber = () => Math.floor(Math.random() * Math.floor(10000)); | ||
exports.createRandomNumber = () => Math.floor(Math.random() * Math.floor(10000)); | ||
beforeAll(async () => { | ||
@@ -29,5 +30,5 @@ try { | ||
test('default columns', async () => { | ||
const bundleId = createRandomNumber(); | ||
const customerId = createRandomNumber(); | ||
const chargeId = createRandomNumber(); | ||
const bundleId = exports.createRandomNumber(); | ||
const customerId = exports.createRandomNumber(); | ||
const chargeId = exports.createRandomNumber(); | ||
await snacktime.recordAction({ bundleId, customerId, chargeId }, { label: 'ChangedShipDate' }); | ||
@@ -34,0 +35,0 @@ const actions = await snacktime.getActions({ bundleId, customerId, chargeId }); |
{ | ||
"name": "@launchedla/snacktime", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"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.", | ||
@@ -33,4 +33,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"aws-sdk": "^2.772.0" | ||
"aws-sdk": "^2.772.0", | ||
"graphql": "^15.4.0", | ||
"graphql-tag": "^2.11.0" | ||
} | ||
} |
@@ -15,3 +15,3 @@ import Snacktime from './' | ||
const createRandomNumber = () => Math.floor(Math.random() * Math.floor(10000)) | ||
export const createRandomNumber = () => Math.floor(Math.random() * Math.floor(10000)) | ||
@@ -18,0 +18,0 @@ beforeAll(async () => { |
import { DynamoDB } from 'aws-sdk' | ||
import { Action, BundleUpdate, RecordActionRequiredProps } from './types' | ||
import { typedefs, unionTypeResolver, APIAction, convertActionsForGraph } from './graphql-types' | ||
@@ -62,2 +63,10 @@ export default ({ | ||
export { Action, BundleUpdate, RecordActionRequiredProps } | ||
export { | ||
Action, | ||
BundleUpdate, | ||
RecordActionRequiredProps, | ||
typedefs, | ||
unionTypeResolver, | ||
APIAction, | ||
convertActionsForGraph, | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1146048
44
1532
3
+ Addedgraphql@^15.4.0
+ Addedgraphql-tag@^2.11.0
+ Addedgraphql@15.10.1(transitive)
+ Addedgraphql-tag@2.12.6(transitive)
+ Addedtslib@2.8.1(transitive)