@openpeepshq/client 0.2.0 → 0.3.0

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.
@@ -2,6 +2,7 @@ import { allpeepNoPayloadEndpoint, allpeepPayloadEndpoint } from './helpers.js';
2
2
  export const conversations = (rawClient) => ({
3
3
  list: allpeepNoPayloadEndpoint(rawClient, '/conversations'),
4
4
  findById: allpeepNoPayloadEndpoint(rawClient, '/conversations/:id'),
5
+ search: allpeepNoPayloadEndpoint(rawClient, '/conversations/search'),
5
6
  newPost: allpeepPayloadEndpoint(rawClient, '/conversations/:id/posts'),
6
7
  leave: allpeepNoPayloadEndpoint(rawClient, '/conversations/:id/leave', 'delete'),
7
8
  archived: allpeepNoPayloadEndpoint(rawClient, '/conversations/archived'),
@@ -1,4 +1,4 @@
1
- import { type BodyType, type FetchClient, type FormDataSource, type ParametersType, type Verb } from "@openpeepshq/fetch-client";
1
+ import { type BodyType, type FetchClient, type FormDataSource, type ParametersType, type Verb } from '@openpeepshq/fetch-client';
2
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
3
  success: boolean;
4
4
  message?: string | undefined;
@@ -1,15 +1,15 @@
1
- import { typedNoPayloadEndpoint, typedPayloadEndpoint, typedPayloadProgressObserverEndpoint, } from "@openpeepshq/fetch-client";
2
- export const allpeepPayloadEndpoint = (rawClient, path, method = "post", convertToFormData) => typedPayloadEndpoint({
1
+ import { typedNoPayloadEndpoint, typedPayloadEndpoint, typedPayloadProgressObserverEndpoint, } from '@openpeepshq/fetch-client';
2
+ export const allpeepPayloadEndpoint = (rawClient, path, method = 'post', convertToFormData) => typedPayloadEndpoint({
3
3
  path,
4
4
  method,
5
5
  convertToFormData,
6
6
  }, rawClient);
7
- export const allpeepPayloadProgressObserverEndpoint = (rawClient, path, method = "post", convertToFormData) => typedPayloadProgressObserverEndpoint({
7
+ export const allpeepPayloadProgressObserverEndpoint = (rawClient, path, method = 'post', convertToFormData) => typedPayloadProgressObserverEndpoint({
8
8
  path,
9
9
  method,
10
10
  convertToFormData,
11
11
  }, rawClient);
12
- export const allpeepNoPayloadEndpoint = (rawClient, path, method = "get") => typedNoPayloadEndpoint({
12
+ export const allpeepNoPayloadEndpoint = (rawClient, path, method = 'get') => typedNoPayloadEndpoint({
13
13
  path,
14
14
  method,
15
15
  }, rawClient);