@project-ajax/sdk 0.0.36 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/builder.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { TextValue } from "./types.js";
1
+ import type { NoticonName } from "./icon-names.js";
2
+ import type { Icon, NoticonColor, TextValue } from "./types.js";
2
3
  /**
3
4
  * Creates a rich text value.
4
5
  */
@@ -72,4 +73,15 @@ export declare function multiSelect(...values: string[]): TextValue;
72
73
  * Creates a status value from a status option name.
73
74
  */
74
75
  export declare function status(value: string): TextValue;
76
+ /**
77
+ * Creates an emoji icon.
78
+ * @param emoji - An emoji string (e.g., "🎯", "✨", "🚀")
79
+ */
80
+ export declare function emojiIcon(emoji: string): Icon;
81
+ /**
82
+ * Creates a Notion icon with a specific color.
83
+ * @param icon - The name of the Notion icon (e.g., "checkmark", "pizza", "rocket")
84
+ * @param color - The color variant (defaults to "gray")
85
+ */
86
+ export declare function notionIcon(icon: NoticonName, color?: NoticonColor): Icon;
75
87
  //# sourceMappingURL=builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAEnD;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAE1C;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAEhD;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAE/C;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAE9C;AAED;;GAEG;AACH,wBAAgB,WAAW,C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AED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAE/C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAK1D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAE/C;AA4CD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAK7C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACzB,IAAI,EAAE,WAAW,EACjB,KAAK,GAAE,YAAqB,GAC1B,IAAI,CAMN"}
package/dist/builder.js CHANGED
@@ -110,6 +110,19 @@ function formatTime(date2) {
110
110
  const minutes = String(date2.getMinutes()).padStart(2, "0");
111
111
  return `${hours}:${minutes}`;
112
112
  }
113
+ function emojiIcon(emoji) {
114
+ return {
115
+ type: "emoji",
116
+ value: emoji
117
+ };
118
+ }
119
+ function notionIcon(icon, color = "gray") {
120
+ return {
121
+ type: "notion",
122
+ icon,
123
+ color
124
+ };
125
+ }
113
126
  export {
114
127
  checkbox,
115
128
  date,
@@ -117,9 +130,11 @@ export {
117
130
  dateTime,
118
131
  dateTimeRange,
119
132
  email,
133
+ emojiIcon,
120
134
  file,
121
135
  link,
122
136
  multiSelect,
137
+ notionIcon,
123
138
  number,
124
139
  phoneNumber,
125
140
  richText,
@@ -1,5 +1,5 @@
1
1
  import type { PropertySchema, Schema } from "../schema.js";
2
- import type { TextValue } from "../types.js";
2
+ import type { Icon, TextValue } from "../types.js";
3
3
  /**
4
4
  * An object representing a third-party record to be synced.
5
5
  */
@@ -8,6 +8,11 @@ export type SyncedObject<PK extends string, S extends PropertySchema<PK>> = {
8
8
  properties: {
9
9
  [Property in keyof S]: TextValue;
10
10
  };
11
+ /**
12
+ * Optional icon to use as the icon for this row's page.
13
+ * Use the `icon()` builder to create an icon value.
14
+ */
15
+ icon?: Icon;
11
16
  };
12
17
  /**
13
18
  * A configuration object that enables synchronization between a data
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/capabilities/sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC,SAAS,cAAc,CAAC,EAAE,CAAC,IAAI;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE;SAAG,QAAQ,IAAI,MAAM,CAAC,GAAG,SAAS;KAAE,CAAC;CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,CAAC,IAAI;IACxE;;;;OAIG;IACH,kBAAkB,EAAE,EAAE,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,CAAC,CAAC;IAEV;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,EAAE,SAAS,MAAM,IAAI;IAClD,kBAAkB,EAAE,EAAE,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;CAChD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,CAAC,EAC3D,iBAAiB,EAAE,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC;;;;;;;;;;EAuB3C"}
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/capabilities/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onName = "123" | "accessibility" | "activity" | "add" | "airplane" | "alarm" | "alert" | "alien" | "alien-pixel" | "ambulance" | "anchor" | "apple" | "apron" | "aquarius" | "arch-bridge" | "archery" | "archive" | "aries" | "arrivals" | "arrow-circle-down" | "arrow-down" | "arrow-down-basic" | "arrow-down-line" | "arrow-left" | "arrow-left-basic" | "arrow-left-line" | "arrow-northeast" | "arrow-northwest" | "arrow-right" | "arrow-right-basic" | "arrow-right-line" | "arrow-southeast" | "arrow-southwest" | "arrow-turn-left" | "arrow-turn-right" | "arrow-up" | "arrow-up-basic" | "arrow-up-line" | "arrows-horizontal" | "arrows-swap-horizontally" | "arrows-swap-vertically" | "arrows-vertical" | "art" | "asterisk" | "atm" | "attachment" | "avocado" | "baby" | "baby-bottle" | "backpack" | "backward" | "badge" | "bag" | "baggage-claim" | "balloon" | "banana" | "barcode" | "barricade" | "baseball" | "baseball-cap" | "basketball" | "bathtub" | "bathtub-shower" | "battery" | "battery-charged" | "battery-charging" | "bed" | "bee" | "beer" | "beer-bottle" | "bell" | "bell-notification" | "bell-off" | "belt" | "bicycle" | "bikini" | "binoculars" | "blood-pressure" | "bluetooth" | "boarding-pass" | "boat" | "bomb" | "bone" | "book" | "book-closed" | "bookmark" | "bookmark-outline" | "boombox" | "boot" | "bounce" | "bowl" | "bowl-food" | "bowling" | "bra" | "brain" | "branch" | "branch-create" | "branch-fork" | "branch-merge" | "bread" | "briefcase" | "brightness-high" | "broccoli" | "broom" | "broom-and-dustpan" | "browser-stop" | "bug" | "bugle" | "bullseye" | "bunk-bed" | "burger" | "burst" | "bus" | "bus-double-decker" | "bus-metro" | "butterfly" | "button" | "cactus" | "cafe" | "cake" | "calculator" | "calendar" | "calendar-day" | "calendar-month" | "calendar-week" | "camera" | "camera-off" | "camera-roll" | "camera-roll-portrait" | "camping-tent" | "camping-trailer" | "cancer" | "candy" | "capricorn" | "car" | "card" | "card-club" | "card-diamond" | "card-heart" | "card-spade" | "cards" | "carrot" | "cash" | "cash-register" | "cassette" | "castle" | "castle-japanese" | "cat" | "categories" | "cd" | "cellular" | "chair" | "champagne" | "champagne-bottle" | "chart" | "chart-alternate" | "chart-area" | "chart-donut" | "chart-line" | "chart-mixed" | "chart-pie" | "chat" | "chat-user" | "check" | "checklist" | "checkmark" | "checkmark-line" | "checkmark-square" | "chemistry" | "cherries" | "chess-bishop" | "chess-king" | "chess-knight" | "chess-pawn" | "chess-queen" | "chess-rook" | "chevrons-vertical" | "chicken" | "child" | "chili-pepper" | "christmas-tree" | "church" | "cigarette" | "circle" | "circle-alternate" | "circle-arrows-horizontal" | "circle-arrows-vertical" | "circle-dashed" | "circle-dot" | "circle-five-eighths" | "circle-four-eighths" | "circle-one-eighth" | "circle-remove" | "circle-seven-eighths" | "circle-six-eighths" | "circle-three-eighths" | "circle-two-eighths" | "city" | "clarinet" | "clear" | "clipping" | "clock" | "clock-alternate" | "close" | "clothes-button" | "clothes-iron" | "cloud" | "cloud-no" | "cloud-off" | "cloud-yes" | "cloudy" | "clover" | "clover-four-leaf" | "coaster" | "coat" | "cocktail" | "code" | "code-scan" | "coffee" | "coffee-maker" | "color-palette" | "color-picker" | "color-swatch" | "column" | "comb" | "command-line" | "comment" | "compass" | "compose" | "compressed-document" | "computer" | "computer-chip" | "conceal" | "condense" | "confetti-ball" | "confetti-party-popper" | "conifer-tree" | "connecting-flight" | "construction-crane" | "contrast" | "conversation" | "copy" | "corn" | "couch" | "cow" | "crab" | "crayon" | "create" | "credit-card" | "crop" | "crutch" | "cupcake" | "currency" | "currency-coin" | "cursor" | "cursor-button" | "cursor-click" | "customs" | "cut" | "dairy" | "daisy" | "dance" | "darks" | "dashboard" | "database" | "defibrillator" | "delete" | "delivery-truck" | "dental" | "departures" | "dependency" | "description" | "dialogue" | "die1" | "die2" | "die3" | "die4" | "die5" | "die6" | "dining" | "directional-sign" | "directional-sign-left" | "directional-sign-right" | "directions" | "dish-soap" | "dna" | "do-not-disturb" | "document" | "dog" | "donkey" | "download" | "downward" | "drafts" | "dress" | "drink" | "duck" | "duster" | "ear" | "ear-hearing-aid" | "earthquake" | "egg" | "eject" | "electric-guitar" | "electric-plug" | "elephant" | "elevator" | "emoji" | "emoji-angry" | "emoji-big-sad" | "emoji-disappointed" | "emoji-grinning" | "emoji-grinning-smiling-eyes" | "emoji-heart-eyes" | "emoji-neutral" | "emoji-sad" | "emoji-smiling-eyes" | "emoji-sunglasses" | "emoji-surprised" | "emoji-winking" | "error" | "escalator" | "exclamation-mark" | "exclamation-mark-double" | "exit" | "expand" | "extension" | "fabric-swatch" | "facial-tissues" | "factory" | "fan-deck" | "feather" | "feed" | "filtered" | "fire" | "fire-extinguisher" | "fire-truck" | "fireworks" | "first-aid" | "first-aid-kit" | "fish" | "flag" | "flag-checkered" | "flag-pennant" | "flag-swallowtail" | "flash" | "flashlight" | "flatware" | "fleur-de-lis" | "flood" | "fog" | "folder" | "follow" | "following" | "font" | "food-and-drink" | "football" | "forest-fire" | "fork" | "fork-and-knife" | "formula" | "forward" | "fragile" | "friends" | "frying-pan" | "fuel" | "game-pawn" | "garlic" | "gavel" | "gear" | "gears" | "gem" | "gemini" | "geography" | "ghost" | "gift" | "git" | "glasses" | "globe" | "golf" | "government" | "gradebook" | "graduate" | "grapes" | "grave" | "grid" | "grid-dense" | "grid-wide" | "grid-wide-six" | "grocery" | "groups" | "guitar" | "gym" | "hail" | "hair-care" | "hairdryer" | "hammer" | "hanafuda" | "hand" | "handbag" | "hanger" | "hare" | "hashtag" | "headphones" | "headset" | "heart" | "heart-box-bow" | "heart-outline" | "heart-rate" | "heart-rate-monitor" | "heartbroken" | "helicopter" | "helm" | "help-alternate" | "hexagon" | "hexagon-alternate" | "hexagon-dashed" | "hexagon-five-sixths" | "hexagon-four-sixths" | "hexagon-one-sixth" | "hexagon-three-sixths" | "hexagon-two-sixths" | "highball" | "history" | "home" | "hot-air-balloon" | "hourglass" | "hurricane" | "ice-skate" | "immigration" | "inbox" | "infinity" | "info-alternate" | "inline-skate" | "invitation" | "iterate" | "jack-o-lantern" | "jar" | "judicial-scales" | "junk" | "key" | "key-antique" | "keyboard" | "keyboard-alternate" | "keypad" | "kind" | "kite" | "knife" | "knife-kitchen" | "language" | "laptop" | "laundry-basket" | "laundry-detergent" | "laundry-dryer" | "laundry-washer" | "layers" | "leaf" | "leaf-monstera" | "lemon" | "leo" | "libra" | "library" | "light-bulb" | "lights" | "link" | "lipstick" | "list" | "list-indent" | "litter-disposal" | "location" | "lock" | "lock-keyhole" | "log-in" | "log-out" | "long-bone" | "long-sleeve-shirt" | "looped-square" | "lost-and-found" | "lounge" | "luggage" | "luggage-cart" | "lungs" | "magic-wand" | "magnet" | "mahjong" | "mail" | "makeup-brush" | "mandir" | "map" | "map-pin" | "map-pin-alternate" | "mathematics" | "meat" | "medication" | "meeting" | "megaphone" | "menorah" | "menstrual-pad" | "merge" | "metronome" | "microphone" | "microphone-off" | "microscope" | "microwave" | "midtones" | "mirror" | "mobile" | "monorail" | "moon" | "mop" | "mop-and-bucket" | "more" | "mosque" | "motorcycle" | "mountains" | "mouth" | "move" | "move-document" | "movie" | "movie-camera" | "movie-clapboard" | "movie-clapboard-play" | "mushroom" | "music" | "music-album" | "music-artist" | "navigation" | "necktie" | "network" | "new-alert" | "new-badge" | "new-document" | "new-folder" | "news" | "no" | "no-entry" | "note-eighth" | "note-half" | "note-quarter" | "note-sixteenth" | "note-sixteenth-beamed" | "note-whole" | "notification" | "notion" | "numero" | "nut" | "octagon" | "official-document" | "onion" | "orange" | "orbit" | "ornament" | "oven" | "package" | "paifang" | "paint-brush" | "paint-brush-wide" | "paint-bucket" | "paint-roller" | "palm-tree" | "pants" | "paper-towels" | "parking" | "parking-no" | "partly-cloudy-day" | "partly-cloudy-night" | "passport" | "paste" | "peace" | "peanut" | "pear" | "pen" | "pencil" | "pentagon" | "pentagon-alternate" | "pentagon-dashed" | "pentagon-four-fifths" | "pentagon-one-fifth" | "pentagon-three-fifths" | "pentagon-two-fifths" | "people" | "perfume" | "person-feminine" | "person-masculine" | "phone" | "phone-call" | "phone-end-call" | "phone-speaker" | "photo-landscape" | "piano" | "pig" | "pill" | "pin" | "pisces" | "pitcher" | "pizza" | "plate-food" | "playback-fast-forward" | "playback-next" | "playback-pause" | "playback-play" | "playback-play-button" | "playback-previous" | "playback-rewind" | "playback-stop" | "playlist" | "plus" | "poo" | "postage-stamp" | "postcard" | "pot" | "potted-plant" | "poultry" | "power" | "pram" | "pregnancy-test" | "pretzel" | "preview" | "print" | "priority-high" | "priority-low" | "priority-mid" | "private" | "profile" | "promoted" | "public" | "pull-request" | "pump" | "pump-bottle" | "push-pin" | "puzzle" | "question-mark" | "radio" | "rain" | "rainbow" | "receipt" | "redirect" | "redo" | "reference" | "refresh" | "refresh-reverse" | "refrigerator" | "remove" | "rename" | "reorder" | "repeat" | "reply" | "reply-all" | "report" | "ringed-planet" | "robot" | "rocket" | "roller-skate" | "row" | "rubber-stamp" | "ruler" | "run" | "safety-pin" | "sagittarius" | "sailboat" | "sandwich" | "save" | "scarf" | "school" | "science" | "scooter" | "scorpio" | "screwdriver" | "script" | "scrub-brush" | "search" | "seed" | "send" | "send-to" | "server" | "service-counter" | "set-square" | "share" | "sharing" | "sheep" | "shell" | "shield" | "shirt" | "shoe" | "shogi" | "shop" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shorts" | "shovel-and-pail" | "shower" | "shuffle" | "sign-in" | "sign-out" | "signature-document" | "sink" | "skateboard" | "skip-backward" | "skip-forward" | "skirt" | "skull" | "skull-profile" | "sleet" | "slide" | "sliders-horizontal" | "sliders-vertical" | "slideshow" | "slideshow-play" | "smoking" | "smoking-no" | "snake" | "snare-drum" | "snippet" | "snorkel" | "snowflake" | "soap" | "soccer" | "sock" | "soda-bottle" | "soft-serve" | "soy" | "spider" | "sponge" | "spoon" | "spray-bottle" | "square" | "square-alternate" | "square-circle" | "square-dashed" | "square-one-fourth" | "square-three-fourths" | "square-two-fourths" | "squeeze-tube" | "stairs" | "star" | "star-half" | "star-of-life" | "star-outline" | "stars" | "steering-wheel" | "stethoscope" | "sticker" | "stomach" | "stopwatch" | "storm" | "stovetop" | "strawberry" | "stroller" | "subtask" | "subtitles" | "suit" | "suit-club" | "suit-diamond" | "suit-heart" | "suit-spade" | "suitcase" | "sun" | "sunglasses" | "sunrise" | "sunscreen" | "sunset" | "suspension-bridge" | "swap-horizontally" | "swap-vertically" | "sword" | "symbol" | "synagogue" | "sync" | "sync-reverse" | "syringe" | "t-square" | "table" | "tablet" | "tabs" | "tabs-user" | "tag" | "takeout-box" | "tampon" | "target" | "taurus" | "taxi" | "teapot" | "telephone" | "telescope" | "temperature-cool" | "temperature-warm" | "temple" | "theatre" | "thinking" | "thought" | "thought-alert" | "thought-dialogue" | "throat" | "thumbs-down" | "thumbs-up" | "ticket" | "ticket-admission" | "timeline" | "toaster" | "toilet" | "toilet-paper" | "token" | "tooth" | "torii" | "tornado" | "tortoise" | "towel" | "traffic-cone" | "traffic-light" | "train" | "train-high-speed" | "train-light-rail" | "train-magnetic-levitation" | "train-metro" | "transfers" | "translate" | "tree" | "triangle" | "triangle-alternate" | "triangle-dashed" | "triangle-one-third" | "triangle-two-thirds" | "trophy" | "tropical-cocktail" | "truck" | "trumpet" | "tshirt" | "tulip" | "tulip-name-tag" | "tumbler" | "tv" | "umbrella" | "underwear" | "undo" | "unfollow" | "unlock" | "unlock-keyhole" | "upload" | "upload-document" | "upload-folder" | "upward" | "user" | "user-circle" | "user-circle-dashed" | "user-circle-filled" | "username" | "vacuum-cleaner" | "verified" | "video-camera" | "video-camera-off" | "video-game" | "video-game-classic" | "video-game-joystick" | "videotape" | "view" | "view-off" | "vinyl-record" | "violin" | "virgo" | "vitruvian-man" | "voicemail" | "volcano" | "volume-high" | "volume-off" | "walk" | "wall" | "warning" | "watch-analog" | "water" | "whale" | "wheat" | "wheelchair" | "wheelchair-access" | "wheelchair-motorized" | "whistle" | "wifi" | "wind" | "window" | "wine" | "wine-bottle" | "wrapping-paper" | "wrench" | "yin-yang" | "zoom-in" | "zoom-out";
6
+ //# sourceMappingURL=icon-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-names.d.ts","sourceRoot":"","sources":["../src/icon-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GACpB,KAAK,GACL,eAAe,GACf,UAAU,GACV,KAAK,GACL,UAAU,GACV,OAAO,GACP,OAAO,GACP,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,UAAU,GACV,aAAa,GACb,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,mBAAmB,GACnB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,0BAA0B,GAC1B,wBAAwB,GACxB,iBAAiB,GACjB,KAAK,GACL,UAAU,GACV,KAAK,GACL,YAAY,GACZ,SAAS,GACT,MAAM,GACN,aAAa,GACb,UAAU,GACV,UAAU,GACV,OAAO,GACP,KAAK,GACL,eAAe,GACf,SAAS,GACT,QAAQ,GACR,SAAS,GACT,WAAW,GACX,UAAU,GACV,cAAc,GACd,YAAY,GACZ,SAAS,GACT,gBAAgB,GAChB,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,KAAK,GACL,KAAK,GACL,MAAM,GACN,aAAa,GACb,MAAM,GACN,mBAAmB,GACnB,UAAU,GACV,MAAM,GACN,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,gBAAgB,GAChB,WAAW,GACX,eAAe,GACf,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,aAAa,GACb,UAAU,GACV,kBAAkB,GAClB,SAAS,GACT,MAAM,GACN,QAAQ,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,GAChB,SAAS,GACT,IAAI,GACJ,UAAU,GACV,WAAW,GACX,MAAM,GACN,UAAU,GACV,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,iBAAiB,GACjB,eAAe,GACf,QAAQ,GACR,MAAM,GACN,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,UAAU,GACV,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,oBAAoB,GACpB,qBAAqB,GACrB,WAAW,GACX,MAAM,GACN,UAAU,GACV,cAAc,GACd,QAAQ,GACR,OAAO,GACP,eAAe,GACf,WAAW,GACX,SAAS,GACT,aAAa,GACb,YAAY,GACZ,MAAM,GACN,MAAM,GACN,SAAS,GACT,cAAc,GACd,OAAO,GACP,OAAO,GACP,OAAO,GACP,YAAY,GACZ,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,aAAa,GACb,gBAAgB,GAChB,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,CAAC"}
File without changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ export { emojiIcon, notionIcon } from "./builder.js";
1
2
  export { slashCommand } from "./capabilities/slashCommand.js";
2
3
  export { sync } from "./capabilities/sync.js";
3
4
  export { tool } from "./capabilities/tool.js";
5
+ export type { Icon, NoticonColor, NoticonName } from "./types.js";
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
+ import { emojiIcon, notionIcon } from "./builder.js";
1
2
  import { slashCommand } from "./capabilities/slashCommand.js";
2
3
  import { sync } from "./capabilities/sync.js";
3
4
  import { tool } from "./capabilities/tool.js";
4
5
  export {
6
+ emojiIcon,
7
+ notionIcon,
5
8
  slashCommand,
6
9
  sync,
7
10
  tool
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { DateFormat, NumberFormat, SelectOption, StatusGroup } from "./types.js";
1
+ import type { DateFormat, Icon, NumberFormat, SelectOption, StatusGroup } from "./types.js";
2
2
  /**
3
3
  * Supported property types for sync schemas.
4
4
  */
@@ -44,6 +44,12 @@ export type PropertyConfiguration = {
44
44
  };
45
45
  export type Schema<PK extends string> = {
46
46
  dataSourceTitle: string;
47
+ /**
48
+ * Optional icon to use as the icon for the database page.
49
+ * If not provided, defaults to 📋.
50
+ * Use the `icon()` builder to create an icon value.
51
+ */
52
+ databaseIcon?: Icon;
47
53
  properties: PropertySchema<PK>;
48
54
  };
49
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,YAAY,GACrB,OAAO,GACP,WAAW,GACX,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,MAAM,GACN,QAAQ,GACR,M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G;AACH,wBAAgB,KAAK,IAAI,qBAAqB,CAE7C;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,qBAAqB,CAEnD;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,qBAAqB,CAEhD;AAED;;GAEG;AACH,wBAAgB,IAAI,IAAI,qBAAqB,CAE5C;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,qBAAqB,CAEnE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,qBAAqB,CAEpE;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,qBAAqB,CAErE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,qBAAqB,CAE1E;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE;IAC9B,MAAM,EAAE,WAAW,EAAE,CAAC;CACtB,GAAG,qBAAqB,CAExB"}
package/dist/types.d.ts CHANGED
@@ -76,5 +76,35 @@ export type NumberFormat = "number" | "number_with_commas" | "percent" | "dollar
76
76
  * Date format types
77
77
  */
78
78
  export type DateFormat = "relative" | "MM/DD/YYYY" | "DD/MM/YYYY" | "YYYY/MM/DD" | "ll" | "MMM d";
79
- export {};
79
+ import type { NoticonName } from "./icon-names.js";
80
+ /**
81
+ * Icon representing an emoji
82
+ */
83
+ export interface EmojiIcon {
84
+ type: "emoji";
85
+ value: string;
86
+ }
87
+ /**
88
+ * Valid colors for Notion icons
89
+ */
90
+ export type NoticonColor = "gray" | "lightgray" | "brown" | "yellow" | "orange" | "green" | "blue" | "purple" | "pink" | "red";
91
+ /**
92
+ * Icon representing a Notion built-in icon
93
+ */
94
+ export interface NoticonIcon {
95
+ type: "notion";
96
+ /**
97
+ * The name of the Notion icon (e.g., "checkmark", "pizza", "rocket")
98
+ */
99
+ icon: NoticonName;
100
+ /**
101
+ * The color variant of the icon
102
+ */
103
+ color: NoticonColor;
104
+ }
105
+ /**
106
+ * All possible icon types
107
+ */
108
+ export type Icon = EmojiIcon | NoticonIcon;
109
+ export type { NoticonName } from "./icon-names.js";
80
110
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GACpB,SAAS,GACT,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,KAAK,CAAC;AAET;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,WAAW,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,YAAY,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE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AM,YAAY,GACrB,MAAM,GACN,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,KAAK,CAAC;AAET;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,WAAW,CAAC;AAE3C,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-ajax/sdk",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "An SDK for building workers for the Project Ajax platform",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/src/builder.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { DateValue, TextValue } from "./types.js";
1
+ import type { NoticonName } from "./icon-names.js";
2
+ import type { DateValue, Icon, NoticonColor, TextValue } from "./types.js";
2
3
 
3
4
  /**
4
5
  * Creates a rich text value.
@@ -213,3 +214,30 @@ function formatTime(date: Date): string {
213
214
  const minutes = String(date.getMinutes()).padStart(2, "0");
214
215
  return `${hours}:${minutes}`;
215
216
  }
217
+
218
+ /**
219
+ * Creates an emoji icon.
220
+ * @param emoji - An emoji string (e.g., "🎯", "✨", "🚀")
221
+ */
222
+ export function emojiIcon(emoji: string): Icon {
223
+ return {
224
+ type: "emoji",
225
+ value: emoji,
226
+ };
227
+ }
228
+
229
+ /**
230
+ * Creates a Notion icon with a specific color.
231
+ * @param icon - The name of the Notion icon (e.g., "checkmark", "pizza", "rocket")
232
+ * @param color - The color variant (defaults to "gray")
233
+ */
234
+ export function notionIcon(
235
+ icon: NoticonName,
236
+ color: NoticonColor = "gray",
237
+ ): Icon {
238
+ return {
239
+ type: "notion",
240
+ icon,
241
+ color,
242
+ };
243
+ }
@@ -1,6 +1,6 @@
1
1
  import { ExecutionError } from "../error.js";
2
2
  import type { PropertySchema, Schema } from "../schema.js";
3
- import type { TextValue } from "../types.js";
3
+ import type { Icon, TextValue } from "../types.js";
4
4
 
5
5
  /**
6
6
  * An object representing a third-party record to be synced.
@@ -8,6 +8,11 @@ import type { TextValue } from "../types.js";
8
8
  export type SyncedObject<PK extends string, S extends PropertySchema<PK>> = {
9
9
  key: string;
10
10
  properties: { [Property in keyof S]: TextValue };
11
+ /**
12
+ * Optional icon to use as the icon for this row's page.
13
+ * Use the `icon()` builder to create an icon value.
14
+ */
15
+ icon?: Icon;
11
16
  };
12
17
 
13
18
  /**
@@ -0,0 +1,890 @@
1
+ /**
2
+ * Valid Notion icon names
3
+ * Complete list from https://www.notion.so/icons/
4
+ */
5
+ export type NoticonName =
6
+ | "123"
7
+ | "accessibility"
8
+ | "activity"
9
+ | "add"
10
+ | "airplane"
11
+ | "alarm"
12
+ | "alert"
13
+ | "alien"
14
+ | "alien-pixel"
15
+ | "ambulance"
16
+ | "anchor"
17
+ | "apple"
18
+ | "apron"
19
+ | "aquarius"
20
+ | "arch-bridge"
21
+ | "archery"
22
+ | "archive"
23
+ | "aries"
24
+ | "arrivals"
25
+ | "arrow-circle-down"
26
+ | "arrow-down"
27
+ | "arrow-down-basic"
28
+ | "arrow-down-line"
29
+ | "arrow-left"
30
+ | "arrow-left-basic"
31
+ | "arrow-left-line"
32
+ | "arrow-northeast"
33
+ | "arrow-northwest"
34
+ | "arrow-right"
35
+ | "arrow-right-basic"
36
+ | "arrow-right-line"
37
+ | "arrow-southeast"
38
+ | "arrow-southwest"
39
+ | "arrow-turn-left"
40
+ | "arrow-turn-right"
41
+ | "arrow-up"
42
+ | "arrow-up-basic"
43
+ | "arrow-up-line"
44
+ | "arrows-horizontal"
45
+ | "arrows-swap-horizontally"
46
+ | "arrows-swap-vertically"
47
+ | "arrows-vertical"
48
+ | "art"
49
+ | "asterisk"
50
+ | "atm"
51
+ | "attachment"
52
+ | "avocado"
53
+ | "baby"
54
+ | "baby-bottle"
55
+ | "backpack"
56
+ | "backward"
57
+ | "badge"
58
+ | "bag"
59
+ | "baggage-claim"
60
+ | "balloon"
61
+ | "banana"
62
+ | "barcode"
63
+ | "barricade"
64
+ | "baseball"
65
+ | "baseball-cap"
66
+ | "basketball"
67
+ | "bathtub"
68
+ | "bathtub-shower"
69
+ | "battery"
70
+ | "battery-charged"
71
+ | "battery-charging"
72
+ | "bed"
73
+ | "bee"
74
+ | "beer"
75
+ | "beer-bottle"
76
+ | "bell"
77
+ | "bell-notification"
78
+ | "bell-off"
79
+ | "belt"
80
+ | "bicycle"
81
+ | "bikini"
82
+ | "binoculars"
83
+ | "blood-pressure"
84
+ | "bluetooth"
85
+ | "boarding-pass"
86
+ | "boat"
87
+ | "bomb"
88
+ | "bone"
89
+ | "book"
90
+ | "book-closed"
91
+ | "bookmark"
92
+ | "bookmark-outline"
93
+ | "boombox"
94
+ | "boot"
95
+ | "bounce"
96
+ | "bowl"
97
+ | "bowl-food"
98
+ | "bowling"
99
+ | "bra"
100
+ | "brain"
101
+ | "branch"
102
+ | "branch-create"
103
+ | "branch-fork"
104
+ | "branch-merge"
105
+ | "bread"
106
+ | "briefcase"
107
+ | "brightness-high"
108
+ | "broccoli"
109
+ | "broom"
110
+ | "broom-and-dustpan"
111
+ | "browser-stop"
112
+ | "bug"
113
+ | "bugle"
114
+ | "bullseye"
115
+ | "bunk-bed"
116
+ | "burger"
117
+ | "burst"
118
+ | "bus"
119
+ | "bus-double-decker"
120
+ | "bus-metro"
121
+ | "butterfly"
122
+ | "button"
123
+ | "cactus"
124
+ | "cafe"
125
+ | "cake"
126
+ | "calculator"
127
+ | "calendar"
128
+ | "calendar-day"
129
+ | "calendar-month"
130
+ | "calendar-week"
131
+ | "camera"
132
+ | "camera-off"
133
+ | "camera-roll"
134
+ | "camera-roll-portrait"
135
+ | "camping-tent"
136
+ | "camping-trailer"
137
+ | "cancer"
138
+ | "candy"
139
+ | "capricorn"
140
+ | "car"
141
+ | "card"
142
+ | "card-club"
143
+ | "card-diamond"
144
+ | "card-heart"
145
+ | "card-spade"
146
+ | "cards"
147
+ | "carrot"
148
+ | "cash"
149
+ | "cash-register"
150
+ | "cassette"
151
+ | "castle"
152
+ | "castle-japanese"
153
+ | "cat"
154
+ | "categories"
155
+ | "cd"
156
+ | "cellular"
157
+ | "chair"
158
+ | "champagne"
159
+ | "champagne-bottle"
160
+ | "chart"
161
+ | "chart-alternate"
162
+ | "chart-area"
163
+ | "chart-donut"
164
+ | "chart-line"
165
+ | "chart-mixed"
166
+ | "chart-pie"
167
+ | "chat"
168
+ | "chat-user"
169
+ | "check"
170
+ | "checklist"
171
+ | "checkmark"
172
+ | "checkmark-line"
173
+ | "checkmark-square"
174
+ | "chemistry"
175
+ | "cherries"
176
+ | "chess-bishop"
177
+ | "chess-king"
178
+ | "chess-knight"
179
+ | "chess-pawn"
180
+ | "chess-queen"
181
+ | "chess-rook"
182
+ | "chevrons-vertical"
183
+ | "chicken"
184
+ | "child"
185
+ | "chili-pepper"
186
+ | "christmas-tree"
187
+ | "church"
188
+ | "cigarette"
189
+ | "circle"
190
+ | "circle-alternate"
191
+ | "circle-arrows-horizontal"
192
+ | "circle-arrows-vertical"
193
+ | "circle-dashed"
194
+ | "circle-dot"
195
+ | "circle-five-eighths"
196
+ | "circle-four-eighths"
197
+ | "circle-one-eighth"
198
+ | "circle-remove"
199
+ | "circle-seven-eighths"
200
+ | "circle-six-eighths"
201
+ | "circle-three-eighths"
202
+ | "circle-two-eighths"
203
+ | "city"
204
+ | "clarinet"
205
+ | "clear"
206
+ | "clipping"
207
+ | "clock"
208
+ | "clock-alternate"
209
+ | "close"
210
+ | "clothes-button"
211
+ | "clothes-iron"
212
+ | "cloud"
213
+ | "cloud-no"
214
+ | "cloud-off"
215
+ | "cloud-yes"
216
+ | "cloudy"
217
+ | "clover"
218
+ | "clover-four-leaf"
219
+ | "coaster"
220
+ | "coat"
221
+ | "cocktail"
222
+ | "code"
223
+ | "code-scan"
224
+ | "coffee"
225
+ | "coffee-maker"
226
+ | "color-palette"
227
+ | "color-picker"
228
+ | "color-swatch"
229
+ | "column"
230
+ | "comb"
231
+ | "command-line"
232
+ | "comment"
233
+ | "compass"
234
+ | "compose"
235
+ | "compressed-document"
236
+ | "computer"
237
+ | "computer-chip"
238
+ | "conceal"
239
+ | "condense"
240
+ | "confetti-ball"
241
+ | "confetti-party-popper"
242
+ | "conifer-tree"
243
+ | "connecting-flight"
244
+ | "construction-crane"
245
+ | "contrast"
246
+ | "conversation"
247
+ | "copy"
248
+ | "corn"
249
+ | "couch"
250
+ | "cow"
251
+ | "crab"
252
+ | "crayon"
253
+ | "create"
254
+ | "credit-card"
255
+ | "crop"
256
+ | "crutch"
257
+ | "cupcake"
258
+ | "currency"
259
+ | "currency-coin"
260
+ | "cursor"
261
+ | "cursor-button"
262
+ | "cursor-click"
263
+ | "customs"
264
+ | "cut"
265
+ | "dairy"
266
+ | "daisy"
267
+ | "dance"
268
+ | "darks"
269
+ | "dashboard"
270
+ | "database"
271
+ | "defibrillator"
272
+ | "delete"
273
+ | "delivery-truck"
274
+ | "dental"
275
+ | "departures"
276
+ | "dependency"
277
+ | "description"
278
+ | "dialogue"
279
+ | "die1"
280
+ | "die2"
281
+ | "die3"
282
+ | "die4"
283
+ | "die5"
284
+ | "die6"
285
+ | "dining"
286
+ | "directional-sign"
287
+ | "directional-sign-left"
288
+ | "directional-sign-right"
289
+ | "directions"
290
+ | "dish-soap"
291
+ | "dna"
292
+ | "do-not-disturb"
293
+ | "document"
294
+ | "dog"
295
+ | "donkey"
296
+ | "download"
297
+ | "downward"
298
+ | "drafts"
299
+ | "dress"
300
+ | "drink"
301
+ | "duck"
302
+ | "duster"
303
+ | "ear"
304
+ | "ear-hearing-aid"
305
+ | "earthquake"
306
+ | "egg"
307
+ | "eject"
308
+ | "electric-guitar"
309
+ | "electric-plug"
310
+ | "elephant"
311
+ | "elevator"
312
+ | "emoji"
313
+ | "emoji-angry"
314
+ | "emoji-big-sad"
315
+ | "emoji-disappointed"
316
+ | "emoji-grinning"
317
+ | "emoji-grinning-smiling-eyes"
318
+ | "emoji-heart-eyes"
319
+ | "emoji-neutral"
320
+ | "emoji-sad"
321
+ | "emoji-smiling-eyes"
322
+ | "emoji-sunglasses"
323
+ | "emoji-surprised"
324
+ | "emoji-winking"
325
+ | "error"
326
+ | "escalator"
327
+ | "exclamation-mark"
328
+ | "exclamation-mark-double"
329
+ | "exit"
330
+ | "expand"
331
+ | "extension"
332
+ | "fabric-swatch"
333
+ | "facial-tissues"
334
+ | "factory"
335
+ | "fan-deck"
336
+ | "feather"
337
+ | "feed"
338
+ | "filtered"
339
+ | "fire"
340
+ | "fire-extinguisher"
341
+ | "fire-truck"
342
+ | "fireworks"
343
+ | "first-aid"
344
+ | "first-aid-kit"
345
+ | "fish"
346
+ | "flag"
347
+ | "flag-checkered"
348
+ | "flag-pennant"
349
+ | "flag-swallowtail"
350
+ | "flash"
351
+ | "flashlight"
352
+ | "flatware"
353
+ | "fleur-de-lis"
354
+ | "flood"
355
+ | "fog"
356
+ | "folder"
357
+ | "follow"
358
+ | "following"
359
+ | "font"
360
+ | "food-and-drink"
361
+ | "football"
362
+ | "forest-fire"
363
+ | "fork"
364
+ | "fork-and-knife"
365
+ | "formula"
366
+ | "forward"
367
+ | "fragile"
368
+ | "friends"
369
+ | "frying-pan"
370
+ | "fuel"
371
+ | "game-pawn"
372
+ | "garlic"
373
+ | "gavel"
374
+ | "gear"
375
+ | "gears"
376
+ | "gem"
377
+ | "gemini"
378
+ | "geography"
379
+ | "ghost"
380
+ | "gift"
381
+ | "git"
382
+ | "glasses"
383
+ | "globe"
384
+ | "golf"
385
+ | "government"
386
+ | "gradebook"
387
+ | "graduate"
388
+ | "grapes"
389
+ | "grave"
390
+ | "grid"
391
+ | "grid-dense"
392
+ | "grid-wide"
393
+ | "grid-wide-six"
394
+ | "grocery"
395
+ | "groups"
396
+ | "guitar"
397
+ | "gym"
398
+ | "hail"
399
+ | "hair-care"
400
+ | "hairdryer"
401
+ | "hammer"
402
+ | "hanafuda"
403
+ | "hand"
404
+ | "handbag"
405
+ | "hanger"
406
+ | "hare"
407
+ | "hashtag"
408
+ | "headphones"
409
+ | "headset"
410
+ | "heart"
411
+ | "heart-box-bow"
412
+ | "heart-outline"
413
+ | "heart-rate"
414
+ | "heart-rate-monitor"
415
+ | "heartbroken"
416
+ | "helicopter"
417
+ | "helm"
418
+ | "help-alternate"
419
+ | "hexagon"
420
+ | "hexagon-alternate"
421
+ | "hexagon-dashed"
422
+ | "hexagon-five-sixths"
423
+ | "hexagon-four-sixths"
424
+ | "hexagon-one-sixth"
425
+ | "hexagon-three-sixths"
426
+ | "hexagon-two-sixths"
427
+ | "highball"
428
+ | "history"
429
+ | "home"
430
+ | "hot-air-balloon"
431
+ | "hourglass"
432
+ | "hurricane"
433
+ | "ice-skate"
434
+ | "immigration"
435
+ | "inbox"
436
+ | "infinity"
437
+ | "info-alternate"
438
+ | "inline-skate"
439
+ | "invitation"
440
+ | "iterate"
441
+ | "jack-o-lantern"
442
+ | "jar"
443
+ | "judicial-scales"
444
+ | "junk"
445
+ | "key"
446
+ | "key-antique"
447
+ | "keyboard"
448
+ | "keyboard-alternate"
449
+ | "keypad"
450
+ | "kind"
451
+ | "kite"
452
+ | "knife"
453
+ | "knife-kitchen"
454
+ | "language"
455
+ | "laptop"
456
+ | "laundry-basket"
457
+ | "laundry-detergent"
458
+ | "laundry-dryer"
459
+ | "laundry-washer"
460
+ | "layers"
461
+ | "leaf"
462
+ | "leaf-monstera"
463
+ | "lemon"
464
+ | "leo"
465
+ | "libra"
466
+ | "library"
467
+ | "light-bulb"
468
+ | "lights"
469
+ | "link"
470
+ | "lipstick"
471
+ | "list"
472
+ | "list-indent"
473
+ | "litter-disposal"
474
+ | "location"
475
+ | "lock"
476
+ | "lock-keyhole"
477
+ | "log-in"
478
+ | "log-out"
479
+ | "long-bone"
480
+ | "long-sleeve-shirt"
481
+ | "looped-square"
482
+ | "lost-and-found"
483
+ | "lounge"
484
+ | "luggage"
485
+ | "luggage-cart"
486
+ | "lungs"
487
+ | "magic-wand"
488
+ | "magnet"
489
+ | "mahjong"
490
+ | "mail"
491
+ | "makeup-brush"
492
+ | "mandir"
493
+ | "map"
494
+ | "map-pin"
495
+ | "map-pin-alternate"
496
+ | "mathematics"
497
+ | "meat"
498
+ | "medication"
499
+ | "meeting"
500
+ | "megaphone"
501
+ | "menorah"
502
+ | "menstrual-pad"
503
+ | "merge"
504
+ | "metronome"
505
+ | "microphone"
506
+ | "microphone-off"
507
+ | "microscope"
508
+ | "microwave"
509
+ | "midtones"
510
+ | "mirror"
511
+ | "mobile"
512
+ | "monorail"
513
+ | "moon"
514
+ | "mop"
515
+ | "mop-and-bucket"
516
+ | "more"
517
+ | "mosque"
518
+ | "motorcycle"
519
+ | "mountains"
520
+ | "mouth"
521
+ | "move"
522
+ | "move-document"
523
+ | "movie"
524
+ | "movie-camera"
525
+ | "movie-clapboard"
526
+ | "movie-clapboard-play"
527
+ | "mushroom"
528
+ | "music"
529
+ | "music-album"
530
+ | "music-artist"
531
+ | "navigation"
532
+ | "necktie"
533
+ | "network"
534
+ | "new-alert"
535
+ | "new-badge"
536
+ | "new-document"
537
+ | "new-folder"
538
+ | "news"
539
+ | "no"
540
+ | "no-entry"
541
+ | "note-eighth"
542
+ | "note-half"
543
+ | "note-quarter"
544
+ | "note-sixteenth"
545
+ | "note-sixteenth-beamed"
546
+ | "note-whole"
547
+ | "notification"
548
+ | "notion"
549
+ | "numero"
550
+ | "nut"
551
+ | "octagon"
552
+ | "official-document"
553
+ | "onion"
554
+ | "orange"
555
+ | "orbit"
556
+ | "ornament"
557
+ | "oven"
558
+ | "package"
559
+ | "paifang"
560
+ | "paint-brush"
561
+ | "paint-brush-wide"
562
+ | "paint-bucket"
563
+ | "paint-roller"
564
+ | "palm-tree"
565
+ | "pants"
566
+ | "paper-towels"
567
+ | "parking"
568
+ | "parking-no"
569
+ | "partly-cloudy-day"
570
+ | "partly-cloudy-night"
571
+ | "passport"
572
+ | "paste"
573
+ | "peace"
574
+ | "peanut"
575
+ | "pear"
576
+ | "pen"
577
+ | "pencil"
578
+ | "pentagon"
579
+ | "pentagon-alternate"
580
+ | "pentagon-dashed"
581
+ | "pentagon-four-fifths"
582
+ | "pentagon-one-fifth"
583
+ | "pentagon-three-fifths"
584
+ | "pentagon-two-fifths"
585
+ | "people"
586
+ | "perfume"
587
+ | "person-feminine"
588
+ | "person-masculine"
589
+ | "phone"
590
+ | "phone-call"
591
+ | "phone-end-call"
592
+ | "phone-speaker"
593
+ | "photo-landscape"
594
+ | "piano"
595
+ | "pig"
596
+ | "pill"
597
+ | "pin"
598
+ | "pisces"
599
+ | "pitcher"
600
+ | "pizza"
601
+ | "plate-food"
602
+ | "playback-fast-forward"
603
+ | "playback-next"
604
+ | "playback-pause"
605
+ | "playback-play"
606
+ | "playback-play-button"
607
+ | "playback-previous"
608
+ | "playback-rewind"
609
+ | "playback-stop"
610
+ | "playlist"
611
+ | "plus"
612
+ | "poo"
613
+ | "postage-stamp"
614
+ | "postcard"
615
+ | "pot"
616
+ | "potted-plant"
617
+ | "poultry"
618
+ | "power"
619
+ | "pram"
620
+ | "pregnancy-test"
621
+ | "pretzel"
622
+ | "preview"
623
+ | "print"
624
+ | "priority-high"
625
+ | "priority-low"
626
+ | "priority-mid"
627
+ | "private"
628
+ | "profile"
629
+ | "promoted"
630
+ | "public"
631
+ | "pull-request"
632
+ | "pump"
633
+ | "pump-bottle"
634
+ | "push-pin"
635
+ | "puzzle"
636
+ | "question-mark"
637
+ | "radio"
638
+ | "rain"
639
+ | "rainbow"
640
+ | "receipt"
641
+ | "redirect"
642
+ | "redo"
643
+ | "reference"
644
+ | "refresh"
645
+ | "refresh-reverse"
646
+ | "refrigerator"
647
+ | "remove"
648
+ | "rename"
649
+ | "reorder"
650
+ | "repeat"
651
+ | "reply"
652
+ | "reply-all"
653
+ | "report"
654
+ | "ringed-planet"
655
+ | "robot"
656
+ | "rocket"
657
+ | "roller-skate"
658
+ | "row"
659
+ | "rubber-stamp"
660
+ | "ruler"
661
+ | "run"
662
+ | "safety-pin"
663
+ | "sagittarius"
664
+ | "sailboat"
665
+ | "sandwich"
666
+ | "save"
667
+ | "scarf"
668
+ | "school"
669
+ | "science"
670
+ | "scooter"
671
+ | "scorpio"
672
+ | "screwdriver"
673
+ | "script"
674
+ | "scrub-brush"
675
+ | "search"
676
+ | "seed"
677
+ | "send"
678
+ | "send-to"
679
+ | "server"
680
+ | "service-counter"
681
+ | "set-square"
682
+ | "share"
683
+ | "sharing"
684
+ | "sheep"
685
+ | "shell"
686
+ | "shield"
687
+ | "shirt"
688
+ | "shoe"
689
+ | "shogi"
690
+ | "shop"
691
+ | "shopping-bag"
692
+ | "shopping-basket"
693
+ | "shopping-cart"
694
+ | "shorts"
695
+ | "shovel-and-pail"
696
+ | "shower"
697
+ | "shuffle"
698
+ | "sign-in"
699
+ | "sign-out"
700
+ | "signature-document"
701
+ | "sink"
702
+ | "skateboard"
703
+ | "skip-backward"
704
+ | "skip-forward"
705
+ | "skirt"
706
+ | "skull"
707
+ | "skull-profile"
708
+ | "sleet"
709
+ | "slide"
710
+ | "sliders-horizontal"
711
+ | "sliders-vertical"
712
+ | "slideshow"
713
+ | "slideshow-play"
714
+ | "smoking"
715
+ | "smoking-no"
716
+ | "snake"
717
+ | "snare-drum"
718
+ | "snippet"
719
+ | "snorkel"
720
+ | "snowflake"
721
+ | "soap"
722
+ | "soccer"
723
+ | "sock"
724
+ | "soda-bottle"
725
+ | "soft-serve"
726
+ | "soy"
727
+ | "spider"
728
+ | "sponge"
729
+ | "spoon"
730
+ | "spray-bottle"
731
+ | "square"
732
+ | "square-alternate"
733
+ | "square-circle"
734
+ | "square-dashed"
735
+ | "square-one-fourth"
736
+ | "square-three-fourths"
737
+ | "square-two-fourths"
738
+ | "squeeze-tube"
739
+ | "stairs"
740
+ | "star"
741
+ | "star-half"
742
+ | "star-of-life"
743
+ | "star-outline"
744
+ | "stars"
745
+ | "steering-wheel"
746
+ | "stethoscope"
747
+ | "sticker"
748
+ | "stomach"
749
+ | "stopwatch"
750
+ | "storm"
751
+ | "stovetop"
752
+ | "strawberry"
753
+ | "stroller"
754
+ | "subtask"
755
+ | "subtitles"
756
+ | "suit"
757
+ | "suit-club"
758
+ | "suit-diamond"
759
+ | "suit-heart"
760
+ | "suit-spade"
761
+ | "suitcase"
762
+ | "sun"
763
+ | "sunglasses"
764
+ | "sunrise"
765
+ | "sunscreen"
766
+ | "sunset"
767
+ | "suspension-bridge"
768
+ | "swap-horizontally"
769
+ | "swap-vertically"
770
+ | "sword"
771
+ | "symbol"
772
+ | "synagogue"
773
+ | "sync"
774
+ | "sync-reverse"
775
+ | "syringe"
776
+ | "t-square"
777
+ | "table"
778
+ | "tablet"
779
+ | "tabs"
780
+ | "tabs-user"
781
+ | "tag"
782
+ | "takeout-box"
783
+ | "tampon"
784
+ | "target"
785
+ | "taurus"
786
+ | "taxi"
787
+ | "teapot"
788
+ | "telephone"
789
+ | "telescope"
790
+ | "temperature-cool"
791
+ | "temperature-warm"
792
+ | "temple"
793
+ | "theatre"
794
+ | "thinking"
795
+ | "thought"
796
+ | "thought-alert"
797
+ | "thought-dialogue"
798
+ | "throat"
799
+ | "thumbs-down"
800
+ | "thumbs-up"
801
+ | "ticket"
802
+ | "ticket-admission"
803
+ | "timeline"
804
+ | "toaster"
805
+ | "toilet"
806
+ | "toilet-paper"
807
+ | "token"
808
+ | "tooth"
809
+ | "torii"
810
+ | "tornado"
811
+ | "tortoise"
812
+ | "towel"
813
+ | "traffic-cone"
814
+ | "traffic-light"
815
+ | "train"
816
+ | "train-high-speed"
817
+ | "train-light-rail"
818
+ | "train-magnetic-levitation"
819
+ | "train-metro"
820
+ | "transfers"
821
+ | "translate"
822
+ | "tree"
823
+ | "triangle"
824
+ | "triangle-alternate"
825
+ | "triangle-dashed"
826
+ | "triangle-one-third"
827
+ | "triangle-two-thirds"
828
+ | "trophy"
829
+ | "tropical-cocktail"
830
+ | "truck"
831
+ | "trumpet"
832
+ | "tshirt"
833
+ | "tulip"
834
+ | "tulip-name-tag"
835
+ | "tumbler"
836
+ | "tv"
837
+ | "umbrella"
838
+ | "underwear"
839
+ | "undo"
840
+ | "unfollow"
841
+ | "unlock"
842
+ | "unlock-keyhole"
843
+ | "upload"
844
+ | "upload-document"
845
+ | "upload-folder"
846
+ | "upward"
847
+ | "user"
848
+ | "user-circle"
849
+ | "user-circle-dashed"
850
+ | "user-circle-filled"
851
+ | "username"
852
+ | "vacuum-cleaner"
853
+ | "verified"
854
+ | "video-camera"
855
+ | "video-camera-off"
856
+ | "video-game"
857
+ | "video-game-classic"
858
+ | "video-game-joystick"
859
+ | "videotape"
860
+ | "view"
861
+ | "view-off"
862
+ | "vinyl-record"
863
+ | "violin"
864
+ | "virgo"
865
+ | "vitruvian-man"
866
+ | "voicemail"
867
+ | "volcano"
868
+ | "volume-high"
869
+ | "volume-off"
870
+ | "walk"
871
+ | "wall"
872
+ | "warning"
873
+ | "watch-analog"
874
+ | "water"
875
+ | "whale"
876
+ | "wheat"
877
+ | "wheelchair"
878
+ | "wheelchair-access"
879
+ | "wheelchair-motorized"
880
+ | "whistle"
881
+ | "wifi"
882
+ | "wind"
883
+ | "window"
884
+ | "wine"
885
+ | "wine-bottle"
886
+ | "wrapping-paper"
887
+ | "wrench"
888
+ | "yin-yang"
889
+ | "zoom-in"
890
+ | "zoom-out";
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export { emojiIcon, notionIcon } from "./builder.js";
1
2
  export { slashCommand } from "./capabilities/slashCommand.js";
2
3
  export { sync } from "./capabilities/sync.js";
3
4
  export { tool } from "./capabilities/tool.js";
5
+ export type { Icon, NoticonColor, NoticonName } from "./types.js";
package/src/schema.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type {
2
2
  DateFormat,
3
+ Icon,
3
4
  NumberFormat,
4
5
  SelectOption,
5
6
  StatusGroup,
@@ -63,6 +64,12 @@ export type PropertyConfiguration =
63
64
 
64
65
  export type Schema<PK extends string> = {
65
66
  dataSourceTitle: string;
67
+ /**
68
+ * Optional icon to use as the icon for the database page.
69
+ * If not provided, defaults to 📋.
70
+ * Use the `icon()` builder to create an icon value.
71
+ */
72
+ databaseIcon?: Icon;
66
73
  properties: PropertySchema<PK>;
67
74
  };
68
75
 
package/src/types.ts CHANGED
@@ -114,3 +114,50 @@ export type DateFormat =
114
114
  | "YYYY/MM/DD"
115
115
  | "ll"
116
116
  | "MMM d";
117
+
118
+ import type { NoticonName } from "./icon-names.js";
119
+
120
+ /**
121
+ * Icon representing an emoji
122
+ */
123
+ export interface EmojiIcon {
124
+ type: "emoji";
125
+ value: string;
126
+ }
127
+
128
+ /**
129
+ * Valid colors for Notion icons
130
+ */
131
+ export type NoticonColor =
132
+ | "gray"
133
+ | "lightgray"
134
+ | "brown"
135
+ | "yellow"
136
+ | "orange"
137
+ | "green"
138
+ | "blue"
139
+ | "purple"
140
+ | "pink"
141
+ | "red";
142
+
143
+ /**
144
+ * Icon representing a Notion built-in icon
145
+ */
146
+ export interface NoticonIcon {
147
+ type: "notion";
148
+ /**
149
+ * The name of the Notion icon (e.g., "checkmark", "pizza", "rocket")
150
+ */
151
+ icon: NoticonName;
152
+ /**
153
+ * The color variant of the icon
154
+ */
155
+ color: NoticonColor;
156
+ }
157
+
158
+ /**
159
+ * All possible icon types
160
+ */
161
+ export type Icon = EmojiIcon | NoticonIcon;
162
+
163
+ export type { NoticonName } from "./icon-names.js";