@51eat/sdk 0.0.40 → 0.0.42

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 (97) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +18 -8
  5. package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +27 -0
  6. package/dist/cjs/api/resources/businessMessaging/client/Client.js +124 -0
  7. package/dist/cjs/api/resources/businessMessaging/client/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/businessMessaging/client/index.js +17 -0
  9. package/dist/cjs/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.ts +14 -0
  10. package/dist/cjs/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.js +3 -0
  11. package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/businessMessaging/client/requests/index.js +2 -0
  13. package/dist/cjs/api/resources/businessMessaging/exports.d.ts +2 -0
  14. package/dist/cjs/api/resources/businessMessaging/exports.js +21 -0
  15. package/dist/cjs/api/resources/businessMessaging/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/businessMessaging/index.js +18 -0
  17. package/dist/cjs/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.ts +4 -0
  18. package/dist/cjs/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.js +3 -0
  19. package/dist/cjs/api/resources/businessMessaging/types/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/businessMessaging/types/index.js +17 -0
  21. package/dist/cjs/api/resources/customerMessaging/client/Client.d.ts +27 -0
  22. package/dist/cjs/api/resources/customerMessaging/client/Client.js +124 -0
  23. package/dist/cjs/api/resources/customerMessaging/client/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/customerMessaging/client/index.js +17 -0
  25. package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.ts +14 -0
  26. package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.js +3 -0
  27. package/dist/cjs/api/resources/customerMessaging/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/customerMessaging/client/requests/index.js +2 -0
  29. package/dist/cjs/api/resources/customerMessaging/exports.d.ts +2 -0
  30. package/dist/cjs/api/resources/customerMessaging/exports.js +21 -0
  31. package/dist/cjs/api/resources/customerMessaging/index.d.ts +2 -0
  32. package/dist/cjs/api/resources/customerMessaging/index.js +18 -0
  33. package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.ts +4 -0
  34. package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.js +3 -0
  35. package/dist/cjs/api/resources/customerMessaging/types/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/customerMessaging/types/index.js +17 -0
  37. package/dist/cjs/api/resources/index.d.ts +6 -0
  38. package/dist/cjs/api/resources/index.js +7 -1
  39. package/dist/cjs/api/types/BusinessTemporaryLocation.d.ts +10 -1
  40. package/dist/cjs/api/types/CustomerTemporaryLocation.d.ts +10 -1
  41. package/dist/cjs/api/types/ExploreEvent.d.ts +21 -0
  42. package/dist/cjs/api/types/ExploreEvent.js +3 -0
  43. package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
  44. package/dist/cjs/api/types/ExploreTemporaryLocation.d.ts +8 -1
  45. package/dist/cjs/api/types/index.d.ts +1 -0
  46. package/dist/cjs/api/types/index.js +1 -0
  47. package/dist/cjs/version.d.ts +1 -1
  48. package/dist/cjs/version.js +1 -1
  49. package/dist/esm/BaseClient.mjs +2 -2
  50. package/dist/esm/Client.d.mts +6 -0
  51. package/dist/esm/Client.mjs +10 -0
  52. package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +27 -0
  53. package/dist/esm/api/resources/businessMessaging/client/Client.mjs +87 -0
  54. package/dist/esm/api/resources/businessMessaging/client/index.d.mts +1 -0
  55. package/dist/esm/api/resources/businessMessaging/client/index.mjs +1 -0
  56. package/dist/esm/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.mts +14 -0
  57. package/dist/esm/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.mjs +2 -0
  58. package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +1 -0
  59. package/dist/esm/api/resources/businessMessaging/client/requests/index.mjs +1 -0
  60. package/dist/esm/api/resources/businessMessaging/exports.d.mts +2 -0
  61. package/dist/esm/api/resources/businessMessaging/exports.mjs +3 -0
  62. package/dist/esm/api/resources/businessMessaging/index.d.mts +2 -0
  63. package/dist/esm/api/resources/businessMessaging/index.mjs +2 -0
  64. package/dist/esm/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.mts +4 -0
  65. package/dist/esm/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.mjs +2 -0
  66. package/dist/esm/api/resources/businessMessaging/types/index.d.mts +1 -0
  67. package/dist/esm/api/resources/businessMessaging/types/index.mjs +1 -0
  68. package/dist/esm/api/resources/customerMessaging/client/Client.d.mts +27 -0
  69. package/dist/esm/api/resources/customerMessaging/client/Client.mjs +87 -0
  70. package/dist/esm/api/resources/customerMessaging/client/index.d.mts +1 -0
  71. package/dist/esm/api/resources/customerMessaging/client/index.mjs +1 -0
  72. package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.mts +14 -0
  73. package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.mjs +2 -0
  74. package/dist/esm/api/resources/customerMessaging/client/requests/index.d.mts +1 -0
  75. package/dist/esm/api/resources/customerMessaging/client/requests/index.mjs +1 -0
  76. package/dist/esm/api/resources/customerMessaging/exports.d.mts +2 -0
  77. package/dist/esm/api/resources/customerMessaging/exports.mjs +3 -0
  78. package/dist/esm/api/resources/customerMessaging/index.d.mts +2 -0
  79. package/dist/esm/api/resources/customerMessaging/index.mjs +2 -0
  80. package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.mts +4 -0
  81. package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.mjs +2 -0
  82. package/dist/esm/api/resources/customerMessaging/types/index.d.mts +1 -0
  83. package/dist/esm/api/resources/customerMessaging/types/index.mjs +1 -0
  84. package/dist/esm/api/resources/index.d.mts +6 -0
  85. package/dist/esm/api/resources/index.mjs +6 -0
  86. package/dist/esm/api/types/BusinessTemporaryLocation.d.mts +10 -1
  87. package/dist/esm/api/types/CustomerTemporaryLocation.d.mts +10 -1
  88. package/dist/esm/api/types/ExploreEvent.d.mts +21 -0
  89. package/dist/esm/api/types/ExploreEvent.mjs +2 -0
  90. package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
  91. package/dist/esm/api/types/ExploreTemporaryLocation.d.mts +8 -1
  92. package/dist/esm/api/types/index.d.mts +1 -0
  93. package/dist/esm/api/types/index.mjs +1 -0
  94. package/dist/esm/version.d.mts +1 -1
  95. package/dist/esm/version.mjs +1 -1
  96. package/package.json +23 -1
  97. package/reference.md +104 -0
@@ -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 SearchCustomerConversationsResponse {
3
+ data: FiveOneEat.Conversation[];
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./SearchCustomerConversationsResponse.mjs";
@@ -0,0 +1 @@
1
+ export * from "./SearchCustomerConversationsResponse.mjs";
@@ -1,7 +1,13 @@
1
1
  export * as business from "./business/index.mjs";
2
+ export * from "./businessMessaging/client/requests/index.mjs";
3
+ export * as businessMessaging from "./businessMessaging/index.mjs";
4
+ export * from "./businessMessaging/types/index.mjs";
2
5
  export * from "./customer/client/requests/index.mjs";
3
6
  export * as customer from "./customer/index.mjs";
4
7
  export * from "./customer/types/index.mjs";
8
+ export * from "./customerMessaging/client/requests/index.mjs";
9
+ export * as customerMessaging from "./customerMessaging/index.mjs";
10
+ export * from "./customerMessaging/types/index.mjs";
5
11
  export * from "./customerMyAccount/client/requests/index.mjs";
6
12
  export * as customerMyAccount from "./customerMyAccount/index.mjs";
7
13
  export * from "./customerMyAccount/types/index.mjs";
@@ -1,7 +1,13 @@
1
1
  export * as business from "./business/index.mjs";
2
+ export * from "./businessMessaging/client/requests/index.mjs";
3
+ export * as businessMessaging from "./businessMessaging/index.mjs";
4
+ export * from "./businessMessaging/types/index.mjs";
2
5
  export * from "./customer/client/requests/index.mjs";
3
6
  export * as customer from "./customer/index.mjs";
4
7
  export * from "./customer/types/index.mjs";
8
+ export * from "./customerMessaging/client/requests/index.mjs";
9
+ export * as customerMessaging from "./customerMessaging/index.mjs";
10
+ export * from "./customerMessaging/types/index.mjs";
5
11
  export * from "./customerMyAccount/client/requests/index.mjs";
6
12
  export * as customerMyAccount from "./customerMyAccount/index.mjs";
7
13
  export * from "./customerMyAccount/types/index.mjs";
@@ -9,10 +9,19 @@ export interface BusinessTemporaryLocation {
9
9
  country: string | null;
10
10
  latitude: number | null;
11
11
  longitude: number | null;
12
- hours: Record<string, unknown>;
12
+ hours: Record<string, BusinessTemporaryLocation.Hours.Value>;
13
13
  full_address: string;
14
14
  starts_at: string;
15
15
  ends_at: string;
16
16
  created_at: string | null;
17
17
  updated_at: string | null;
18
18
  }
19
+ export declare namespace BusinessTemporaryLocation {
20
+ namespace Hours {
21
+ interface Value {
22
+ isOpen: boolean;
23
+ openTime: string;
24
+ closeTime: string;
25
+ }
26
+ }
27
+ }
@@ -9,7 +9,16 @@ export interface CustomerTemporaryLocation {
9
9
  country: string | null;
10
10
  latitude: number | null;
11
11
  longitude: number | null;
12
- hours: Record<string, unknown>;
12
+ hours: Record<string, CustomerTemporaryLocation.Hours.Value>;
13
13
  starts_at: string;
14
14
  ends_at: string;
15
15
  }
16
+ export declare namespace CustomerTemporaryLocation {
17
+ namespace Hours {
18
+ interface Value {
19
+ isOpen: boolean;
20
+ openTime: string;
21
+ closeTime: string;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,21 @@
1
+ export interface ExploreEvent {
2
+ id: string;
3
+ title: string;
4
+ description: string | null;
5
+ location: string | null;
6
+ starts_at: string;
7
+ ends_at: string;
8
+ latitude: number | null;
9
+ longitude: number | null;
10
+ is_featured: boolean;
11
+ business?: ExploreEvent.Business | undefined;
12
+ }
13
+ export declare namespace ExploreEvent {
14
+ interface Business {
15
+ id: string;
16
+ name: string;
17
+ handle: string;
18
+ logo: string;
19
+ category: string;
20
+ }
21
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,6 +2,7 @@ import type * as FiveOneEat from "../index.mjs";
2
2
  export interface ExploreResponse {
3
3
  businesses: FiveOneEat.ExploreBusiness[];
4
4
  temporary_locations: FiveOneEat.ExploreTemporaryLocation[];
5
+ events: FiveOneEat.ExploreEvent[];
5
6
  bounds: ExploreResponse.Bounds;
6
7
  }
7
8
  export declare namespace ExploreResponse {
@@ -9,13 +9,20 @@ export interface ExploreTemporaryLocation {
9
9
  country: string | null;
10
10
  latitude: number | null;
11
11
  longitude: number | null;
12
- hours: Record<string, unknown>;
12
+ hours: Record<string, ExploreTemporaryLocation.Hours.Value>;
13
13
  full_address: string;
14
14
  starts_at: string;
15
15
  ends_at: string;
16
16
  business?: ExploreTemporaryLocation.Business | undefined;
17
17
  }
18
18
  export declare namespace ExploreTemporaryLocation {
19
+ namespace Hours {
20
+ interface Value {
21
+ isOpen: boolean;
22
+ openTime: string;
23
+ closeTime: string;
24
+ }
25
+ }
19
26
  interface Business {
20
27
  id: string;
21
28
  name: string;
@@ -108,6 +108,7 @@ export * from "./EventFeedItem.mjs";
108
108
  export * from "./EventFeedResponse.mjs";
109
109
  export * from "./EventSearchResult.mjs";
110
110
  export * from "./ExploreBusiness.mjs";
111
+ export * from "./ExploreEvent.mjs";
111
112
  export * from "./ExploreResponse.mjs";
112
113
  export * from "./ExploreTemporaryLocation.mjs";
113
114
  export * from "./FavoriteResponse.mjs";
@@ -108,6 +108,7 @@ export * from "./EventFeedItem.mjs";
108
108
  export * from "./EventFeedResponse.mjs";
109
109
  export * from "./EventSearchResult.mjs";
110
110
  export * from "./ExploreBusiness.mjs";
111
+ export * from "./ExploreEvent.mjs";
111
112
  export * from "./ExploreResponse.mjs";
112
113
  export * from "./ExploreTemporaryLocation.mjs";
113
114
  export * from "./FavoriteResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.40";
1
+ export declare const SDK_VERSION = "0.0.42";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.40";
1
+ export const SDK_VERSION = "0.0.42";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,6 +22,28 @@
22
22
  },
23
23
  "default": "./dist/cjs/index.js"
24
24
  },
25
+ "./businessMessaging": {
26
+ "import": {
27
+ "types": "./dist/esm/api/resources/businessMessaging/exports.d.mts",
28
+ "default": "./dist/esm/api/resources/businessMessaging/exports.mjs"
29
+ },
30
+ "require": {
31
+ "types": "./dist/cjs/api/resources/businessMessaging/exports.d.ts",
32
+ "default": "./dist/cjs/api/resources/businessMessaging/exports.js"
33
+ },
34
+ "default": "./dist/cjs/api/resources/businessMessaging/exports.js"
35
+ },
36
+ "./customerMessaging": {
37
+ "import": {
38
+ "types": "./dist/esm/api/resources/customerMessaging/exports.d.mts",
39
+ "default": "./dist/esm/api/resources/customerMessaging/exports.mjs"
40
+ },
41
+ "require": {
42
+ "types": "./dist/cjs/api/resources/customerMessaging/exports.d.ts",
43
+ "default": "./dist/cjs/api/resources/customerMessaging/exports.js"
44
+ },
45
+ "default": "./dist/cjs/api/resources/customerMessaging/exports.js"
46
+ },
25
47
  "./customerMyAccount": {
26
48
  "import": {
27
49
  "types": "./dist/esm/api/resources/customerMyAccount/exports.d.mts",
package/reference.md CHANGED
@@ -1,4 +1,108 @@
1
1
  # Reference
2
+ ## Business: Messaging
3
+ <details><summary><code>client.businessMessaging.<a href="/src/api/resources/businessMessaging/client/Client.ts">searchBusinessConversations</a>({ ...params }) -> FiveOneEat.SearchBusinessConversationsResponse</code></summary>
4
+ <dl>
5
+ <dd>
6
+
7
+ #### 🔌 Usage
8
+
9
+ <dl>
10
+ <dd>
11
+
12
+ <dl>
13
+ <dd>
14
+
15
+ ```typescript
16
+ await client.businessMessaging.searchBusinessConversations({
17
+ q: "john"
18
+ });
19
+
20
+ ```
21
+ </dd>
22
+ </dl>
23
+ </dd>
24
+ </dl>
25
+
26
+ #### ⚙️ Parameters
27
+
28
+ <dl>
29
+ <dd>
30
+
31
+ <dl>
32
+ <dd>
33
+
34
+ **request:** `FiveOneEat.SearchBusinessConversationsRequest`
35
+
36
+ </dd>
37
+ </dl>
38
+
39
+ <dl>
40
+ <dd>
41
+
42
+ **requestOptions:** `BusinessMessagingClient.RequestOptions`
43
+
44
+ </dd>
45
+ </dl>
46
+ </dd>
47
+ </dl>
48
+
49
+
50
+ </dd>
51
+ </dl>
52
+ </details>
53
+
54
+ ## Customer: Messaging
55
+ <details><summary><code>client.customerMessaging.<a href="/src/api/resources/customerMessaging/client/Client.ts">searchCustomerConversations</a>({ ...params }) -> FiveOneEat.SearchCustomerConversationsResponse</code></summary>
56
+ <dl>
57
+ <dd>
58
+
59
+ #### 🔌 Usage
60
+
61
+ <dl>
62
+ <dd>
63
+
64
+ <dl>
65
+ <dd>
66
+
67
+ ```typescript
68
+ await client.customerMessaging.searchCustomerConversations({
69
+ q: "pizza"
70
+ });
71
+
72
+ ```
73
+ </dd>
74
+ </dl>
75
+ </dd>
76
+ </dl>
77
+
78
+ #### ⚙️ Parameters
79
+
80
+ <dl>
81
+ <dd>
82
+
83
+ <dl>
84
+ <dd>
85
+
86
+ **request:** `FiveOneEat.SearchCustomerConversationsRequest`
87
+
88
+ </dd>
89
+ </dl>
90
+
91
+ <dl>
92
+ <dd>
93
+
94
+ **requestOptions:** `CustomerMessagingClient.RequestOptions`
95
+
96
+ </dd>
97
+ </dl>
98
+ </dd>
99
+ </dl>
100
+
101
+
102
+ </dd>
103
+ </dl>
104
+ </details>
105
+
2
106
  ## Customer: My Account
3
107
  <details><summary><code>client.customerMyAccount.<a href="/src/api/resources/customerMyAccount/client/Client.ts">getMyTicket</a>({ ...params }) -> FiveOneEat.GetMyTicketResponse</code></summary>
4
108
  <dl>