@51eat/sdk 0.0.59 → 0.0.61

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 (35) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +1 -0
  3. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +1 -0
  4. package/dist/cjs/api/types/BardIngredientSetValues.d.ts +15 -0
  5. package/dist/cjs/api/types/BardIngredientSetValues.js +3 -0
  6. package/dist/cjs/api/types/BardMenuItemSetValues.d.ts +2 -0
  7. package/dist/cjs/api/types/BardPhotoSpreadSetValues.d.ts +18 -0
  8. package/dist/cjs/api/types/BardPhotoSpreadSetValues.js +11 -0
  9. package/dist/cjs/api/types/BardPullQuoteSetValues.d.ts +4 -0
  10. package/dist/cjs/api/types/BardPullQuoteSetValues.js +3 -0
  11. package/dist/cjs/api/types/BardSetValues.d.ts +13 -1
  12. package/dist/cjs/api/types/BardTastingNotesSetValues.d.ts +15 -0
  13. package/dist/cjs/api/types/BardTastingNotesSetValues.js +3 -0
  14. package/dist/cjs/api/types/index.d.ts +4 -0
  15. package/dist/cjs/api/types/index.js +4 -0
  16. package/dist/cjs/version.d.ts +1 -1
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/esm/BaseClient.mjs +2 -2
  19. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +1 -0
  20. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +1 -0
  21. package/dist/esm/api/types/BardIngredientSetValues.d.mts +15 -0
  22. package/dist/esm/api/types/BardIngredientSetValues.mjs +2 -0
  23. package/dist/esm/api/types/BardMenuItemSetValues.d.mts +2 -0
  24. package/dist/esm/api/types/BardPhotoSpreadSetValues.d.mts +18 -0
  25. package/dist/esm/api/types/BardPhotoSpreadSetValues.mjs +8 -0
  26. package/dist/esm/api/types/BardPullQuoteSetValues.d.mts +4 -0
  27. package/dist/esm/api/types/BardPullQuoteSetValues.mjs +2 -0
  28. package/dist/esm/api/types/BardSetValues.d.mts +13 -1
  29. package/dist/esm/api/types/BardTastingNotesSetValues.d.mts +15 -0
  30. package/dist/esm/api/types/BardTastingNotesSetValues.mjs +2 -0
  31. package/dist/esm/api/types/index.d.mts +4 -0
  32. package/dist/esm/api/types/index.mjs +4 -0
  33. package/dist/esm/version.d.mts +1 -1
  34. package/dist/esm/version.mjs +1 -1
  35. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@51eat/sdk",
46
- "X-Fern-SDK-Version": "0.0.59",
47
- "User-Agent": "@51eat/sdk/0.0.59",
46
+ "X-Fern-SDK-Version": "0.0.61",
47
+ "User-Agent": "@51eat/sdk/0.0.61",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -31,6 +31,7 @@ export interface StoreProductRequest {
31
31
  tax_code?: string | null;
32
32
  is_active?: boolean;
33
33
  is_featured?: boolean;
34
+ sort_order?: number | null;
34
35
  category_ids?: string[] | null;
35
36
  }
36
37
  export declare namespace StoreProductRequest {
@@ -32,6 +32,7 @@ export interface UpdateProductRequest {
32
32
  is_active?: boolean;
33
33
  published_at?: string | null;
34
34
  is_featured?: boolean;
35
+ sort_order?: number | null;
35
36
  category_ids?: string[] | null;
36
37
  }
37
38
  export declare namespace UpdateProductRequest {
@@ -0,0 +1,15 @@
1
+ export interface BardIngredientSetValues {
2
+ icon?: (string | null) | undefined;
3
+ name: string;
4
+ subtitle?: (string | null) | undefined;
5
+ facts: BardIngredientSetValues.Facts.Item[];
6
+ }
7
+ export declare namespace BardIngredientSetValues {
8
+ type Facts = Facts.Item[];
9
+ namespace Facts {
10
+ interface Item {
11
+ key?: string | undefined;
12
+ value?: string | undefined;
13
+ }
14
+ }
15
+ }
@@ -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 });
@@ -9,5 +9,7 @@ export declare namespace BardMenuItemSetValues {
9
9
  description?: (string | null) | undefined;
10
10
  price?: (string | null) | undefined;
11
11
  image?: (string | null) | undefined;
12
+ /** Dietary/attribute tag names. */
13
+ tags: string[];
12
14
  }
13
15
  }
@@ -0,0 +1,18 @@
1
+ export interface BardPhotoSpreadSetValues {
2
+ layout: BardPhotoSpreadSetValues.Layout;
3
+ photos: BardPhotoSpreadSetValues.Photos.Item[];
4
+ }
5
+ export declare namespace BardPhotoSpreadSetValues {
6
+ const Layout: {
7
+ readonly Two: "two";
8
+ readonly Three: "three";
9
+ };
10
+ type Layout = (typeof Layout)[keyof typeof Layout];
11
+ type Photos = Photos.Item[];
12
+ namespace Photos {
13
+ interface Item {
14
+ image?: (string | null) | undefined;
15
+ caption?: (string | null) | undefined;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BardPhotoSpreadSetValues = void 0;
5
+ var BardPhotoSpreadSetValues;
6
+ (function (BardPhotoSpreadSetValues) {
7
+ BardPhotoSpreadSetValues.Layout = {
8
+ Two: "two",
9
+ Three: "three",
10
+ };
11
+ })(BardPhotoSpreadSetValues || (exports.BardPhotoSpreadSetValues = BardPhotoSpreadSetValues = {}));
@@ -0,0 +1,4 @@
1
+ export interface BardPullQuoteSetValues {
2
+ quote: string;
3
+ citation?: (string | null) | undefined;
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 });
@@ -1,5 +1,5 @@
1
1
  import type * as FiveOneEat from "../index.js";
2
- export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event;
2
+ export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event | FiveOneEat.BardSetValues.PullQuote | FiveOneEat.BardSetValues.PhotoSpread | FiveOneEat.BardSetValues.Ingredient | FiveOneEat.BardSetValues.TastingNotes;
3
3
  export declare namespace BardSetValues {
4
4
  interface MenuItem extends FiveOneEat.BardMenuItemSetValues {
5
5
  type: "menu_item";
@@ -10,4 +10,16 @@ export declare namespace BardSetValues {
10
10
  interface Event extends FiveOneEat.BardEventSetValues {
11
11
  type: "event";
12
12
  }
13
+ interface PullQuote extends FiveOneEat.BardPullQuoteSetValues {
14
+ type: "pull_quote";
15
+ }
16
+ interface PhotoSpread extends FiveOneEat.BardPhotoSpreadSetValues {
17
+ type: "photo_spread";
18
+ }
19
+ interface Ingredient extends FiveOneEat.BardIngredientSetValues {
20
+ type: "ingredient";
21
+ }
22
+ interface TastingNotes extends FiveOneEat.BardTastingNotesSetValues {
23
+ type: "tasting_notes";
24
+ }
13
25
  }
@@ -0,0 +1,15 @@
1
+ export interface BardTastingNotesSetValues {
2
+ subject: string;
3
+ by?: (string | null) | undefined;
4
+ date?: (string | null) | undefined;
5
+ notes: BardTastingNotesSetValues.Notes.Item[];
6
+ }
7
+ export declare namespace BardTastingNotesSetValues {
8
+ type Notes = Notes.Item[];
9
+ namespace Notes {
10
+ interface Item {
11
+ label?: string | undefined;
12
+ score?: number | undefined;
13
+ }
14
+ }
15
+ }
@@ -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 });
@@ -11,6 +11,7 @@ export * from "./BardHeadingNode.js";
11
11
  export * from "./BardHeadingNodeContentItem.js";
12
12
  export * from "./BardHorizontalRuleNode.js";
13
13
  export * from "./BardImageNode.js";
14
+ export * from "./BardIngredientSetValues.js";
14
15
  export * from "./BardListItemNode.js";
15
16
  export * from "./BardMark.js";
16
17
  export * from "./BardMenuItemSetValues.js";
@@ -18,9 +19,12 @@ export * from "./BardNode.js";
18
19
  export * from "./BardOrderedListNode.js";
19
20
  export * from "./BardParagraphNode.js";
20
21
  export * from "./BardParagraphNodeContentItem.js";
22
+ export * from "./BardPhotoSpreadSetValues.js";
21
23
  export * from "./BardProductSetValues.js";
24
+ export * from "./BardPullQuoteSetValues.js";
22
25
  export * from "./BardSetNode.js";
23
26
  export * from "./BardSetValues.js";
27
+ export * from "./BardTastingNotesSetValues.js";
24
28
  export * from "./BardTextNode.js";
25
29
  export * from "./BusinessAllergen.js";
26
30
  export * from "./BusinessBulletin.js";
@@ -27,6 +27,7 @@ __exportStar(require("./BardHeadingNode.js"), exports);
27
27
  __exportStar(require("./BardHeadingNodeContentItem.js"), exports);
28
28
  __exportStar(require("./BardHorizontalRuleNode.js"), exports);
29
29
  __exportStar(require("./BardImageNode.js"), exports);
30
+ __exportStar(require("./BardIngredientSetValues.js"), exports);
30
31
  __exportStar(require("./BardListItemNode.js"), exports);
31
32
  __exportStar(require("./BardMark.js"), exports);
32
33
  __exportStar(require("./BardMenuItemSetValues.js"), exports);
@@ -34,9 +35,12 @@ __exportStar(require("./BardNode.js"), exports);
34
35
  __exportStar(require("./BardOrderedListNode.js"), exports);
35
36
  __exportStar(require("./BardParagraphNode.js"), exports);
36
37
  __exportStar(require("./BardParagraphNodeContentItem.js"), exports);
38
+ __exportStar(require("./BardPhotoSpreadSetValues.js"), exports);
37
39
  __exportStar(require("./BardProductSetValues.js"), exports);
40
+ __exportStar(require("./BardPullQuoteSetValues.js"), exports);
38
41
  __exportStar(require("./BardSetNode.js"), exports);
39
42
  __exportStar(require("./BardSetValues.js"), exports);
43
+ __exportStar(require("./BardTastingNotesSetValues.js"), exports);
40
44
  __exportStar(require("./BardTextNode.js"), exports);
41
45
  __exportStar(require("./BusinessAllergen.js"), exports);
42
46
  __exportStar(require("./BusinessBulletin.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.59";
1
+ export declare const SDK_VERSION = "0.0.61";
@@ -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.59";
4
+ exports.SDK_VERSION = "0.0.61";
@@ -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.59",
10
- "User-Agent": "@51eat/sdk/0.0.59",
9
+ "X-Fern-SDK-Version": "0.0.61",
10
+ "User-Agent": "@51eat/sdk/0.0.61",
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);
@@ -31,6 +31,7 @@ export interface StoreProductRequest {
31
31
  tax_code?: string | null;
32
32
  is_active?: boolean;
33
33
  is_featured?: boolean;
34
+ sort_order?: number | null;
34
35
  category_ids?: string[] | null;
35
36
  }
36
37
  export declare namespace StoreProductRequest {
@@ -32,6 +32,7 @@ export interface UpdateProductRequest {
32
32
  is_active?: boolean;
33
33
  published_at?: string | null;
34
34
  is_featured?: boolean;
35
+ sort_order?: number | null;
35
36
  category_ids?: string[] | null;
36
37
  }
37
38
  export declare namespace UpdateProductRequest {
@@ -0,0 +1,15 @@
1
+ export interface BardIngredientSetValues {
2
+ icon?: (string | null) | undefined;
3
+ name: string;
4
+ subtitle?: (string | null) | undefined;
5
+ facts: BardIngredientSetValues.Facts.Item[];
6
+ }
7
+ export declare namespace BardIngredientSetValues {
8
+ type Facts = Facts.Item[];
9
+ namespace Facts {
10
+ interface Item {
11
+ key?: string | undefined;
12
+ value?: string | undefined;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -9,5 +9,7 @@ export declare namespace BardMenuItemSetValues {
9
9
  description?: (string | null) | undefined;
10
10
  price?: (string | null) | undefined;
11
11
  image?: (string | null) | undefined;
12
+ /** Dietary/attribute tag names. */
13
+ tags: string[];
12
14
  }
13
15
  }
@@ -0,0 +1,18 @@
1
+ export interface BardPhotoSpreadSetValues {
2
+ layout: BardPhotoSpreadSetValues.Layout;
3
+ photos: BardPhotoSpreadSetValues.Photos.Item[];
4
+ }
5
+ export declare namespace BardPhotoSpreadSetValues {
6
+ const Layout: {
7
+ readonly Two: "two";
8
+ readonly Three: "three";
9
+ };
10
+ type Layout = (typeof Layout)[keyof typeof Layout];
11
+ type Photos = Photos.Item[];
12
+ namespace Photos {
13
+ interface Item {
14
+ image?: (string | null) | undefined;
15
+ caption?: (string | null) | undefined;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var BardPhotoSpreadSetValues;
3
+ (function (BardPhotoSpreadSetValues) {
4
+ BardPhotoSpreadSetValues.Layout = {
5
+ Two: "two",
6
+ Three: "three",
7
+ };
8
+ })(BardPhotoSpreadSetValues || (BardPhotoSpreadSetValues = {}));
@@ -0,0 +1,4 @@
1
+ export interface BardPullQuoteSetValues {
2
+ quote: string;
3
+ citation?: (string | null) | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type * as FiveOneEat from "../index.mjs";
2
- export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event;
2
+ export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event | FiveOneEat.BardSetValues.PullQuote | FiveOneEat.BardSetValues.PhotoSpread | FiveOneEat.BardSetValues.Ingredient | FiveOneEat.BardSetValues.TastingNotes;
3
3
  export declare namespace BardSetValues {
4
4
  interface MenuItem extends FiveOneEat.BardMenuItemSetValues {
5
5
  type: "menu_item";
@@ -10,4 +10,16 @@ export declare namespace BardSetValues {
10
10
  interface Event extends FiveOneEat.BardEventSetValues {
11
11
  type: "event";
12
12
  }
13
+ interface PullQuote extends FiveOneEat.BardPullQuoteSetValues {
14
+ type: "pull_quote";
15
+ }
16
+ interface PhotoSpread extends FiveOneEat.BardPhotoSpreadSetValues {
17
+ type: "photo_spread";
18
+ }
19
+ interface Ingredient extends FiveOneEat.BardIngredientSetValues {
20
+ type: "ingredient";
21
+ }
22
+ interface TastingNotes extends FiveOneEat.BardTastingNotesSetValues {
23
+ type: "tasting_notes";
24
+ }
13
25
  }
@@ -0,0 +1,15 @@
1
+ export interface BardTastingNotesSetValues {
2
+ subject: string;
3
+ by?: (string | null) | undefined;
4
+ date?: (string | null) | undefined;
5
+ notes: BardTastingNotesSetValues.Notes.Item[];
6
+ }
7
+ export declare namespace BardTastingNotesSetValues {
8
+ type Notes = Notes.Item[];
9
+ namespace Notes {
10
+ interface Item {
11
+ label?: string | undefined;
12
+ score?: number | undefined;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -11,6 +11,7 @@ export * from "./BardHeadingNode.mjs";
11
11
  export * from "./BardHeadingNodeContentItem.mjs";
12
12
  export * from "./BardHorizontalRuleNode.mjs";
13
13
  export * from "./BardImageNode.mjs";
14
+ export * from "./BardIngredientSetValues.mjs";
14
15
  export * from "./BardListItemNode.mjs";
15
16
  export * from "./BardMark.mjs";
16
17
  export * from "./BardMenuItemSetValues.mjs";
@@ -18,9 +19,12 @@ export * from "./BardNode.mjs";
18
19
  export * from "./BardOrderedListNode.mjs";
19
20
  export * from "./BardParagraphNode.mjs";
20
21
  export * from "./BardParagraphNodeContentItem.mjs";
22
+ export * from "./BardPhotoSpreadSetValues.mjs";
21
23
  export * from "./BardProductSetValues.mjs";
24
+ export * from "./BardPullQuoteSetValues.mjs";
22
25
  export * from "./BardSetNode.mjs";
23
26
  export * from "./BardSetValues.mjs";
27
+ export * from "./BardTastingNotesSetValues.mjs";
24
28
  export * from "./BardTextNode.mjs";
25
29
  export * from "./BusinessAllergen.mjs";
26
30
  export * from "./BusinessBulletin.mjs";
@@ -11,6 +11,7 @@ export * from "./BardHeadingNode.mjs";
11
11
  export * from "./BardHeadingNodeContentItem.mjs";
12
12
  export * from "./BardHorizontalRuleNode.mjs";
13
13
  export * from "./BardImageNode.mjs";
14
+ export * from "./BardIngredientSetValues.mjs";
14
15
  export * from "./BardListItemNode.mjs";
15
16
  export * from "./BardMark.mjs";
16
17
  export * from "./BardMenuItemSetValues.mjs";
@@ -18,9 +19,12 @@ export * from "./BardNode.mjs";
18
19
  export * from "./BardOrderedListNode.mjs";
19
20
  export * from "./BardParagraphNode.mjs";
20
21
  export * from "./BardParagraphNodeContentItem.mjs";
22
+ export * from "./BardPhotoSpreadSetValues.mjs";
21
23
  export * from "./BardProductSetValues.mjs";
24
+ export * from "./BardPullQuoteSetValues.mjs";
22
25
  export * from "./BardSetNode.mjs";
23
26
  export * from "./BardSetValues.mjs";
27
+ export * from "./BardTastingNotesSetValues.mjs";
24
28
  export * from "./BardTextNode.mjs";
25
29
  export * from "./BusinessAllergen.mjs";
26
30
  export * from "./BusinessBulletin.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.59";
1
+ export declare const SDK_VERSION = "0.0.61";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.59";
1
+ export const SDK_VERSION = "0.0.61";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",