@openpeepshq/client 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/dist/common/authenticated.d.ts +8 -0
- package/dist/common/authenticated.js +23 -0
- package/dist/common/base.d.ts +3 -0
- package/dist/common/base.js +5 -0
- package/dist/endpoints/accounts.d.ts +321 -0
- package/dist/endpoints/accounts.js +12 -0
- package/dist/endpoints/admin.d.ts +17353 -0
- package/dist/endpoints/admin.js +123 -0
- package/dist/endpoints/auth.d.ts +85 -0
- package/dist/endpoints/auth.js +10 -0
- package/dist/endpoints/conversations.d.ts +9818 -0
- package/dist/endpoints/conversations.js +6 -0
- package/dist/endpoints/groups.d.ts +341 -0
- package/dist/endpoints/groups.js +15 -0
- package/dist/endpoints/helpers.d.ts +16 -0
- package/dist/endpoints/helpers.js +15 -0
- package/dist/endpoints/i18n.d.ts +16 -0
- package/dist/endpoints/i18n.js +5 -0
- package/dist/endpoints/jams.d.ts +3347 -0
- package/dist/endpoints/jams.js +25 -0
- package/dist/endpoints/location.d.ts +24 -0
- package/dist/endpoints/location.js +4 -0
- package/dist/endpoints/media.d.ts +47 -0
- package/dist/endpoints/media.js +18 -0
- package/dist/endpoints/payments.d.ts +68 -0
- package/dist/endpoints/payments.js +8 -0
- package/dist/endpoints/plugins.d.ts +45 -0
- package/dist/endpoints/plugins.js +6 -0
- package/dist/endpoints/posts.d.ts +76856 -0
- package/dist/endpoints/posts.js +65 -0
- package/dist/endpoints/previewLink.d.ts +17 -0
- package/dist/endpoints/previewLink.js +2 -0
- package/dist/endpoints/profiles.d.ts +6929 -0
- package/dist/endpoints/profiles.js +26 -0
- package/dist/endpoints/reports.d.ts +59 -0
- package/dist/endpoints/reports.js +8 -0
- package/dist/endpoints/search.d.ts +9650 -0
- package/dist/endpoints/search.js +9 -0
- package/dist/endpoints/server.d.ts +152 -0
- package/dist/endpoints/server.js +13 -0
- package/dist/endpoints/sso.d.ts +40 -0
- package/dist/endpoints/sso.js +10 -0
- package/dist/endpoints/streaming.d.ts +33 -0
- package/dist/endpoints/streaming.js +13 -0
- package/dist/endpoints/types.d.ts +61 -0
- package/dist/endpoints/types.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +62 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +1 -0
- package/dist/webhooks/index.d.ts +4 -0
- package/dist/webhooks/index.js +27 -0
- package/package.json +40 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { allpeepNoPayloadEndpoint, allpeepPayloadEndpoint } from './helpers.js';
|
|
2
|
+
export const conversations = (rawClient) => ({
|
|
3
|
+
list: allpeepNoPayloadEndpoint(rawClient, '/conversations'),
|
|
4
|
+
findById: allpeepNoPayloadEndpoint(rawClient, '/conversations/:id'),
|
|
5
|
+
newPost: allpeepPayloadEndpoint(rawClient, '/conversations/:id/posts'),
|
|
6
|
+
});
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import type { FetchClient } from '@openpeepshq/fetch-client';
|
|
2
|
+
import type { GroupMember } from '@openpeepshq/common';
|
|
3
|
+
export declare const groups: (rawClient: FetchClient) => {
|
|
4
|
+
create: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
|
|
5
|
+
handle: string;
|
|
6
|
+
capabilities: Record<string, {
|
|
7
|
+
add?: string[] | undefined;
|
|
8
|
+
remove?: string[] | undefined;
|
|
9
|
+
} | undefined>;
|
|
10
|
+
membersCount: number;
|
|
11
|
+
id: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
avatar?: string | null | undefined;
|
|
15
|
+
header?: string | null | undefined;
|
|
16
|
+
displayName?: string | undefined;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
rules?: string | undefined;
|
|
19
|
+
pinnedPostId?: string | undefined;
|
|
20
|
+
discoverable?: boolean | undefined;
|
|
21
|
+
lastPostAt?: string | null | undefined;
|
|
22
|
+
deletedAt?: string | null | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
handle: string;
|
|
25
|
+
capabilities: Record<string, {
|
|
26
|
+
add?: string[] | undefined;
|
|
27
|
+
remove?: string[] | undefined;
|
|
28
|
+
} | undefined>;
|
|
29
|
+
avatar?: string | null | undefined;
|
|
30
|
+
header?: string | null | undefined;
|
|
31
|
+
displayName?: string | undefined;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
rules?: string | undefined;
|
|
34
|
+
pinnedPostId?: string | undefined;
|
|
35
|
+
discoverable?: boolean | undefined;
|
|
36
|
+
members?: {
|
|
37
|
+
id: string;
|
|
38
|
+
type: "guest" | "local" | "federated";
|
|
39
|
+
createdAt: string;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
handle: string;
|
|
42
|
+
memberships: {
|
|
43
|
+
group: {
|
|
44
|
+
handle: string;
|
|
45
|
+
capabilities: Record<string, {
|
|
46
|
+
add?: string[] | undefined;
|
|
47
|
+
remove?: string[] | undefined;
|
|
48
|
+
} | undefined>;
|
|
49
|
+
id: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
avatar?: string | null | undefined;
|
|
53
|
+
header?: string | null | undefined;
|
|
54
|
+
displayName?: string | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
rules?: string | undefined;
|
|
57
|
+
pinnedPostId?: string | undefined;
|
|
58
|
+
discoverable?: boolean | undefined;
|
|
59
|
+
deletedAt?: string | null | undefined;
|
|
60
|
+
};
|
|
61
|
+
roles?: ("none" | "local" | "member" | "admin" | "moderator" | "invited")[] | null | undefined;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
deletedAt?: string | null | undefined;
|
|
64
|
+
avatar?: string | null | undefined;
|
|
65
|
+
header?: string | null | undefined;
|
|
66
|
+
displayName?: string | undefined;
|
|
67
|
+
bio?: string | undefined;
|
|
68
|
+
location?: {
|
|
69
|
+
text: string;
|
|
70
|
+
coordinates?: {
|
|
71
|
+
lat: number;
|
|
72
|
+
lng: number;
|
|
73
|
+
alt?: number | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
locked?: boolean | undefined;
|
|
77
|
+
bot?: boolean | undefined;
|
|
78
|
+
discoverable?: boolean | undefined;
|
|
79
|
+
fields?: {
|
|
80
|
+
name: string;
|
|
81
|
+
value: string;
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
profileStats?: {
|
|
84
|
+
followersCount: number;
|
|
85
|
+
followingCount: number;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
success: boolean;
|
|
90
|
+
message?: string | undefined;
|
|
91
|
+
key?: string | undefined;
|
|
92
|
+
}, undefined, undefined>;
|
|
93
|
+
list: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
94
|
+
handle: string;
|
|
95
|
+
capabilities: Record<string, {
|
|
96
|
+
add?: string[] | undefined;
|
|
97
|
+
remove?: string[] | undefined;
|
|
98
|
+
} | undefined>;
|
|
99
|
+
membersCount: number;
|
|
100
|
+
id: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
avatar?: string | null | undefined;
|
|
104
|
+
header?: string | null | undefined;
|
|
105
|
+
displayName?: string | undefined;
|
|
106
|
+
description?: string | undefined;
|
|
107
|
+
rules?: string | undefined;
|
|
108
|
+
pinnedPostId?: string | undefined;
|
|
109
|
+
discoverable?: boolean | undefined;
|
|
110
|
+
lastPostAt?: string | null | undefined;
|
|
111
|
+
deletedAt?: string | null | undefined;
|
|
112
|
+
}[], {
|
|
113
|
+
success: boolean;
|
|
114
|
+
message?: string | undefined;
|
|
115
|
+
key?: string | undefined;
|
|
116
|
+
}, undefined, undefined>;
|
|
117
|
+
findById: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
118
|
+
handle: string;
|
|
119
|
+
capabilities: Record<string, {
|
|
120
|
+
add?: string[] | undefined;
|
|
121
|
+
remove?: string[] | undefined;
|
|
122
|
+
} | undefined>;
|
|
123
|
+
membersCount: number;
|
|
124
|
+
id: string;
|
|
125
|
+
createdAt: string;
|
|
126
|
+
updatedAt: string;
|
|
127
|
+
avatar?: string | null | undefined;
|
|
128
|
+
header?: string | null | undefined;
|
|
129
|
+
displayName?: string | undefined;
|
|
130
|
+
description?: string | undefined;
|
|
131
|
+
rules?: string | undefined;
|
|
132
|
+
pinnedPostId?: string | undefined;
|
|
133
|
+
discoverable?: boolean | undefined;
|
|
134
|
+
lastPostAt?: string | null | undefined;
|
|
135
|
+
deletedAt?: string | null | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
success: boolean;
|
|
138
|
+
message?: string | undefined;
|
|
139
|
+
key?: string | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
id: string;
|
|
142
|
+
}, undefined>;
|
|
143
|
+
findByHandle: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
144
|
+
handle: string;
|
|
145
|
+
capabilities: Record<string, {
|
|
146
|
+
add?: string[] | undefined;
|
|
147
|
+
remove?: string[] | undefined;
|
|
148
|
+
} | undefined>;
|
|
149
|
+
membersCount: number;
|
|
150
|
+
id: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updatedAt: string;
|
|
153
|
+
avatar?: string | null | undefined;
|
|
154
|
+
header?: string | null | undefined;
|
|
155
|
+
displayName?: string | undefined;
|
|
156
|
+
description?: string | undefined;
|
|
157
|
+
rules?: string | undefined;
|
|
158
|
+
pinnedPostId?: string | undefined;
|
|
159
|
+
discoverable?: boolean | undefined;
|
|
160
|
+
lastPostAt?: string | null | undefined;
|
|
161
|
+
deletedAt?: string | null | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
success: boolean;
|
|
164
|
+
message?: string | undefined;
|
|
165
|
+
key?: string | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
handle: string;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
update: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
|
|
170
|
+
handle: string;
|
|
171
|
+
capabilities: Record<string, {
|
|
172
|
+
add?: string[] | undefined;
|
|
173
|
+
remove?: string[] | undefined;
|
|
174
|
+
} | undefined>;
|
|
175
|
+
membersCount: number;
|
|
176
|
+
id: string;
|
|
177
|
+
createdAt: string;
|
|
178
|
+
updatedAt: string;
|
|
179
|
+
avatar?: string | null | undefined;
|
|
180
|
+
header?: string | null | undefined;
|
|
181
|
+
displayName?: string | undefined;
|
|
182
|
+
description?: string | undefined;
|
|
183
|
+
rules?: string | undefined;
|
|
184
|
+
pinnedPostId?: string | undefined;
|
|
185
|
+
discoverable?: boolean | undefined;
|
|
186
|
+
lastPostAt?: string | null | undefined;
|
|
187
|
+
deletedAt?: string | null | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
handle: string;
|
|
190
|
+
capabilities: Record<string, {
|
|
191
|
+
add?: string[] | undefined;
|
|
192
|
+
remove?: string[] | undefined;
|
|
193
|
+
} | undefined>;
|
|
194
|
+
avatar?: string | null | undefined;
|
|
195
|
+
header?: string | null | undefined;
|
|
196
|
+
displayName?: string | undefined;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
rules?: string | undefined;
|
|
199
|
+
pinnedPostId?: string | undefined;
|
|
200
|
+
discoverable?: boolean | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
success: boolean;
|
|
203
|
+
message?: string | undefined;
|
|
204
|
+
key?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
id: string;
|
|
207
|
+
}, undefined>;
|
|
208
|
+
delete: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
209
|
+
handle: string;
|
|
210
|
+
capabilities: Record<string, {
|
|
211
|
+
add?: string[] | undefined;
|
|
212
|
+
remove?: string[] | undefined;
|
|
213
|
+
} | undefined>;
|
|
214
|
+
membersCount: number;
|
|
215
|
+
id: string;
|
|
216
|
+
createdAt: string;
|
|
217
|
+
updatedAt: string;
|
|
218
|
+
avatar?: string | null | undefined;
|
|
219
|
+
header?: string | null | undefined;
|
|
220
|
+
displayName?: string | undefined;
|
|
221
|
+
description?: string | undefined;
|
|
222
|
+
rules?: string | undefined;
|
|
223
|
+
pinnedPostId?: string | undefined;
|
|
224
|
+
discoverable?: boolean | undefined;
|
|
225
|
+
lastPostAt?: string | null | undefined;
|
|
226
|
+
deletedAt?: string | null | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
success: boolean;
|
|
229
|
+
message?: string | undefined;
|
|
230
|
+
key?: string | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
id: string;
|
|
233
|
+
}, undefined>;
|
|
234
|
+
members: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<GroupMember[], {
|
|
235
|
+
success: boolean;
|
|
236
|
+
message?: string | undefined;
|
|
237
|
+
key?: string | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
id: string;
|
|
240
|
+
}, undefined>;
|
|
241
|
+
join: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
242
|
+
success: true;
|
|
243
|
+
}, {
|
|
244
|
+
success: boolean;
|
|
245
|
+
message?: string | undefined;
|
|
246
|
+
key?: string | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
id: string;
|
|
249
|
+
}, undefined>;
|
|
250
|
+
leave: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
251
|
+
success: true;
|
|
252
|
+
}, {
|
|
253
|
+
success: boolean;
|
|
254
|
+
message?: string | undefined;
|
|
255
|
+
key?: string | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
id: string;
|
|
258
|
+
}, undefined>;
|
|
259
|
+
addMember: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
|
|
260
|
+
success: true;
|
|
261
|
+
}, {
|
|
262
|
+
id: string;
|
|
263
|
+
type: "guest" | "local" | "federated";
|
|
264
|
+
createdAt: string;
|
|
265
|
+
updatedAt: string;
|
|
266
|
+
handle: string;
|
|
267
|
+
memberships: {
|
|
268
|
+
group: {
|
|
269
|
+
handle: string;
|
|
270
|
+
capabilities: Record<string, {
|
|
271
|
+
add?: string[] | undefined;
|
|
272
|
+
remove?: string[] | undefined;
|
|
273
|
+
} | undefined>;
|
|
274
|
+
id: string;
|
|
275
|
+
createdAt: string;
|
|
276
|
+
updatedAt: string;
|
|
277
|
+
avatar?: string | null | undefined;
|
|
278
|
+
header?: string | null | undefined;
|
|
279
|
+
displayName?: string | undefined;
|
|
280
|
+
description?: string | undefined;
|
|
281
|
+
rules?: string | undefined;
|
|
282
|
+
pinnedPostId?: string | undefined;
|
|
283
|
+
discoverable?: boolean | undefined;
|
|
284
|
+
deletedAt?: string | null | undefined;
|
|
285
|
+
};
|
|
286
|
+
roles?: ("none" | "local" | "member" | "admin" | "moderator" | "invited")[] | null | undefined;
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
deletedAt?: string | null | undefined;
|
|
289
|
+
avatar?: string | null | undefined;
|
|
290
|
+
header?: string | null | undefined;
|
|
291
|
+
displayName?: string | undefined;
|
|
292
|
+
bio?: string | undefined;
|
|
293
|
+
location?: {
|
|
294
|
+
text: string;
|
|
295
|
+
coordinates?: {
|
|
296
|
+
lat: number;
|
|
297
|
+
lng: number;
|
|
298
|
+
alt?: number | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
} | undefined;
|
|
301
|
+
locked?: boolean | undefined;
|
|
302
|
+
bot?: boolean | undefined;
|
|
303
|
+
discoverable?: boolean | undefined;
|
|
304
|
+
fields?: {
|
|
305
|
+
name: string;
|
|
306
|
+
value: string;
|
|
307
|
+
}[] | undefined;
|
|
308
|
+
profileStats?: {
|
|
309
|
+
followersCount: number;
|
|
310
|
+
followingCount: number;
|
|
311
|
+
} | undefined;
|
|
312
|
+
}, {
|
|
313
|
+
success: boolean;
|
|
314
|
+
message?: string | undefined;
|
|
315
|
+
key?: string | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
id: string;
|
|
318
|
+
}, undefined>;
|
|
319
|
+
removeMember: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
320
|
+
success: true;
|
|
321
|
+
}, {
|
|
322
|
+
success: boolean;
|
|
323
|
+
message?: string | undefined;
|
|
324
|
+
key?: string | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
id: string;
|
|
327
|
+
memberId: string;
|
|
328
|
+
}, undefined>;
|
|
329
|
+
setMemberRoles: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
|
|
330
|
+
success: true;
|
|
331
|
+
}, {
|
|
332
|
+
roles?: ("local" | "admin" | "none" | "member" | "moderator" | "invited")[] | null | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
success: boolean;
|
|
335
|
+
message?: string | undefined;
|
|
336
|
+
key?: string | undefined;
|
|
337
|
+
}, {
|
|
338
|
+
id: string;
|
|
339
|
+
memberId: string;
|
|
340
|
+
}, undefined>;
|
|
341
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { allpeepNoPayloadEndpoint, allpeepPayloadEndpoint } from './helpers.js';
|
|
2
|
+
export const groups = (rawClient) => ({
|
|
3
|
+
create: allpeepPayloadEndpoint(rawClient, '/groups', 'post'),
|
|
4
|
+
list: allpeepNoPayloadEndpoint(rawClient, '/groups'),
|
|
5
|
+
findById: allpeepNoPayloadEndpoint(rawClient, '/groups/:id'),
|
|
6
|
+
findByHandle: allpeepNoPayloadEndpoint(rawClient, '/groups/by-handle/:handle'),
|
|
7
|
+
update: allpeepPayloadEndpoint(rawClient, '/groups/:id', 'put'),
|
|
8
|
+
delete: allpeepNoPayloadEndpoint(rawClient, '/groups/:id', 'delete'),
|
|
9
|
+
members: allpeepNoPayloadEndpoint(rawClient, '/groups/:id/members'),
|
|
10
|
+
join: allpeepNoPayloadEndpoint(rawClient, '/groups/:id/join', 'post'),
|
|
11
|
+
leave: allpeepNoPayloadEndpoint(rawClient, '/groups/:id/leave', 'delete'),
|
|
12
|
+
addMember: allpeepPayloadEndpoint(rawClient, '/groups/:id/members'),
|
|
13
|
+
removeMember: allpeepNoPayloadEndpoint(rawClient, '/groups/:id/members/:memberId', 'delete'),
|
|
14
|
+
setMemberRoles: allpeepPayloadEndpoint(rawClient, '/groups/:id/members/:memberId', 'put'),
|
|
15
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type BodyType, type FetchClient, type FormDataSource, type ParametersType, type Verb } from "@openpeepshq/fetch-client";
|
|
2
|
+
export declare const allpeepPayloadEndpoint: <Output, Input extends BodyType, PathParameters extends ParametersType = undefined, QueryParameters extends ParametersType = undefined>(rawClient: FetchClient, path: string, method?: Verb, convertToFormData?: Input extends FormDataSource ? true : false | undefined) => import("@openpeepshq/fetch-client").TypedPayloadEndpoint<Output, Input, {
|
|
3
|
+
success: boolean;
|
|
4
|
+
message?: string | undefined;
|
|
5
|
+
key?: string | undefined;
|
|
6
|
+
}, PathParameters, QueryParameters>;
|
|
7
|
+
export declare const allpeepPayloadProgressObserverEndpoint: <Output, Input extends BodyType, PathParameters extends ParametersType = undefined, QueryParameters extends ParametersType = undefined>(rawClient: FetchClient, path: string, method?: Verb, convertToFormData?: Input extends FormDataSource ? true : false | undefined) => import("@openpeepshq/fetch-client").TypedPayloadProgressObserverEndpoint<Output, Input, {
|
|
8
|
+
success: boolean;
|
|
9
|
+
message?: string | undefined;
|
|
10
|
+
key?: string | undefined;
|
|
11
|
+
}, PathParameters, QueryParameters>;
|
|
12
|
+
export declare const allpeepNoPayloadEndpoint: <Output, PathParameters extends ParametersType = undefined, QueryParameters extends ParametersType = undefined>(rawClient: FetchClient, path: string, method?: Verb) => import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<Output, {
|
|
13
|
+
success: boolean;
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
key?: string | undefined;
|
|
16
|
+
}, PathParameters, QueryParameters>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { typedNoPayloadEndpoint, typedPayloadEndpoint, typedPayloadProgressObserverEndpoint, } from "@openpeepshq/fetch-client";
|
|
2
|
+
export const allpeepPayloadEndpoint = (rawClient, path, method = "post", convertToFormData) => typedPayloadEndpoint({
|
|
3
|
+
path,
|
|
4
|
+
method,
|
|
5
|
+
convertToFormData,
|
|
6
|
+
}, rawClient);
|
|
7
|
+
export const allpeepPayloadProgressObserverEndpoint = (rawClient, path, method = "post", convertToFormData) => typedPayloadProgressObserverEndpoint({
|
|
8
|
+
path,
|
|
9
|
+
method,
|
|
10
|
+
convertToFormData,
|
|
11
|
+
}, rawClient);
|
|
12
|
+
export const allpeepNoPayloadEndpoint = (rawClient, path, method = "get") => typedNoPayloadEndpoint({
|
|
13
|
+
path,
|
|
14
|
+
method,
|
|
15
|
+
}, rawClient);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FetchClient } from '@openpeepshq/fetch-client';
|
|
2
|
+
import type { ResourceLanguage } from 'i18next';
|
|
3
|
+
export declare const i18n: (rawClient: FetchClient) => {
|
|
4
|
+
translations: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<ResourceLanguage, {
|
|
5
|
+
success: boolean;
|
|
6
|
+
message?: string | undefined;
|
|
7
|
+
key?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
lang: string;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
languages: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<string[], {
|
|
12
|
+
success: boolean;
|
|
13
|
+
message?: string | undefined;
|
|
14
|
+
key?: string | undefined;
|
|
15
|
+
}, undefined, undefined>;
|
|
16
|
+
};
|