@51eat/sdk 0.0.28 → 0.0.30

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 (148) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/business/client/Client.js +31 -26
  4. package/dist/cjs/api/resources/business/resources/allergens/client/Client.d.ts +26 -0
  5. package/dist/cjs/api/resources/business/resources/allergens/client/Client.js +110 -0
  6. package/dist/cjs/api/resources/business/resources/allergens/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/business/resources/allergens/client/index.js +2 -0
  8. package/dist/cjs/api/resources/business/resources/allergens/exports.d.ts +2 -0
  9. package/dist/cjs/api/resources/business/resources/allergens/exports.js +21 -0
  10. package/dist/cjs/api/resources/business/resources/allergens/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/business/resources/allergens/index.js +18 -0
  12. package/dist/cjs/api/resources/business/resources/allergens/types/ListAllergensResponse.d.ts +4 -0
  13. package/dist/cjs/api/resources/business/resources/allergens/types/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/business/resources/allergens/types/index.js +17 -0
  15. package/dist/cjs/api/resources/business/resources/bulletins/client/Client.d.ts +3 -0
  16. package/dist/cjs/api/resources/business/resources/bulletins/client/Client.js +5 -0
  17. package/dist/cjs/api/resources/business/resources/bulletins/exports.d.ts +1 -0
  18. package/dist/cjs/api/resources/business/resources/bulletins/exports.js +1 -0
  19. package/dist/cjs/api/resources/business/resources/bulletins/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/business/resources/bulletins/index.js +1 -0
  21. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.d.ts +49 -0
  22. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.js +208 -0
  23. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.js +17 -0
  25. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +12 -0
  26. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.js +3 -0
  27. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.d.ts +13 -0
  28. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.js +3 -0
  29. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/index.js +2 -0
  31. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.d.ts +2 -0
  32. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js +21 -0
  33. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/index.js +18 -0
  35. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +4 -0
  36. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.js +3 -0
  37. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +4 -0
  38. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.js +3 -0
  39. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/index.d.ts +2 -0
  40. package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/index.js +18 -0
  41. package/dist/cjs/api/resources/business/resources/bulletins/resources/index.d.ts +3 -0
  42. package/dist/cjs/api/resources/business/resources/bulletins/resources/index.js +42 -0
  43. package/dist/cjs/api/resources/business/resources/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/business/resources/index.js +6 -4
  45. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +2 -2
  46. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +1 -1
  47. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/{StoreBulletinCommentRequest.d.ts → AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts} +2 -1
  48. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js +3 -0
  49. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +1 -1
  50. package/dist/cjs/api/resources/customer/resources/discovery/client/Client.d.ts +13 -0
  51. package/dist/cjs/api/resources/customer/resources/discovery/client/Client.js +51 -0
  52. package/dist/cjs/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.d.ts +4 -0
  53. package/dist/cjs/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.js +3 -0
  54. package/dist/cjs/api/resources/customer/resources/discovery/types/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/customer/resources/discovery/types/index.js +1 -0
  56. package/dist/cjs/api/types/BusinessAllergen.d.ts +8 -0
  57. package/dist/cjs/api/types/BusinessAllergen.js +3 -0
  58. package/dist/cjs/api/types/BusinessBulletinComment.d.ts +15 -0
  59. package/dist/cjs/api/types/BusinessBulletinComment.js +3 -0
  60. package/dist/cjs/api/types/BusinessBulletinCommentReply.d.ts +13 -0
  61. package/dist/cjs/api/types/BusinessBulletinCommentReply.js +3 -0
  62. package/dist/cjs/api/types/BusinessBulletinCommentResponse.d.ts +5 -0
  63. package/dist/cjs/api/types/BusinessBulletinCommentResponse.js +3 -0
  64. package/dist/cjs/api/types/CustomerBulletinCommentReply.d.ts +13 -0
  65. package/dist/cjs/api/types/CustomerBulletinCommentReply.js +3 -0
  66. package/dist/cjs/api/types/CustomerComment.d.ts +3 -0
  67. package/dist/cjs/api/types/CustomerDiscoveryAllergen.d.ts +8 -0
  68. package/dist/cjs/api/types/CustomerDiscoveryAllergen.js +3 -0
  69. package/dist/cjs/api/types/index.d.ts +6 -0
  70. package/dist/cjs/api/types/index.js +6 -0
  71. package/dist/cjs/version.d.ts +1 -1
  72. package/dist/cjs/version.js +1 -1
  73. package/dist/esm/BaseClient.mjs +2 -2
  74. package/dist/esm/api/resources/business/client/Client.d.mts +3 -0
  75. package/dist/esm/api/resources/business/client/Client.mjs +5 -0
  76. package/dist/esm/api/resources/business/resources/allergens/client/Client.d.mts +26 -0
  77. package/dist/esm/api/resources/business/resources/allergens/client/Client.mjs +73 -0
  78. package/dist/esm/api/resources/business/resources/allergens/client/index.d.mts +1 -0
  79. package/dist/esm/api/resources/business/resources/allergens/client/index.mjs +1 -0
  80. package/dist/esm/api/resources/business/resources/allergens/exports.d.mts +2 -0
  81. package/dist/esm/api/resources/business/resources/allergens/exports.mjs +3 -0
  82. package/dist/esm/api/resources/business/resources/allergens/index.d.mts +2 -0
  83. package/dist/esm/api/resources/business/resources/allergens/index.mjs +2 -0
  84. package/dist/esm/api/resources/business/resources/allergens/types/ListAllergensResponse.d.mts +4 -0
  85. package/dist/esm/api/resources/business/resources/allergens/types/index.d.mts +1 -0
  86. package/dist/esm/api/resources/business/resources/allergens/types/index.mjs +1 -0
  87. package/dist/esm/api/resources/business/resources/bulletins/client/Client.d.mts +3 -0
  88. package/dist/esm/api/resources/business/resources/bulletins/client/Client.mjs +5 -0
  89. package/dist/esm/api/resources/business/resources/bulletins/exports.d.mts +1 -0
  90. package/dist/esm/api/resources/business/resources/bulletins/exports.mjs +1 -0
  91. package/dist/esm/api/resources/business/resources/bulletins/index.d.mts +1 -0
  92. package/dist/esm/api/resources/business/resources/bulletins/index.mjs +1 -0
  93. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.d.mts +49 -0
  94. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.mjs +171 -0
  95. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.d.mts +1 -0
  96. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.mjs +1 -0
  97. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +12 -0
  98. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.mjs +2 -0
  99. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.d.mts +13 -0
  100. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.mjs +2 -0
  101. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -0
  102. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/index.mjs +1 -0
  103. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.d.mts +2 -0
  104. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.mjs +3 -0
  105. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/index.d.mts +2 -0
  106. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/index.mjs +2 -0
  107. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +4 -0
  108. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.mjs +2 -0
  109. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +4 -0
  110. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.mjs +2 -0
  111. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/index.d.mts +2 -0
  112. package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/index.mjs +2 -0
  113. package/dist/esm/api/resources/business/resources/bulletins/resources/index.d.mts +3 -0
  114. package/dist/esm/api/resources/business/resources/bulletins/resources/index.mjs +3 -0
  115. package/dist/esm/api/resources/business/resources/index.d.mts +2 -0
  116. package/dist/esm/api/resources/business/resources/index.mjs +2 -0
  117. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +2 -2
  118. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +1 -1
  119. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/{StoreBulletinCommentRequest.d.mts → AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts} +2 -1
  120. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs +2 -0
  121. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +1 -1
  122. package/dist/esm/api/resources/customer/resources/discovery/client/Client.d.mts +13 -0
  123. package/dist/esm/api/resources/customer/resources/discovery/client/Client.mjs +51 -0
  124. package/dist/esm/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.d.mts +4 -0
  125. package/dist/esm/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.mjs +2 -0
  126. package/dist/esm/api/resources/customer/resources/discovery/types/index.d.mts +1 -0
  127. package/dist/esm/api/resources/customer/resources/discovery/types/index.mjs +1 -0
  128. package/dist/esm/api/types/BusinessAllergen.d.mts +8 -0
  129. package/dist/esm/api/types/BusinessAllergen.mjs +2 -0
  130. package/dist/esm/api/types/BusinessBulletinComment.d.mts +15 -0
  131. package/dist/esm/api/types/BusinessBulletinComment.mjs +2 -0
  132. package/dist/esm/api/types/BusinessBulletinCommentReply.d.mts +13 -0
  133. package/dist/esm/api/types/BusinessBulletinCommentReply.mjs +2 -0
  134. package/dist/esm/api/types/BusinessBulletinCommentResponse.d.mts +5 -0
  135. package/dist/esm/api/types/BusinessBulletinCommentResponse.mjs +2 -0
  136. package/dist/esm/api/types/CustomerBulletinCommentReply.d.mts +13 -0
  137. package/dist/esm/api/types/CustomerBulletinCommentReply.mjs +2 -0
  138. package/dist/esm/api/types/CustomerComment.d.mts +3 -0
  139. package/dist/esm/api/types/CustomerDiscoveryAllergen.d.mts +8 -0
  140. package/dist/esm/api/types/CustomerDiscoveryAllergen.mjs +2 -0
  141. package/dist/esm/api/types/index.d.mts +6 -0
  142. package/dist/esm/api/types/index.mjs +6 -0
  143. package/dist/esm/version.d.mts +1 -1
  144. package/dist/esm/version.mjs +1 -1
  145. package/package.json +23 -1
  146. package/reference.md +233 -1
  147. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.js → business/resources/allergens/types/ListAllergensResponse.js} +0 -0
  148. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.mjs → business/resources/allergens/types/ListAllergensResponse.mjs} +0 -0
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * bulletin: "bulletin"
5
+ * }
6
+ */
7
+ export interface ListCommentsRequest {
8
+ /** The bulletin ID */
9
+ bulletin: string;
10
+ page?: number | null;
11
+ per_page?: number | null;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * bulletin: "bulletin",
5
+ * body: "body"
6
+ * }
7
+ */
8
+ export interface StoreBulletinCommentRequest {
9
+ /** The bulletin ID */
10
+ bulletin: string;
11
+ body: string;
12
+ parent_id?: string | null;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,2 @@
1
+ export type { ListCommentsRequest } from "./ListCommentsRequest.mjs";
2
+ export type { StoreBulletinCommentRequest } from "./StoreBulletinCommentRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { CommentsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { CommentsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.mjs";
2
+ export interface CreateCommentsResponse {
3
+ data: FiveOneEat.BusinessBulletinComment;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.mjs";
2
+ export interface ListCommentsResponse {
3
+ data: FiveOneEat.BusinessBulletinCommentResponse;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./CreateCommentsResponse.mjs";
2
+ export * from "./ListCommentsResponse.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./CreateCommentsResponse.mjs";
2
+ export * from "./ListCommentsResponse.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./comments/client/requests/index.mjs";
2
+ export * as comments from "./comments/index.mjs";
3
+ export * from "./comments/types/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./comments/client/requests/index.mjs";
2
+ export * as comments from "./comments/index.mjs";
3
+ export * from "./comments/types/index.mjs";
@@ -1,3 +1,5 @@
1
+ export * as allergens from "./allergens/index.mjs";
2
+ export * from "./allergens/types/index.mjs";
1
3
  export * from "./auth/client/requests/index.mjs";
2
4
  export * as auth from "./auth/index.mjs";
3
5
  export * from "./auth/types/index.mjs";
@@ -1,3 +1,5 @@
1
+ export * as allergens from "./allergens/index.mjs";
2
+ export * from "./allergens/types/index.mjs";
1
3
  export * from "./auth/client/requests/index.mjs";
2
4
  export * as auth from "./auth/index.mjs";
3
5
  export * from "./auth/types/index.mjs";
@@ -31,7 +31,7 @@ export declare class CommentsClient {
31
31
  /**
32
32
  * Post a comment on a business bulletin. Requires authentication.
33
33
  *
34
- * @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentRequest} request
34
+ * @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
35
35
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @throws {@link FiveOneEat.UnauthorizedError}
@@ -45,6 +45,6 @@ export declare class CommentsClient {
45
45
  * body: "body"
46
46
  * })
47
47
  */
48
- create(request: FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.CreateCommentsResponse>;
48
+ create(request: FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.CreateCommentsResponse>;
49
49
  private __create;
50
50
  }
@@ -103,7 +103,7 @@ export class CommentsClient {
103
103
  /**
104
104
  * Post a comment on a business bulletin. Requires authentication.
105
105
  *
106
- * @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentRequest} request
106
+ * @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
107
107
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
108
108
  *
109
109
  * @throws {@link FiveOneEat.UnauthorizedError}
@@ -6,10 +6,11 @@
6
6
  * body: "body"
7
7
  * }
8
8
  */
9
- export interface StoreBulletinCommentRequest {
9
+ export interface AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest {
10
10
  /** The business handle */
11
11
  handle: string;
12
12
  /** The bulletin ID */
13
13
  bulletin: string;
14
14
  body: string;
15
+ parent_id?: string | null;
15
16
  }
@@ -1,2 +1,2 @@
1
+ export type { AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest } from "./AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs";
1
2
  export type { ListCommentsRequest } from "./ListCommentsRequest.mjs";
2
- export type { StoreBulletinCommentRequest } from "./StoreBulletinCommentRequest.mjs";
@@ -81,6 +81,19 @@ export declare class DiscoveryClient {
81
81
  */
82
82
  certifications(requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CertificationsDiscoveryResponse>;
83
83
  private __certifications;
84
+ /**
85
+ * Retrieve a list of all allergens, ordered alphabetically, for use in
86
+ * filters, labels, and other customer-facing display.
87
+ *
88
+ * @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
89
+ *
90
+ * @throws {@link FiveOneEat.UnauthorizedError}
91
+ *
92
+ * @example
93
+ * await client.customer.discovery.allergens()
94
+ */
95
+ allergens(requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.AllergensDiscoveryResponse>;
96
+ private __allergens;
84
97
  /**
85
98
  * Retrieve businesses for a specific category with pagination support.
86
99
  * Results are optimized for list display.
@@ -289,6 +289,57 @@ export class DiscoveryClient {
289
289
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/discovery/certifications");
290
290
  });
291
291
  }
292
+ /**
293
+ * Retrieve a list of all allergens, ordered alphabetically, for use in
294
+ * filters, labels, and other customer-facing display.
295
+ *
296
+ * @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
297
+ *
298
+ * @throws {@link FiveOneEat.UnauthorizedError}
299
+ *
300
+ * @example
301
+ * await client.customer.discovery.allergens()
302
+ */
303
+ allergens(requestOptions) {
304
+ return core.HttpResponsePromise.fromPromise(this.__allergens(requestOptions));
305
+ }
306
+ __allergens(requestOptions) {
307
+ return __awaiter(this, void 0, void 0, function* () {
308
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
309
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
310
+ 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);
311
+ const _response = yield core.fetcher({
312
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "customer/discovery/allergens"),
313
+ method: "GET",
314
+ headers: _headers,
315
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
316
+ 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,
317
+ 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,
318
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
319
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
320
+ logging: this._options.logging,
321
+ });
322
+ if (_response.ok) {
323
+ return {
324
+ data: _response.body,
325
+ rawResponse: _response.rawResponse,
326
+ };
327
+ }
328
+ if (_response.error.reason === "status-code") {
329
+ switch (_response.error.statusCode) {
330
+ case 401:
331
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
332
+ default:
333
+ throw new errors.FiveOneEatError({
334
+ statusCode: _response.error.statusCode,
335
+ body: _response.error.body,
336
+ rawResponse: _response.rawResponse,
337
+ });
338
+ }
339
+ }
340
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/discovery/allergens");
341
+ });
342
+ }
292
343
  /**
293
344
  * Retrieve businesses for a specific category with pagination support.
294
345
  * Results are optimized for list display.
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface AllergensDiscoveryResponse {
3
+ data: FiveOneEat.CustomerDiscoveryAllergen[];
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from "./AllergensDiscoveryResponse.mjs";
1
2
  export * from "./CategoriesDiscoveryResponse.mjs";
2
3
  export * from "./CategoryBusinessesDiscoveryResponse.mjs";
3
4
  export * from "./CertificationsDiscoveryResponse.mjs";
@@ -1,3 +1,4 @@
1
+ export * from "./AllergensDiscoveryResponse.mjs";
1
2
  export * from "./CategoriesDiscoveryResponse.mjs";
2
3
  export * from "./CategoryBusinessesDiscoveryResponse.mjs";
3
4
  export * from "./CertificationsDiscoveryResponse.mjs";
@@ -0,0 +1,8 @@
1
+ export interface BusinessAllergen {
2
+ id: string;
3
+ name: string;
4
+ slug: string;
5
+ icon: string | null;
6
+ description: string | null;
7
+ color: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ import type * as FiveOneEat from "../index.mjs";
2
+ export interface BusinessBulletinComment {
3
+ id: string;
4
+ parent_id: string;
5
+ body: string;
6
+ user: BusinessBulletinComment.User;
7
+ created_at: string;
8
+ replies?: FiveOneEat.BusinessBulletinCommentReply[] | undefined;
9
+ }
10
+ export declare namespace BusinessBulletinComment {
11
+ interface User {
12
+ id: string;
13
+ name: string;
14
+ }
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface BusinessBulletinCommentReply {
2
+ id: string;
3
+ parent_id: string;
4
+ body: string;
5
+ user: BusinessBulletinCommentReply.User;
6
+ created_at: string;
7
+ }
8
+ export declare namespace BusinessBulletinCommentReply {
9
+ interface User {
10
+ id: string;
11
+ name: string;
12
+ }
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as FiveOneEat from "../index.mjs";
2
+ export interface BusinessBulletinCommentResponse {
3
+ comments: FiveOneEat.BusinessBulletinComment[];
4
+ pagination: FiveOneEat.PaginationResource;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface CustomerBulletinCommentReply {
2
+ id: string;
3
+ parent_id: string;
4
+ body: string;
5
+ user: CustomerBulletinCommentReply.User;
6
+ created_at: string;
7
+ }
8
+ export declare namespace CustomerBulletinCommentReply {
9
+ interface User {
10
+ id: string;
11
+ name: string;
12
+ }
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,8 +1,11 @@
1
+ import type * as FiveOneEat from "../index.mjs";
1
2
  export interface CustomerComment {
2
3
  id: string;
4
+ parent_id: string | null;
3
5
  body: string;
4
6
  user: CustomerComment.User;
5
7
  created_at: string | null;
8
+ replies?: FiveOneEat.CustomerBulletinCommentReply[] | undefined;
6
9
  }
7
10
  export declare namespace CustomerComment {
8
11
  interface User {
@@ -0,0 +1,8 @@
1
+ export interface CustomerDiscoveryAllergen {
2
+ id: string;
3
+ name: string;
4
+ slug: string;
5
+ icon: string | null;
6
+ description: string | null;
7
+ color: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -20,7 +20,11 @@ export * from "./BardProductSetValues.mjs";
20
20
  export * from "./BardSetNode.mjs";
21
21
  export * from "./BardSetValues.mjs";
22
22
  export * from "./BardTextNode.mjs";
23
+ export * from "./BusinessAllergen.mjs";
23
24
  export * from "./BusinessBulletin.mjs";
25
+ export * from "./BusinessBulletinComment.mjs";
26
+ export * from "./BusinessBulletinCommentReply.mjs";
27
+ export * from "./BusinessBulletinCommentResponse.mjs";
24
28
  export * from "./BusinessCategory.mjs";
25
29
  export * from "./BusinessCertification.mjs";
26
30
  export * from "./BusinessConversation.mjs";
@@ -50,10 +54,12 @@ export * from "./ConflictErrorBody.mjs";
50
54
  export * from "./Conversation.mjs";
51
55
  export * from "./Cuisine.mjs";
52
56
  export * from "./CustomerBulletin.mjs";
57
+ export * from "./CustomerBulletinCommentReply.mjs";
53
58
  export * from "./CustomerBulletinResponse.mjs";
54
59
  export * from "./CustomerBusinessProfile.mjs";
55
60
  export * from "./CustomerComment.mjs";
56
61
  export * from "./CustomerCommentResponse.mjs";
62
+ export * from "./CustomerDiscoveryAllergen.mjs";
57
63
  export * from "./CustomerEvent.mjs";
58
64
  export * from "./CustomerEventDetail.mjs";
59
65
  export * from "./CustomerEventResponse.mjs";
@@ -20,7 +20,11 @@ export * from "./BardProductSetValues.mjs";
20
20
  export * from "./BardSetNode.mjs";
21
21
  export * from "./BardSetValues.mjs";
22
22
  export * from "./BardTextNode.mjs";
23
+ export * from "./BusinessAllergen.mjs";
23
24
  export * from "./BusinessBulletin.mjs";
25
+ export * from "./BusinessBulletinComment.mjs";
26
+ export * from "./BusinessBulletinCommentReply.mjs";
27
+ export * from "./BusinessBulletinCommentResponse.mjs";
24
28
  export * from "./BusinessCategory.mjs";
25
29
  export * from "./BusinessCertification.mjs";
26
30
  export * from "./BusinessConversation.mjs";
@@ -50,10 +54,12 @@ export * from "./ConflictErrorBody.mjs";
50
54
  export * from "./Conversation.mjs";
51
55
  export * from "./Cuisine.mjs";
52
56
  export * from "./CustomerBulletin.mjs";
57
+ export * from "./CustomerBulletinCommentReply.mjs";
53
58
  export * from "./CustomerBulletinResponse.mjs";
54
59
  export * from "./CustomerBusinessProfile.mjs";
55
60
  export * from "./CustomerComment.mjs";
56
61
  export * from "./CustomerCommentResponse.mjs";
62
+ export * from "./CustomerDiscoveryAllergen.mjs";
57
63
  export * from "./CustomerEvent.mjs";
58
64
  export * from "./CustomerEventDetail.mjs";
59
65
  export * from "./CustomerEventResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.28";
1
+ export declare const SDK_VERSION = "0.0.30";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.28";
1
+ export const SDK_VERSION = "0.0.30";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -231,6 +231,17 @@
231
231
  },
232
232
  "default": "./dist/cjs/api/resources/business/resources/categories/exports.js"
233
233
  },
234
+ "./business/allergens": {
235
+ "import": {
236
+ "types": "./dist/esm/api/resources/business/resources/allergens/exports.d.mts",
237
+ "default": "./dist/esm/api/resources/business/resources/allergens/exports.mjs"
238
+ },
239
+ "require": {
240
+ "types": "./dist/cjs/api/resources/business/resources/allergens/exports.d.ts",
241
+ "default": "./dist/cjs/api/resources/business/resources/allergens/exports.js"
242
+ },
243
+ "default": "./dist/cjs/api/resources/business/resources/allergens/exports.js"
244
+ },
234
245
  "./business/auth/tokens": {
235
246
  "import": {
236
247
  "types": "./dist/esm/api/resources/business/resources/auth/resources/tokens/exports.d.mts",
@@ -242,6 +253,17 @@
242
253
  },
243
254
  "default": "./dist/cjs/api/resources/business/resources/auth/resources/tokens/exports.js"
244
255
  },
256
+ "./business/bulletins/comments": {
257
+ "import": {
258
+ "types": "./dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.d.mts",
259
+ "default": "./dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.mjs"
260
+ },
261
+ "require": {
262
+ "types": "./dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.d.ts",
263
+ "default": "./dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js"
264
+ },
265
+ "default": "./dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js"
266
+ },
245
267
  "./business/events/ticketTypes": {
246
268
  "import": {
247
269
  "types": "./dist/esm/api/resources/business/resources/events/resources/ticketTypes/exports.d.mts",