@51eat/sdk 0.0.24 → 0.0.25
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +9 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +9 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.25",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.25",
|
|
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);
|
|
@@ -26,9 +26,18 @@ export interface StoreBusinessRequest {
|
|
|
26
26
|
seasonal?: boolean;
|
|
27
27
|
ownership?: string[] | null;
|
|
28
28
|
category_ids: number[];
|
|
29
|
+
hours?: StoreBusinessRequest.Hours.Item[] | null;
|
|
29
30
|
operating_months?: StoreBusinessRequest.OperatingMonths.Item[] | null;
|
|
30
31
|
}
|
|
31
32
|
export declare namespace StoreBusinessRequest {
|
|
33
|
+
type Hours = Hours.Item[];
|
|
34
|
+
namespace Hours {
|
|
35
|
+
interface Item {
|
|
36
|
+
isOpen?: boolean | undefined;
|
|
37
|
+
openTime?: (string | null) | undefined;
|
|
38
|
+
closeTime?: (string | null) | undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
32
41
|
type OperatingMonths = OperatingMonths.Item[];
|
|
33
42
|
namespace OperatingMonths {
|
|
34
43
|
const Item: {
|
|
@@ -36,11 +36,20 @@ export interface UpdateBusinessRequest {
|
|
|
36
36
|
seasonal?: boolean;
|
|
37
37
|
ownership?: string[] | null;
|
|
38
38
|
category_ids: number[];
|
|
39
|
+
hours?: UpdateBusinessRequest.Hours.Item[] | null;
|
|
39
40
|
operating_months?: UpdateBusinessRequest.OperatingMonths.Item[] | null;
|
|
40
41
|
certification_ids?: number[] | null;
|
|
41
42
|
cuisine_ids?: number[] | null;
|
|
42
43
|
}
|
|
43
44
|
export declare namespace UpdateBusinessRequest {
|
|
45
|
+
type Hours = Hours.Item[];
|
|
46
|
+
namespace Hours {
|
|
47
|
+
interface Item {
|
|
48
|
+
isOpen?: boolean | undefined;
|
|
49
|
+
openTime?: (string | null) | undefined;
|
|
50
|
+
closeTime?: (string | null) | undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
44
53
|
type OperatingMonths = OperatingMonths.Item[];
|
|
45
54
|
namespace OperatingMonths {
|
|
46
55
|
const Item: {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.25";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.25",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.25",
|
|
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);
|
|
@@ -26,9 +26,18 @@ export interface StoreBusinessRequest {
|
|
|
26
26
|
seasonal?: boolean;
|
|
27
27
|
ownership?: string[] | null;
|
|
28
28
|
category_ids: number[];
|
|
29
|
+
hours?: StoreBusinessRequest.Hours.Item[] | null;
|
|
29
30
|
operating_months?: StoreBusinessRequest.OperatingMonths.Item[] | null;
|
|
30
31
|
}
|
|
31
32
|
export declare namespace StoreBusinessRequest {
|
|
33
|
+
type Hours = Hours.Item[];
|
|
34
|
+
namespace Hours {
|
|
35
|
+
interface Item {
|
|
36
|
+
isOpen?: boolean | undefined;
|
|
37
|
+
openTime?: (string | null) | undefined;
|
|
38
|
+
closeTime?: (string | null) | undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
32
41
|
type OperatingMonths = OperatingMonths.Item[];
|
|
33
42
|
namespace OperatingMonths {
|
|
34
43
|
const Item: {
|
|
@@ -36,11 +36,20 @@ export interface UpdateBusinessRequest {
|
|
|
36
36
|
seasonal?: boolean;
|
|
37
37
|
ownership?: string[] | null;
|
|
38
38
|
category_ids: number[];
|
|
39
|
+
hours?: UpdateBusinessRequest.Hours.Item[] | null;
|
|
39
40
|
operating_months?: UpdateBusinessRequest.OperatingMonths.Item[] | null;
|
|
40
41
|
certification_ids?: number[] | null;
|
|
41
42
|
cuisine_ids?: number[] | null;
|
|
42
43
|
}
|
|
43
44
|
export declare namespace UpdateBusinessRequest {
|
|
45
|
+
type Hours = Hours.Item[];
|
|
46
|
+
namespace Hours {
|
|
47
|
+
interface Item {
|
|
48
|
+
isOpen?: boolean | undefined;
|
|
49
|
+
openTime?: (string | null) | undefined;
|
|
50
|
+
closeTime?: (string | null) | undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
44
53
|
type OperatingMonths = OperatingMonths.Item[];
|
|
45
54
|
namespace OperatingMonths {
|
|
46
55
|
const Item: {
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.25";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.25";
|