@51eat/sdk 0.0.37 → 0.0.39

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.
@@ -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.37",
47
- "User-Agent": "@51eat/sdk/0.0.37",
46
+ "X-Fern-SDK-Version": "0.0.39",
47
+ "User-Agent": "@51eat/sdk/0.0.39",
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);
@@ -1,3 +1,4 @@
1
+ import type * as FiveOneEat from "../index.js";
1
2
  export interface CustomerMenuItem {
2
3
  id: string;
3
4
  name: string;
@@ -5,4 +6,6 @@ export interface CustomerMenuItem {
5
6
  price: number | null;
6
7
  image: string | null;
7
8
  allergens: string[] | null;
9
+ modifiers?: FiveOneEat.CustomerMenuItemModifier[] | undefined;
10
+ variations?: FiveOneEat.CustomerMenuItemVariation[] | undefined;
8
11
  }
@@ -0,0 +1,7 @@
1
+ export interface CustomerMenuItemModifier {
2
+ id: string;
3
+ name: string;
4
+ description: string | null;
5
+ price: number | null;
6
+ is_default: boolean;
7
+ }
@@ -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,8 @@
1
+ export interface CustomerMenuItemVariation {
2
+ id: string;
3
+ name: string;
4
+ description: string | null;
5
+ price: number | null;
6
+ is_default: boolean;
7
+ sort_order: number;
8
+ }
@@ -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 });
@@ -81,6 +81,8 @@ export * from "./CustomerLoginResponse.js";
81
81
  export * from "./CustomerMenu.js";
82
82
  export * from "./CustomerMenuGroup.js";
83
83
  export * from "./CustomerMenuItem.js";
84
+ export * from "./CustomerMenuItemModifier.js";
85
+ export * from "./CustomerMenuItemVariation.js";
84
86
  export * from "./CustomerMenuResponse.js";
85
87
  export * from "./CustomerPhoto.js";
86
88
  export * from "./CustomerPhotoResponse.js";
@@ -97,6 +97,8 @@ __exportStar(require("./CustomerLoginResponse.js"), exports);
97
97
  __exportStar(require("./CustomerMenu.js"), exports);
98
98
  __exportStar(require("./CustomerMenuGroup.js"), exports);
99
99
  __exportStar(require("./CustomerMenuItem.js"), exports);
100
+ __exportStar(require("./CustomerMenuItemModifier.js"), exports);
101
+ __exportStar(require("./CustomerMenuItemVariation.js"), exports);
100
102
  __exportStar(require("./CustomerMenuResponse.js"), exports);
101
103
  __exportStar(require("./CustomerPhoto.js"), exports);
102
104
  __exportStar(require("./CustomerPhotoResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.37";
1
+ export declare const SDK_VERSION = "0.0.39";
@@ -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.37";
4
+ exports.SDK_VERSION = "0.0.39";
@@ -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.37",
10
- "User-Agent": "@51eat/sdk/0.0.37",
9
+ "X-Fern-SDK-Version": "0.0.39",
10
+ "User-Agent": "@51eat/sdk/0.0.39",
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);
@@ -1,3 +1,4 @@
1
+ import type * as FiveOneEat from "../index.mjs";
1
2
  export interface CustomerMenuItem {
2
3
  id: string;
3
4
  name: string;
@@ -5,4 +6,6 @@ export interface CustomerMenuItem {
5
6
  price: number | null;
6
7
  image: string | null;
7
8
  allergens: string[] | null;
9
+ modifiers?: FiveOneEat.CustomerMenuItemModifier[] | undefined;
10
+ variations?: FiveOneEat.CustomerMenuItemVariation[] | undefined;
8
11
  }
@@ -0,0 +1,7 @@
1
+ export interface CustomerMenuItemModifier {
2
+ id: string;
3
+ name: string;
4
+ description: string | null;
5
+ price: number | null;
6
+ is_default: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface CustomerMenuItemVariation {
2
+ id: string;
3
+ name: string;
4
+ description: string | null;
5
+ price: number | null;
6
+ is_default: boolean;
7
+ sort_order: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -81,6 +81,8 @@ export * from "./CustomerLoginResponse.mjs";
81
81
  export * from "./CustomerMenu.mjs";
82
82
  export * from "./CustomerMenuGroup.mjs";
83
83
  export * from "./CustomerMenuItem.mjs";
84
+ export * from "./CustomerMenuItemModifier.mjs";
85
+ export * from "./CustomerMenuItemVariation.mjs";
84
86
  export * from "./CustomerMenuResponse.mjs";
85
87
  export * from "./CustomerPhoto.mjs";
86
88
  export * from "./CustomerPhotoResponse.mjs";
@@ -81,6 +81,8 @@ export * from "./CustomerLoginResponse.mjs";
81
81
  export * from "./CustomerMenu.mjs";
82
82
  export * from "./CustomerMenuGroup.mjs";
83
83
  export * from "./CustomerMenuItem.mjs";
84
+ export * from "./CustomerMenuItemModifier.mjs";
85
+ export * from "./CustomerMenuItemVariation.mjs";
84
86
  export * from "./CustomerMenuResponse.mjs";
85
87
  export * from "./CustomerPhoto.mjs";
86
88
  export * from "./CustomerPhotoResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.37";
1
+ export declare const SDK_VERSION = "0.0.39";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.37";
1
+ export const SDK_VERSION = "0.0.39";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",