diff --git a/dist/src/clubs/dc-otto/mailer/index.d.ts b/dist/clubs/dc-otto/mailer/index.d.ts similarity index 100% rename from dist/src/clubs/dc-otto/mailer/index.d.ts rename to dist/clubs/dc-otto/mailer/index.d.ts diff --git a/dist/src/clubs/dc-otto/mailer/index.js b/dist/clubs/dc-otto/mailer/index.js similarity index 100% rename from dist/src/clubs/dc-otto/mailer/index.js rename to dist/clubs/dc-otto/mailer/index.js diff --git a/dist/src/clubs/dc-otto/mailer/templates/index.d.ts b/dist/clubs/dc-otto/mailer/templates/index.d.ts similarity index 100% rename from dist/src/clubs/dc-otto/mailer/templates/index.d.ts rename to dist/clubs/dc-otto/mailer/templates/index.d.ts diff --git a/dist/src/clubs/dc-otto/mailer/templates/index.js b/dist/clubs/dc-otto/mailer/templates/index.js similarity index 100% rename from dist/src/clubs/dc-otto/mailer/templates/index.js rename to dist/clubs/dc-otto/mailer/templates/index.js diff --git a/dist/src/index.d.ts b/dist/index.d.ts similarity index 100% rename from dist/src/index.d.ts rename to dist/index.d.ts diff --git a/dist/src/index.js b/dist/index.js similarity index 100% rename from dist/src/index.js rename to dist/index.js diff --git a/dist/src/models/club.d.ts b/dist/models/club.d.ts similarity index 100% rename from dist/src/models/club.d.ts rename to dist/models/club.d.ts diff --git a/dist/src/models/club.js b/dist/models/club.js similarity index 100% rename from dist/src/models/club.js rename to dist/models/club.js diff --git a/dist/src/models/confirmation.d.ts b/dist/models/confirmation.d.ts similarity index 100% rename from dist/src/models/confirmation.d.ts rename to dist/models/confirmation.d.ts diff --git a/dist/src/models/confirmation.js b/dist/models/confirmation.js similarity index 100% rename from dist/src/models/confirmation.js rename to dist/models/confirmation.js diff --git a/dist/src/models/event.d.ts b/dist/models/event.d.ts similarity index 100% rename from dist/src/models/event.d.ts rename to dist/models/event.d.ts diff --git a/dist/src/models/event.js b/dist/models/event.js similarity index 100% rename from dist/src/models/event.js rename to dist/models/event.js diff --git a/dist/src/models/invalidEmail.d.ts b/dist/models/invalidEmail.d.ts similarity index 100% rename from dist/src/models/invalidEmail.d.ts rename to dist/models/invalidEmail.d.ts diff --git a/dist/src/models/invalidEmail.js b/dist/models/invalidEmail.js similarity index 100% rename from dist/src/models/invalidEmail.js rename to dist/models/invalidEmail.js diff --git a/dist/src/models/location.d.ts b/dist/models/location.d.ts similarity index 100% rename from dist/src/models/location.d.ts rename to dist/models/location.d.ts diff --git a/dist/src/models/location.js b/dist/models/location.js similarity index 100% rename from dist/src/models/location.js rename to dist/models/location.js diff --git a/dist/src/models/rich.d.ts b/dist/models/rich.d.ts similarity index 100% rename from dist/src/models/rich.d.ts rename to dist/models/rich.d.ts diff --git a/dist/src/models/rich.js b/dist/models/rich.js similarity index 100% rename from dist/src/models/rich.js rename to dist/models/rich.js diff --git a/dist/src/models/welcome.d.ts b/dist/models/welcome.d.ts similarity index 100% rename from dist/src/models/welcome.d.ts rename to dist/models/welcome.d.ts diff --git a/dist/src/models/welcome.js b/dist/models/welcome.js similarity index 100% rename from dist/src/models/welcome.js rename to dist/models/welcome.js diff --git a/dist/src/services/ses/index.d.ts b/dist/services/ses/index.d.ts similarity index 100% rename from dist/src/services/ses/index.d.ts rename to dist/services/ses/index.d.ts diff --git a/dist/src/services/ses/index.js b/dist/services/ses/index.js similarity index 100% rename from dist/src/services/ses/index.js rename to dist/services/ses/index.js diff --git a/dist/src/services/ses/types.d.ts b/dist/services/ses/types.d.ts similarity index 100% rename from dist/src/services/ses/types.d.ts rename to dist/services/ses/types.d.ts diff --git a/dist/src/services/ses/types.js b/dist/services/ses/types.js similarity index 100% rename from dist/src/services/ses/types.js rename to dist/services/ses/types.js diff --git a/dist/tests/config.test.d.ts b/dist/tests/config.test.d.ts deleted file mode 100644 index 53eb506..0000000 --- a/dist/tests/config.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -import 'mocha'; diff --git a/dist/tests/config.test.js b/dist/tests/config.test.js deleted file mode 100644 index f8fd25a..0000000 --- a/dist/tests/config.test.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -require("mocha"); -before(function () { - return __awaiter(this, void 0, void 0, function* () { - this.timeout(2000); - }); -}); diff --git a/dist/tests/emails.d.ts b/dist/tests/emails.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/tests/emails.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/tests/emails.js b/dist/tests/emails.js deleted file mode 100644 index 4986097..0000000 --- a/dist/tests/emails.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const assert = require("assert"); -const dotenv = require("dotenv"); -const event_1 = require("./factories/event"); -const post_1 = require("./factories/post"); -const club_1 = require("./factories/club"); -const emails = require("../src/index"); -const ses_1 = require("../src/services/ses"); -dotenv.config(); -const sender = 'kevin@meshstudio.io'; -const recipient = 'tayhalla@gmail.com'; -let emailToSend; -describe('Emails', function () { - describe('Events', function () { - it('should build an event email', function () { - return __awaiter(this, void 0, void 0, function* () { - const event = event_1.NewEventObj(); - const club = club_1.NewClubObj(); - const email = yield emails.CompileConfirmationEmail({}, event, {}, club, ''); - assert(email); - }); - }); - }); - describe('Posts', function () { - it('should build an post email', function () { - return __awaiter(this, void 0, void 0, function* () { - const post = post_1.NewPostObj(); - const club = club_1.NewClubObj(); - const email = yield emails.CompilePostEmail(post, club, ''); - assert(email); - }); - }); - }); - describe('InvalidEmail', function () { - it('should build an invalid email notification', function () { - return __awaiter(this, void 0, void 0, function* () { - const club = club_1.NewClubObj(); - const email = yield emails.CompileInvalidEmailAdminNotification('Taylor', 'taylor@whodis.com', club); - console.log(email); - assert(email); - emailToSend = email; - }); - }); - }); - describe.skip('Send Email', function () { - it('should build an event email', function () { - return __awaiter(this, void 0, void 0, function* () { - const response = yield ses_1.default.sendHTMLEmail(sender, [recipient], ['tayhalla@gmail.com'], [], `Test Send`, emailToSend); - console.log("Response", response); - }); - }); - }); -}); diff --git a/dist/tests/factories/club.d.ts b/dist/tests/factories/club.d.ts deleted file mode 100644 index c4fdc51..0000000 --- a/dist/tests/factories/club.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as core from 'club-hub-core'; -declare const newClubObj: () => core.Club.Model; -export { newClubObj as NewClubObj }; diff --git a/dist/tests/factories/club.js b/dist/tests/factories/club.js deleted file mode 100644 index 5dd749a..0000000 --- a/dist/tests/factories/club.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const Factory = require("factory.ts"); -const Faker = require("faker"); -const core = require("club-hub-core"); -const location_1 = require("./submodels/location"); -const clubFactory = Factory.makeFactory({ - name: Factory.each((i) => Faker.name.title()), - locations: [location_1.NewLocationObj()], - userGroups: [], - type: core.Club.Type.Golf, - tzid: '', - lat: '', - lon: '', - image: {}, - clubSettings: { - primaryColor: '#fead0d' - } -}); -const newClubObj = () => { - return clubFactory.build({}); -}; -exports.NewClubObj = newClubObj; diff --git a/dist/tests/factories/event.d.ts b/dist/tests/factories/event.d.ts deleted file mode 100644 index 30628aa..0000000 --- a/dist/tests/factories/event.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as core from 'club-hub-core'; -declare const newEventObj: () => core.Event.Model; -export { newEventObj as NewEventObj }; diff --git a/dist/tests/factories/event.js b/dist/tests/factories/event.js deleted file mode 100644 index ad467b9..0000000 --- a/dist/tests/factories/event.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const Factory = require("factory.ts"); -const Faker = require("faker"); -const location_1 = require("./submodels/location"); -const reservation = { - creator: "", - owner: "", - participants: [] -}; -const EventFactory = Factory.makeFactory({ - calendarID: "", - clubID: "", - image: {}, - location: location_1.NewLocationObj(), - name: Factory.each((i) => Faker.lorem.word()), - remoteID: Factory.each((i) => Faker.random.uuid()), - price: '20', - shortLink: undefined, - richContent: { html: '
Howdy
' }, - reservations: [reservation] -}); -const newEventObj = () => { - return EventFactory.build({}); -}; -exports.NewEventObj = newEventObj; diff --git a/dist/tests/factories/post.d.ts b/dist/tests/factories/post.d.ts deleted file mode 100644 index 2a4541b..0000000 --- a/dist/tests/factories/post.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as core from 'club-hub-core'; -declare const newPostObj: () => core.Post.Model; -export { newPostObj as NewPostObj }; diff --git a/dist/tests/factories/post.js b/dist/tests/factories/post.js deleted file mode 100644 index b331021..0000000 --- a/dist/tests/factories/post.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const Factory = require("factory.ts"); -const Faker = require("faker"); -const core = require("club-hub-core"); -const testPostContent = `\n
Dear -OTTO Members,
\n\n
As we bear through the heat in -Scottsdale, we trust that you all are making the most of the summer! For those of you who are out of town for the -summer, please reach out to a member of our team if you require any assistance in transporting, servicing or -preparing your vehicles in anticipation of your return to the valley.
\n\n
It was a pleasure to host those of you who attended our July Breakfast Club and Happy Hour -events. If you haven’t had a chance to come to either of these recurring events yet, we urge you to mark them -on your calendar so that you don’t miss out on them in the coming months. The Breakfast Club (every second -Saturday) and Happy Hour (every third Thursday), will continue to serve as opportunities to further embed yourself -within the OTTO community, welcome our newest members and take a peek at the newest cars to arrive in the main -Collection Room.
\n\n\n
\n
-There are a few important dates for the month of August that we would like to make you aware of:
\n\n
OTTO will be closed on Thursday, August -15th for a private event. We will be moving some vehicles in the warehouse for privacy and security. If -you have any questions or concerns about your vehicle being relocated within the warehouse, please contact a member -of the OTTO Staff. Please note – the cars will not leave the collection room at any time, they will simply be -reorganized for the event.
\n\n
For those Members with a -vehicle(s) in the Main Collection Room needing access to their vehicle on August 15th, we request that vehicle -pickup is made prior to close on Wednesday, August 14th. If this creates any conflict, please contact OTTO Staff for -special arrangements.
\n\n
Due to the closure on August -15th, our monthly Happy Hour event will be delayed one week and will take place on Thursday, August -22nd. Please continue to check the app for the latest event information.
\n-
\n\n\n
-As the weather cools down, the schedule at OTTO will heat up. We are in the process of scheduling multiple landmark -events in the fall such as the joint return of Discommon and Analog Shift, a Fireside Chat with the Jacksons, -Speaker event with Magnus Walker and more.
\n\n
Also, -we’d like to remind you and your guests that neither OTTO employees nor any catering staff are allowed to -accept tips at any time. While we appreciate the gesture, OTTO membership is all-inclusive and any attempts to tip -will be respectfully declined.
\n\n
As always, please do -not hesitate to reach out if there is anything that we can do for you.
\n\n
\n
Thank you,
\n\n
The OTTO Team
`; -const PostFactory = Factory.makeFactory({ - clubID: "", - title: Factory.each((i) => Faker.name.title()), - author: "", - image: { - lg: Faker.internet.url(), - md: Faker.internet.url(), - sm: Faker.internet.url(), - xs: Faker.internet.url(), - micro: Faker.internet.url(), - }, - attachments: Factory.each((i) => buildAttachments()), - subtitle: Factory.each((i) => Faker.lorem.words(3)), - publicationDate: new Date(), - richContent: { - text: Factory.each((i) => Faker.lorem.words(10)).toString(), - html: testPostContent, - status: core.IShared.PublicationStatus.Published, - } -}); -const buildAttachments = () => { - return [ - { - remoteUrl: Faker.internet.url(), - attachmentType: core.Post.AttachmentType.PNG - } - ]; -}; -const newPostObj = () => { - return PostFactory.build({}); -}; -exports.NewPostObj = newPostObj; diff --git a/dist/tests/factories/submodels/location.d.ts b/dist/tests/factories/submodels/location.d.ts deleted file mode 100644 index 210bf48..0000000 --- a/dist/tests/factories/submodels/location.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const newLocationObj: () => any; -export { newLocationObj as NewLocationObj }; diff --git a/dist/tests/factories/submodels/location.js b/dist/tests/factories/submodels/location.js deleted file mode 100644 index 7514476..0000000 --- a/dist/tests/factories/submodels/location.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const Factory = require("factory.ts"); -const Faker = require("faker"); -const locationFactory = Factory.makeFactory({ - name: Factory.each((i) => 'Clubhouse'), - address1: Factory.each((i) => Faker.address.streetAddress()), - city: Factory.each((i) => Faker.address.city()), - state: Factory.each((i) => Faker.address.state()), - zip: Factory.each((i) => Faker.address.zipCode()), - contactName: Factory.each((i) => Faker.name.firstName()), - phone: Factory.each((i) => Faker.phone.phoneNumber()), - email: Factory.each((i) => Faker.internet.email()) -}); -const newLocationObj = () => { - return locationFactory.build({}); -}; -exports.NewLocationObj = newLocationObj; diff --git a/dist/src/transform/constants.d.ts b/dist/transform/constants.d.ts similarity index 100% rename from dist/src/transform/constants.d.ts rename to dist/transform/constants.d.ts diff --git a/dist/src/transform/constants.js b/dist/transform/constants.js similarity index 100% rename from dist/src/transform/constants.js rename to dist/transform/constants.js diff --git a/dist/src/transform/transform.d.ts b/dist/transform/transform.d.ts similarity index 100% rename from dist/src/transform/transform.d.ts rename to dist/transform/transform.d.ts diff --git a/dist/src/transform/transform.js b/dist/transform/transform.js similarity index 100% rename from dist/src/transform/transform.js rename to dist/transform/transform.js diff --git a/tsconfig.json b/tsconfig.json index 8c16a87..876111d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -32,6 +32,6 @@ "src/clubs", ], "include": [ - "./" + "./src" ] } \ No newline at end of file