@51eat/sdk 0.0.21 → 0.0.23
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 +16 -13
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +0 -6
- package/dist/cjs/Client.js +10 -20
- package/dist/cjs/api/resources/business/client/Client.d.ts +17 -2
- package/dist/cjs/api/resources/business/client/Client.js +34 -9
- package/dist/cjs/api/resources/business/resources/businesses/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/Client.js +260 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/businesses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/categories/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/{businessMessaging → business/resources/categories}/client/Client.js +23 -45
- package/dist/cjs/api/resources/business/resources/categories/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/categories/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{businessPushNotifications → business/resources/categories}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/categories/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/categories/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/Client.js +96 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/certifications/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/certifications/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/certifications/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/certifications/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/Client.js +96 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/cuisines/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/cuisines/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/cuisines/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/cuisines/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/index.js +10 -1
- package/dist/cjs/api/resources/business/resources/messaging/client/Client.d.ts +24 -1
- package/dist/cjs/api/resources/business/resources/messaging/client/Client.js +107 -0
- package/dist/cjs/api/resources/business/resources/messaging/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/messaging/client/index.js +15 -0
- package/dist/cjs/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.ts → business/resources/messaging/client/requests/ChannelAuthMessagingRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/messaging/client/requests/ChannelAuthMessagingRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/messaging/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/pushNotifications/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/Client.js +22 -22
- package/dist/cjs/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.ts → business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/pushNotifications/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/pushNotifications/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/pushNotifications/exports.js +21 -0
- package/dist/cjs/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.ts → business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/pushNotifications/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/types/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +0 -5
- package/dist/cjs/api/resources/index.js +1 -6
- 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 +0 -6
- package/dist/esm/Client.mjs +0 -10
- package/dist/esm/api/resources/business/client/Client.d.mts +17 -2
- package/dist/esm/api/resources/business/client/Client.mjs +27 -2
- package/dist/esm/api/resources/business/resources/businesses/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/business/resources/businesses/client/Client.mjs +223 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/businesses/exports.d.mts +2 -0
- package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/categories/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/{businessMessaging → business/resources/categories}/client/Client.mjs +21 -43
- package/dist/esm/api/resources/business/resources/categories/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/categories/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/categories/exports.d.mts +2 -0
- package/dist/esm/api/resources/{businessPushNotifications → business/resources/categories}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/categories/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/categories/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/certifications/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/certifications/client/Client.mjs +59 -0
- package/dist/esm/api/resources/business/resources/certifications/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/certifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/certifications/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/certifications/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/certifications/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/certifications/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/Client.mjs +59 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/cuisines/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/cuisines/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/index.mjs +9 -0
- package/dist/esm/api/resources/business/resources/messaging/client/Client.d.mts +24 -1
- package/dist/esm/api/resources/business/resources/messaging/client/Client.mjs +74 -0
- package/dist/esm/api/resources/business/resources/messaging/client/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/messaging/client/index.mjs +1 -1
- package/dist/esm/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.mts → business/resources/messaging/client/requests/ChannelAuthMessagingRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/messaging/client/requests/ChannelAuthMessagingRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/messaging/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/pushNotifications/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/Client.mjs +20 -20
- package/dist/esm/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.mts → business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/pushNotifications/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/pushNotifications/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/pushNotifications/exports.mjs +3 -0
- package/dist/esm/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.mts → business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/pushNotifications/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/pushNotifications/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +0 -5
- package/dist/esm/api/resources/index.mjs +0 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +67 -34
- package/reference.md +564 -202
- package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +0 -32
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/businessMessaging/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessPushNotifications/client/Client.d.ts +0 -47
- package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/businessPushNotifications/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessPushNotifications/types/index.d.ts +0 -1
- package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +0 -32
- package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/businessMessaging/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessPushNotifications/client/Client.d.mts +0 -47
- package/dist/esm/api/resources/businessPushNotifications/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/businessPushNotifications/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessPushNotifications/types/index.d.mts +0 -1
- package/dist/esm/api/resources/businessPushNotifications/types/index.mjs +0 -1
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.js → business/resources/businesses/client/requests/DeleteBusinessesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.js → business/resources/businesses/client/requests/GetBusinessesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.js → business/resources/businesses/client/requests/UpdateBusinessesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/index.js +0 -0
- /package/dist/{esm/api/resources/businessMessaging/client/requests/index.mjs → cjs/api/resources/business/resources/categories/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.js +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.mjs → business/resources/businesses/client/requests/DeleteBusinessesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.mjs → business/resources/businesses/client/requests/GetBusinessesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.mjs → business/resources/businesses/client/requests/UpdateBusinessesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.mjs +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
export class CuisinesClient {
|
|
18
|
+
constructor(options = {}) {
|
|
19
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @param {CuisinesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.business.cuisines.list()
|
|
26
|
+
*/
|
|
27
|
+
list(requestOptions) {
|
|
28
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
29
|
+
}
|
|
30
|
+
__list(requestOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
33
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
34
|
+
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);
|
|
35
|
+
const _response = yield core.fetcher({
|
|
36
|
+
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, "business/cuisines"),
|
|
37
|
+
method: "GET",
|
|
38
|
+
headers: _headers,
|
|
39
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
40
|
+
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,
|
|
41
|
+
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,
|
|
42
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
43
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
44
|
+
logging: this._options.logging,
|
|
45
|
+
});
|
|
46
|
+
if (_response.ok) {
|
|
47
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
48
|
+
}
|
|
49
|
+
if (_response.error.reason === "status-code") {
|
|
50
|
+
throw new errors.FiveOneEatError({
|
|
51
|
+
statusCode: _response.error.statusCode,
|
|
52
|
+
body: _response.error.body,
|
|
53
|
+
rawResponse: _response.rawResponse,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/cuisines");
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -4,13 +4,22 @@ export * from "./auth/types/index.mjs";
|
|
|
4
4
|
export * from "./bulletins/client/requests/index.mjs";
|
|
5
5
|
export * as bulletins from "./bulletins/index.mjs";
|
|
6
6
|
export * from "./bulletins/types/index.mjs";
|
|
7
|
+
export * from "./businesses/client/requests/index.mjs";
|
|
8
|
+
export * as businesses from "./businesses/index.mjs";
|
|
9
|
+
export * as categories from "./categories/index.mjs";
|
|
10
|
+
export * as certifications from "./certifications/index.mjs";
|
|
11
|
+
export * as cuisines from "./cuisines/index.mjs";
|
|
7
12
|
export * from "./gallery/client/requests/index.mjs";
|
|
8
13
|
export * as gallery from "./gallery/index.mjs";
|
|
9
14
|
export * from "./gallery/types/index.mjs";
|
|
10
15
|
export * from "./menus/client/requests/index.mjs";
|
|
11
16
|
export * as menus from "./menus/index.mjs";
|
|
12
17
|
export * from "./menus/types/index.mjs";
|
|
18
|
+
export * from "./messaging/client/requests/index.mjs";
|
|
13
19
|
export * as messaging from "./messaging/index.mjs";
|
|
14
20
|
export * from "./profile/client/requests/index.mjs";
|
|
15
21
|
export * as profile from "./profile/index.mjs";
|
|
16
22
|
export * from "./profile/types/index.mjs";
|
|
23
|
+
export * from "./pushNotifications/client/requests/index.mjs";
|
|
24
|
+
export * as pushNotifications from "./pushNotifications/index.mjs";
|
|
25
|
+
export * from "./pushNotifications/types/index.mjs";
|
|
@@ -4,13 +4,22 @@ export * from "./auth/types/index.mjs";
|
|
|
4
4
|
export * from "./bulletins/client/requests/index.mjs";
|
|
5
5
|
export * as bulletins from "./bulletins/index.mjs";
|
|
6
6
|
export * from "./bulletins/types/index.mjs";
|
|
7
|
+
export * from "./businesses/client/requests/index.mjs";
|
|
8
|
+
export * as businesses from "./businesses/index.mjs";
|
|
9
|
+
export * as categories from "./categories/index.mjs";
|
|
10
|
+
export * as certifications from "./certifications/index.mjs";
|
|
11
|
+
export * as cuisines from "./cuisines/index.mjs";
|
|
7
12
|
export * from "./gallery/client/requests/index.mjs";
|
|
8
13
|
export * as gallery from "./gallery/index.mjs";
|
|
9
14
|
export * from "./gallery/types/index.mjs";
|
|
10
15
|
export * from "./menus/client/requests/index.mjs";
|
|
11
16
|
export * as menus from "./menus/index.mjs";
|
|
12
17
|
export * from "./menus/types/index.mjs";
|
|
18
|
+
export * from "./messaging/client/requests/index.mjs";
|
|
13
19
|
export * as messaging from "./messaging/index.mjs";
|
|
14
20
|
export * from "./profile/client/requests/index.mjs";
|
|
15
21
|
export * as profile from "./profile/index.mjs";
|
|
16
22
|
export * from "./profile/types/index.mjs";
|
|
23
|
+
export * from "./pushNotifications/client/requests/index.mjs";
|
|
24
|
+
export * as pushNotifications from "./pushNotifications/index.mjs";
|
|
25
|
+
export * from "./pushNotifications/types/index.mjs";
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import type { BaseClientOptions } from "../../../../../../BaseClient.mjs";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.mjs";
|
|
3
5
|
import { ConversationsClient } from "../resources/conversations/client/Client.mjs";
|
|
4
6
|
import { MessagesClient } from "../resources/messages/client/Client.mjs";
|
|
5
7
|
export declare namespace MessagingClient {
|
|
6
8
|
type Options = BaseClientOptions;
|
|
9
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
10
|
+
}
|
|
7
11
|
}
|
|
8
12
|
export declare class MessagingClient {
|
|
9
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<MessagingClient.Options>;
|
|
@@ -12,4 +16,23 @@ export declare class MessagingClient {
|
|
|
12
16
|
constructor(options?: MessagingClient.Options);
|
|
13
17
|
get conversations(): ConversationsClient;
|
|
14
18
|
get messages(): MessagesClient;
|
|
19
|
+
/**
|
|
20
|
+
* This endpoint is used by the business companion mobile app to authenticate with
|
|
21
|
+
* Pusher channels. It validates that the authenticated business user has
|
|
22
|
+
* permission to access the requested channel, scoped to their active business.
|
|
23
|
+
*
|
|
24
|
+
* @param {FiveOneEat.business.ChannelAuthMessagingRequest} request
|
|
25
|
+
* @param {MessagingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
28
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.business.messaging.channelAuth({
|
|
32
|
+
* channel_name: "channel_name",
|
|
33
|
+
* socket_id: "socket_id"
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
channelAuth(request: FiveOneEat.business.ChannelAuthMessagingRequest, requestOptions?: MessagingClient.RequestOptions): core.HttpResponsePromise<number>;
|
|
37
|
+
private __channelAuth;
|
|
15
38
|
}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
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
|
+
};
|
|
2
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";
|
|
3
18
|
import { ConversationsClient } from "../resources/conversations/client/Client.mjs";
|
|
4
19
|
import { MessagesClient } from "../resources/messages/client/Client.mjs";
|
|
5
20
|
export class MessagingClient {
|
|
@@ -14,4 +29,63 @@ export class MessagingClient {
|
|
|
14
29
|
var _a;
|
|
15
30
|
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new MessagesClient(this._options)));
|
|
16
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* This endpoint is used by the business companion mobile app to authenticate with
|
|
34
|
+
* Pusher channels. It validates that the authenticated business user has
|
|
35
|
+
* permission to access the requested channel, scoped to their active business.
|
|
36
|
+
*
|
|
37
|
+
* @param {FiveOneEat.business.ChannelAuthMessagingRequest} request
|
|
38
|
+
* @param {MessagingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
41
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.business.messaging.channelAuth({
|
|
45
|
+
* channel_name: "channel_name",
|
|
46
|
+
* socket_id: "socket_id"
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
channelAuth(request, requestOptions) {
|
|
50
|
+
return core.HttpResponsePromise.fromPromise(this.__channelAuth(request, requestOptions));
|
|
51
|
+
}
|
|
52
|
+
__channelAuth(request, requestOptions) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
55
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
56
|
+
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);
|
|
57
|
+
const _response = yield core.fetcher({
|
|
58
|
+
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, "business/channels/auth"),
|
|
59
|
+
method: "POST",
|
|
60
|
+
headers: _headers,
|
|
61
|
+
contentType: "application/json",
|
|
62
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
63
|
+
requestType: "json",
|
|
64
|
+
body: request,
|
|
65
|
+
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,
|
|
66
|
+
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,
|
|
67
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
68
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
69
|
+
logging: this._options.logging,
|
|
70
|
+
});
|
|
71
|
+
if (_response.ok) {
|
|
72
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
73
|
+
}
|
|
74
|
+
if (_response.error.reason === "status-code") {
|
|
75
|
+
switch (_response.error.statusCode) {
|
|
76
|
+
case 401:
|
|
77
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
78
|
+
case 422:
|
|
79
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
80
|
+
default:
|
|
81
|
+
throw new errors.FiveOneEatError({
|
|
82
|
+
statusCode: _response.error.statusCode,
|
|
83
|
+
body: _response.error.body,
|
|
84
|
+
rawResponse: _response.rawResponse,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/channels/auth");
|
|
89
|
+
});
|
|
90
|
+
}
|
|
17
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ChannelAuthMessagingRequest } from "./ChannelAuthMessagingRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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 PushNotificationsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PushNotificationsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PushNotificationsClient.Options>;
|
|
12
|
+
constructor(options?: PushNotificationsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Register (or update) the authenticated business user's Expo push token for a
|
|
15
|
+
* device. If a `device_id` is provided, an existing registration for that device
|
|
16
|
+
* is updated.
|
|
17
|
+
*
|
|
18
|
+
* @param {FiveOneEat.business.StorePushTokenRequest} request
|
|
19
|
+
* @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
+
*
|
|
21
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
22
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.business.pushNotifications.register({
|
|
26
|
+
* token: "token"
|
|
27
|
+
* })
|
|
28
|
+
*/
|
|
29
|
+
register(request: FiveOneEat.business.StorePushTokenRequest, requestOptions?: PushNotificationsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.RegisterPushNotificationsResponse>;
|
|
30
|
+
private __register;
|
|
31
|
+
/**
|
|
32
|
+
* Delete the authenticated business user's Expo push token registration.
|
|
33
|
+
*
|
|
34
|
+
* @param {FiveOneEat.business.UnregisterPushNotificationsRequest} request
|
|
35
|
+
* @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.business.pushNotifications.unregister({
|
|
42
|
+
* token: "token"
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
unregister(request: FiveOneEat.business.UnregisterPushNotificationsRequest, requestOptions?: PushNotificationsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
46
|
+
private __unregister;
|
|
47
|
+
}
|
|
@@ -8,14 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import { normalizeClientOptionsWithAuth } from "
|
|
12
|
-
import { mergeHeaders } from "
|
|
13
|
-
import * as core from "
|
|
14
|
-
import * as environments from "
|
|
15
|
-
import { handleNonStatusCodeError } from "
|
|
16
|
-
import * as errors from "
|
|
17
|
-
import * as FiveOneEat from "
|
|
18
|
-
export class
|
|
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
|
+
export class PushNotificationsClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
@@ -24,21 +24,21 @@ export class BusinessPushNotificationsClient {
|
|
|
24
24
|
* device. If a `device_id` is provided, an existing registration for that device
|
|
25
25
|
* is updated.
|
|
26
26
|
*
|
|
27
|
-
* @param {FiveOneEat.StorePushTokenRequest} request
|
|
28
|
-
* @param {
|
|
27
|
+
* @param {FiveOneEat.business.StorePushTokenRequest} request
|
|
28
|
+
* @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
29
|
*
|
|
30
30
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
31
31
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await client.
|
|
34
|
+
* await client.business.pushNotifications.register({
|
|
35
35
|
* token: "token"
|
|
36
36
|
* })
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
38
|
+
register(request, requestOptions) {
|
|
39
|
+
return core.HttpResponsePromise.fromPromise(this.__register(request, requestOptions));
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
__register(request, requestOptions) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
44
44
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -83,21 +83,21 @@ export class BusinessPushNotificationsClient {
|
|
|
83
83
|
/**
|
|
84
84
|
* Delete the authenticated business user's Expo push token registration.
|
|
85
85
|
*
|
|
86
|
-
* @param {FiveOneEat.
|
|
87
|
-
* @param {
|
|
86
|
+
* @param {FiveOneEat.business.UnregisterPushNotificationsRequest} request
|
|
87
|
+
* @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
88
|
*
|
|
89
89
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
90
90
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
91
91
|
*
|
|
92
92
|
* @example
|
|
93
|
-
* await client.
|
|
93
|
+
* await client.business.pushNotifications.unregister({
|
|
94
94
|
* token: "token"
|
|
95
95
|
* })
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
97
|
+
unregister(request, requestOptions) {
|
|
98
|
+
return core.HttpResponsePromise.fromPromise(this.__unregister(request, requestOptions));
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
__unregister(request, requestOptions) {
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
103
103
|
const { token } = request;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RegisterPushNotificationsResponse.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RegisterPushNotificationsResponse.mjs";
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export * as business from "./business/index.mjs";
|
|
2
|
-
export * from "./businessMessaging/client/requests/index.mjs";
|
|
3
|
-
export * as businessMessaging from "./businessMessaging/index.mjs";
|
|
4
|
-
export * from "./businessPushNotifications/client/requests/index.mjs";
|
|
5
|
-
export * as businessPushNotifications from "./businessPushNotifications/index.mjs";
|
|
6
|
-
export * from "./businessPushNotifications/types/index.mjs";
|
|
7
2
|
export * from "./customer/client/requests/index.mjs";
|
|
8
3
|
export * as customer from "./customer/index.mjs";
|
|
9
4
|
export * from "./customer/types/index.mjs";
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export * as business from "./business/index.mjs";
|
|
2
|
-
export * from "./businessMessaging/client/requests/index.mjs";
|
|
3
|
-
export * as businessMessaging from "./businessMessaging/index.mjs";
|
|
4
|
-
export * from "./businessPushNotifications/client/requests/index.mjs";
|
|
5
|
-
export * as businessPushNotifications from "./businessPushNotifications/index.mjs";
|
|
6
|
-
export * from "./businessPushNotifications/types/index.mjs";
|
|
7
2
|
export * from "./customer/client/requests/index.mjs";
|
|
8
3
|
export * as customer from "./customer/index.mjs";
|
|
9
4
|
export * from "./customer/types/index.mjs";
|
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.23";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.23";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@51eat/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,28 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
"default": "./dist/cjs/index.js"
|
|
24
24
|
},
|
|
25
|
-
"./businessMessaging": {
|
|
26
|
-
"import": {
|
|
27
|
-
"types": "./dist/esm/api/resources/businessMessaging/exports.d.mts",
|
|
28
|
-
"default": "./dist/esm/api/resources/businessMessaging/exports.mjs"
|
|
29
|
-
},
|
|
30
|
-
"require": {
|
|
31
|
-
"types": "./dist/cjs/api/resources/businessMessaging/exports.d.ts",
|
|
32
|
-
"default": "./dist/cjs/api/resources/businessMessaging/exports.js"
|
|
33
|
-
},
|
|
34
|
-
"default": "./dist/cjs/api/resources/businessMessaging/exports.js"
|
|
35
|
-
},
|
|
36
|
-
"./businessPushNotifications": {
|
|
37
|
-
"import": {
|
|
38
|
-
"types": "./dist/esm/api/resources/businessPushNotifications/exports.d.mts",
|
|
39
|
-
"default": "./dist/esm/api/resources/businessPushNotifications/exports.mjs"
|
|
40
|
-
},
|
|
41
|
-
"require": {
|
|
42
|
-
"types": "./dist/cjs/api/resources/businessPushNotifications/exports.d.ts",
|
|
43
|
-
"default": "./dist/cjs/api/resources/businessPushNotifications/exports.js"
|
|
44
|
-
},
|
|
45
|
-
"default": "./dist/cjs/api/resources/businessPushNotifications/exports.js"
|
|
46
|
-
},
|
|
47
25
|
"./customerEvents": {
|
|
48
26
|
"import": {
|
|
49
27
|
"types": "./dist/esm/api/resources/customerEvents/exports.d.mts",
|
|
@@ -154,6 +132,17 @@
|
|
|
154
132
|
},
|
|
155
133
|
"default": "./dist/cjs/api/resources/business/resources/menus/exports.js"
|
|
156
134
|
},
|
|
135
|
+
"./business/messaging": {
|
|
136
|
+
"import": {
|
|
137
|
+
"types": "./dist/esm/api/resources/business/resources/messaging/exports.d.mts",
|
|
138
|
+
"default": "./dist/esm/api/resources/business/resources/messaging/exports.mjs"
|
|
139
|
+
},
|
|
140
|
+
"require": {
|
|
141
|
+
"types": "./dist/cjs/api/resources/business/resources/messaging/exports.d.ts",
|
|
142
|
+
"default": "./dist/cjs/api/resources/business/resources/messaging/exports.js"
|
|
143
|
+
},
|
|
144
|
+
"default": "./dist/cjs/api/resources/business/resources/messaging/exports.js"
|
|
145
|
+
},
|
|
157
146
|
"./business/profile": {
|
|
158
147
|
"import": {
|
|
159
148
|
"types": "./dist/esm/api/resources/business/resources/profile/exports.d.mts",
|
|
@@ -165,6 +154,61 @@
|
|
|
165
154
|
},
|
|
166
155
|
"default": "./dist/cjs/api/resources/business/resources/profile/exports.js"
|
|
167
156
|
},
|
|
157
|
+
"./business/pushNotifications": {
|
|
158
|
+
"import": {
|
|
159
|
+
"types": "./dist/esm/api/resources/business/resources/pushNotifications/exports.d.mts",
|
|
160
|
+
"default": "./dist/esm/api/resources/business/resources/pushNotifications/exports.mjs"
|
|
161
|
+
},
|
|
162
|
+
"require": {
|
|
163
|
+
"types": "./dist/cjs/api/resources/business/resources/pushNotifications/exports.d.ts",
|
|
164
|
+
"default": "./dist/cjs/api/resources/business/resources/pushNotifications/exports.js"
|
|
165
|
+
},
|
|
166
|
+
"default": "./dist/cjs/api/resources/business/resources/pushNotifications/exports.js"
|
|
167
|
+
},
|
|
168
|
+
"./business/businesses": {
|
|
169
|
+
"import": {
|
|
170
|
+
"types": "./dist/esm/api/resources/business/resources/businesses/exports.d.mts",
|
|
171
|
+
"default": "./dist/esm/api/resources/business/resources/businesses/exports.mjs"
|
|
172
|
+
},
|
|
173
|
+
"require": {
|
|
174
|
+
"types": "./dist/cjs/api/resources/business/resources/businesses/exports.d.ts",
|
|
175
|
+
"default": "./dist/cjs/api/resources/business/resources/businesses/exports.js"
|
|
176
|
+
},
|
|
177
|
+
"default": "./dist/cjs/api/resources/business/resources/businesses/exports.js"
|
|
178
|
+
},
|
|
179
|
+
"./business/cuisines": {
|
|
180
|
+
"import": {
|
|
181
|
+
"types": "./dist/esm/api/resources/business/resources/cuisines/exports.d.mts",
|
|
182
|
+
"default": "./dist/esm/api/resources/business/resources/cuisines/exports.mjs"
|
|
183
|
+
},
|
|
184
|
+
"require": {
|
|
185
|
+
"types": "./dist/cjs/api/resources/business/resources/cuisines/exports.d.ts",
|
|
186
|
+
"default": "./dist/cjs/api/resources/business/resources/cuisines/exports.js"
|
|
187
|
+
},
|
|
188
|
+
"default": "./dist/cjs/api/resources/business/resources/cuisines/exports.js"
|
|
189
|
+
},
|
|
190
|
+
"./business/certifications": {
|
|
191
|
+
"import": {
|
|
192
|
+
"types": "./dist/esm/api/resources/business/resources/certifications/exports.d.mts",
|
|
193
|
+
"default": "./dist/esm/api/resources/business/resources/certifications/exports.mjs"
|
|
194
|
+
},
|
|
195
|
+
"require": {
|
|
196
|
+
"types": "./dist/cjs/api/resources/business/resources/certifications/exports.d.ts",
|
|
197
|
+
"default": "./dist/cjs/api/resources/business/resources/certifications/exports.js"
|
|
198
|
+
},
|
|
199
|
+
"default": "./dist/cjs/api/resources/business/resources/certifications/exports.js"
|
|
200
|
+
},
|
|
201
|
+
"./business/categories": {
|
|
202
|
+
"import": {
|
|
203
|
+
"types": "./dist/esm/api/resources/business/resources/categories/exports.d.mts",
|
|
204
|
+
"default": "./dist/esm/api/resources/business/resources/categories/exports.mjs"
|
|
205
|
+
},
|
|
206
|
+
"require": {
|
|
207
|
+
"types": "./dist/cjs/api/resources/business/resources/categories/exports.d.ts",
|
|
208
|
+
"default": "./dist/cjs/api/resources/business/resources/categories/exports.js"
|
|
209
|
+
},
|
|
210
|
+
"default": "./dist/cjs/api/resources/business/resources/categories/exports.js"
|
|
211
|
+
},
|
|
168
212
|
"./business/auth/tokens": {
|
|
169
213
|
"import": {
|
|
170
214
|
"types": "./dist/esm/api/resources/business/resources/auth/resources/tokens/exports.d.mts",
|
|
@@ -220,17 +264,6 @@
|
|
|
220
264
|
},
|
|
221
265
|
"default": "./dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/exports.js"
|
|
222
266
|
},
|
|
223
|
-
"./business/messaging": {
|
|
224
|
-
"import": {
|
|
225
|
-
"types": "./dist/esm/api/resources/business/resources/messaging/exports.d.mts",
|
|
226
|
-
"default": "./dist/esm/api/resources/business/resources/messaging/exports.mjs"
|
|
227
|
-
},
|
|
228
|
-
"require": {
|
|
229
|
-
"types": "./dist/cjs/api/resources/business/resources/messaging/exports.d.ts",
|
|
230
|
-
"default": "./dist/cjs/api/resources/business/resources/messaging/exports.js"
|
|
231
|
-
},
|
|
232
|
-
"default": "./dist/cjs/api/resources/business/resources/messaging/exports.js"
|
|
233
|
-
},
|
|
234
267
|
"./business/messaging/conversations": {
|
|
235
268
|
"import": {
|
|
236
269
|
"types": "./dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.d.mts",
|