@51eat/sdk 0.0.58 → 0.0.59
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/errors/ConflictError.d.ts +1 -2
- package/dist/cjs/api/errors/InternalServerError.d.ts +1 -2
- package/dist/cjs/api/resources/business/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/client/Client.js +31 -26
- package/dist/cjs/api/resources/business/resources/claims/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/business/resources/claims/client/Client.js +281 -0
- package/dist/cjs/api/resources/business/resources/claims/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/claims/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.d.ts +11 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/claims/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/claims/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/claims/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/claims/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/claims/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.d.ts +39 -0
- package/dist/cjs/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.d.ts +39 -0
- package/dist/cjs/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/claims/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/claims/types/index.js +20 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/index.js +4 -1
- package/dist/cjs/api/resources/customer/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/customer/client/Client.js +27 -22
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/Client.js +234 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.ts +37 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/exports.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/exports.js +22 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/index.js +19 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/index.js +42 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.js +189 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/exports.js +21 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/index.js +18 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.ts +39 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/index.js +19 -0
- package/dist/cjs/api/resources/customer/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/index.js +4 -1
- package/dist/cjs/api/types/BusinessClaimRequest.d.ts +9 -0
- package/dist/cjs/api/types/BusinessClaimRequest.js +3 -0
- package/dist/cjs/api/types/ClaimableBusiness.d.ts +11 -0
- package/dist/cjs/api/types/ClaimableBusiness.js +3 -0
- package/dist/cjs/api/types/CustomerBusinessSubmission.d.ts +19 -0
- package/dist/cjs/api/types/CustomerBusinessSubmission.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -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/errors/ConflictError.d.mts +1 -2
- package/dist/esm/api/errors/InternalServerError.d.mts +1 -2
- package/dist/esm/api/resources/business/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/claims/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/business/resources/claims/client/Client.mjs +244 -0
- package/dist/esm/api/resources/business/resources/claims/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/claims/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.d.mts +11 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/claims/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/claims/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/claims/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/claims/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/claims/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.d.mts +39 -0
- package/dist/esm/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.d.mts +39 -0
- package/dist/esm/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/claims/types/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/claims/types/index.mjs +4 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/index.mjs +3 -0
- package/dist/esm/api/resources/customer/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/customer/client/Client.mjs +9 -4
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/Client.mjs +197 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.mts +37 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/exports.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/exports.mjs +4 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.mjs +152 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/exports.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/exports.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.mts +39 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/index.mjs +3 -0
- package/dist/esm/api/types/BusinessClaimRequest.d.mts +9 -0
- package/dist/esm/api/types/BusinessClaimRequest.mjs +2 -0
- package/dist/esm/api/types/ClaimableBusiness.d.mts +11 -0
- package/dist/esm/api/types/ClaimableBusiness.mjs +2 -0
- package/dist/esm/api/types/CustomerBusinessSubmission.d.mts +19 -0
- package/dist/esm/api/types/CustomerBusinessSubmission.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +45 -12
- package/reference.md +550 -100
package/dist/esm/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.d.mts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../index.mjs";
|
|
2
|
+
export interface ListClaimRequestsClaimsResponse {
|
|
3
|
+
data: FiveOneEat.BusinessClaimRequest[];
|
|
4
|
+
links: ListClaimRequestsClaimsResponse.Links;
|
|
5
|
+
meta: ListClaimRequestsClaimsResponse.Meta;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace ListClaimRequestsClaimsResponse {
|
|
8
|
+
interface Links {
|
|
9
|
+
first: string | null;
|
|
10
|
+
last: string | null;
|
|
11
|
+
prev: string | null;
|
|
12
|
+
next: string | null;
|
|
13
|
+
}
|
|
14
|
+
interface Meta {
|
|
15
|
+
current_page: number;
|
|
16
|
+
from: number | null;
|
|
17
|
+
last_page: number;
|
|
18
|
+
/** Generated paginator links. */
|
|
19
|
+
links: Meta.Links.Item[];
|
|
20
|
+
/** Base path for paginator generated URLs. */
|
|
21
|
+
path: string | null;
|
|
22
|
+
/** Number of items shown per page. */
|
|
23
|
+
per_page: number;
|
|
24
|
+
/** Number of the last item in the slice. */
|
|
25
|
+
to: number | null;
|
|
26
|
+
/** Total number of items being paginated. */
|
|
27
|
+
total: number;
|
|
28
|
+
}
|
|
29
|
+
namespace Meta {
|
|
30
|
+
type Links = Links.Item[];
|
|
31
|
+
namespace Links {
|
|
32
|
+
interface Item {
|
|
33
|
+
url: string | null;
|
|
34
|
+
label: string;
|
|
35
|
+
active: boolean;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../index.mjs";
|
|
2
|
+
export interface ListClaimableBusinessesClaimsResponse {
|
|
3
|
+
data: FiveOneEat.ClaimableBusiness[];
|
|
4
|
+
links: ListClaimableBusinessesClaimsResponse.Links;
|
|
5
|
+
meta: ListClaimableBusinessesClaimsResponse.Meta;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace ListClaimableBusinessesClaimsResponse {
|
|
8
|
+
interface Links {
|
|
9
|
+
first: string | null;
|
|
10
|
+
last: string | null;
|
|
11
|
+
prev: string | null;
|
|
12
|
+
next: string | null;
|
|
13
|
+
}
|
|
14
|
+
interface Meta {
|
|
15
|
+
current_page: number;
|
|
16
|
+
from: number | null;
|
|
17
|
+
last_page: number;
|
|
18
|
+
/** Generated paginator links. */
|
|
19
|
+
links: Meta.Links.Item[];
|
|
20
|
+
/** Base path for paginator generated URLs. */
|
|
21
|
+
path: string | null;
|
|
22
|
+
/** Number of items shown per page. */
|
|
23
|
+
per_page: number;
|
|
24
|
+
/** Number of the last item in the slice. */
|
|
25
|
+
to: number | null;
|
|
26
|
+
/** Total number of items being paginated. */
|
|
27
|
+
total: number;
|
|
28
|
+
}
|
|
29
|
+
namespace Meta {
|
|
30
|
+
type Links = Links.Item[];
|
|
31
|
+
namespace Links {
|
|
32
|
+
interface Item {
|
|
33
|
+
url: string | null;
|
|
34
|
+
label: string;
|
|
35
|
+
active: boolean;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -13,6 +13,9 @@ export * as categories from "./categories/index.mjs";
|
|
|
13
13
|
export * from "./categories/types/index.mjs";
|
|
14
14
|
export * as certifications from "./certifications/index.mjs";
|
|
15
15
|
export * from "./certifications/types/index.mjs";
|
|
16
|
+
export * from "./claims/client/requests/index.mjs";
|
|
17
|
+
export * as claims from "./claims/index.mjs";
|
|
18
|
+
export * from "./claims/types/index.mjs";
|
|
16
19
|
export * as cuisines from "./cuisines/index.mjs";
|
|
17
20
|
export * from "./cuisines/types/index.mjs";
|
|
18
21
|
export * from "./discounts/client/requests/index.mjs";
|
|
@@ -13,6 +13,9 @@ export * as categories from "./categories/index.mjs";
|
|
|
13
13
|
export * from "./categories/types/index.mjs";
|
|
14
14
|
export * as certifications from "./certifications/index.mjs";
|
|
15
15
|
export * from "./certifications/types/index.mjs";
|
|
16
|
+
export * from "./claims/client/requests/index.mjs";
|
|
17
|
+
export * as claims from "./claims/index.mjs";
|
|
18
|
+
export * from "./claims/types/index.mjs";
|
|
16
19
|
export * as cuisines from "./cuisines/index.mjs";
|
|
17
20
|
export * from "./cuisines/types/index.mjs";
|
|
18
21
|
export * from "./discounts/client/requests/index.mjs";
|
|
@@ -4,6 +4,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
4
4
|
import * as FiveOneEat from "../../../index.mjs";
|
|
5
5
|
import { AuthClient } from "../resources/auth/client/Client.mjs";
|
|
6
6
|
import { BusinessesClient } from "../resources/businesses/client/Client.mjs";
|
|
7
|
+
import { BusinessSubmissionsClient } from "../resources/businessSubmissions/client/Client.mjs";
|
|
7
8
|
import { CartClient } from "../resources/cart/client/Client.mjs";
|
|
8
9
|
import { DiscoveryClient } from "../resources/discovery/client/Client.mjs";
|
|
9
10
|
import { EditorialsClient } from "../resources/editorials/client/Client.mjs";
|
|
@@ -22,10 +23,11 @@ export declare namespace CustomerClient {
|
|
|
22
23
|
export declare class CustomerClient {
|
|
23
24
|
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerClient.Options>;
|
|
24
25
|
protected _auth: AuthClient | undefined;
|
|
26
|
+
protected _businessSubmissions: BusinessSubmissionsClient | undefined;
|
|
25
27
|
protected _businesses: BusinessesClient | undefined;
|
|
26
28
|
protected _cart: CartClient | undefined;
|
|
27
|
-
protected _explore: ExploreClient | undefined;
|
|
28
29
|
protected _discovery: DiscoveryClient | undefined;
|
|
30
|
+
protected _explore: ExploreClient | undefined;
|
|
29
31
|
protected _editorials: EditorialsClient | undefined;
|
|
30
32
|
protected _events: EventsClient | undefined;
|
|
31
33
|
protected _messaging: MessagingClient | undefined;
|
|
@@ -35,10 +37,11 @@ export declare class CustomerClient {
|
|
|
35
37
|
protected _shop: ShopClient | undefined;
|
|
36
38
|
constructor(options?: CustomerClient.Options);
|
|
37
39
|
get auth(): AuthClient;
|
|
40
|
+
get businessSubmissions(): BusinessSubmissionsClient;
|
|
38
41
|
get businesses(): BusinessesClient;
|
|
39
42
|
get cart(): CartClient;
|
|
40
|
-
get explore(): ExploreClient;
|
|
41
43
|
get discovery(): DiscoveryClient;
|
|
44
|
+
get explore(): ExploreClient;
|
|
42
45
|
get editorials(): EditorialsClient;
|
|
43
46
|
get events(): EventsClient;
|
|
44
47
|
get messaging(): MessagingClient;
|
|
@@ -18,6 +18,7 @@ import * as errors from "../../../../errors/index.mjs";
|
|
|
18
18
|
import * as FiveOneEat from "../../../index.mjs";
|
|
19
19
|
import { AuthClient } from "../resources/auth/client/Client.mjs";
|
|
20
20
|
import { BusinessesClient } from "../resources/businesses/client/Client.mjs";
|
|
21
|
+
import { BusinessSubmissionsClient } from "../resources/businessSubmissions/client/Client.mjs";
|
|
21
22
|
import { CartClient } from "../resources/cart/client/Client.mjs";
|
|
22
23
|
import { DiscoveryClient } from "../resources/discovery/client/Client.mjs";
|
|
23
24
|
import { EditorialsClient } from "../resources/editorials/client/Client.mjs";
|
|
@@ -36,6 +37,10 @@ export class CustomerClient {
|
|
|
36
37
|
var _a;
|
|
37
38
|
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new AuthClient(this._options)));
|
|
38
39
|
}
|
|
40
|
+
get businessSubmissions() {
|
|
41
|
+
var _a;
|
|
42
|
+
return ((_a = this._businessSubmissions) !== null && _a !== void 0 ? _a : (this._businessSubmissions = new BusinessSubmissionsClient(this._options)));
|
|
43
|
+
}
|
|
39
44
|
get businesses() {
|
|
40
45
|
var _a;
|
|
41
46
|
return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
|
|
@@ -44,14 +49,14 @@ export class CustomerClient {
|
|
|
44
49
|
var _a;
|
|
45
50
|
return ((_a = this._cart) !== null && _a !== void 0 ? _a : (this._cart = new CartClient(this._options)));
|
|
46
51
|
}
|
|
47
|
-
get explore() {
|
|
48
|
-
var _a;
|
|
49
|
-
return ((_a = this._explore) !== null && _a !== void 0 ? _a : (this._explore = new ExploreClient(this._options)));
|
|
50
|
-
}
|
|
51
52
|
get discovery() {
|
|
52
53
|
var _a;
|
|
53
54
|
return ((_a = this._discovery) !== null && _a !== void 0 ? _a : (this._discovery = new DiscoveryClient(this._options)));
|
|
54
55
|
}
|
|
56
|
+
get explore() {
|
|
57
|
+
var _a;
|
|
58
|
+
return ((_a = this._explore) !== null && _a !== void 0 ? _a : (this._explore = new ExploreClient(this._options)));
|
|
59
|
+
}
|
|
55
60
|
get editorials() {
|
|
56
61
|
var _a;
|
|
57
62
|
return ((_a = this._editorials) !== null && _a !== void 0 ? _a : (this._editorials = new EditorialsClient(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
|
+
import { PhotosClient } from "../resources/photos/client/Client.mjs";
|
|
6
|
+
export declare namespace BusinessSubmissionsClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class BusinessSubmissionsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BusinessSubmissionsClient.Options>;
|
|
13
|
+
protected _photos: PhotosClient | undefined;
|
|
14
|
+
constructor(options?: BusinessSubmissionsClient.Options);
|
|
15
|
+
get photos(): PhotosClient;
|
|
16
|
+
/**
|
|
17
|
+
* @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.customer.businessSubmissions.list()
|
|
23
|
+
*/
|
|
24
|
+
list(requestOptions?: BusinessSubmissionsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListBusinessSubmissionsResponse>;
|
|
25
|
+
private __list;
|
|
26
|
+
/**
|
|
27
|
+
* @param {FiveOneEat.customer.StoreBusinessSubmissionRequest} request
|
|
28
|
+
* @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
31
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.customer.businessSubmissions.create({
|
|
35
|
+
* name: "name",
|
|
36
|
+
* address: "address",
|
|
37
|
+
* city: "city",
|
|
38
|
+
* state: "state",
|
|
39
|
+
* zipcode: "zipcode",
|
|
40
|
+
* country: "country",
|
|
41
|
+
* latitude: 1.1,
|
|
42
|
+
* longitude: 1.1
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
create(request: FiveOneEat.customer.StoreBusinessSubmissionRequest, requestOptions?: BusinessSubmissionsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CreateBusinessSubmissionsResponse>;
|
|
46
|
+
private __create;
|
|
47
|
+
/**
|
|
48
|
+
* @param {FiveOneEat.customer.GetBusinessSubmissionsRequest} request
|
|
49
|
+
* @param {BusinessSubmissionsClient.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.customer.businessSubmissions.get({
|
|
57
|
+
* business: "business"
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
get(request: FiveOneEat.customer.GetBusinessSubmissionsRequest, requestOptions?: BusinessSubmissionsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetBusinessSubmissionsResponse>;
|
|
61
|
+
private __get;
|
|
62
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
|
+
import * as FiveOneEat from "../../../../../index.mjs";
|
|
18
|
+
import { PhotosClient } from "../resources/photos/client/Client.mjs";
|
|
19
|
+
export class BusinessSubmissionsClient {
|
|
20
|
+
constructor(options = {}) {
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
|
+
}
|
|
23
|
+
get photos() {
|
|
24
|
+
var _a;
|
|
25
|
+
return ((_a = this._photos) !== null && _a !== void 0 ? _a : (this._photos = new PhotosClient(this._options)));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.customer.businessSubmissions.list()
|
|
34
|
+
*/
|
|
35
|
+
list(requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__list(requestOptions) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
41
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
42
|
+
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);
|
|
43
|
+
const _response = yield core.fetcher({
|
|
44
|
+
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/business-submissions"),
|
|
45
|
+
method: "GET",
|
|
46
|
+
headers: _headers,
|
|
47
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
48
|
+
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,
|
|
49
|
+
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,
|
|
50
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
51
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
52
|
+
logging: this._options.logging,
|
|
53
|
+
});
|
|
54
|
+
if (_response.ok) {
|
|
55
|
+
return {
|
|
56
|
+
data: _response.body,
|
|
57
|
+
rawResponse: _response.rawResponse,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (_response.error.reason === "status-code") {
|
|
61
|
+
switch (_response.error.statusCode) {
|
|
62
|
+
case 401:
|
|
63
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
64
|
+
default:
|
|
65
|
+
throw new errors.FiveOneEatError({
|
|
66
|
+
statusCode: _response.error.statusCode,
|
|
67
|
+
body: _response.error.body,
|
|
68
|
+
rawResponse: _response.rawResponse,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/business-submissions");
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @param {FiveOneEat.customer.StoreBusinessSubmissionRequest} request
|
|
77
|
+
* @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
80
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.customer.businessSubmissions.create({
|
|
84
|
+
* name: "name",
|
|
85
|
+
* address: "address",
|
|
86
|
+
* city: "city",
|
|
87
|
+
* state: "state",
|
|
88
|
+
* zipcode: "zipcode",
|
|
89
|
+
* country: "country",
|
|
90
|
+
* latitude: 1.1,
|
|
91
|
+
* longitude: 1.1
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
create(request, requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
96
|
+
}
|
|
97
|
+
__create(request, requestOptions) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
100
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
101
|
+
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);
|
|
102
|
+
const _response = yield core.fetcher({
|
|
103
|
+
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/business-submissions"),
|
|
104
|
+
method: "POST",
|
|
105
|
+
headers: _headers,
|
|
106
|
+
contentType: "application/json",
|
|
107
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
108
|
+
requestType: "json",
|
|
109
|
+
body: request,
|
|
110
|
+
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,
|
|
111
|
+
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,
|
|
112
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
113
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
114
|
+
logging: this._options.logging,
|
|
115
|
+
});
|
|
116
|
+
if (_response.ok) {
|
|
117
|
+
return {
|
|
118
|
+
data: _response.body,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
if (_response.error.reason === "status-code") {
|
|
123
|
+
switch (_response.error.statusCode) {
|
|
124
|
+
case 401:
|
|
125
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 422:
|
|
127
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
128
|
+
default:
|
|
129
|
+
throw new errors.FiveOneEatError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/business-submissions");
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @param {FiveOneEat.customer.GetBusinessSubmissionsRequest} request
|
|
141
|
+
* @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
144
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
145
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* await client.customer.businessSubmissions.get({
|
|
149
|
+
* business: "business"
|
|
150
|
+
* })
|
|
151
|
+
*/
|
|
152
|
+
get(request, requestOptions) {
|
|
153
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
154
|
+
}
|
|
155
|
+
__get(request, requestOptions) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
158
|
+
const { business } = request;
|
|
159
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
160
|
+
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);
|
|
161
|
+
const _response = yield core.fetcher({
|
|
162
|
+
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/business-submissions/${core.url.encodePathParam(business)}`),
|
|
163
|
+
method: "GET",
|
|
164
|
+
headers: _headers,
|
|
165
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
166
|
+
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,
|
|
167
|
+
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,
|
|
168
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
170
|
+
logging: this._options.logging,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return {
|
|
174
|
+
data: _response.body,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
if (_response.error.reason === "status-code") {
|
|
179
|
+
switch (_response.error.statusCode) {
|
|
180
|
+
case 401:
|
|
181
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
182
|
+
case 403:
|
|
183
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 404:
|
|
185
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
186
|
+
default:
|
|
187
|
+
throw new errors.FiveOneEatError({
|
|
188
|
+
statusCode: _response.error.statusCode,
|
|
189
|
+
body: _response.error.body,
|
|
190
|
+
rawResponse: _response.rawResponse,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/business-submissions/{business}");
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* name: "name",
|
|
5
|
+
* address: "address",
|
|
6
|
+
* city: "city",
|
|
7
|
+
* state: "state",
|
|
8
|
+
* zipcode: "zipcode",
|
|
9
|
+
* country: "country",
|
|
10
|
+
* latitude: 1.1,
|
|
11
|
+
* longitude: 1.1
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface StoreBusinessSubmissionRequest {
|
|
15
|
+
name: string;
|
|
16
|
+
address: string;
|
|
17
|
+
city: string;
|
|
18
|
+
state: string;
|
|
19
|
+
zipcode: string;
|
|
20
|
+
country: string;
|
|
21
|
+
latitude: number;
|
|
22
|
+
longitude: number;
|
|
23
|
+
phone?: string | null;
|
|
24
|
+
website?: string | null;
|
|
25
|
+
description?: string | null;
|
|
26
|
+
hours?: string[] | null;
|
|
27
|
+
seasonal?: boolean | null;
|
|
28
|
+
has_location?: boolean | null;
|
|
29
|
+
facebook_url?: string | null;
|
|
30
|
+
instagram_url?: string | null;
|
|
31
|
+
twitter_url?: string | null;
|
|
32
|
+
tiktok_url?: string | null;
|
|
33
|
+
youtube_url?: string | null;
|
|
34
|
+
linkedin_url?: string | null;
|
|
35
|
+
category_slugs?: string[] | null;
|
|
36
|
+
operating_months?: number[] | null;
|
|
37
|
+
}
|
package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
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 PhotosClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PhotosClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PhotosClient.Options>;
|
|
12
|
+
constructor(options?: PhotosClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FiveOneEat.customer.businessSubmissions.UploadSubmissionPhotoRequest} request
|
|
15
|
+
* @param {PhotosClient.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
|
+
* @throws {@link FiveOneEat.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* import { createReadStream } from "fs";
|
|
25
|
+
* await client.customer.businessSubmissions.photos.upload({
|
|
26
|
+
* image: fs.createReadStream("/path/to/your/file"),
|
|
27
|
+
* business: "business"
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
upload(request: FiveOneEat.customer.businessSubmissions.UploadSubmissionPhotoRequest, requestOptions?: PhotosClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businessSubmissions.UploadPhotosResponse>;
|
|
31
|
+
private __upload;
|
|
32
|
+
/**
|
|
33
|
+
* @param {FiveOneEat.customer.businessSubmissions.DeletePhotosRequest} request
|
|
34
|
+
* @param {PhotosClient.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.customer.businessSubmissions.photos.delete({
|
|
42
|
+
* business: "business",
|
|
43
|
+
* photo: "photo"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
delete(request: FiveOneEat.customer.businessSubmissions.DeletePhotosRequest, requestOptions?: PhotosClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
47
|
+
private __delete;
|
|
48
|
+
}
|