@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
package/reference.md CHANGED
@@ -3705,6 +3705,63 @@ await client.business.categories.list();
3705
3705
  </dl>
3706
3706
 
3707
3707
 
3708
+ </dd>
3709
+ </dl>
3710
+ </details>
3711
+
3712
+ ## Business Allergens
3713
+ <details><summary><code>client.business.allergens.<a href="/src/api/resources/business/resources/allergens/client/Client.ts">list</a>() -> FiveOneEat.ListAllergensResponse</code></summary>
3714
+ <dl>
3715
+ <dd>
3716
+
3717
+ #### 📝 Description
3718
+
3719
+ <dl>
3720
+ <dd>
3721
+
3722
+ <dl>
3723
+ <dd>
3724
+
3725
+ Retrieve a list of all allergens, ordered alphabetically. Use these UUIDs
3726
+ in the `allergens` array when creating or updating a menu item.
3727
+ </dd>
3728
+ </dl>
3729
+ </dd>
3730
+ </dl>
3731
+
3732
+ #### 🔌 Usage
3733
+
3734
+ <dl>
3735
+ <dd>
3736
+
3737
+ <dl>
3738
+ <dd>
3739
+
3740
+ ```typescript
3741
+ await client.business.allergens.list();
3742
+
3743
+ ```
3744
+ </dd>
3745
+ </dl>
3746
+ </dd>
3747
+ </dl>
3748
+
3749
+ #### ⚙️ Parameters
3750
+
3751
+ <dl>
3752
+ <dd>
3753
+
3754
+ <dl>
3755
+ <dd>
3756
+
3757
+ **requestOptions:** `AllergensClient.RequestOptions`
3758
+
3759
+ </dd>
3760
+ </dl>
3761
+ </dd>
3762
+ </dl>
3763
+
3764
+
3708
3765
  </dd>
3709
3766
  </dl>
3710
3767
  </details>
@@ -3826,6 +3883,125 @@ await client.business.auth.tokens.revoke({
3826
3883
  </dl>
3827
3884
 
3828
3885
 
3886
+ </dd>
3887
+ </dl>
3888
+ </details>
3889
+
3890
+ ## Business Bulletins Comments
3891
+ <details><summary><code>client.business.bulletins.comments.<a href="/src/api/resources/business/resources/bulletins/resources/comments/client/Client.ts">list</a>({ ...params }) -> FiveOneEat.ListCommentsResponse</code></summary>
3892
+ <dl>
3893
+ <dd>
3894
+
3895
+ #### 🔌 Usage
3896
+
3897
+ <dl>
3898
+ <dd>
3899
+
3900
+ <dl>
3901
+ <dd>
3902
+
3903
+ ```typescript
3904
+ await client.business.bulletins.comments.list({
3905
+ bulletin: "bulletin"
3906
+ });
3907
+
3908
+ ```
3909
+ </dd>
3910
+ </dl>
3911
+ </dd>
3912
+ </dl>
3913
+
3914
+ #### ⚙️ Parameters
3915
+
3916
+ <dl>
3917
+ <dd>
3918
+
3919
+ <dl>
3920
+ <dd>
3921
+
3922
+ **request:** `FiveOneEat.business.bulletins.ListCommentsRequest`
3923
+
3924
+ </dd>
3925
+ </dl>
3926
+
3927
+ <dl>
3928
+ <dd>
3929
+
3930
+ **requestOptions:** `CommentsClient.RequestOptions`
3931
+
3932
+ </dd>
3933
+ </dl>
3934
+ </dd>
3935
+ </dl>
3936
+
3937
+
3938
+ </dd>
3939
+ </dl>
3940
+ </details>
3941
+
3942
+ <details><summary><code>client.business.bulletins.comments.<a href="/src/api/resources/business/resources/bulletins/resources/comments/client/Client.ts">create</a>({ ...params }) -> FiveOneEat.CreateCommentsResponse</code></summary>
3943
+ <dl>
3944
+ <dd>
3945
+
3946
+ #### 📝 Description
3947
+
3948
+ <dl>
3949
+ <dd>
3950
+
3951
+ <dl>
3952
+ <dd>
3953
+
3954
+ Omit `parent_id` for a top-level comment. Set `parent_id` to a top-level
3955
+ comment's id to post a one-level reply (replies to replies are not allowed).
3956
+ </dd>
3957
+ </dl>
3958
+ </dd>
3959
+ </dl>
3960
+
3961
+ #### 🔌 Usage
3962
+
3963
+ <dl>
3964
+ <dd>
3965
+
3966
+ <dl>
3967
+ <dd>
3968
+
3969
+ ```typescript
3970
+ await client.business.bulletins.comments.create({
3971
+ bulletin: "bulletin",
3972
+ body: "body"
3973
+ });
3974
+
3975
+ ```
3976
+ </dd>
3977
+ </dl>
3978
+ </dd>
3979
+ </dl>
3980
+
3981
+ #### ⚙️ Parameters
3982
+
3983
+ <dl>
3984
+ <dd>
3985
+
3986
+ <dl>
3987
+ <dd>
3988
+
3989
+ **request:** `FiveOneEat.business.bulletins.StoreBulletinCommentRequest`
3990
+
3991
+ </dd>
3992
+ </dl>
3993
+
3994
+ <dl>
3995
+ <dd>
3996
+
3997
+ **requestOptions:** `CommentsClient.RequestOptions`
3998
+
3999
+ </dd>
4000
+ </dl>
4001
+ </dd>
4002
+ </dl>
4003
+
4004
+
3829
4005
  </dd>
3830
4006
  </dl>
3831
4007
  </details>
@@ -6838,6 +7014,62 @@ await client.customer.discovery.certifications();
6838
7014
  </dl>
6839
7015
 
6840
7016
 
7017
+ </dd>
7018
+ </dl>
7019
+ </details>
7020
+
7021
+ <details><summary><code>client.customer.discovery.<a href="/src/api/resources/customer/resources/discovery/client/Client.ts">allergens</a>() -> FiveOneEat.AllergensDiscoveryResponse</code></summary>
7022
+ <dl>
7023
+ <dd>
7024
+
7025
+ #### 📝 Description
7026
+
7027
+ <dl>
7028
+ <dd>
7029
+
7030
+ <dl>
7031
+ <dd>
7032
+
7033
+ Retrieve a list of all allergens, ordered alphabetically, for use in
7034
+ filters, labels, and other customer-facing display.
7035
+ </dd>
7036
+ </dl>
7037
+ </dd>
7038
+ </dl>
7039
+
7040
+ #### 🔌 Usage
7041
+
7042
+ <dl>
7043
+ <dd>
7044
+
7045
+ <dl>
7046
+ <dd>
7047
+
7048
+ ```typescript
7049
+ await client.customer.discovery.allergens();
7050
+
7051
+ ```
7052
+ </dd>
7053
+ </dl>
7054
+ </dd>
7055
+ </dl>
7056
+
7057
+ #### ⚙️ Parameters
7058
+
7059
+ <dl>
7060
+ <dd>
7061
+
7062
+ <dl>
7063
+ <dd>
7064
+
7065
+ **requestOptions:** `DiscoveryClient.RequestOptions`
7066
+
7067
+ </dd>
7068
+ </dl>
7069
+ </dd>
7070
+ </dl>
7071
+
7072
+
6841
7073
  </dd>
6842
7074
  </dl>
6843
7075
  </details>
@@ -7995,7 +8227,7 @@ await client.customer.businesses.bulletins.comments.create({
7995
8227
  <dl>
7996
8228
  <dd>
7997
8229
 
7998
- **request:** `FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentRequest`
8230
+ **request:** `FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest`
7999
8231
 
8000
8232
  </dd>
8001
8233
  </dl>