UNPKG

aw-gql-utils

Version:

Set of utils for buil AWS Appsync app

352 lines (351 loc) 7.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAdjectives = exports.getNoun = exports.Zone = exports.VERSION = exports.SystemZone = exports.Settings = exports.InvalidZone = exports.Interval = exports.Info = exports.IANAZone = exports.FixedOffsetZone = exports.Duration = exports.DateTime = exports.nanoid = exports.uuidv4 = exports.datetimeNow = void 0; var uuid_1 = require("uuid"); var luxon_1 = require("luxon"); function datetimeNow() { return luxon_1.DateTime.utc().toISO(); } exports.datetimeNow = datetimeNow; function uuidv4() { return (0, uuid_1.v4)(); } exports.uuidv4 = uuidv4; var nanoid_1 = require("nanoid"); Object.defineProperty(exports, "nanoid", { enumerable: true, get: function () { return nanoid_1.nanoid; } }); var luxon_2 = require("luxon"); Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return luxon_2.DateTime; } }); Object.defineProperty(exports, "Duration", { enumerable: true, get: function () { return luxon_2.Duration; } }); Object.defineProperty(exports, "FixedOffsetZone", { enumerable: true, get: function () { return luxon_2.FixedOffsetZone; } }); Object.defineProperty(exports, "IANAZone", { enumerable: true, get: function () { return luxon_2.IANAZone; } }); Object.defineProperty(exports, "Info", { enumerable: true, get: function () { return luxon_2.Info; } }); Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return luxon_2.Interval; } }); Object.defineProperty(exports, "InvalidZone", { enumerable: true, get: function () { return luxon_2.InvalidZone; } }); Object.defineProperty(exports, "Settings", { enumerable: true, get: function () { return luxon_2.Settings; } }); Object.defineProperty(exports, "SystemZone", { enumerable: true, get: function () { return luxon_2.SystemZone; } }); Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return luxon_2.VERSION; } }); Object.defineProperty(exports, "Zone", { enumerable: true, get: function () { return luxon_2.Zone; } }); var nouns = [ "alligator", "ant", "bear", "bee", "bird", "camel", "cat", "cheetah", "chicken", "chimpanzee", "cow", "crocodile", "deer", "dog", "dolphin", "duck", "eagle", "elephant", "fish", "fly", "fox", "frog", "giraffe", "goat", "goldfish", "hamster", "hippopotamus", "horse", "kangaroo", "kitten", "lion", "lobster", "monkey", "octopus", "owl", "panda", "pig", "puppy", "rabbit", "rat", "scorpion", "seal", "shark", "sheep", "snail", "snake", "spider", "squirrel", "tiger", "turtle", "wolf", "zebra", "apple", "apricot", "banana", "blackberry", "blueberry", "cherry", "cranberry", "currant", "fig", "grape", "grapefruit", "grapes", "kiwi", "kumquat", "lemon", "lime", "melon", "nectarine", "orange", "peach", "pear", "persimmon", "pineapple", "plum", "pomegranate", "prune", "raspberry", "strawberry", "tangerine", "watermelon", ]; function getNoun() { var str = nouns[Math.floor(Math.random() * nouns.length)]; return str.charAt(0).toUpperCase() + str.slice(1); } exports.getNoun = getNoun; var adjectives = [ "adaptable", "adventurous", "affable", "affectionate", "agreeable", "alert", "alluring", "ambitious", "ambitious", "amiable", "amicable", "amused", "amusing", "boundless", "brave", "brave", "bright", "bright", "broad-minded", "calm", "calm", "capable", "careful", "charming", "charming", "cheerful", "coherent", "comfortable", "communicative", "compassionate", "confident", "conscientious", "considerate", "convivial", "cooperative", "courageous", "courageous", "courteous", "creative", "credible", "cultured", "dashing", "dazzling", "debonair", "decisive", "decisive", "decorous", "delightful", "detailed", "determined", "determined", "diligent", "diligent", "diplomatic", "discreet", "discreet", "dynamic", "dynamic", "eager", "easygoing", "efficient", "elated", "eminent", "emotional", "enchanting", "encouraging", "endurable", "energetic", "energetic", "entertaining", "enthusiastic", "enthusiastic", "excellent", "excited", "exclusive", "exuberant", "exuberant", "fabulous", "fair", "fair-minded", "faithful", "faithful", "fantastic", "fearless", "fearless", "fine", "forceful", "frank", "frank", "friendly", "friendly", "funny", "funny", "generous", "generous", "gentle", "gentle", "glorious", "good", "good", "gregarious", "happy", "hard-working", "harmonious", "helpful", "helpful", "hilarious", "honest", "honorable", "humorous", "imaginative", "impartial", "impartial", "independent", "industrious", "instinctive", "intellectual", "intelligent", "intuitive", "inventive", "jolly", "joyous", "kind", "kind", "kind-hearted", "knowledgeable", "level", "likeable", "lively", "lovely", "loving", "loving", "loyal", "lucky", "mature", "modern", "modest", "neat", "nice", "nice", "obedient", "optimistic", "painstaking", "passionate", "patient", "peaceful", "perfect", "persistent", "philosophical", "pioneering", "placid", "placid", "plausible", "pleasant", "plucky", "plucky", "polite", "powerful", "practical", "pro-active", "productive", "protective", "proud", "punctual", "quick-witted", "quiet", "quiet", "rational", "receptive", "reflective", "reliable", "relieved", "reserved", "resolute", "resourceful", "responsible", "rhetorical", "righteous", "romantic", "romantic", "sedate", "seemly", "selective", "self-assured", "self-confident", "self-disciplined", "sensible", "sensitive", "sensitive", "shrewd", "shy", "silly", "sincere", "sincere", "skillful", "smiling", "sociable", "splendid", "steadfast", "stimulating", "straightforward", "successful", "succinct", "sympathetic", "talented", "thoughtful", "thoughtful", "thrifty", "tidy", "tough", "tough", "trustworthy", "unassuming", "unbiased", "understanding", "unusual", "upbeat", "versatile", "vigorous", "vivacious", "warm", "warmhearted", "willing", "willing", "wise", "witty", "witty", "wonderful", ]; function getAdjectives() { var str = adjectives[Math.floor(Math.random() * adjectives.length)]; return str.charAt(0).toUpperCase() + str.slice(1); } exports.getAdjectives = getAdjectives;