@51eat/sdk 0.0.45 → 0.0.47
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/README.md +12 -9
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +15 -10
- package/dist/cjs/api/resources/businessProducts/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/businessProducts/client/Client.js +261 -0
- package/dist/cjs/api/resources/businessProducts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessProducts/client/index.js +17 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/AdjustInventoryRequest.d.ts +34 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/AdjustInventoryRequest.js +20 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/GetProductInventorySummaryRequest.d.ts +10 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/GetProductInventorySummaryRequest.js +3 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/ListVariantInventoryHistoryRequest.d.ts +11 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/ListVariantInventoryHistoryRequest.js +3 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/businessProducts/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/businessProducts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/businessProducts/exports.js +21 -0
- package/dist/cjs/api/resources/businessProducts/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessProducts/index.js +18 -0
- package/dist/cjs/api/resources/businessProducts/types/AdjustVariantInventoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessProducts/types/AdjustVariantInventoryResponse.js +3 -0
- package/dist/cjs/api/resources/businessProducts/types/GetProductInventorySummaryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessProducts/types/GetProductInventorySummaryResponse.js +3 -0
- package/dist/cjs/api/resources/businessProducts/types/ListVariantInventoryHistoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessProducts/types/ListVariantInventoryHistoryResponse.js +3 -0
- package/dist/cjs/api/resources/businessProducts/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/businessProducts/types/index.js +19 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/me/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/client/Client.js +9 -4
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/Client.d.ts +89 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/Client.js +304 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/requests/DeleteAddressesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/requests/DeleteAddressesRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/requests/UpdateAddressesRequest.d.ts +19 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/requests/UpdateAddressesRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/exports.js +21 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/index.js +18 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/CreateAddressesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/CreateAddressesResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/ListAddressesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/ListAddressesResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/UpdateAddressesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/UpdateAddressesResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/addresses/types/index.js +19 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/index.js +4 -1
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/types/Address.d.ts +15 -0
- package/dist/cjs/api/types/Address.js +3 -0
- package/dist/cjs/api/types/AddressCollection.d.ts +4 -0
- package/dist/cjs/api/types/AddressCollection.js +3 -0
- package/dist/cjs/api/types/BusinessInventoryLog.d.ts +15 -0
- package/dist/cjs/api/types/BusinessInventoryLog.js +3 -0
- package/dist/cjs/api/types/BusinessProductInventorySummary.d.ts +7 -0
- package/dist/cjs/api/types/BusinessProductInventorySummary.js +3 -0
- package/dist/cjs/api/types/CustomerCartItem.d.ts +1 -1
- package/dist/cjs/api/types/CustomerProductOrder.d.ts +5 -5
- package/dist/cjs/api/types/CustomerProductOrderItem.d.ts +2 -2
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +7 -1
- package/dist/cjs/api/types/InternalServerErrorBody.js +7 -0
- package/dist/cjs/api/types/StoreAddressRequest.d.ts +12 -0
- package/dist/cjs/api/types/StoreAddressRequest.js +3 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -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/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/businessProducts/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/businessProducts/client/Client.mjs +224 -0
- package/dist/esm/api/resources/businessProducts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessProducts/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessProducts/client/requests/AdjustInventoryRequest.d.mts +34 -0
- package/dist/esm/api/resources/businessProducts/client/requests/AdjustInventoryRequest.mjs +17 -0
- package/dist/esm/api/resources/businessProducts/client/requests/GetProductInventorySummaryRequest.d.mts +10 -0
- package/dist/esm/api/resources/businessProducts/client/requests/GetProductInventorySummaryRequest.mjs +2 -0
- package/dist/esm/api/resources/businessProducts/client/requests/ListVariantInventoryHistoryRequest.d.mts +11 -0
- package/dist/esm/api/resources/businessProducts/client/requests/ListVariantInventoryHistoryRequest.mjs +2 -0
- package/dist/esm/api/resources/businessProducts/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/businessProducts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessProducts/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessProducts/exports.mjs +3 -0
- package/dist/esm/api/resources/businessProducts/index.d.mts +2 -0
- package/dist/esm/api/resources/businessProducts/index.mjs +2 -0
- package/dist/esm/api/resources/businessProducts/types/AdjustVariantInventoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessProducts/types/AdjustVariantInventoryResponse.mjs +2 -0
- package/dist/esm/api/resources/businessProducts/types/GetProductInventorySummaryResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessProducts/types/GetProductInventorySummaryResponse.mjs +2 -0
- package/dist/esm/api/resources/businessProducts/types/ListVariantInventoryHistoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessProducts/types/ListVariantInventoryHistoryResponse.mjs +2 -0
- package/dist/esm/api/resources/businessProducts/types/index.d.mts +3 -0
- package/dist/esm/api/resources/businessProducts/types/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/me/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/client/Client.mjs +5 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/Client.d.mts +89 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/Client.mjs +267 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/requests/DeleteAddressesRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/requests/DeleteAddressesRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/requests/UpdateAddressesRequest.d.mts +19 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/requests/UpdateAddressesRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/exports.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/exports.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/CreateAddressesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/CreateAddressesResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/ListAddressesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/ListAddressesResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/UpdateAddressesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/UpdateAddressesResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/addresses/types/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/types/Address.d.mts +15 -0
- package/dist/esm/api/types/Address.mjs +2 -0
- package/dist/esm/api/types/AddressCollection.d.mts +4 -0
- package/dist/esm/api/types/AddressCollection.mjs +2 -0
- package/dist/esm/api/types/BusinessInventoryLog.d.mts +15 -0
- package/dist/esm/api/types/BusinessInventoryLog.mjs +2 -0
- package/dist/esm/api/types/BusinessProductInventorySummary.d.mts +7 -0
- package/dist/esm/api/types/BusinessProductInventorySummary.mjs +2 -0
- package/dist/esm/api/types/CustomerCartItem.d.mts +1 -1
- package/dist/esm/api/types/CustomerProductOrder.d.mts +5 -5
- package/dist/esm/api/types/CustomerProductOrderItem.d.mts +2 -2
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +7 -1
- package/dist/esm/api/types/InternalServerErrorBody.mjs +6 -1
- package/dist/esm/api/types/StoreAddressRequest.d.mts +12 -0
- package/dist/esm/api/types/StoreAddressRequest.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +23 -1
- package/reference.md +421 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateAddressesResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ListAddressesResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./UpdateAddressesResponse.js"), exports);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./addresses/client/requests/index.js";
|
|
2
|
+
export * as addresses from "./addresses/index.js";
|
|
3
|
+
export * from "./addresses/types/index.js";
|
|
1
4
|
export * from "./ticketOrders/client/requests/index.js";
|
|
2
5
|
export * as ticketOrders from "./ticketOrders/index.js";
|
|
3
6
|
export * from "./ticketOrders/types/index.js";
|
|
@@ -36,7 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tickets = exports.ticketOrders = void 0;
|
|
39
|
+
exports.tickets = exports.ticketOrders = exports.addresses = void 0;
|
|
40
|
+
__exportStar(require("./addresses/client/requests/index.js"), exports);
|
|
41
|
+
exports.addresses = __importStar(require("./addresses/index.js"));
|
|
42
|
+
__exportStar(require("./addresses/types/index.js"), exports);
|
|
40
43
|
__exportStar(require("./ticketOrders/client/requests/index.js"), exports);
|
|
41
44
|
exports.ticketOrders = __importStar(require("./ticketOrders/index.js"));
|
|
42
45
|
__exportStar(require("./ticketOrders/types/index.js"), exports);
|
|
@@ -2,6 +2,9 @@ export * as business from "./business/index.js";
|
|
|
2
2
|
export * from "./businessMessaging/client/requests/index.js";
|
|
3
3
|
export * as businessMessaging from "./businessMessaging/index.js";
|
|
4
4
|
export * from "./businessMessaging/types/index.js";
|
|
5
|
+
export * from "./businessProducts/client/requests/index.js";
|
|
6
|
+
export * as businessProducts from "./businessProducts/index.js";
|
|
7
|
+
export * from "./businessProducts/types/index.js";
|
|
5
8
|
export * from "./customer/client/requests/index.js";
|
|
6
9
|
export * as customer from "./customer/index.js";
|
|
7
10
|
export * from "./customer/types/index.js";
|
|
@@ -36,11 +36,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerMessaging = exports.customer = exports.businessMessaging = exports.business = void 0;
|
|
39
|
+
exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerMessaging = exports.customer = exports.businessProducts = exports.businessMessaging = exports.business = void 0;
|
|
40
40
|
exports.business = __importStar(require("./business/index.js"));
|
|
41
41
|
__exportStar(require("./businessMessaging/client/requests/index.js"), exports);
|
|
42
42
|
exports.businessMessaging = __importStar(require("./businessMessaging/index.js"));
|
|
43
43
|
__exportStar(require("./businessMessaging/types/index.js"), exports);
|
|
44
|
+
__exportStar(require("./businessProducts/client/requests/index.js"), exports);
|
|
45
|
+
exports.businessProducts = __importStar(require("./businessProducts/index.js"));
|
|
46
|
+
__exportStar(require("./businessProducts/types/index.js"), exports);
|
|
44
47
|
__exportStar(require("./customer/client/requests/index.js"), exports);
|
|
45
48
|
exports.customer = __importStar(require("./customer/index.js"));
|
|
46
49
|
__exportStar(require("./customer/types/index.js"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Address {
|
|
2
|
+
id: number;
|
|
3
|
+
label: string | null;
|
|
4
|
+
line1: string;
|
|
5
|
+
line2: string | null;
|
|
6
|
+
city: string;
|
|
7
|
+
state: string;
|
|
8
|
+
postal_code: string;
|
|
9
|
+
country: string;
|
|
10
|
+
latitude: number | null;
|
|
11
|
+
longitude: number | null;
|
|
12
|
+
is_default: boolean;
|
|
13
|
+
created_at: string | null;
|
|
14
|
+
updated_at: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BusinessInventoryLog {
|
|
2
|
+
id: string;
|
|
3
|
+
change_type: string;
|
|
4
|
+
quantity_change: number;
|
|
5
|
+
quantity_after: number;
|
|
6
|
+
notes: string | null;
|
|
7
|
+
created_by?: BusinessInventoryLog.CreatedBy | undefined;
|
|
8
|
+
created_at: string;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace BusinessInventoryLog {
|
|
11
|
+
interface CreatedBy {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -5,11 +5,11 @@ export interface CustomerProductOrder {
|
|
|
5
5
|
status: string;
|
|
6
6
|
fulfillment_status: string;
|
|
7
7
|
fulfillment_method: string;
|
|
8
|
-
subtotal:
|
|
9
|
-
tax_amount:
|
|
10
|
-
shipping_amount:
|
|
11
|
-
discount_amount:
|
|
12
|
-
total_amount:
|
|
8
|
+
subtotal: string;
|
|
9
|
+
tax_amount: string;
|
|
10
|
+
shipping_amount: string;
|
|
11
|
+
discount_amount: string;
|
|
12
|
+
total_amount: string;
|
|
13
13
|
tracking_number: string | null;
|
|
14
14
|
tracking_url: string | null;
|
|
15
15
|
shipping_address: unknown[] | null;
|
|
@@ -3,8 +3,8 @@ export interface CustomerProductOrderItem {
|
|
|
3
3
|
product_id: string;
|
|
4
4
|
variant_id: string | null;
|
|
5
5
|
quantity: number;
|
|
6
|
-
unit_price:
|
|
7
|
-
total_price:
|
|
6
|
+
unit_price: string;
|
|
7
|
+
total_price: string;
|
|
8
8
|
product_snapshot: unknown[] | null;
|
|
9
9
|
product?: CustomerProductOrderItem.Product | undefined;
|
|
10
10
|
variant?: (CustomerProductOrderItem.Variant | null) | undefined;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export interface InternalServerErrorBody {
|
|
2
|
-
message:
|
|
2
|
+
message: InternalServerErrorBody.Message;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace InternalServerErrorBody {
|
|
5
|
+
const Message: {
|
|
6
|
+
readonly UnableToProcessPaymentPleaseTryAgain: "Unable to process payment. Please try again.";
|
|
7
|
+
};
|
|
8
|
+
type Message = (typeof Message)[keyof typeof Message];
|
|
3
9
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InternalServerErrorBody = void 0;
|
|
5
|
+
var InternalServerErrorBody;
|
|
6
|
+
(function (InternalServerErrorBody) {
|
|
7
|
+
InternalServerErrorBody.Message = {
|
|
8
|
+
UnableToProcessPaymentPleaseTryAgain: "Unable to process payment. Please try again.",
|
|
9
|
+
};
|
|
10
|
+
})(InternalServerErrorBody || (exports.InternalServerErrorBody = InternalServerErrorBody = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface StoreAddressRequest {
|
|
2
|
+
label?: (string | null) | undefined;
|
|
3
|
+
line1: string;
|
|
4
|
+
line2?: (string | null) | undefined;
|
|
5
|
+
city: string;
|
|
6
|
+
state: string;
|
|
7
|
+
postal_code: string;
|
|
8
|
+
country: string;
|
|
9
|
+
latitude?: (number | null) | undefined;
|
|
10
|
+
longitude?: (number | null) | undefined;
|
|
11
|
+
is_default?: boolean | undefined;
|
|
12
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./Ad.js";
|
|
2
|
+
export * from "./Address.js";
|
|
3
|
+
export * from "./AddressCollection.js";
|
|
2
4
|
export * from "./Allergen.js";
|
|
3
5
|
export * from "./BardBlockquoteNode.js";
|
|
4
6
|
export * from "./BardBody.js";
|
|
@@ -40,6 +42,7 @@ export * from "./BusinessEventOrderDetail.js";
|
|
|
40
42
|
export * from "./BusinessEventRsvp.js";
|
|
41
43
|
export * from "./BusinessEventSalesSummary.js";
|
|
42
44
|
export * from "./BusinessEventTicketType.js";
|
|
45
|
+
export * from "./BusinessInventoryLog.js";
|
|
43
46
|
export * from "./BusinessLoginResponse.js";
|
|
44
47
|
export * from "./BusinessMe.js";
|
|
45
48
|
export * from "./BusinessMenu.js";
|
|
@@ -51,6 +54,7 @@ export * from "./BusinessMessage.js";
|
|
|
51
54
|
export * from "./BusinessPhoto.js";
|
|
52
55
|
export * from "./BusinessProduct.js";
|
|
53
56
|
export * from "./BusinessProductCategory.js";
|
|
57
|
+
export * from "./BusinessProductInventorySummary.js";
|
|
54
58
|
export * from "./BusinessProductOrder.js";
|
|
55
59
|
export * from "./BusinessProductOrderItem.js";
|
|
56
60
|
export * from "./BusinessProductVariant.js";
|
|
@@ -127,6 +131,7 @@ export * from "./RsvpItem.js";
|
|
|
127
131
|
export * from "./RsvpResponse.js";
|
|
128
132
|
export * from "./SearchResults.js";
|
|
129
133
|
export * from "./ServiceUnavailableErrorBody.js";
|
|
134
|
+
export * from "./StoreAddressRequest.js";
|
|
130
135
|
export * from "./StoreProductImageRequest.js";
|
|
131
136
|
export * from "./Ticket.js";
|
|
132
137
|
export * from "./TicketOrder.js";
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Ad.js"), exports);
|
|
18
|
+
__exportStar(require("./Address.js"), exports);
|
|
19
|
+
__exportStar(require("./AddressCollection.js"), exports);
|
|
18
20
|
__exportStar(require("./Allergen.js"), exports);
|
|
19
21
|
__exportStar(require("./BardBlockquoteNode.js"), exports);
|
|
20
22
|
__exportStar(require("./BardBody.js"), exports);
|
|
@@ -56,6 +58,7 @@ __exportStar(require("./BusinessEventOrderDetail.js"), exports);
|
|
|
56
58
|
__exportStar(require("./BusinessEventRsvp.js"), exports);
|
|
57
59
|
__exportStar(require("./BusinessEventSalesSummary.js"), exports);
|
|
58
60
|
__exportStar(require("./BusinessEventTicketType.js"), exports);
|
|
61
|
+
__exportStar(require("./BusinessInventoryLog.js"), exports);
|
|
59
62
|
__exportStar(require("./BusinessLoginResponse.js"), exports);
|
|
60
63
|
__exportStar(require("./BusinessMe.js"), exports);
|
|
61
64
|
__exportStar(require("./BusinessMenu.js"), exports);
|
|
@@ -67,6 +70,7 @@ __exportStar(require("./BusinessMessage.js"), exports);
|
|
|
67
70
|
__exportStar(require("./BusinessPhoto.js"), exports);
|
|
68
71
|
__exportStar(require("./BusinessProduct.js"), exports);
|
|
69
72
|
__exportStar(require("./BusinessProductCategory.js"), exports);
|
|
73
|
+
__exportStar(require("./BusinessProductInventorySummary.js"), exports);
|
|
70
74
|
__exportStar(require("./BusinessProductOrder.js"), exports);
|
|
71
75
|
__exportStar(require("./BusinessProductOrderItem.js"), exports);
|
|
72
76
|
__exportStar(require("./BusinessProductVariant.js"), exports);
|
|
@@ -143,6 +147,7 @@ __exportStar(require("./RsvpItem.js"), exports);
|
|
|
143
147
|
__exportStar(require("./RsvpResponse.js"), exports);
|
|
144
148
|
__exportStar(require("./SearchResults.js"), exports);
|
|
145
149
|
__exportStar(require("./ServiceUnavailableErrorBody.js"), exports);
|
|
150
|
+
__exportStar(require("./StoreAddressRequest.js"), exports);
|
|
146
151
|
__exportStar(require("./StoreProductImageRequest.js"), exports);
|
|
147
152
|
__exportStar(require("./Ticket.js"), exports);
|
|
148
153
|
__exportStar(require("./TicketOrder.js"), exports);
|
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.47";
|
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.47",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.47",
|
|
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);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.mjs";
|
|
2
2
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
3
|
+
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.mjs";
|
|
3
4
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
4
5
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
|
|
5
6
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
@@ -16,6 +17,7 @@ export declare namespace FiveOneEatClient {
|
|
|
16
17
|
export declare class FiveOneEatClient {
|
|
17
18
|
protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
|
|
18
19
|
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
20
|
+
protected _businessProducts: BusinessProductsClient | undefined;
|
|
19
21
|
protected _customerMessaging: CustomerMessagingClient | undefined;
|
|
20
22
|
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
21
23
|
protected _customer: CustomerClient | undefined;
|
|
@@ -24,6 +26,7 @@ export declare class FiveOneEatClient {
|
|
|
24
26
|
protected _business: BusinessClient | undefined;
|
|
25
27
|
constructor(options?: FiveOneEatClient.Options);
|
|
26
28
|
get businessMessaging(): BusinessMessagingClient;
|
|
29
|
+
get businessProducts(): BusinessProductsClient;
|
|
27
30
|
get customerMessaging(): CustomerMessagingClient;
|
|
28
31
|
get customerMyAccount(): CustomerMyAccountClient;
|
|
29
32
|
get customer(): CustomerClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
import { BusinessClient } from "./api/resources/business/client/Client.mjs";
|
|
12
12
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
13
|
+
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.mjs";
|
|
13
14
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
14
15
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
|
|
15
16
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
@@ -25,6 +26,10 @@ export class FiveOneEatClient {
|
|
|
25
26
|
var _a;
|
|
26
27
|
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new BusinessMessagingClient(this._options)));
|
|
27
28
|
}
|
|
29
|
+
get businessProducts() {
|
|
30
|
+
var _a;
|
|
31
|
+
return ((_a = this._businessProducts) !== null && _a !== void 0 ? _a : (this._businessProducts = new BusinessProductsClient(this._options)));
|
|
32
|
+
}
|
|
28
33
|
get customerMessaging() {
|
|
29
34
|
var _a;
|
|
30
35
|
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new CustomerMessagingClient(this._options)));
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../index.mjs";
|
|
5
|
+
export declare namespace BusinessProductsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class BusinessProductsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BusinessProductsClient.Options>;
|
|
12
|
+
constructor(options?: BusinessProductsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FiveOneEat.AdjustInventoryRequest} request
|
|
15
|
+
* @param {BusinessProductsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
19
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.businessProducts.adjustVariantInventory({
|
|
24
|
+
* variant: "variant",
|
|
25
|
+
* type: "add",
|
|
26
|
+
* quantity: 1,
|
|
27
|
+
* reason: "restock"
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
adjustVariantInventory(request: FiveOneEat.AdjustInventoryRequest, requestOptions?: BusinessProductsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.AdjustVariantInventoryResponse>;
|
|
31
|
+
private __adjustVariantInventory;
|
|
32
|
+
/**
|
|
33
|
+
* @param {FiveOneEat.ListVariantInventoryHistoryRequest} request
|
|
34
|
+
* @param {BusinessProductsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
37
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
38
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.businessProducts.listVariantInventoryHistory({
|
|
42
|
+
* variant: "variant"
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
listVariantInventoryHistory(request: FiveOneEat.ListVariantInventoryHistoryRequest, requestOptions?: BusinessProductsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.ListVariantInventoryHistoryResponse>;
|
|
46
|
+
private __listVariantInventoryHistory;
|
|
47
|
+
/**
|
|
48
|
+
* @param {FiveOneEat.GetProductInventorySummaryRequest} request
|
|
49
|
+
* @param {BusinessProductsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
52
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
53
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.businessProducts.getProductInventorySummary({
|
|
57
|
+
* product: "product"
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
getProductInventorySummary(request: FiveOneEat.GetProductInventorySummaryRequest, requestOptions?: BusinessProductsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetProductInventorySummaryResponse>;
|
|
61
|
+
private __getProductInventorySummary;
|
|
62
|
+
}
|