@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.
Files changed (172) hide show
  1. package/README.md +16 -13
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +0 -6
  4. package/dist/cjs/Client.js +10 -20
  5. package/dist/cjs/api/resources/business/client/Client.d.ts +17 -2
  6. package/dist/cjs/api/resources/business/client/Client.js +34 -9
  7. package/dist/cjs/api/resources/business/resources/businesses/client/Client.d.ts +62 -0
  8. package/dist/cjs/api/resources/business/resources/businesses/client/Client.js +260 -0
  9. package/dist/cjs/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.ts +9 -0
  10. package/dist/cjs/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.ts +9 -0
  11. package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.ts +9 -0
  12. package/dist/cjs/api/resources/business/resources/businesses/client/requests/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/business/resources/businesses/exports.d.ts +2 -0
  14. package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/exports.js +2 -2
  15. package/dist/cjs/api/resources/business/resources/categories/client/Client.d.ts +20 -0
  16. package/dist/cjs/api/resources/{businessMessaging → business/resources/categories}/client/Client.js +23 -45
  17. package/dist/cjs/api/resources/business/resources/categories/client/index.js +2 -0
  18. package/dist/cjs/api/resources/business/resources/categories/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/{businessPushNotifications → business/resources/categories}/exports.js +2 -2
  20. package/dist/cjs/api/resources/business/resources/categories/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/business/resources/categories/index.js +17 -0
  22. package/dist/cjs/api/resources/business/resources/certifications/client/Client.d.ts +20 -0
  23. package/dist/cjs/api/resources/business/resources/certifications/client/Client.js +96 -0
  24. package/dist/cjs/api/resources/business/resources/certifications/client/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/business/resources/certifications/client/index.js +2 -0
  26. package/dist/cjs/api/resources/business/resources/certifications/exports.d.ts +2 -0
  27. package/dist/cjs/api/resources/business/resources/certifications/exports.js +21 -0
  28. package/dist/cjs/api/resources/business/resources/certifications/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/business/resources/certifications/index.js +17 -0
  30. package/dist/cjs/api/resources/business/resources/cuisines/client/Client.d.ts +20 -0
  31. package/dist/cjs/api/resources/business/resources/cuisines/client/Client.js +96 -0
  32. package/dist/cjs/api/resources/business/resources/cuisines/client/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/business/resources/cuisines/client/index.js +2 -0
  34. package/dist/cjs/api/resources/business/resources/cuisines/exports.d.ts +2 -0
  35. package/dist/cjs/api/resources/business/resources/cuisines/exports.js +21 -0
  36. package/dist/cjs/api/resources/business/resources/cuisines/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/business/resources/cuisines/index.js +17 -0
  38. package/dist/cjs/api/resources/business/resources/index.d.ts +9 -0
  39. package/dist/cjs/api/resources/business/resources/index.js +10 -1
  40. package/dist/cjs/api/resources/business/resources/messaging/client/Client.d.ts +24 -1
  41. package/dist/cjs/api/resources/business/resources/messaging/client/Client.js +107 -0
  42. package/dist/cjs/api/resources/business/resources/messaging/client/index.d.ts +1 -1
  43. package/dist/cjs/api/resources/business/resources/messaging/client/index.js +15 -0
  44. package/dist/cjs/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.ts → business/resources/messaging/client/requests/ChannelAuthMessagingRequest.d.ts} +1 -1
  45. package/dist/cjs/api/resources/business/resources/messaging/client/requests/ChannelAuthMessagingRequest.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/messaging/client/requests/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/business/resources/messaging/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/business/resources/pushNotifications/client/Client.d.ts +47 -0
  49. package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/Client.js +22 -22
  50. package/dist/cjs/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.ts → business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.d.ts} +1 -1
  51. package/dist/cjs/api/resources/business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.js +3 -0
  52. package/dist/cjs/api/resources/business/resources/pushNotifications/client/requests/index.d.ts +2 -0
  53. package/dist/cjs/api/resources/business/resources/pushNotifications/exports.d.ts +2 -0
  54. package/dist/cjs/api/resources/business/resources/pushNotifications/exports.js +21 -0
  55. package/dist/cjs/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.ts → business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.ts} +1 -1
  56. package/dist/cjs/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.js +3 -0
  57. package/dist/cjs/api/resources/business/resources/pushNotifications/types/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/types/index.js +1 -1
  59. package/dist/cjs/api/resources/index.d.ts +0 -5
  60. package/dist/cjs/api/resources/index.js +1 -6
  61. package/dist/cjs/version.d.ts +1 -1
  62. package/dist/cjs/version.js +1 -1
  63. package/dist/esm/BaseClient.mjs +2 -2
  64. package/dist/esm/Client.d.mts +0 -6
  65. package/dist/esm/Client.mjs +0 -10
  66. package/dist/esm/api/resources/business/client/Client.d.mts +17 -2
  67. package/dist/esm/api/resources/business/client/Client.mjs +27 -2
  68. package/dist/esm/api/resources/business/resources/businesses/client/Client.d.mts +62 -0
  69. package/dist/esm/api/resources/business/resources/businesses/client/Client.mjs +223 -0
  70. package/dist/esm/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.mts +9 -0
  71. package/dist/esm/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.mts +9 -0
  72. package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.mts +9 -0
  73. package/dist/esm/api/resources/business/resources/businesses/client/requests/index.d.mts +3 -0
  74. package/dist/esm/api/resources/business/resources/businesses/client/requests/index.mjs +1 -0
  75. package/dist/esm/api/resources/business/resources/businesses/exports.d.mts +2 -0
  76. package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/exports.mjs +1 -1
  77. package/dist/esm/api/resources/business/resources/categories/client/Client.d.mts +20 -0
  78. package/dist/esm/api/resources/{businessMessaging → business/resources/categories}/client/Client.mjs +21 -43
  79. package/dist/esm/api/resources/business/resources/categories/client/index.d.mts +1 -0
  80. package/dist/esm/api/resources/business/resources/categories/client/index.mjs +1 -0
  81. package/dist/esm/api/resources/business/resources/categories/exports.d.mts +2 -0
  82. package/dist/esm/api/resources/{businessPushNotifications → business/resources/categories}/exports.mjs +1 -1
  83. package/dist/esm/api/resources/business/resources/categories/index.d.mts +1 -0
  84. package/dist/esm/api/resources/business/resources/categories/index.mjs +1 -0
  85. package/dist/esm/api/resources/business/resources/certifications/client/Client.d.mts +20 -0
  86. package/dist/esm/api/resources/business/resources/certifications/client/Client.mjs +59 -0
  87. package/dist/esm/api/resources/business/resources/certifications/client/index.d.mts +1 -0
  88. package/dist/esm/api/resources/business/resources/certifications/client/index.mjs +1 -0
  89. package/dist/esm/api/resources/business/resources/certifications/exports.d.mts +2 -0
  90. package/dist/esm/api/resources/business/resources/certifications/exports.mjs +3 -0
  91. package/dist/esm/api/resources/business/resources/certifications/index.d.mts +1 -0
  92. package/dist/esm/api/resources/business/resources/certifications/index.mjs +1 -0
  93. package/dist/esm/api/resources/business/resources/cuisines/client/Client.d.mts +20 -0
  94. package/dist/esm/api/resources/business/resources/cuisines/client/Client.mjs +59 -0
  95. package/dist/esm/api/resources/business/resources/cuisines/client/index.d.mts +1 -0
  96. package/dist/esm/api/resources/business/resources/cuisines/client/index.mjs +1 -0
  97. package/dist/esm/api/resources/business/resources/cuisines/exports.d.mts +2 -0
  98. package/dist/esm/api/resources/business/resources/cuisines/exports.mjs +3 -0
  99. package/dist/esm/api/resources/business/resources/cuisines/index.d.mts +1 -0
  100. package/dist/esm/api/resources/business/resources/cuisines/index.mjs +1 -0
  101. package/dist/esm/api/resources/business/resources/index.d.mts +9 -0
  102. package/dist/esm/api/resources/business/resources/index.mjs +9 -0
  103. package/dist/esm/api/resources/business/resources/messaging/client/Client.d.mts +24 -1
  104. package/dist/esm/api/resources/business/resources/messaging/client/Client.mjs +74 -0
  105. package/dist/esm/api/resources/business/resources/messaging/client/index.d.mts +1 -1
  106. package/dist/esm/api/resources/business/resources/messaging/client/index.mjs +1 -1
  107. package/dist/esm/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.mts → business/resources/messaging/client/requests/ChannelAuthMessagingRequest.d.mts} +1 -1
  108. package/dist/esm/api/resources/business/resources/messaging/client/requests/ChannelAuthMessagingRequest.mjs +2 -0
  109. package/dist/esm/api/resources/business/resources/messaging/client/requests/index.d.mts +1 -0
  110. package/dist/esm/api/resources/business/resources/messaging/client/requests/index.mjs +1 -0
  111. package/dist/esm/api/resources/business/resources/pushNotifications/client/Client.d.mts +47 -0
  112. package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/Client.mjs +20 -20
  113. package/dist/esm/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.mts → business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.d.mts} +1 -1
  114. package/dist/esm/api/resources/business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.mjs +2 -0
  115. package/dist/esm/api/resources/business/resources/pushNotifications/client/requests/index.d.mts +2 -0
  116. package/dist/esm/api/resources/business/resources/pushNotifications/exports.d.mts +2 -0
  117. package/dist/esm/api/resources/business/resources/pushNotifications/exports.mjs +3 -0
  118. package/dist/esm/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.mts → business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.mts} +1 -1
  119. package/dist/esm/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.mjs +2 -0
  120. package/dist/esm/api/resources/business/resources/pushNotifications/types/index.d.mts +1 -0
  121. package/dist/esm/api/resources/business/resources/pushNotifications/types/index.mjs +1 -0
  122. package/dist/esm/api/resources/index.d.mts +0 -5
  123. package/dist/esm/api/resources/index.mjs +0 -5
  124. package/dist/esm/version.d.mts +1 -1
  125. package/dist/esm/version.mjs +1 -1
  126. package/package.json +67 -34
  127. package/reference.md +564 -202
  128. package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +0 -32
  129. package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +0 -1
  130. package/dist/cjs/api/resources/businessMessaging/exports.d.ts +0 -2
  131. package/dist/cjs/api/resources/businessPushNotifications/client/Client.d.ts +0 -47
  132. package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.d.ts +0 -2
  133. package/dist/cjs/api/resources/businessPushNotifications/exports.d.ts +0 -2
  134. package/dist/cjs/api/resources/businessPushNotifications/types/index.d.ts +0 -1
  135. package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +0 -32
  136. package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +0 -1
  137. package/dist/esm/api/resources/businessMessaging/exports.d.mts +0 -2
  138. package/dist/esm/api/resources/businessPushNotifications/client/Client.d.mts +0 -47
  139. package/dist/esm/api/resources/businessPushNotifications/client/requests/index.d.mts +0 -2
  140. package/dist/esm/api/resources/businessPushNotifications/exports.d.mts +0 -2
  141. package/dist/esm/api/resources/businessPushNotifications/types/index.d.mts +0 -1
  142. package/dist/esm/api/resources/businessPushNotifications/types/index.mjs +0 -1
  143. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/index.d.ts +0 -0
  144. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/index.js +0 -0
  145. /package/dist/cjs/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.js → business/resources/businesses/client/requests/DeleteBusinessesRequest.js} +0 -0
  146. /package/dist/cjs/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.js → business/resources/businesses/client/requests/GetBusinessesRequest.js} +0 -0
  147. /package/dist/cjs/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.js → business/resources/businesses/client/requests/UpdateBusinessesRequest.js} +0 -0
  148. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/requests/index.js +0 -0
  149. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/index.d.ts +0 -0
  150. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/index.js +0 -0
  151. /package/dist/{esm/api/resources/businessMessaging/client/requests/index.mjs → cjs/api/resources/business/resources/categories/client/index.d.ts} +0 -0
  152. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.d.ts +0 -0
  153. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.js +0 -0
  154. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.d.ts +0 -0
  155. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.js +0 -0
  156. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/index.js +0 -0
  157. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.d.ts +0 -0
  158. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.js +0 -0
  159. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/client/index.d.mts +0 -0
  160. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/client/index.mjs +0 -0
  161. /package/dist/esm/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.mjs → business/resources/businesses/client/requests/DeleteBusinessesRequest.mjs} +0 -0
  162. /package/dist/esm/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.mjs → business/resources/businesses/client/requests/GetBusinessesRequest.mjs} +0 -0
  163. /package/dist/esm/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.mjs → business/resources/businesses/client/requests/UpdateBusinessesRequest.mjs} +0 -0
  164. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/index.d.mts +0 -0
  165. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/index.mjs +0 -0
  166. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.d.mts +0 -0
  167. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.mjs +0 -0
  168. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.d.mts +0 -0
  169. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.mjs +0 -0
  170. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/index.mjs +0 -0
  171. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.d.mts +0 -0
  172. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.mjs +0 -0
@@ -1,9 +1,13 @@
1
- import type { BaseClientOptions } from "../../../../../../BaseClient.js";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
+ import * as core from "../../../../../../core/index.js";
4
+ import * as FiveOneEat from "../../../../../index.js";
3
5
  import { ConversationsClient } from "../resources/conversations/client/Client.js";
4
6
  import { MessagesClient } from "../resources/messages/client/Client.js";
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,8 +1,56 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
3
45
  Object.defineProperty(exports, "__esModule", { value: true });
4
46
  exports.MessagingClient = void 0;
5
47
  const BaseClient_js_1 = require("../../../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../../../errors/index.js"));
53
+ const FiveOneEat = __importStar(require("../../../../../index.js"));
6
54
  const Client_js_1 = require("../resources/conversations/client/Client.js");
7
55
  const Client_js_2 = require("../resources/messages/client/Client.js");
8
56
  class MessagingClient {
@@ -17,5 +65,64 @@ class MessagingClient {
17
65
  var _a;
18
66
  return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_2.MessagesClient(this._options)));
19
67
  }
68
+ /**
69
+ * This endpoint is used by the business companion mobile app to authenticate with
70
+ * Pusher channels. It validates that the authenticated business user has
71
+ * permission to access the requested channel, scoped to their active business.
72
+ *
73
+ * @param {FiveOneEat.business.ChannelAuthMessagingRequest} request
74
+ * @param {MessagingClient.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link FiveOneEat.UnauthorizedError}
77
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
78
+ *
79
+ * @example
80
+ * await client.business.messaging.channelAuth({
81
+ * channel_name: "channel_name",
82
+ * socket_id: "socket_id"
83
+ * })
84
+ */
85
+ channelAuth(request, requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__channelAuth(request, requestOptions));
87
+ }
88
+ __channelAuth(request, requestOptions) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
91
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
92
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
93
+ const _response = yield core.fetcher({
94
+ 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"),
95
+ method: "POST",
96
+ headers: _headers,
97
+ contentType: "application/json",
98
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
99
+ requestType: "json",
100
+ body: request,
101
+ 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,
102
+ 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,
103
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
105
+ logging: this._options.logging,
106
+ });
107
+ if (_response.ok) {
108
+ return { data: _response.body, rawResponse: _response.rawResponse };
109
+ }
110
+ if (_response.error.reason === "status-code") {
111
+ switch (_response.error.statusCode) {
112
+ case 401:
113
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
114
+ case 422:
115
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
116
+ default:
117
+ throw new errors.FiveOneEatError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.body,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ }
123
+ }
124
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/business/channels/auth");
125
+ });
126
+ }
20
127
  }
21
128
  exports.MessagingClient = MessagingClient;
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.js";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -5,7 +5,7 @@
5
5
  * socket_id: "socket_id"
6
6
  * }
7
7
  */
8
- export interface BusinessChannelAuthAuthenticateRequest {
8
+ export interface ChannelAuthMessagingRequest {
9
9
  /** string */
10
10
  channel_name: string;
11
11
  /** string */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { ChannelAuthMessagingRequest } from "./ChannelAuthMessagingRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,47 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
+ import * as core from "../../../../../../core/index.js";
4
+ import * as FiveOneEat from "../../../../../index.js";
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
+ }
@@ -43,15 +43,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.BusinessPushNotificationsClient = void 0;
47
- const BaseClient_js_1 = require("../../../../BaseClient.js");
48
- const headers_js_1 = require("../../../../core/headers.js");
49
- const core = __importStar(require("../../../../core/index.js"));
50
- const environments = __importStar(require("../../../../environments.js"));
51
- const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
- const errors = __importStar(require("../../../../errors/index.js"));
53
- const FiveOneEat = __importStar(require("../../../index.js"));
54
- class BusinessPushNotificationsClient {
46
+ exports.PushNotificationsClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../../../errors/index.js"));
53
+ const FiveOneEat = __importStar(require("../../../../../index.js"));
54
+ class PushNotificationsClient {
55
55
  constructor(options = {}) {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
@@ -60,21 +60,21 @@ class BusinessPushNotificationsClient {
60
60
  * device. If a `device_id` is provided, an existing registration for that device
61
61
  * is updated.
62
62
  *
63
- * @param {FiveOneEat.StorePushTokenRequest} request
64
- * @param {BusinessPushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
63
+ * @param {FiveOneEat.business.StorePushTokenRequest} request
64
+ * @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
65
65
  *
66
66
  * @throws {@link FiveOneEat.UnauthorizedError}
67
67
  * @throws {@link FiveOneEat.UnprocessableEntityError}
68
68
  *
69
69
  * @example
70
- * await client.businessPushNotifications.registerBusinessPushToken({
70
+ * await client.business.pushNotifications.register({
71
71
  * token: "token"
72
72
  * })
73
73
  */
74
- registerBusinessPushToken(request, requestOptions) {
75
- return core.HttpResponsePromise.fromPromise(this.__registerBusinessPushToken(request, requestOptions));
74
+ register(request, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__register(request, requestOptions));
76
76
  }
77
- __registerBusinessPushToken(request, requestOptions) {
77
+ __register(request, requestOptions) {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
80
80
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -119,21 +119,21 @@ class BusinessPushNotificationsClient {
119
119
  /**
120
120
  * Delete the authenticated business user's Expo push token registration.
121
121
  *
122
- * @param {FiveOneEat.UnregisterBusinessPushTokenRequest} request
123
- * @param {BusinessPushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
122
+ * @param {FiveOneEat.business.UnregisterPushNotificationsRequest} request
123
+ * @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
124
124
  *
125
125
  * @throws {@link FiveOneEat.UnauthorizedError}
126
126
  * @throws {@link FiveOneEat.UnprocessableEntityError}
127
127
  *
128
128
  * @example
129
- * await client.businessPushNotifications.unregisterBusinessPushToken({
129
+ * await client.business.pushNotifications.unregister({
130
130
  * token: "token"
131
131
  * })
132
132
  */
133
- unregisterBusinessPushToken(request, requestOptions) {
134
- return core.HttpResponsePromise.fromPromise(this.__unregisterBusinessPushToken(request, requestOptions));
133
+ unregister(request, requestOptions) {
134
+ return core.HttpResponsePromise.fromPromise(this.__unregister(request, requestOptions));
135
135
  }
136
- __unregisterBusinessPushToken(request, requestOptions) {
136
+ __unregister(request, requestOptions) {
137
137
  return __awaiter(this, void 0, void 0, function* () {
138
138
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
139
139
  const { token } = request;
@@ -179,4 +179,4 @@ class BusinessPushNotificationsClient {
179
179
  });
180
180
  }
181
181
  }
182
- exports.BusinessPushNotificationsClient = BusinessPushNotificationsClient;
182
+ exports.PushNotificationsClient = PushNotificationsClient;
@@ -4,6 +4,6 @@
4
4
  * token: "token"
5
5
  * }
6
6
  */
7
- export interface UnregisterBusinessPushTokenRequest {
7
+ export interface UnregisterPushNotificationsRequest {
8
8
  token: string;
9
9
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { StorePushTokenRequest } from "./StorePushTokenRequest.js";
2
+ export type { UnregisterPushNotificationsRequest } from "./UnregisterPushNotificationsRequest.js";
@@ -0,0 +1,2 @@
1
+ export { PushNotificationsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PushNotificationsClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "PushNotificationsClient", { enumerable: true, get: function () { return Client_js_1.PushNotificationsClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -1,4 +1,4 @@
1
- export interface RegisterBusinessPushTokenResponse {
1
+ export interface RegisterPushNotificationsResponse {
2
2
  id: string;
3
3
  token: string;
4
4
  device_id: string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./RegisterPushNotificationsResponse.js";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./RegisterBusinessPushTokenResponse.js"), exports);
17
+ __exportStar(require("./RegisterPushNotificationsResponse.js"), exports);
@@ -1,9 +1,4 @@
1
1
  export * as business from "./business/index.js";
2
- export * from "./businessMessaging/client/requests/index.js";
3
- export * as businessMessaging from "./businessMessaging/index.js";
4
- export * from "./businessPushNotifications/client/requests/index.js";
5
- export * as businessPushNotifications from "./businessPushNotifications/index.js";
6
- export * from "./businessPushNotifications/types/index.js";
7
2
  export * from "./customer/client/requests/index.js";
8
3
  export * as customer from "./customer/index.js";
9
4
  export * from "./customer/types/index.js";
@@ -36,13 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerEvents = exports.customer = exports.businessPushNotifications = exports.businessMessaging = exports.business = void 0;
39
+ exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerEvents = exports.customer = exports.business = void 0;
40
40
  exports.business = __importStar(require("./business/index.js"));
41
- __exportStar(require("./businessMessaging/client/requests/index.js"), exports);
42
- exports.businessMessaging = __importStar(require("./businessMessaging/index.js"));
43
- __exportStar(require("./businessPushNotifications/client/requests/index.js"), exports);
44
- exports.businessPushNotifications = __importStar(require("./businessPushNotifications/index.js"));
45
- __exportStar(require("./businessPushNotifications/types/index.js"), exports);
46
41
  __exportStar(require("./customer/client/requests/index.js"), exports);
47
42
  exports.customer = __importStar(require("./customer/index.js"));
48
43
  __exportStar(require("./customer/types/index.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.21";
1
+ export declare const SDK_VERSION = "0.0.23";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.21";
4
+ exports.SDK_VERSION = "0.0.23";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@51eat/sdk",
9
- "X-Fern-SDK-Version": "0.0.21",
10
- "User-Agent": "@51eat/sdk/0.0.21",
9
+ "X-Fern-SDK-Version": "0.0.23",
10
+ "User-Agent": "@51eat/sdk/0.0.23",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,6 +1,4 @@
1
1
  import { BusinessClient } from "./api/resources/business/client/Client.mjs";
2
- import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
3
- import { BusinessPushNotificationsClient } from "./api/resources/businessPushNotifications/client/Client.mjs";
4
2
  import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
5
3
  import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
6
4
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
@@ -16,8 +14,6 @@ export declare namespace FiveOneEatClient {
16
14
  }
17
15
  export declare class FiveOneEatClient {
18
16
  protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
19
- protected _businessMessaging: BusinessMessagingClient | undefined;
20
- protected _businessPushNotifications: BusinessPushNotificationsClient | undefined;
21
17
  protected _customerEvents: CustomerEventsClient | undefined;
22
18
  protected _customerMyAccount: CustomerMyAccountClient | undefined;
23
19
  protected _customer: CustomerClient | undefined;
@@ -25,8 +21,6 @@ export declare class FiveOneEatClient {
25
21
  protected _serveAd: ServeAdClient | undefined;
26
22
  protected _business: BusinessClient | undefined;
27
23
  constructor(options?: FiveOneEatClient.Options);
28
- get businessMessaging(): BusinessMessagingClient;
29
- get businessPushNotifications(): BusinessPushNotificationsClient;
30
24
  get customerEvents(): CustomerEventsClient;
31
25
  get customerMyAccount(): CustomerMyAccountClient;
32
26
  get customer(): CustomerClient;
@@ -9,8 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  import { BusinessClient } from "./api/resources/business/client/Client.mjs";
12
- import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
13
- import { BusinessPushNotificationsClient } from "./api/resources/businessPushNotifications/client/Client.mjs";
14
12
  import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
15
13
  import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
16
14
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
@@ -22,14 +20,6 @@ export class FiveOneEatClient {
22
20
  constructor(options = {}) {
23
21
  this._options = normalizeClientOptionsWithAuth(options);
24
22
  }
25
- get businessMessaging() {
26
- var _a;
27
- return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new BusinessMessagingClient(this._options)));
28
- }
29
- get businessPushNotifications() {
30
- var _a;
31
- return ((_a = this._businessPushNotifications) !== null && _a !== void 0 ? _a : (this._businessPushNotifications = new BusinessPushNotificationsClient(this._options)));
32
- }
33
23
  get customerEvents() {
34
24
  var _a;
35
25
  return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new CustomerEventsClient(this._options)));
@@ -2,10 +2,15 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
3
  import { AuthClient } from "../resources/auth/client/Client.mjs";
4
4
  import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
5
+ import { BusinessesClient } from "../resources/businesses/client/Client.mjs";
6
+ import { CategoriesClient } from "../resources/categories/client/Client.mjs";
7
+ import { CertificationsClient } from "../resources/certifications/client/Client.mjs";
8
+ import { CuisinesClient } from "../resources/cuisines/client/Client.mjs";
5
9
  import { GalleryClient } from "../resources/gallery/client/Client.mjs";
6
10
  import { MenusClient } from "../resources/menus/client/Client.mjs";
7
11
  import { MessagingClient } from "../resources/messaging/client/Client.mjs";
8
12
  import { ProfileClient } from "../resources/profile/client/Client.mjs";
13
+ import { PushNotificationsClient } from "../resources/pushNotifications/client/Client.mjs";
9
14
  export declare namespace BusinessClient {
10
15
  type Options = BaseClientOptions;
11
16
  }
@@ -15,13 +20,23 @@ export declare class BusinessClient {
15
20
  protected _bulletins: BulletinsClient | undefined;
16
21
  protected _gallery: GalleryClient | undefined;
17
22
  protected _menus: MenusClient | undefined;
18
- protected _profile: ProfileClient | undefined;
19
23
  protected _messaging: MessagingClient | undefined;
24
+ protected _profile: ProfileClient | undefined;
25
+ protected _pushNotifications: PushNotificationsClient | undefined;
26
+ protected _businesses: BusinessesClient | undefined;
27
+ protected _cuisines: CuisinesClient | undefined;
28
+ protected _certifications: CertificationsClient | undefined;
29
+ protected _categories: CategoriesClient | undefined;
20
30
  constructor(options?: BusinessClient.Options);
21
31
  get auth(): AuthClient;
22
32
  get bulletins(): BulletinsClient;
23
33
  get gallery(): GalleryClient;
24
34
  get menus(): MenusClient;
25
- get profile(): ProfileClient;
26
35
  get messaging(): MessagingClient;
36
+ get profile(): ProfileClient;
37
+ get pushNotifications(): PushNotificationsClient;
38
+ get businesses(): BusinessesClient;
39
+ get cuisines(): CuisinesClient;
40
+ get certifications(): CertificationsClient;
41
+ get categories(): CategoriesClient;
27
42
  }
@@ -2,10 +2,15 @@
2
2
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
3
  import { AuthClient } from "../resources/auth/client/Client.mjs";
4
4
  import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
5
+ import { BusinessesClient } from "../resources/businesses/client/Client.mjs";
6
+ import { CategoriesClient } from "../resources/categories/client/Client.mjs";
7
+ import { CertificationsClient } from "../resources/certifications/client/Client.mjs";
8
+ import { CuisinesClient } from "../resources/cuisines/client/Client.mjs";
5
9
  import { GalleryClient } from "../resources/gallery/client/Client.mjs";
6
10
  import { MenusClient } from "../resources/menus/client/Client.mjs";
7
11
  import { MessagingClient } from "../resources/messaging/client/Client.mjs";
8
12
  import { ProfileClient } from "../resources/profile/client/Client.mjs";
13
+ import { PushNotificationsClient } from "../resources/pushNotifications/client/Client.mjs";
9
14
  export class BusinessClient {
10
15
  constructor(options = {}) {
11
16
  this._options = normalizeClientOptionsWithAuth(options);
@@ -26,12 +31,32 @@ export class BusinessClient {
26
31
  var _a;
27
32
  return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new MenusClient(this._options)));
28
33
  }
34
+ get messaging() {
35
+ var _a;
36
+ return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new MessagingClient(this._options)));
37
+ }
29
38
  get profile() {
30
39
  var _a;
31
40
  return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new ProfileClient(this._options)));
32
41
  }
33
- get messaging() {
42
+ get pushNotifications() {
34
43
  var _a;
35
- return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new MessagingClient(this._options)));
44
+ return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new PushNotificationsClient(this._options)));
45
+ }
46
+ get businesses() {
47
+ var _a;
48
+ return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
49
+ }
50
+ get cuisines() {
51
+ var _a;
52
+ return ((_a = this._cuisines) !== null && _a !== void 0 ? _a : (this._cuisines = new CuisinesClient(this._options)));
53
+ }
54
+ get certifications() {
55
+ var _a;
56
+ return ((_a = this._certifications) !== null && _a !== void 0 ? _a : (this._certifications = new CertificationsClient(this._options)));
57
+ }
58
+ get categories() {
59
+ var _a;
60
+ return ((_a = this._categories) !== null && _a !== void 0 ? _a : (this._categories = new CategoriesClient(this._options)));
36
61
  }
37
62
  }