@51eat/sdk 0.0.9 → 0.0.11

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.
Files changed (154) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +11 -6
  4. package/dist/cjs/api/resources/discovery/client/Client.d.ts +14 -0
  5. package/dist/cjs/api/resources/discovery/client/Client.js +52 -0
  6. package/dist/cjs/api/resources/editorials/client/Client.d.ts +41 -0
  7. package/dist/cjs/api/resources/editorials/client/Client.js +158 -0
  8. package/dist/cjs/api/resources/editorials/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/editorials/client/index.js +17 -0
  10. package/dist/cjs/api/resources/editorials/client/requests/GetEditorialRequest.d.ts +9 -0
  11. package/dist/cjs/api/resources/editorials/client/requests/GetEditorialRequest.js +3 -0
  12. package/dist/cjs/api/resources/editorials/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/editorials/client/requests/index.js +2 -0
  14. package/dist/cjs/api/resources/editorials/exports.d.ts +2 -0
  15. package/dist/cjs/api/resources/editorials/exports.js +21 -0
  16. package/dist/cjs/api/resources/editorials/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/editorials/index.js +18 -0
  18. package/dist/cjs/api/resources/editorials/types/GetEditorialResponse.d.ts +4 -0
  19. package/dist/cjs/api/resources/editorials/types/GetEditorialResponse.js +3 -0
  20. package/dist/cjs/api/resources/editorials/types/ListEditorialsResponse.d.ts +4 -0
  21. package/dist/cjs/api/resources/editorials/types/ListEditorialsResponse.js +3 -0
  22. package/dist/cjs/api/resources/editorials/types/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/editorials/types/index.js +18 -0
  24. package/dist/cjs/api/resources/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/index.js +4 -1
  26. package/dist/cjs/api/types/BardBlockquoteNode.d.ts +4 -0
  27. package/dist/cjs/api/types/BardBlockquoteNode.js +3 -0
  28. package/dist/cjs/api/types/BardBody.d.ts +2 -0
  29. package/dist/cjs/api/types/BardBody.js +3 -0
  30. package/dist/cjs/api/types/BardBulletListNode.d.ts +4 -0
  31. package/dist/cjs/api/types/BardBulletListNode.js +3 -0
  32. package/dist/cjs/api/types/BardEventSetValues.d.ts +15 -0
  33. package/dist/cjs/api/types/BardEventSetValues.js +3 -0
  34. package/dist/cjs/api/types/BardHardBreakNode.d.ts +1 -0
  35. package/dist/cjs/api/types/BardHardBreakNode.js +3 -0
  36. package/dist/cjs/api/types/BardHeadingNode.d.ts +11 -0
  37. package/dist/cjs/api/types/BardHeadingNode.js +3 -0
  38. package/dist/cjs/api/types/BardHeadingNodeContentItem.d.ts +10 -0
  39. package/dist/cjs/api/types/BardHeadingNodeContentItem.js +3 -0
  40. package/dist/cjs/api/types/BardHorizontalRuleNode.d.ts +1 -0
  41. package/dist/cjs/api/types/BardHorizontalRuleNode.js +3 -0
  42. package/dist/cjs/api/types/BardImageNode.d.ts +11 -0
  43. package/dist/cjs/api/types/BardImageNode.js +3 -0
  44. package/dist/cjs/api/types/BardListItemNode.d.ts +11 -0
  45. package/dist/cjs/api/types/BardListItemNode.js +10 -0
  46. package/dist/cjs/api/types/BardMark.d.ts +23 -0
  47. package/dist/cjs/api/types/BardMark.js +18 -0
  48. package/dist/cjs/api/types/BardMenuItemSetValues.d.ts +13 -0
  49. package/dist/cjs/api/types/BardMenuItemSetValues.js +3 -0
  50. package/dist/cjs/api/types/BardNode.d.ts +31 -0
  51. package/dist/cjs/api/types/BardNode.js +3 -0
  52. package/dist/cjs/api/types/BardOrderedListNode.d.ts +4 -0
  53. package/dist/cjs/api/types/BardOrderedListNode.js +3 -0
  54. package/dist/cjs/api/types/BardParagraphNode.d.ts +11 -0
  55. package/dist/cjs/api/types/BardParagraphNode.js +10 -0
  56. package/dist/cjs/api/types/BardParagraphNodeContentItem.d.ts +10 -0
  57. package/dist/cjs/api/types/BardParagraphNodeContentItem.js +3 -0
  58. package/dist/cjs/api/types/BardProductSetValues.d.ts +13 -0
  59. package/dist/cjs/api/types/BardProductSetValues.js +3 -0
  60. package/dist/cjs/api/types/BardSetNode.d.ts +12 -0
  61. package/dist/cjs/api/types/BardSetNode.js +3 -0
  62. package/dist/cjs/api/types/BardSetValues.d.ts +13 -0
  63. package/dist/cjs/api/types/BardSetValues.js +3 -0
  64. package/dist/cjs/api/types/BardTextNode.d.ts +5 -0
  65. package/dist/cjs/api/types/BardTextNode.js +3 -0
  66. package/dist/cjs/api/types/DiscoveryBusinessResource.d.ts +6 -0
  67. package/dist/cjs/api/types/DiscoveryHighlightsResource.d.ts +10 -0
  68. package/dist/cjs/api/types/DiscoveryHighlightsResource.js +3 -0
  69. package/dist/cjs/api/types/EditorialResource.d.ts +31 -0
  70. package/dist/cjs/api/types/EditorialResource.js +3 -0
  71. package/dist/cjs/api/types/EditorialSummaryResource.d.ts +29 -0
  72. package/dist/cjs/api/types/EditorialSummaryResource.js +3 -0
  73. package/dist/cjs/api/types/index.d.ts +23 -0
  74. package/dist/cjs/api/types/index.js +23 -0
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/BaseClient.mjs +2 -2
  78. package/dist/esm/Client.d.mts +3 -0
  79. package/dist/esm/Client.mjs +5 -0
  80. package/dist/esm/api/resources/discovery/client/Client.d.mts +14 -0
  81. package/dist/esm/api/resources/discovery/client/Client.mjs +52 -0
  82. package/dist/esm/api/resources/editorials/client/Client.d.mts +41 -0
  83. package/dist/esm/api/resources/editorials/client/Client.mjs +121 -0
  84. package/dist/esm/api/resources/editorials/client/index.d.mts +1 -0
  85. package/dist/esm/api/resources/editorials/client/index.mjs +1 -0
  86. package/dist/esm/api/resources/editorials/client/requests/GetEditorialRequest.d.mts +9 -0
  87. package/dist/esm/api/resources/editorials/client/requests/GetEditorialRequest.mjs +2 -0
  88. package/dist/esm/api/resources/editorials/client/requests/index.d.mts +1 -0
  89. package/dist/esm/api/resources/editorials/client/requests/index.mjs +1 -0
  90. package/dist/esm/api/resources/editorials/exports.d.mts +2 -0
  91. package/dist/esm/api/resources/editorials/exports.mjs +3 -0
  92. package/dist/esm/api/resources/editorials/index.d.mts +2 -0
  93. package/dist/esm/api/resources/editorials/index.mjs +2 -0
  94. package/dist/esm/api/resources/editorials/types/GetEditorialResponse.d.mts +4 -0
  95. package/dist/esm/api/resources/editorials/types/GetEditorialResponse.mjs +2 -0
  96. package/dist/esm/api/resources/editorials/types/ListEditorialsResponse.d.mts +4 -0
  97. package/dist/esm/api/resources/editorials/types/ListEditorialsResponse.mjs +2 -0
  98. package/dist/esm/api/resources/editorials/types/index.d.mts +2 -0
  99. package/dist/esm/api/resources/editorials/types/index.mjs +2 -0
  100. package/dist/esm/api/resources/index.d.mts +3 -0
  101. package/dist/esm/api/resources/index.mjs +3 -0
  102. package/dist/esm/api/types/BardBlockquoteNode.d.mts +4 -0
  103. package/dist/esm/api/types/BardBlockquoteNode.mjs +2 -0
  104. package/dist/esm/api/types/BardBody.d.mts +2 -0
  105. package/dist/esm/api/types/BardBody.mjs +2 -0
  106. package/dist/esm/api/types/BardBulletListNode.d.mts +4 -0
  107. package/dist/esm/api/types/BardBulletListNode.mjs +2 -0
  108. package/dist/esm/api/types/BardEventSetValues.d.mts +15 -0
  109. package/dist/esm/api/types/BardEventSetValues.mjs +2 -0
  110. package/dist/esm/api/types/BardHardBreakNode.d.mts +1 -0
  111. package/dist/esm/api/types/BardHardBreakNode.mjs +2 -0
  112. package/dist/esm/api/types/BardHeadingNode.d.mts +11 -0
  113. package/dist/esm/api/types/BardHeadingNode.mjs +2 -0
  114. package/dist/esm/api/types/BardHeadingNodeContentItem.d.mts +10 -0
  115. package/dist/esm/api/types/BardHeadingNodeContentItem.mjs +2 -0
  116. package/dist/esm/api/types/BardHorizontalRuleNode.d.mts +1 -0
  117. package/dist/esm/api/types/BardHorizontalRuleNode.mjs +2 -0
  118. package/dist/esm/api/types/BardImageNode.d.mts +11 -0
  119. package/dist/esm/api/types/BardImageNode.mjs +2 -0
  120. package/dist/esm/api/types/BardListItemNode.d.mts +11 -0
  121. package/dist/esm/api/types/BardListItemNode.mjs +7 -0
  122. package/dist/esm/api/types/BardMark.d.mts +23 -0
  123. package/dist/esm/api/types/BardMark.mjs +15 -0
  124. package/dist/esm/api/types/BardMenuItemSetValues.d.mts +13 -0
  125. package/dist/esm/api/types/BardMenuItemSetValues.mjs +2 -0
  126. package/dist/esm/api/types/BardNode.d.mts +31 -0
  127. package/dist/esm/api/types/BardNode.mjs +2 -0
  128. package/dist/esm/api/types/BardOrderedListNode.d.mts +4 -0
  129. package/dist/esm/api/types/BardOrderedListNode.mjs +2 -0
  130. package/dist/esm/api/types/BardParagraphNode.d.mts +11 -0
  131. package/dist/esm/api/types/BardParagraphNode.mjs +7 -0
  132. package/dist/esm/api/types/BardParagraphNodeContentItem.d.mts +10 -0
  133. package/dist/esm/api/types/BardParagraphNodeContentItem.mjs +2 -0
  134. package/dist/esm/api/types/BardProductSetValues.d.mts +13 -0
  135. package/dist/esm/api/types/BardProductSetValues.mjs +2 -0
  136. package/dist/esm/api/types/BardSetNode.d.mts +12 -0
  137. package/dist/esm/api/types/BardSetNode.mjs +2 -0
  138. package/dist/esm/api/types/BardSetValues.d.mts +13 -0
  139. package/dist/esm/api/types/BardSetValues.mjs +2 -0
  140. package/dist/esm/api/types/BardTextNode.d.mts +5 -0
  141. package/dist/esm/api/types/BardTextNode.mjs +2 -0
  142. package/dist/esm/api/types/DiscoveryBusinessResource.d.mts +6 -0
  143. package/dist/esm/api/types/DiscoveryHighlightsResource.d.mts +10 -0
  144. package/dist/esm/api/types/DiscoveryHighlightsResource.mjs +2 -0
  145. package/dist/esm/api/types/EditorialResource.d.mts +31 -0
  146. package/dist/esm/api/types/EditorialResource.mjs +2 -0
  147. package/dist/esm/api/types/EditorialSummaryResource.d.mts +29 -0
  148. package/dist/esm/api/types/EditorialSummaryResource.mjs +2 -0
  149. package/dist/esm/api/types/index.d.mts +23 -0
  150. package/dist/esm/api/types/index.mjs +23 -0
  151. package/dist/esm/version.d.mts +1 -1
  152. package/dist/esm/version.mjs +1 -1
  153. package/package.json +12 -1
  154. package/reference.md +179 -0
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface BardImageNode {
2
+ attrs: BardImageNode.Attrs;
3
+ }
4
+ export declare namespace BardImageNode {
5
+ interface Attrs {
6
+ /** Resolved S3 asset URL. */
7
+ src: string;
8
+ alt?: (string | null) | undefined;
9
+ title?: (string | null) | undefined;
10
+ }
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface BardListItemNode {
3
+ type: BardListItemNode.Type;
4
+ content: FiveOneEat.BardParagraphNode[];
5
+ }
6
+ export declare namespace BardListItemNode {
7
+ const Type: {
8
+ readonly ListItem: "listItem";
9
+ };
10
+ type Type = (typeof Type)[keyof typeof Type];
11
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BardListItemNode = void 0;
5
+ var BardListItemNode;
6
+ (function (BardListItemNode) {
7
+ BardListItemNode.Type = {
8
+ ListItem: "listItem",
9
+ };
10
+ })(BardListItemNode || (exports.BardListItemNode = BardListItemNode = {}));
@@ -0,0 +1,23 @@
1
+ export interface BardMark {
2
+ /** The mark type. */
3
+ type: BardMark.Type;
4
+ attrs?: BardMark.Attrs | undefined;
5
+ }
6
+ export declare namespace BardMark {
7
+ /** The mark type. */
8
+ const Type: {
9
+ readonly Bold: "bold";
10
+ readonly Italic: "italic";
11
+ readonly Underline: "underline";
12
+ readonly Link: "link";
13
+ readonly Anchor: "anchor";
14
+ readonly Small: "small";
15
+ readonly Subscript: "subscript";
16
+ readonly Superscript: "superscript";
17
+ };
18
+ type Type = (typeof Type)[keyof typeof Type];
19
+ interface Attrs {
20
+ href?: (string | null) | undefined;
21
+ target?: (string | null) | undefined;
22
+ }
23
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BardMark = void 0;
5
+ var BardMark;
6
+ (function (BardMark) {
7
+ /** The mark type. */
8
+ BardMark.Type = {
9
+ Bold: "bold",
10
+ Italic: "italic",
11
+ Underline: "underline",
12
+ Link: "link",
13
+ Anchor: "anchor",
14
+ Small: "small",
15
+ Subscript: "subscript",
16
+ Superscript: "superscript",
17
+ };
18
+ })(BardMark || (exports.BardMark = BardMark = {}));
@@ -0,0 +1,13 @@
1
+ export interface BardMenuItemSetValues {
2
+ caption: string | null;
3
+ item: BardMenuItemSetValues.Item | null;
4
+ }
5
+ export declare namespace BardMenuItemSetValues {
6
+ interface Item {
7
+ id: string;
8
+ name: string;
9
+ description?: (string | null) | undefined;
10
+ price?: (string | null) | undefined;
11
+ image?: (string | null) | undefined;
12
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export type BardNode = FiveOneEat.BardNode.Paragraph | FiveOneEat.BardNode.Heading | FiveOneEat.BardNode.Image | FiveOneEat.BardNode.HardBreak | FiveOneEat.BardNode.HorizontalRule | FiveOneEat.BardNode.BulletList | FiveOneEat.BardNode.OrderedList | FiveOneEat.BardNode.Blockquote | FiveOneEat.BardNode.Set;
3
+ export declare namespace BardNode {
4
+ interface Paragraph extends FiveOneEat.BardParagraphNode {
5
+ type: "paragraph";
6
+ }
7
+ interface Heading extends FiveOneEat.BardHeadingNode {
8
+ type: "heading";
9
+ }
10
+ interface Image extends FiveOneEat.BardImageNode {
11
+ type: "image";
12
+ }
13
+ interface HardBreak extends FiveOneEat.BardHardBreakNode {
14
+ type: "hardBreak";
15
+ }
16
+ interface HorizontalRule extends FiveOneEat.BardHorizontalRuleNode {
17
+ type: "horizontalRule";
18
+ }
19
+ interface BulletList extends FiveOneEat.BardBulletListNode {
20
+ type: "bulletList";
21
+ }
22
+ interface OrderedList extends FiveOneEat.BardOrderedListNode {
23
+ type: "orderedList";
24
+ }
25
+ interface Blockquote extends FiveOneEat.BardBlockquoteNode {
26
+ type: "blockquote";
27
+ }
28
+ interface Set extends FiveOneEat.BardSetNode {
29
+ type: "set";
30
+ }
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface BardOrderedListNode {
3
+ content: FiveOneEat.BardListItemNode[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface BardParagraphNode {
3
+ type: BardParagraphNode.Type;
4
+ content?: FiveOneEat.BardParagraphNodeContentItem[] | undefined;
5
+ }
6
+ export declare namespace BardParagraphNode {
7
+ const Type: {
8
+ readonly Paragraph: "paragraph";
9
+ };
10
+ type Type = (typeof Type)[keyof typeof Type];
11
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BardParagraphNode = void 0;
5
+ var BardParagraphNode;
6
+ (function (BardParagraphNode) {
7
+ BardParagraphNode.Type = {
8
+ Paragraph: "paragraph",
9
+ };
10
+ })(BardParagraphNode || (exports.BardParagraphNode = BardParagraphNode = {}));
@@ -0,0 +1,10 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export type BardParagraphNodeContentItem = FiveOneEat.BardParagraphNodeContentItem.Text | FiveOneEat.BardParagraphNodeContentItem.HardBreak;
3
+ export declare namespace BardParagraphNodeContentItem {
4
+ interface Text extends FiveOneEat.BardTextNode {
5
+ type: "text";
6
+ }
7
+ interface HardBreak extends FiveOneEat.BardHardBreakNode {
8
+ type: "hardBreak";
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export interface BardProductSetValues {
2
+ caption: string | null;
3
+ item: BardProductSetValues.Item | null;
4
+ }
5
+ export declare namespace BardProductSetValues {
6
+ interface Item {
7
+ id: string;
8
+ name: string;
9
+ description?: (string | null) | undefined;
10
+ price?: (number | null) | undefined;
11
+ image?: (string | null) | undefined;
12
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface BardSetNode {
3
+ attrs: BardSetNode.Attrs;
4
+ }
5
+ export declare namespace BardSetNode {
6
+ interface Attrs {
7
+ /** Bard set row identifier. */
8
+ id: string;
9
+ enabled: boolean;
10
+ values: FiveOneEat.BardSetValues;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event;
3
+ export declare namespace BardSetValues {
4
+ interface MenuItem extends FiveOneEat.BardMenuItemSetValues {
5
+ type: "menu_item";
6
+ }
7
+ interface Product extends FiveOneEat.BardProductSetValues {
8
+ type: "product";
9
+ }
10
+ interface Event extends FiveOneEat.BardEventSetValues {
11
+ type: "event";
12
+ }
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface BardTextNode {
3
+ text: string;
4
+ marks?: FiveOneEat.BardMark[] | undefined;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,7 @@ export interface DiscoveryBusinessResource {
12
12
  latest_bulletin: DiscoveryBusinessResource.LatestBulletin | null;
13
13
  badges: DiscoveryBusinessResource.Badges;
14
14
  created_at: string;
15
+ editorial?: (DiscoveryBusinessResource.Editorial | null) | undefined;
15
16
  }
16
17
  export declare namespace DiscoveryBusinessResource {
17
18
  interface Location {
@@ -35,4 +36,9 @@ export declare namespace DiscoveryBusinessResource {
35
36
  founding_partner: boolean;
36
37
  staff_pick: boolean;
37
38
  }
39
+ interface Editorial {
40
+ slug: string;
41
+ title: string;
42
+ excerpt: string | null;
43
+ }
38
44
  }
@@ -0,0 +1,10 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface DiscoveryHighlightsResource {
3
+ data: DiscoveryHighlightsResource.Data;
4
+ }
5
+ export declare namespace DiscoveryHighlightsResource {
6
+ interface Data {
7
+ staff_picks: FiveOneEat.DiscoveryBusinessResource[];
8
+ founding_partners: FiveOneEat.DiscoveryBusinessResource[];
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface EditorialResource {
3
+ id: string;
4
+ slug: string;
5
+ title: string;
6
+ author: string | null;
7
+ excerpt: string | null;
8
+ body: FiveOneEat.BardBody | null;
9
+ business: EditorialResource.Business;
10
+ published_at: string | null;
11
+ created_at: string;
12
+ }
13
+ export declare namespace EditorialResource {
14
+ interface Business {
15
+ id: string;
16
+ name: string;
17
+ handle: string;
18
+ logo: string | null;
19
+ photos: Business.Photos.Item[];
20
+ }
21
+ namespace Business {
22
+ type Photos = Photos.Item[];
23
+ namespace Photos {
24
+ interface Item {
25
+ id: string;
26
+ url: string;
27
+ alt_text: string | null;
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ export interface EditorialSummaryResource {
2
+ id: string;
3
+ slug: string;
4
+ title: string;
5
+ author: string | null;
6
+ excerpt: string | null;
7
+ business: EditorialSummaryResource.Business;
8
+ published_at: string | null;
9
+ created_at: string;
10
+ }
11
+ export declare namespace EditorialSummaryResource {
12
+ interface Business {
13
+ id: string;
14
+ name: string;
15
+ handle: string;
16
+ logo: string | null;
17
+ photos: Business.Photos.Item[];
18
+ }
19
+ namespace Business {
20
+ type Photos = Photos.Item[];
21
+ namespace Photos {
22
+ interface Item {
23
+ id: string;
24
+ url: string;
25
+ alt_text: string | null;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,24 @@
1
1
  export * from "./Allergen.js";
2
+ export * from "./BardBlockquoteNode.js";
3
+ export * from "./BardBody.js";
4
+ export * from "./BardBulletListNode.js";
5
+ export * from "./BardEventSetValues.js";
6
+ export * from "./BardHardBreakNode.js";
7
+ export * from "./BardHeadingNode.js";
8
+ export * from "./BardHeadingNodeContentItem.js";
9
+ export * from "./BardHorizontalRuleNode.js";
10
+ export * from "./BardImageNode.js";
11
+ export * from "./BardListItemNode.js";
12
+ export * from "./BardMark.js";
13
+ export * from "./BardMenuItemSetValues.js";
14
+ export * from "./BardNode.js";
15
+ export * from "./BardOrderedListNode.js";
16
+ export * from "./BardParagraphNode.js";
17
+ export * from "./BardParagraphNodeContentItem.js";
18
+ export * from "./BardProductSetValues.js";
19
+ export * from "./BardSetNode.js";
20
+ export * from "./BardSetValues.js";
21
+ export * from "./BardTextNode.js";
2
22
  export * from "./BulletinResource.js";
3
23
  export * from "./BulletinResponseResource.js";
4
24
  export * from "./BusinessProfileResource.js";
@@ -14,7 +34,10 @@ export * from "./CuisineResource.js";
14
34
  export * from "./DiscoveryBusinessResource.js";
15
35
  export * from "./DiscoveryCategoryResource.js";
16
36
  export * from "./DiscoveryFeedResource.js";
37
+ export * from "./DiscoveryHighlightsResource.js";
17
38
  export * from "./DiscoveryResponseResource.js";
39
+ export * from "./EditorialResource.js";
40
+ export * from "./EditorialSummaryResource.js";
18
41
  export * from "./EventDetailResource.js";
19
42
  export * from "./EventFeedItemResource.js";
20
43
  export * from "./EventFeedResponseResource.js";
@@ -15,6 +15,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Allergen.js"), exports);
18
+ __exportStar(require("./BardBlockquoteNode.js"), exports);
19
+ __exportStar(require("./BardBody.js"), exports);
20
+ __exportStar(require("./BardBulletListNode.js"), exports);
21
+ __exportStar(require("./BardEventSetValues.js"), exports);
22
+ __exportStar(require("./BardHardBreakNode.js"), exports);
23
+ __exportStar(require("./BardHeadingNode.js"), exports);
24
+ __exportStar(require("./BardHeadingNodeContentItem.js"), exports);
25
+ __exportStar(require("./BardHorizontalRuleNode.js"), exports);
26
+ __exportStar(require("./BardImageNode.js"), exports);
27
+ __exportStar(require("./BardListItemNode.js"), exports);
28
+ __exportStar(require("./BardMark.js"), exports);
29
+ __exportStar(require("./BardMenuItemSetValues.js"), exports);
30
+ __exportStar(require("./BardNode.js"), exports);
31
+ __exportStar(require("./BardOrderedListNode.js"), exports);
32
+ __exportStar(require("./BardParagraphNode.js"), exports);
33
+ __exportStar(require("./BardParagraphNodeContentItem.js"), exports);
34
+ __exportStar(require("./BardProductSetValues.js"), exports);
35
+ __exportStar(require("./BardSetNode.js"), exports);
36
+ __exportStar(require("./BardSetValues.js"), exports);
37
+ __exportStar(require("./BardTextNode.js"), exports);
18
38
  __exportStar(require("./BulletinResource.js"), exports);
19
39
  __exportStar(require("./BulletinResponseResource.js"), exports);
20
40
  __exportStar(require("./BusinessProfileResource.js"), exports);
@@ -30,7 +50,10 @@ __exportStar(require("./CuisineResource.js"), exports);
30
50
  __exportStar(require("./DiscoveryBusinessResource.js"), exports);
31
51
  __exportStar(require("./DiscoveryCategoryResource.js"), exports);
32
52
  __exportStar(require("./DiscoveryFeedResource.js"), exports);
53
+ __exportStar(require("./DiscoveryHighlightsResource.js"), exports);
33
54
  __exportStar(require("./DiscoveryResponseResource.js"), exports);
55
+ __exportStar(require("./EditorialResource.js"), exports);
56
+ __exportStar(require("./EditorialSummaryResource.js"), exports);
34
57
  __exportStar(require("./EventDetailResource.js"), exports);
35
58
  __exportStar(require("./EventFeedItemResource.js"), exports);
36
59
  __exportStar(require("./EventFeedResponseResource.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.9";
1
+ export declare const SDK_VERSION = "0.0.11";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.9";
4
+ exports.SDK_VERSION = "0.0.11";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@51eat/sdk",
9
- "X-Fern-SDK-Version": "0.0.9",
10
- "User-Agent": "@51eat/sdk/0.0.9",
9
+ "X-Fern-SDK-Version": "0.0.11",
10
+ "User-Agent": "@51eat/sdk/0.0.11",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -5,6 +5,7 @@ import { BusinessContentClient } from "./api/resources/businessContent/client/Cl
5
5
  import { BusinessProfilesClient } from "./api/resources/businessProfiles/client/Client.mjs";
6
6
  import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
7
7
  import { DiscoveryClient } from "./api/resources/discovery/client/Client.mjs";
8
+ import { EditorialsClient } from "./api/resources/editorials/client/Client.mjs";
8
9
  import { EventsClient } from "./api/resources/events/client/Client.mjs";
9
10
  import { MyAccountClient } from "./api/resources/myAccount/client/Client.mjs";
10
11
  import { TicketingClient } from "./api/resources/ticketing/client/Client.mjs";
@@ -24,6 +25,7 @@ export declare class FiveOneEatClient {
24
25
  protected _businessProfiles: BusinessProfilesClient | undefined;
25
26
  protected _customerMessaging: CustomerMessagingClient | undefined;
26
27
  protected _discovery: DiscoveryClient | undefined;
28
+ protected _editorials: EditorialsClient | undefined;
27
29
  protected _events: EventsClient | undefined;
28
30
  protected _myAccount: MyAccountClient | undefined;
29
31
  protected _ticketing: TicketingClient | undefined;
@@ -34,6 +36,7 @@ export declare class FiveOneEatClient {
34
36
  get businessProfiles(): BusinessProfilesClient;
35
37
  get customerMessaging(): CustomerMessagingClient;
36
38
  get discovery(): DiscoveryClient;
39
+ get editorials(): EditorialsClient;
37
40
  get events(): EventsClient;
38
41
  get myAccount(): MyAccountClient;
39
42
  get ticketing(): TicketingClient;
@@ -15,6 +15,7 @@ import { BusinessContentClient } from "./api/resources/businessContent/client/Cl
15
15
  import { BusinessProfilesClient } from "./api/resources/businessProfiles/client/Client.mjs";
16
16
  import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
17
17
  import { DiscoveryClient } from "./api/resources/discovery/client/Client.mjs";
18
+ import { EditorialsClient } from "./api/resources/editorials/client/Client.mjs";
18
19
  import { EventsClient } from "./api/resources/events/client/Client.mjs";
19
20
  import { MyAccountClient } from "./api/resources/myAccount/client/Client.mjs";
20
21
  import { TicketingClient } from "./api/resources/ticketing/client/Client.mjs";
@@ -53,6 +54,10 @@ export class FiveOneEatClient {
53
54
  var _a;
54
55
  return ((_a = this._discovery) !== null && _a !== void 0 ? _a : (this._discovery = new DiscoveryClient(this._options)));
55
56
  }
57
+ get editorials() {
58
+ var _a;
59
+ return ((_a = this._editorials) !== null && _a !== void 0 ? _a : (this._editorials = new EditorialsClient(this._options)));
60
+ }
56
61
  get events() {
57
62
  var _a;
58
63
  return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new EventsClient(this._options)));
@@ -45,6 +45,20 @@ export declare class DiscoveryClient {
45
45
  */
46
46
  getDiscoveryFeed(request?: FiveOneEat.GetDiscoveryFeedRequest, requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.DiscoveryFeedResource>;
47
47
  private __getDiscoveryFeed;
48
+ /**
49
+ * Returns curated sections of businesses for the discovery home screen,
50
+ * including staff picks and founding partners. This endpoint is designed
51
+ * to be extended with additional sections (e.g. editorial, trending) over time.
52
+ *
53
+ * @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link FiveOneEat.UnauthorizedError}
56
+ *
57
+ * @example
58
+ * await client.discovery.getDiscoveryHighlights()
59
+ */
60
+ getDiscoveryHighlights(requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.DiscoveryHighlightsResource>;
61
+ private __getDiscoveryHighlights;
48
62
  /**
49
63
  * Retrieve a list of all business categories that have businesses.
50
64
  * This endpoint is used to populate category filters and navigation.
@@ -151,6 +151,58 @@ export class DiscoveryClient {
151
151
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/discovery");
152
152
  });
153
153
  }
154
+ /**
155
+ * Returns curated sections of businesses for the discovery home screen,
156
+ * including staff picks and founding partners. This endpoint is designed
157
+ * to be extended with additional sections (e.g. editorial, trending) over time.
158
+ *
159
+ * @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
160
+ *
161
+ * @throws {@link FiveOneEat.UnauthorizedError}
162
+ *
163
+ * @example
164
+ * await client.discovery.getDiscoveryHighlights()
165
+ */
166
+ getDiscoveryHighlights(requestOptions) {
167
+ return core.HttpResponsePromise.fromPromise(this.__getDiscoveryHighlights(requestOptions));
168
+ }
169
+ __getDiscoveryHighlights(requestOptions) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
172
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
173
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
174
+ const _response = yield core.fetcher({
175
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "customer/discovery/highlights"),
176
+ method: "GET",
177
+ headers: _headers,
178
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
179
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
180
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
181
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
183
+ logging: this._options.logging,
184
+ });
185
+ if (_response.ok) {
186
+ return {
187
+ data: _response.body,
188
+ rawResponse: _response.rawResponse,
189
+ };
190
+ }
191
+ if (_response.error.reason === "status-code") {
192
+ switch (_response.error.statusCode) {
193
+ case 401:
194
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
195
+ default:
196
+ throw new errors.FiveOneEatError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ rawResponse: _response.rawResponse,
200
+ });
201
+ }
202
+ }
203
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/discovery/highlights");
204
+ });
205
+ }
154
206
  /**
155
207
  * Retrieve a list of all business categories that have businesses.
156
208
  * This endpoint is used to populate category filters and navigation.