@wisemen/wise-crm-web 0.2.5 → 1.0.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.
- package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +2899 -0
- package/dist/{BusinessDetailView-BZpocob4.js → BusinessDetailView-BHVUfCpV.js} +5 -5
- package/dist/{CrmDetailHeaderCard-Jo2OteBb.js → CrmDetailHeaderCard-CiVLyIuw.js} +39 -39
- package/dist/{CrmDetailView-DKHX-JEl.js → CrmDetailView-DaAuWeiB.js} +14 -14
- package/dist/{DealCommunicationTabView-ClflVxHJ.js → DealCommunicationTabView-xq_zOAsr.js} +2 -2
- package/dist/{DealDetailView-ChAFvBBK.js → DealDetailView-C54XpYN1.js} +124 -124
- package/dist/{DealExternalAttachment-ClwtFzpQ.js → DealExternalAttachment-Dp44vkgt.js} +1 -1
- package/dist/{DealSendMailDialog-SWWyaxq8.js → DealSendMailDialog-D11Tgd_A.js} +50 -50
- package/dist/{Error-CX6APxDX.js → Error-X0deDY-N.js} +510 -8
- package/dist/{IndividualDetailSidebarProvider-BJgxw1Jd.js → IndividualDetailSidebarProvider-BvjhFng9.js} +218 -218
- package/dist/{IndividualDetailView-CvGUCWPY.js → IndividualDetailView-Cq8iAwQv.js} +5 -5
- package/dist/{client-CpsHjr8V.js → client-S6BLV3Ct.js} +7 -12
- package/dist/composables/crmConfig.composable.d.ts +1 -0
- package/dist/index.js +375 -375
- package/dist/kbo-client/client/client.gen.d.ts +2 -0
- package/dist/kbo-client/client/index.d.ts +8 -0
- package/dist/kbo-client/client/types.gen.d.ts +117 -0
- package/dist/kbo-client/client/utils.gen.d.ts +33 -0
- package/dist/kbo-client/client.gen.d.ts +12 -0
- package/dist/kbo-client/core/auth.gen.d.ts +18 -0
- package/dist/kbo-client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/kbo-client/core/params.gen.d.ts +43 -0
- package/dist/kbo-client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/kbo-client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/kbo-client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/kbo-client/core/types.gen.d.ts +78 -0
- package/dist/kbo-client/core/utils.gen.d.ts +19 -0
- package/dist/kbo-client/index.d.ts +2 -0
- package/dist/kbo-client/sdk.gen.d.ts +72 -0
- package/dist/kbo-client/types.gen.d.ts +2089 -0
- package/dist/kbo-client/zod.gen.d.ts +5943 -0
- package/dist/libs/http.lib.d.ts +3 -1
- package/dist/libs/kboBaseUrl.lib.d.ts +1 -0
- package/dist/models/cbe/search/cbeEnterpriseSearchDto.model.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -1
- package/dist/BusinessDetailSidebarProvider-CXG99iHk.js +0 -2077
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { Auth } from '../core/auth.gen';
|
|
2
|
+
export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
|
|
3
|
+
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
|
|
4
|
+
export { buildClientParams } from '../core/params.gen';
|
|
5
|
+
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
6
|
+
export { createClient } from './client.gen';
|
|
7
|
+
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from './types.gen';
|
|
8
|
+
export { createConfig, mergeHeaders } from './utils.gen';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { Auth } from '../core/auth.gen';
|
|
2
|
+
import type { ServerSentEventsOptions, ServerSentEventsResult } from '../core/serverSentEvents.gen';
|
|
3
|
+
import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen';
|
|
4
|
+
import type { Middleware } from './utils.gen';
|
|
5
|
+
export type ResponseStyle = 'data' | 'fields';
|
|
6
|
+
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, CoreConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Base URL for all requests made by this client.
|
|
9
|
+
*/
|
|
10
|
+
baseUrl?: T['baseUrl'];
|
|
11
|
+
/**
|
|
12
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
13
|
+
* fetch instance.
|
|
14
|
+
*
|
|
15
|
+
* @default globalThis.fetch
|
|
16
|
+
*/
|
|
17
|
+
fetch?: typeof fetch;
|
|
18
|
+
/**
|
|
19
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
20
|
+
* options won't have any effect.
|
|
21
|
+
*
|
|
22
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
23
|
+
*/
|
|
24
|
+
next?: never;
|
|
25
|
+
/**
|
|
26
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
27
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
28
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
29
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
30
|
+
*
|
|
31
|
+
* @default 'auto'
|
|
32
|
+
*/
|
|
33
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
34
|
+
/**
|
|
35
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
36
|
+
*
|
|
37
|
+
* @default 'fields'
|
|
38
|
+
*/
|
|
39
|
+
responseStyle?: ResponseStyle;
|
|
40
|
+
/**
|
|
41
|
+
* Throw an error instead of returning it in the response?
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
throwOnError?: T['throwOnError'];
|
|
46
|
+
}
|
|
47
|
+
export interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
48
|
+
responseStyle: TResponseStyle;
|
|
49
|
+
throwOnError: ThrowOnError;
|
|
50
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
51
|
+
/**
|
|
52
|
+
* Any body that you want to add to your request.
|
|
53
|
+
*
|
|
54
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
55
|
+
*/
|
|
56
|
+
body?: unknown;
|
|
57
|
+
path?: Record<string, unknown>;
|
|
58
|
+
query?: Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Security mechanism(s) to use for the request.
|
|
61
|
+
*/
|
|
62
|
+
security?: ReadonlyArray<Auth>;
|
|
63
|
+
url: Url;
|
|
64
|
+
}
|
|
65
|
+
export interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
66
|
+
serializedBody?: string;
|
|
67
|
+
}
|
|
68
|
+
export type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
69
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
70
|
+
request: Request;
|
|
71
|
+
response: Response;
|
|
72
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
73
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
74
|
+
error: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
data: undefined;
|
|
77
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
78
|
+
}) & {
|
|
79
|
+
request: Request;
|
|
80
|
+
response: Response;
|
|
81
|
+
}>;
|
|
82
|
+
export interface ClientOptions {
|
|
83
|
+
baseUrl?: string;
|
|
84
|
+
responseStyle?: ResponseStyle;
|
|
85
|
+
throwOnError?: boolean;
|
|
86
|
+
}
|
|
87
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
88
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
89
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
90
|
+
type BuildUrlFn = <TData extends {
|
|
91
|
+
body?: unknown;
|
|
92
|
+
path?: Record<string, unknown>;
|
|
93
|
+
query?: Record<string, unknown>;
|
|
94
|
+
url: string;
|
|
95
|
+
}>(options: TData & Options<TData>) => string;
|
|
96
|
+
export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
97
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
101
|
+
* and the returned object will become the client's initial configuration.
|
|
102
|
+
*
|
|
103
|
+
* You may want to initialize your client this way instead of calling
|
|
104
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
105
|
+
* to ensure your client always has the correct values.
|
|
106
|
+
*/
|
|
107
|
+
export type CreateClientConfig<T extends ClientOptions = ClientOptions> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
108
|
+
export interface TDataShape {
|
|
109
|
+
body?: unknown;
|
|
110
|
+
headers?: unknown;
|
|
111
|
+
path?: unknown;
|
|
112
|
+
query?: unknown;
|
|
113
|
+
url: string;
|
|
114
|
+
}
|
|
115
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
116
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
117
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { QuerySerializerOptions } from '../core/bodySerializer.gen';
|
|
2
|
+
import type { Client, ClientOptions, Config, RequestOptions } from './types.gen';
|
|
3
|
+
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => (queryParams: T) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Infers parseAs value from provided Content-Type header.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getParseAs: (contentType: string | null) => Exclude<Config["parseAs"], "auto">;
|
|
8
|
+
export declare const setAuthParams: ({ security, ...options }: Pick<Required<RequestOptions>, "security"> & Pick<RequestOptions, "auth" | "query"> & {
|
|
9
|
+
headers: Headers;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
export declare const buildUrl: Client['buildUrl'];
|
|
12
|
+
export declare const mergeConfigs: (a: Config, b: Config) => Config;
|
|
13
|
+
export declare const mergeHeaders: (...headers: Array<Required<Config>["headers"] | undefined>) => Headers;
|
|
14
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
15
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
16
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
17
|
+
declare class Interceptors<Interceptor> {
|
|
18
|
+
fns: Array<Interceptor | null>;
|
|
19
|
+
clear(): void;
|
|
20
|
+
eject(id: number | Interceptor): void;
|
|
21
|
+
exists(id: number | Interceptor): boolean;
|
|
22
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
23
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
24
|
+
use(fn: Interceptor): number;
|
|
25
|
+
}
|
|
26
|
+
export interface Middleware<Req, Res, Err, Options> {
|
|
27
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
28
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
29
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
30
|
+
}
|
|
31
|
+
export declare const createInterceptors: <Req, Res, Err, Options>() => Middleware<Req, Res, Err, Options>;
|
|
32
|
+
export declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ClientOptions, type Config } from './client';
|
|
2
|
+
import type { ClientOptions as ClientOptions2 } from './types.gen';
|
|
3
|
+
/**
|
|
4
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
5
|
+
* and the returned object will become the client's initial configuration.
|
|
6
|
+
*
|
|
7
|
+
* You may want to initialize your client this way instead of calling
|
|
8
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
9
|
+
* to ensure your client always has the correct values.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
12
|
+
export declare const client: import("./client").Client;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type AuthToken = string | undefined;
|
|
2
|
+
export interface Auth {
|
|
3
|
+
/**
|
|
4
|
+
* Which part of the request do we use to send the auth?
|
|
5
|
+
*
|
|
6
|
+
* @default 'header'
|
|
7
|
+
*/
|
|
8
|
+
in?: 'header' | 'query' | 'cookie';
|
|
9
|
+
/**
|
|
10
|
+
* Header or query parameter name.
|
|
11
|
+
*
|
|
12
|
+
* @default 'Authorization'
|
|
13
|
+
*/
|
|
14
|
+
name?: string;
|
|
15
|
+
scheme?: 'basic' | 'bearer';
|
|
16
|
+
type: 'apiKey' | 'http';
|
|
17
|
+
}
|
|
18
|
+
export declare const getAuthToken: (auth: Auth, callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken) => Promise<string | undefined>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen';
|
|
2
|
+
export type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
3
|
+
export type BodySerializer = (body: any) => any;
|
|
4
|
+
type QuerySerializerOptionsObject = {
|
|
5
|
+
allowReserved?: boolean;
|
|
6
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
7
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
8
|
+
};
|
|
9
|
+
export type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
10
|
+
/**
|
|
11
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
12
|
+
* override the global array/object settings for specific parameter names.
|
|
13
|
+
*/
|
|
14
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
15
|
+
};
|
|
16
|
+
export declare const formDataBodySerializer: {
|
|
17
|
+
bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(body: T) => FormData;
|
|
18
|
+
};
|
|
19
|
+
export declare const jsonBodySerializer: {
|
|
20
|
+
bodySerializer: <T>(body: T) => string;
|
|
21
|
+
};
|
|
22
|
+
export declare const urlSearchParamsBodySerializer: {
|
|
23
|
+
bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(body: T) => string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type Slot = 'body' | 'headers' | 'path' | 'query';
|
|
2
|
+
export type Field = {
|
|
3
|
+
in: Exclude<Slot, 'body'>;
|
|
4
|
+
/**
|
|
5
|
+
* Field name. This is the name we want the user to see and use.
|
|
6
|
+
*/
|
|
7
|
+
key: string;
|
|
8
|
+
/**
|
|
9
|
+
* Field mapped name. This is the name we want to use in the request.
|
|
10
|
+
* If omitted, we use the same value as `key`.
|
|
11
|
+
*/
|
|
12
|
+
map?: string;
|
|
13
|
+
} | {
|
|
14
|
+
in: Extract<Slot, 'body'>;
|
|
15
|
+
/**
|
|
16
|
+
* Key isn't required for bodies.
|
|
17
|
+
*/
|
|
18
|
+
key?: string;
|
|
19
|
+
map?: string;
|
|
20
|
+
} | {
|
|
21
|
+
/**
|
|
22
|
+
* Field name. This is the name we want the user to see and use.
|
|
23
|
+
*/
|
|
24
|
+
key: string;
|
|
25
|
+
/**
|
|
26
|
+
* Field mapped name. This is the name we want to use in the request.
|
|
27
|
+
* If `in` is omitted, `map` aliases `key` to the transport layer.
|
|
28
|
+
*/
|
|
29
|
+
map: Slot;
|
|
30
|
+
};
|
|
31
|
+
export interface Fields {
|
|
32
|
+
allowExtra?: Partial<Record<Slot, boolean>>;
|
|
33
|
+
args?: ReadonlyArray<Field>;
|
|
34
|
+
}
|
|
35
|
+
export type FieldsConfig = ReadonlyArray<Field | Fields>;
|
|
36
|
+
interface Params {
|
|
37
|
+
body: unknown;
|
|
38
|
+
headers: Record<string, unknown>;
|
|
39
|
+
path: Record<string, unknown>;
|
|
40
|
+
query: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export declare const buildClientParams: (args: ReadonlyArray<unknown>, fields: FieldsConfig) => Params;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {
|
|
2
|
+
}
|
|
3
|
+
interface SerializePrimitiveOptions {
|
|
4
|
+
allowReserved?: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SerializerOptions<T> {
|
|
8
|
+
/**
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
explode: boolean;
|
|
12
|
+
style: T;
|
|
13
|
+
}
|
|
14
|
+
export type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
15
|
+
export type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
|
|
16
|
+
type MatrixStyle = 'label' | 'matrix' | 'simple';
|
|
17
|
+
export type ObjectStyle = 'form' | 'deepObject';
|
|
18
|
+
type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
|
|
19
|
+
interface SerializePrimitiveParam extends SerializePrimitiveOptions {
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "." | ";" | "," | "&";
|
|
23
|
+
export declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
|
|
24
|
+
export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "." | ";" | "," | "&";
|
|
25
|
+
export declare const serializeArrayParam: ({ allowReserved, explode, name, style, value, }: SerializeOptions<ArraySeparatorStyle> & {
|
|
26
|
+
value: unknown[];
|
|
27
|
+
}) => string;
|
|
28
|
+
export declare const serializePrimitiveParam: ({ allowReserved, name, value, }: SerializePrimitiveParam) => string;
|
|
29
|
+
export declare const serializeObjectParam: ({ allowReserved, explode, name, style, value, valueOnly, }: SerializeOptions<ObjectSeparatorStyle> & {
|
|
30
|
+
value: Record<string, unknown> | Date;
|
|
31
|
+
valueOnly?: boolean;
|
|
32
|
+
}) => string;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON-friendly union that mirrors what Pinia Colada can hash.
|
|
3
|
+
*/
|
|
4
|
+
export type JsonValue = null | string | number | boolean | JsonValue[] | {
|
|
5
|
+
[key: string]: JsonValue;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const queryKeyJsonReplacer: (_key: string, value: unknown) => {} | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Safely stringifies a value and parses it back into a JsonValue.
|
|
13
|
+
*/
|
|
14
|
+
export declare const stringifyToJsonValue: (input: unknown) => JsonValue | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Normalizes any accepted value into a JSON-friendly shape for query keys.
|
|
17
|
+
*/
|
|
18
|
+
export declare const serializeQueryKeyValue: (value: unknown) => JsonValue | undefined;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { Config } from './types.gen';
|
|
2
|
+
export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
5
|
+
* fetch instance.
|
|
6
|
+
*
|
|
7
|
+
* @default globalThis.fetch
|
|
8
|
+
*/
|
|
9
|
+
fetch?: typeof fetch;
|
|
10
|
+
/**
|
|
11
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
12
|
+
*/
|
|
13
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
14
|
+
/**
|
|
15
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
16
|
+
*
|
|
17
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
18
|
+
*
|
|
19
|
+
* @param error The error that occurred.
|
|
20
|
+
*/
|
|
21
|
+
onSseError?: (error: unknown) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback invoked when an event is streamed from the server.
|
|
24
|
+
*
|
|
25
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
26
|
+
*
|
|
27
|
+
* @param event Event streamed from the server.
|
|
28
|
+
* @returns Nothing (void).
|
|
29
|
+
*/
|
|
30
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
31
|
+
serializedBody?: RequestInit['body'];
|
|
32
|
+
/**
|
|
33
|
+
* Default retry delay in milliseconds.
|
|
34
|
+
*
|
|
35
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
36
|
+
*
|
|
37
|
+
* @default 3000
|
|
38
|
+
*/
|
|
39
|
+
sseDefaultRetryDelay?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Maximum number of retry attempts before giving up.
|
|
42
|
+
*/
|
|
43
|
+
sseMaxRetryAttempts?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum retry delay in milliseconds.
|
|
46
|
+
*
|
|
47
|
+
* Applies only when exponential backoff is used.
|
|
48
|
+
*
|
|
49
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
50
|
+
*
|
|
51
|
+
* @default 30000
|
|
52
|
+
*/
|
|
53
|
+
sseMaxRetryDelay?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Optional sleep function for retry backoff.
|
|
56
|
+
*
|
|
57
|
+
* Defaults to using `setTimeout`.
|
|
58
|
+
*/
|
|
59
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
60
|
+
url: string;
|
|
61
|
+
};
|
|
62
|
+
export interface StreamEvent<TData = unknown> {
|
|
63
|
+
data: TData;
|
|
64
|
+
event?: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
retry?: number;
|
|
67
|
+
}
|
|
68
|
+
export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
69
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
70
|
+
};
|
|
71
|
+
export declare const createSseClient: <TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Auth, AuthToken } from './auth.gen';
|
|
2
|
+
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen';
|
|
3
|
+
export type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
4
|
+
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the final request URL.
|
|
7
|
+
*/
|
|
8
|
+
buildUrl: BuildUrlFn;
|
|
9
|
+
getConfig: () => Config;
|
|
10
|
+
request: RequestFn;
|
|
11
|
+
setConfig: (config: Config) => Config;
|
|
12
|
+
} & {
|
|
13
|
+
[K in HttpMethod]: MethodFn;
|
|
14
|
+
} & ([SseFn] extends [never] ? {
|
|
15
|
+
sse?: never;
|
|
16
|
+
} : {
|
|
17
|
+
sse: {
|
|
18
|
+
[K in HttpMethod]: SseFn;
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
export interface Config {
|
|
22
|
+
/**
|
|
23
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
24
|
+
* added to the request payload as defined by its `security` array.
|
|
25
|
+
*/
|
|
26
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
27
|
+
/**
|
|
28
|
+
* A function for serializing request body parameter. By default,
|
|
29
|
+
* {@link JSON.stringify()} will be used.
|
|
30
|
+
*/
|
|
31
|
+
bodySerializer?: BodySerializer | null;
|
|
32
|
+
/**
|
|
33
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
34
|
+
* `Headers` object with.
|
|
35
|
+
*
|
|
36
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
37
|
+
*/
|
|
38
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* The request method.
|
|
41
|
+
*
|
|
42
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
43
|
+
*/
|
|
44
|
+
method?: Uppercase<HttpMethod>;
|
|
45
|
+
/**
|
|
46
|
+
* A function for serializing request query parameters. By default, arrays
|
|
47
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
48
|
+
* style, and reserved characters are percent-encoded.
|
|
49
|
+
*
|
|
50
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
51
|
+
* API function is used.
|
|
52
|
+
*
|
|
53
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
54
|
+
*/
|
|
55
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
56
|
+
/**
|
|
57
|
+
* A function validating request data. This is useful if you want to ensure
|
|
58
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
59
|
+
* the server.
|
|
60
|
+
*/
|
|
61
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* A function transforming response data before it's returned. This is useful
|
|
64
|
+
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
65
|
+
*/
|
|
66
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* A function validating response data. This is useful if you want to ensure
|
|
69
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
70
|
+
* the transformers and returned to the user.
|
|
71
|
+
*/
|
|
72
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
73
|
+
}
|
|
74
|
+
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
75
|
+
export type OmitNever<T extends Record<string, unknown>> = {
|
|
76
|
+
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
|
|
77
|
+
};
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
|
|
2
|
+
export interface PathSerializer {
|
|
3
|
+
path: Record<string, unknown>;
|
|
4
|
+
url: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PATH_PARAM_RE: RegExp;
|
|
7
|
+
export declare const defaultPathSerializer: ({ path, url: _url }: PathSerializer) => string;
|
|
8
|
+
export declare const getUrl: ({ baseUrl, path, query, querySerializer, url: _url, }: {
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
path?: Record<string, unknown>;
|
|
11
|
+
query?: Record<string, unknown>;
|
|
12
|
+
querySerializer: QuerySerializer;
|
|
13
|
+
url: string;
|
|
14
|
+
}) => string;
|
|
15
|
+
export declare function getValidRequestBody(options: {
|
|
16
|
+
body?: unknown;
|
|
17
|
+
bodySerializer?: BodySerializer | null;
|
|
18
|
+
serializedBody?: unknown;
|
|
19
|
+
}): unknown;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { clearRolePermissionsCacheV1, confirmFileUploadV1, confirmFileUploadV2, createContactV1, createFileV1, createOneSignalTokenV1, createRoleV1, createTenantV1, deleteContactV1, deleteRoleV1, downloadFileV1, downloadPublicFileV1, getApiInfo, getMyNotificationPreferencesV1, getMyNotificationsV1, getNotificationTypesConfigV1, importCollectionsV1, markAllNotificationAsReadV1, markNotificationAsReadV1, markNotificationAsUnreadV1, migrateCollectionsV1, migrateNotificationTypesV1, type Options, searchCbeEnterprisesV1, searchCbeEstablishmentsCbeV1, searchCollectionsV1, sendPushNotificationV1, sendTestNotificationV1, setUserRolesV1, updateContactV1, updateMyChannelNotificationPreferenceV1, updateMyNotificationPreferencePresetV1, updateMyNotificationTypePreferenceV1, updateRolesPermissionsV1, updateRoleV1, updateTenantV1, updateUiPreferencesV1, viewCollectionIndexV1, viewCollectionsV1, viewContactDetailV1, viewContactIndexV1, viewDomainEventLogIndexV1, viewJobDetailV1, viewJobsIndexV1, viewMeV1, viewPermissionIndexV1, viewRoleDetailV1, viewRoleIndexV1, viewTenantDetailV1, viewTenantIndexV1, viewUiPreferencesV1, viewUnreadNotificationsCountV1, viewUserDetailV1, viewUserIndexV1, viewUserNotificationDetailV1 } from './sdk.gen';
|
|
2
|
+
export { type AddressCommand, type AddressResponse, CbeEnterpriseStatus, type ClearRolePermissionsCacheCommand, type ClearRolePermissionsCacheV1Data, type ClearRolePermissionsCacheV1Error, type ClearRolePermissionsCacheV1Errors, type ClearRolePermissionsCacheV1Response, type ClearRolePermissionsCacheV1Responses, type ClientOptions, type ConfirmFileUploadCommand, type ConfirmFileUploadV1Data, type ConfirmFileUploadV1Error, type ConfirmFileUploadV1Errors, type ConfirmFileUploadV1Response, type ConfirmFileUploadV1Responses, type ConfirmFileUploadV2Data, type ConfirmFileUploadV2Error, type ConfirmFileUploadV2Errors, type ConfirmFileUploadV2Response, type ConfirmFileUploadV2Responses, type ContactNotFoundError, type ContactResponse, type CoordinatesCommand, type CoordinatesResponse, type CreateContactCommand, type CreateContactResponse, type CreateContactV1Data, type CreateContactV1Error, type CreateContactV1Errors, type CreateContactV1Response, type CreateContactV1Responses, type CreatedByUserResponse, type CreateFileCommand, type CreateFileResponse, type CreateFileV1Data, type CreateFileV1Error, type CreateFileV1Errors, type CreateFileV1Response, type CreateFileV1Responses, type CreateOneSignalTokenResponse, type CreateOneSignalTokenV1Data, type CreateOneSignalTokenV1Error, type CreateOneSignalTokenV1Errors, type CreateOneSignalTokenV1Response, type CreateOneSignalTokenV1Responses, type CreateRoleCommand, type CreateRoleResponse, type CreateRoleV1Data, type CreateRoleV1Error, type CreateRoleV1Errors, type CreateRoleV1Response, type CreateRoleV1Responses, type CreateTenantCommand, type CreateTenantResponse, type CreateTenantV1Data, type CreateTenantV1Error, type CreateTenantV1Errors, type CreateTenantV1Response, type CreateTenantV1Responses, Currency, type DeleteContactV1Data, type DeleteContactV1Error, type DeleteContactV1Errors, type DeleteContactV1Response, type DeleteContactV1Responses, type DeleteRoleV1Data, type DeleteRoleV1Error, type DeleteRoleV1Errors, type DeleteRoleV1Response, type DeleteRoleV1Responses, DomainEventType, type DownloadFileV1Data, type DownloadFileV1Error, type DownloadFileV1Errors, type DownloadPublicFileV1Data, type DownloadPublicFileV1Error, type DownloadPublicFileV1Errors, type FileNotFoundError, type FileResponse, FontSize, type GetApiInfoData, type GetApiInfoError, type GetApiInfoErrors, type GetApiInfoResponse, type GetApiInfoResponse2, type GetApiInfoResponses, type GetMyNotificationPreferencesResponse, type GetMyNotificationPreferencesV1Data, type GetMyNotificationPreferencesV1Error, type GetMyNotificationPreferencesV1Errors, type GetMyNotificationPreferencesV1Response, type GetMyNotificationPreferencesV1Responses, type GetMyNotificationsFilterQuery, type GetMyNotificationsPaginationQuery, type GetMyNotificationsQueryKey, type GetMyNotificationsResponse, type GetMyNotificationsResponseMeta, type GetMyNotificationsV1Data, type GetMyNotificationsV1Error, type GetMyNotificationsV1Errors, type GetMyNotificationsV1Response, type GetMyNotificationsV1Responses, type GetNotificationTypesConfigResponse, type GetNotificationTypesConfigV1Data, type GetNotificationTypesConfigV1Error, type GetNotificationTypesConfigV1Errors, type GetNotificationTypesConfigV1Response, type GetNotificationTypesConfigV1Responses, GlobalSearchCollectionName, type ImportCollectionsV1Data, type ImportCollectionsV1Error, type ImportCollectionsV1Errors, type ImportCollectionsV1Responses, type InternalServerApiError, type JobNotFoundError, JobStatus, Locale, type MarkAllNotificationAsReadV1Data, type MarkAllNotificationAsReadV1Error, type MarkAllNotificationAsReadV1Errors, type MarkAllNotificationAsReadV1Response, type MarkAllNotificationAsReadV1Responses, type MarkNotificationAsReadV1Data, type MarkNotificationAsReadV1Error, type MarkNotificationAsReadV1Errors, type MarkNotificationAsReadV1Response, type MarkNotificationAsReadV1Responses, type MarkNotificationAsUnreadV1Data, type MarkNotificationAsUnreadV1Error, type MarkNotificationAsUnreadV1Errors, type MarkNotificationAsUnreadV1Response, type MarkNotificationAsUnreadV1Responses, type MigrateCollectionsV1Data, type MigrateCollectionsV1Error, type MigrateCollectionsV1Errors, type MigrateCollectionsV1Responses, type MigrateNotificationTypesCommand, type MigrateNotificationTypesV1Data, type MigrateNotificationTypesV1Error, type MigrateNotificationTypesV1Errors, type MigrateNotificationTypesV1Response, type MigrateNotificationTypesV1Responses, type MigrationAlreadyPerformedError, type MigrationAlreadyPerformedErrorMeta, MimeType, type MonetaryDto, NotificationChannel, NotificationPreset, NotificationType, type NotificationTypeChannelConfig, type PaginatedOffsetQuery, type PaginatedOffsetResponseMeta, Permission, type PreferenceTypes, type PresignedFileResponse, type PresignedFileVariantResponse, QueueName, type RoleNotFoundError, type RoleResponse, type SearchCbeEnterprisesResponse, type SearchCbeEnterprisesV1Data, type SearchCbeEnterprisesV1Error, type SearchCbeEnterprisesV1Errors, type SearchCbeEnterprisesV1Response, type SearchCbeEnterprisesV1Responses, type SearchCbeEnterprisesView, type SearchCbeEstablishmentResponse, type SearchCbeEstablishmentsCbeV1Data, type SearchCbeEstablishmentsCbeV1Error, type SearchCbeEstablishmentsCbeV1Errors, type SearchCbeEstablishmentsCbeV1Response, type SearchCbeEstablishmentsCbeV1Responses, type SearchCbeEstablishmentsFilterQuery, type SearchCbeEstablishmentsView, type SearchCollectionContactResponse, type SearchCollectionPaginationQuery, type SearchCollectionsFilterContactQuery, type SearchCollectionsFilterQuery, type SearchCollectionsMetaResponse, type SearchCollectionsQueryKey, type SearchCollectionsResponse, type SearchCollectionsResponseItem, type SearchCollectionsV1Data, type SearchCollectionsV1Error, type SearchCollectionsV1Errors, type SearchCollectionsV1Response, type SearchCollectionsV1Responses, type SearchCollectionUserResponse, type SendPushNotificationCommand, type SendPushNotificationV1Data, type SendPushNotificationV1Error, type SendPushNotificationV1Errors, type SendPushNotificationV1Responses, type SendTestNotificationCommand, type SendTestNotificationV1Data, type SendTestNotificationV1Error, type SendTestNotificationV1Errors, type SendTestNotificationV1Response, type SendTestNotificationV1Responses, type SetUserRolesCommand, type SetUserRolesV1Data, type SetUserRolesV1Error, type SetUserRolesV1Errors, SortDirection, SubjectType, type SystemTestNotificationNotification, type TenantResponse, type TestNotificationContent, type Translations, TypesenseCollectionName, UiTheme, type UpdateContactCommand, type UpdateContactV1Data, type UpdateContactV1Error, type UpdateContactV1Errors, type UpdateContactV1Response, type UpdateContactV1Responses, type UpdateMyChannelNotificationPreferenceCommand, type UpdateMyChannelNotificationPreferenceV1Data, type UpdateMyChannelNotificationPreferenceV1Error, type UpdateMyChannelNotificationPreferenceV1Errors, type UpdateMyChannelNotificationPreferenceV1Response, type UpdateMyChannelNotificationPreferenceV1Responses, type UpdateMyNotificationPreferencePresetCommand, type UpdateMyNotificationPreferencePresetV1Data, type UpdateMyNotificationPreferencePresetV1Error, type UpdateMyNotificationPreferencePresetV1Errors, type UpdateMyNotificationPreferencePresetV1Response, type UpdateMyNotificationPreferencePresetV1Responses, type UpdateMyNotificationTypePreferenceCommand, type UpdateMyNotificationTypePreferenceV1Data, type UpdateMyNotificationTypePreferenceV1Error, type UpdateMyNotificationTypePreferenceV1Errors, type UpdateMyNotificationTypePreferenceV1Response, type UpdateMyNotificationTypePreferenceV1Responses, type UpdateRoleCommand, type UpdateRolesPermissionsCommand, type UpdateRolesPermissionsCommandItem, type UpdateRolesPermissionsV1Data, type UpdateRolesPermissionsV1Error, type UpdateRolesPermissionsV1Errors, type UpdateRolesPermissionsV1Response, type UpdateRolesPermissionsV1Responses, type UpdateRoleV1Data, type UpdateRoleV1Error, type UpdateRoleV1Errors, type UpdateRoleV1Response, type UpdateRoleV1Responses, type UpdateTenantCommand, type UpdateTenantV1Data, type UpdateTenantV1Error, type UpdateTenantV1Errors, type UpdateTenantV1Response, type UpdateTenantV1Responses, type UpdateUiPreferencesCommand, type UpdateUiPreferencesV1Data, type UpdateUiPreferencesV1Error, type UpdateUiPreferencesV1Errors, type UpdateUiPreferencesV1Responses, type UserIndexRoleView, type UserIndexView, type UserNotFoundError, type UserNotificationNotFoundError, type ViewCollectionIndexResponse, type ViewCollectionIndexV1Data, type ViewCollectionIndexV1Error, type ViewCollectionIndexV1Errors, type ViewCollectionIndexV1Response, type ViewCollectionIndexV1Responses, type ViewCollectionsV1Data, type ViewCollectionsV1Error, type ViewCollectionsV1Errors, type ViewCollectionsV1Responses, type ViewContactDetailResponse, type ViewContactDetailV1Data, type ViewContactDetailV1Error, type ViewContactDetailV1Errors, type ViewContactDetailV1Response, type ViewContactDetailV1Responses, type ViewContactIndexFilterQuery, type ViewContactIndexResponse, type ViewContactIndexSortQuery, ViewContactIndexSortQueryKey, type ViewContactIndexV1Data, type ViewContactIndexV1Error, type ViewContactIndexV1Errors, type ViewContactIndexV1Response, type ViewContactIndexV1Responses, type ViewDomainEventLogIndexFilterQuery, type ViewDomainEventLogIndexItemResponse, type ViewDomainEventLogIndexPaginationQuery, type ViewDomainEventLogIndexQueryKey, type ViewDomainEventLogIndexResponse, type ViewDomainEventLogIndexResponseMeta, type ViewDomainEventLogIndexV1Data, type ViewDomainEventLogIndexV1Error, type ViewDomainEventLogIndexV1Errors, type ViewDomainEventLogIndexV1Response, type ViewDomainEventLogIndexV1Responses, type ViewJobDetailResponse, type ViewJobDetailV1Data, type ViewJobDetailV1Error, type ViewJobDetailV1Errors, type ViewJobDetailV1Response, type ViewJobDetailV1Responses, type ViewJobsIndexFilterQuery, type ViewJobsIndexItemResponse, type ViewJobsIndexPaginationQuery, type ViewJobsIndexQueryKey, type ViewJobsIndexResponse, type ViewJobsIndexResponseMeta, type ViewJobsIndexSortQuery, ViewJobsIndexSortQueryKey, type ViewJobsIndexV1Data, type ViewJobsIndexV1Error, type ViewJobsIndexV1Errors, type ViewJobsIndexV1Response, type ViewJobsIndexV1Responses, type ViewMeResponse, type ViewMeV1Data, type ViewMeV1Error, type ViewMeV1Errors, type ViewMeV1Response, type ViewMeV1Responses, type ViewNotificationTypeConfigTypeResponse, type ViewNotificationTypesConfigGroupResponse, type ViewPermissionIndexGroupResponse, type ViewPermissionIndexPermissionResponse, type ViewPermissionIndexResponse, type ViewPermissionIndexV1Data, type ViewPermissionIndexV1Error, type ViewPermissionIndexV1Errors, type ViewPermissionIndexV1Response, type ViewPermissionIndexV1Responses, type ViewRoleDetailResponse, type ViewRoleDetailV1Data, type ViewRoleDetailV1Error, type ViewRoleDetailV1Errors, type ViewRoleDetailV1Response, type ViewRoleDetailV1Responses, type ViewRoleIndexResponse, type ViewRoleIndexV1Data, type ViewRoleIndexV1Error, type ViewRoleIndexV1Errors, type ViewRoleIndexV1Response, type ViewRoleIndexV1Responses, type ViewTenantDetailResponse, type ViewTenantDetailV1Data, type ViewTenantDetailV1Error, type ViewTenantDetailV1Errors, type ViewTenantDetailV1Response, type ViewTenantDetailV1Responses, type ViewTenantIndexResponse, type ViewTenantIndexV1Data, type ViewTenantIndexV1Error, type ViewTenantIndexV1Errors, type ViewTenantIndexV1Response, type ViewTenantIndexV1Responses, type ViewUiPreferencesResponse, type ViewUiPreferencesV1Data, type ViewUiPreferencesV1Error, type ViewUiPreferencesV1Errors, type ViewUiPreferencesV1Response, type ViewUiPreferencesV1Responses, type ViewUnreadNotificationsCountResponse, type ViewUnreadNotificationsCountV1Data, type ViewUnreadNotificationsCountV1Error, type ViewUnreadNotificationsCountV1Errors, type ViewUnreadNotificationsCountV1Response, type ViewUnreadNotificationsCountV1Responses, type ViewUserDetailResponse, type ViewUserDetailV1Data, type ViewUserDetailV1Error, type ViewUserDetailV1Errors, type ViewUserDetailV1Response, type ViewUserDetailV1Responses, type ViewUserIndexResponse, type ViewUserIndexV1Data, type ViewUserIndexV1Error, type ViewUserIndexV1Errors, type ViewUserIndexV1Response, type ViewUserIndexV1Responses, type ViewUserNotificationDetailV1Data, type ViewUserNotificationDetailV1Error, type ViewUserNotificationDetailV1Errors, type ViewUserNotificationDetailV1Response, type ViewUserNotificationDetailV1Responses } from './types.gen';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { ClearRolePermissionsCacheV1Data, ClearRolePermissionsCacheV1Errors, ClearRolePermissionsCacheV1Responses, ConfirmFileUploadV1Data, ConfirmFileUploadV1Errors, ConfirmFileUploadV1Responses, ConfirmFileUploadV2Data, ConfirmFileUploadV2Errors, ConfirmFileUploadV2Responses, CreateContactV1Data, CreateContactV1Errors, CreateContactV1Responses, CreateFileV1Data, CreateFileV1Errors, CreateFileV1Responses, CreateOneSignalTokenV1Data, CreateOneSignalTokenV1Errors, CreateOneSignalTokenV1Responses, CreateRoleV1Data, CreateRoleV1Errors, CreateRoleV1Responses, CreateTenantV1Data, CreateTenantV1Errors, CreateTenantV1Responses, DeleteContactV1Data, DeleteContactV1Errors, DeleteContactV1Responses, DeleteRoleV1Data, DeleteRoleV1Errors, DeleteRoleV1Responses, DownloadFileV1Data, DownloadFileV1Errors, DownloadPublicFileV1Data, DownloadPublicFileV1Errors, GetApiInfoData, GetApiInfoErrors, GetApiInfoResponses, GetMyNotificationPreferencesV1Data, GetMyNotificationPreferencesV1Errors, GetMyNotificationPreferencesV1Responses, GetMyNotificationsV1Data, GetMyNotificationsV1Errors, GetMyNotificationsV1Responses, GetNotificationTypesConfigV1Data, GetNotificationTypesConfigV1Errors, GetNotificationTypesConfigV1Responses, ImportCollectionsV1Data, ImportCollectionsV1Errors, ImportCollectionsV1Responses, MarkAllNotificationAsReadV1Data, MarkAllNotificationAsReadV1Errors, MarkAllNotificationAsReadV1Responses, MarkNotificationAsReadV1Data, MarkNotificationAsReadV1Errors, MarkNotificationAsReadV1Responses, MarkNotificationAsUnreadV1Data, MarkNotificationAsUnreadV1Errors, MarkNotificationAsUnreadV1Responses, MigrateCollectionsV1Data, MigrateCollectionsV1Errors, MigrateCollectionsV1Responses, MigrateNotificationTypesV1Data, MigrateNotificationTypesV1Errors, MigrateNotificationTypesV1Responses, SearchCbeEnterprisesV1Data, SearchCbeEnterprisesV1Errors, SearchCbeEnterprisesV1Responses, SearchCbeEstablishmentsCbeV1Data, SearchCbeEstablishmentsCbeV1Errors, SearchCbeEstablishmentsCbeV1Responses, SearchCollectionsV1Data, SearchCollectionsV1Errors, SearchCollectionsV1Responses, SendPushNotificationV1Data, SendPushNotificationV1Errors, SendPushNotificationV1Responses, SendTestNotificationV1Data, SendTestNotificationV1Errors, SendTestNotificationV1Responses, SetUserRolesV1Data, SetUserRolesV1Errors, UpdateContactV1Data, UpdateContactV1Errors, UpdateContactV1Responses, UpdateMyChannelNotificationPreferenceV1Data, UpdateMyChannelNotificationPreferenceV1Errors, UpdateMyChannelNotificationPreferenceV1Responses, UpdateMyNotificationPreferencePresetV1Data, UpdateMyNotificationPreferencePresetV1Errors, UpdateMyNotificationPreferencePresetV1Responses, UpdateMyNotificationTypePreferenceV1Data, UpdateMyNotificationTypePreferenceV1Errors, UpdateMyNotificationTypePreferenceV1Responses, UpdateRolesPermissionsV1Data, UpdateRolesPermissionsV1Errors, UpdateRolesPermissionsV1Responses, UpdateRoleV1Data, UpdateRoleV1Errors, UpdateRoleV1Responses, UpdateTenantV1Data, UpdateTenantV1Errors, UpdateTenantV1Responses, UpdateUiPreferencesV1Data, UpdateUiPreferencesV1Errors, UpdateUiPreferencesV1Responses, ViewCollectionIndexV1Data, ViewCollectionIndexV1Errors, ViewCollectionIndexV1Responses, ViewCollectionsV1Data, ViewCollectionsV1Errors, ViewCollectionsV1Responses, ViewContactDetailV1Data, ViewContactDetailV1Errors, ViewContactDetailV1Responses, ViewContactIndexV1Data, ViewContactIndexV1Errors, ViewContactIndexV1Responses, ViewDomainEventLogIndexV1Data, ViewDomainEventLogIndexV1Errors, ViewDomainEventLogIndexV1Responses, ViewJobDetailV1Data, ViewJobDetailV1Errors, ViewJobDetailV1Responses, ViewJobsIndexV1Data, ViewJobsIndexV1Errors, ViewJobsIndexV1Responses, ViewMeV1Data, ViewMeV1Errors, ViewMeV1Responses, ViewPermissionIndexV1Data, ViewPermissionIndexV1Errors, ViewPermissionIndexV1Responses, ViewRoleDetailV1Data, ViewRoleDetailV1Errors, ViewRoleDetailV1Responses, ViewRoleIndexV1Data, ViewRoleIndexV1Errors, ViewRoleIndexV1Responses, ViewTenantDetailV1Data, ViewTenantDetailV1Errors, ViewTenantDetailV1Responses, ViewTenantIndexV1Data, ViewTenantIndexV1Errors, ViewTenantIndexV1Responses, ViewUiPreferencesV1Data, ViewUiPreferencesV1Errors, ViewUiPreferencesV1Responses, ViewUnreadNotificationsCountV1Data, ViewUnreadNotificationsCountV1Errors, ViewUnreadNotificationsCountV1Responses, ViewUserDetailV1Data, ViewUserDetailV1Errors, ViewUserDetailV1Responses, ViewUserIndexV1Data, ViewUserIndexV1Errors, ViewUserIndexV1Responses, ViewUserNotificationDetailV1Data, ViewUserNotificationDetailV1Errors, ViewUserNotificationDetailV1Responses } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare const viewPermissionIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewPermissionIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewPermissionIndexV1Responses, ViewPermissionIndexV1Errors, ThrowOnError, "fields">;
|
|
17
|
+
export declare const viewTenantIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewTenantIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewTenantIndexV1Responses, ViewTenantIndexV1Errors, ThrowOnError, "fields">;
|
|
18
|
+
export declare const createTenantV1: <ThrowOnError extends boolean = true>(options: Options<CreateTenantV1Data, ThrowOnError>) => import("./client").RequestResult<CreateTenantV1Responses, CreateTenantV1Errors, ThrowOnError, "fields">;
|
|
19
|
+
export declare const viewTenantDetailV1: <ThrowOnError extends boolean = true>(options: Options<ViewTenantDetailV1Data, ThrowOnError>) => import("./client").RequestResult<ViewTenantDetailV1Responses, ViewTenantDetailV1Errors, ThrowOnError, "fields">;
|
|
20
|
+
export declare const updateTenantV1: <ThrowOnError extends boolean = true>(options: Options<UpdateTenantV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateTenantV1Responses, UpdateTenantV1Errors, ThrowOnError, "fields">;
|
|
21
|
+
export declare const getApiInfo: <ThrowOnError extends boolean = true>(options?: Options<GetApiInfoData, ThrowOnError>) => import("./client").RequestResult<GetApiInfoResponses, GetApiInfoErrors, ThrowOnError, "fields">;
|
|
22
|
+
export declare const migrateCollectionsV1: <ThrowOnError extends boolean = true>(options: Options<MigrateCollectionsV1Data, ThrowOnError>) => import("./client").RequestResult<MigrateCollectionsV1Responses, MigrateCollectionsV1Errors, ThrowOnError, "fields">;
|
|
23
|
+
export declare const importCollectionsV1: <ThrowOnError extends boolean = true>(options?: Options<ImportCollectionsV1Data, ThrowOnError>) => import("./client").RequestResult<ImportCollectionsV1Responses, ImportCollectionsV1Errors, ThrowOnError, "fields">;
|
|
24
|
+
export declare const viewCollectionsV1: <ThrowOnError extends boolean = true>(options?: Options<ViewCollectionsV1Data, ThrowOnError>) => import("./client").RequestResult<ViewCollectionsV1Responses, ViewCollectionsV1Errors, ThrowOnError, "fields">;
|
|
25
|
+
export declare const viewCollectionIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewCollectionIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewCollectionIndexV1Responses, ViewCollectionIndexV1Errors, ThrowOnError, "fields">;
|
|
26
|
+
export declare const setUserRolesV1: <ThrowOnError extends boolean = true>(options: Options<SetUserRolesV1Data, ThrowOnError>) => import("./client").RequestResult<unknown, SetUserRolesV1Errors, ThrowOnError, "fields">;
|
|
27
|
+
export declare const viewMeV1: <ThrowOnError extends boolean = true>(options?: Options<ViewMeV1Data, ThrowOnError>) => import("./client").RequestResult<ViewMeV1Responses, ViewMeV1Errors, ThrowOnError, "fields">;
|
|
28
|
+
export declare const viewUserDetailV1: <ThrowOnError extends boolean = true>(options: Options<ViewUserDetailV1Data, ThrowOnError>) => import("./client").RequestResult<ViewUserDetailV1Responses, ViewUserDetailV1Errors, ThrowOnError, "fields">;
|
|
29
|
+
export declare const viewUserIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewUserIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewUserIndexV1Responses, ViewUserIndexV1Errors, ThrowOnError, "fields">;
|
|
30
|
+
export declare const viewRoleIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewRoleIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewRoleIndexV1Responses, ViewRoleIndexV1Errors, ThrowOnError, "fields">;
|
|
31
|
+
export declare const updateRolesPermissionsV1: <ThrowOnError extends boolean = true>(options: Options<UpdateRolesPermissionsV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateRolesPermissionsV1Responses, UpdateRolesPermissionsV1Errors, ThrowOnError, "fields">;
|
|
32
|
+
export declare const createRoleV1: <ThrowOnError extends boolean = true>(options: Options<CreateRoleV1Data, ThrowOnError>) => import("./client").RequestResult<CreateRoleV1Responses, CreateRoleV1Errors, ThrowOnError, "fields">;
|
|
33
|
+
export declare const clearRolePermissionsCacheV1: <ThrowOnError extends boolean = true>(options: Options<ClearRolePermissionsCacheV1Data, ThrowOnError>) => import("./client").RequestResult<ClearRolePermissionsCacheV1Responses, ClearRolePermissionsCacheV1Errors, ThrowOnError, "fields">;
|
|
34
|
+
export declare const deleteRoleV1: <ThrowOnError extends boolean = true>(options: Options<DeleteRoleV1Data, ThrowOnError>) => import("./client").RequestResult<DeleteRoleV1Responses, DeleteRoleV1Errors, ThrowOnError, "fields">;
|
|
35
|
+
export declare const viewRoleDetailV1: <ThrowOnError extends boolean = true>(options: Options<ViewRoleDetailV1Data, ThrowOnError>) => import("./client").RequestResult<ViewRoleDetailV1Responses, ViewRoleDetailV1Errors, ThrowOnError, "fields">;
|
|
36
|
+
export declare const updateRoleV1: <ThrowOnError extends boolean = true>(options: Options<UpdateRoleV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateRoleV1Responses, UpdateRoleV1Errors, ThrowOnError, "fields">;
|
|
37
|
+
export declare const createFileV1: <ThrowOnError extends boolean = true>(options: Options<CreateFileV1Data, ThrowOnError>) => import("./client").RequestResult<CreateFileV1Responses, CreateFileV1Errors, ThrowOnError, "fields">;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
41
|
+
export declare const confirmFileUploadV1: <ThrowOnError extends boolean = true>(options: Options<ConfirmFileUploadV1Data, ThrowOnError>) => import("./client").RequestResult<ConfirmFileUploadV1Responses, ConfirmFileUploadV1Errors, ThrowOnError, "fields">;
|
|
42
|
+
export declare const confirmFileUploadV2: <ThrowOnError extends boolean = true>(options: Options<ConfirmFileUploadV2Data, ThrowOnError>) => import("./client").RequestResult<ConfirmFileUploadV2Responses, ConfirmFileUploadV2Errors, ThrowOnError, "fields">;
|
|
43
|
+
export declare const downloadFileV1: <ThrowOnError extends boolean = true>(options: Options<DownloadFileV1Data, ThrowOnError>) => import("./client").RequestResult<unknown, DownloadFileV1Errors, ThrowOnError, "fields">;
|
|
44
|
+
export declare const downloadPublicFileV1: <ThrowOnError extends boolean = true>(options: Options<DownloadPublicFileV1Data, ThrowOnError>) => import("./client").RequestResult<unknown, DownloadPublicFileV1Errors, ThrowOnError, "fields">;
|
|
45
|
+
export declare const viewContactIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewContactIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewContactIndexV1Responses, ViewContactIndexV1Errors, ThrowOnError, "fields">;
|
|
46
|
+
export declare const createContactV1: <ThrowOnError extends boolean = true>(options: Options<CreateContactV1Data, ThrowOnError>) => import("./client").RequestResult<CreateContactV1Responses, CreateContactV1Errors, ThrowOnError, "fields">;
|
|
47
|
+
export declare const deleteContactV1: <ThrowOnError extends boolean = true>(options: Options<DeleteContactV1Data, ThrowOnError>) => import("./client").RequestResult<DeleteContactV1Responses, DeleteContactV1Errors, ThrowOnError, "fields">;
|
|
48
|
+
export declare const viewContactDetailV1: <ThrowOnError extends boolean = true>(options: Options<ViewContactDetailV1Data, ThrowOnError>) => import("./client").RequestResult<ViewContactDetailV1Responses, ViewContactDetailV1Errors, ThrowOnError, "fields">;
|
|
49
|
+
export declare const updateContactV1: <ThrowOnError extends boolean = true>(options: Options<UpdateContactV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateContactV1Responses, UpdateContactV1Errors, ThrowOnError, "fields">;
|
|
50
|
+
export declare const viewUiPreferencesV1: <ThrowOnError extends boolean = true>(options?: Options<ViewUiPreferencesV1Data, ThrowOnError>) => import("./client").RequestResult<ViewUiPreferencesV1Responses, ViewUiPreferencesV1Errors, ThrowOnError, "fields">;
|
|
51
|
+
export declare const updateUiPreferencesV1: <ThrowOnError extends boolean = true>(options: Options<UpdateUiPreferencesV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateUiPreferencesV1Responses, UpdateUiPreferencesV1Errors, ThrowOnError, "fields">;
|
|
52
|
+
export declare const createOneSignalTokenV1: <ThrowOnError extends boolean = true>(options?: Options<CreateOneSignalTokenV1Data, ThrowOnError>) => import("./client").RequestResult<CreateOneSignalTokenV1Responses, CreateOneSignalTokenV1Errors, ThrowOnError, "fields">;
|
|
53
|
+
export declare const sendPushNotificationV1: <ThrowOnError extends boolean = true>(options: Options<SendPushNotificationV1Data, ThrowOnError>) => import("./client").RequestResult<SendPushNotificationV1Responses, SendPushNotificationV1Errors, ThrowOnError, "fields">;
|
|
54
|
+
export declare const viewDomainEventLogIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewDomainEventLogIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewDomainEventLogIndexV1Responses, ViewDomainEventLogIndexV1Errors, ThrowOnError, "fields">;
|
|
55
|
+
export declare const searchCollectionsV1: <ThrowOnError extends boolean = true>(options: Options<SearchCollectionsV1Data, ThrowOnError>) => import("./client").RequestResult<SearchCollectionsV1Responses, SearchCollectionsV1Errors, ThrowOnError, "fields">;
|
|
56
|
+
export declare const getMyNotificationPreferencesV1: <ThrowOnError extends boolean = true>(options?: Options<GetMyNotificationPreferencesV1Data, ThrowOnError>) => import("./client").RequestResult<GetMyNotificationPreferencesV1Responses, GetMyNotificationPreferencesV1Errors, ThrowOnError, "fields">;
|
|
57
|
+
export declare const getNotificationTypesConfigV1: <ThrowOnError extends boolean = true>(options?: Options<GetNotificationTypesConfigV1Data, ThrowOnError>) => import("./client").RequestResult<GetNotificationTypesConfigV1Responses, GetNotificationTypesConfigV1Errors, ThrowOnError, "fields">;
|
|
58
|
+
export declare const updateMyChannelNotificationPreferenceV1: <ThrowOnError extends boolean = true>(options: Options<UpdateMyChannelNotificationPreferenceV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateMyChannelNotificationPreferenceV1Responses, UpdateMyChannelNotificationPreferenceV1Errors, ThrowOnError, "fields">;
|
|
59
|
+
export declare const sendTestNotificationV1: <ThrowOnError extends boolean = true>(options: Options<SendTestNotificationV1Data, ThrowOnError>) => import("./client").RequestResult<SendTestNotificationV1Responses, SendTestNotificationV1Errors, ThrowOnError, "fields">;
|
|
60
|
+
export declare const getMyNotificationsV1: <ThrowOnError extends boolean = true>(options?: Options<GetMyNotificationsV1Data, ThrowOnError>) => import("./client").RequestResult<GetMyNotificationsV1Responses, GetMyNotificationsV1Errors, ThrowOnError, "fields">;
|
|
61
|
+
export declare const viewUnreadNotificationsCountV1: <ThrowOnError extends boolean = true>(options?: Options<ViewUnreadNotificationsCountV1Data, ThrowOnError>) => import("./client").RequestResult<ViewUnreadNotificationsCountV1Responses, ViewUnreadNotificationsCountV1Errors, ThrowOnError, "fields">;
|
|
62
|
+
export declare const viewUserNotificationDetailV1: <ThrowOnError extends boolean = true>(options: Options<ViewUserNotificationDetailV1Data, ThrowOnError>) => import("./client").RequestResult<ViewUserNotificationDetailV1Responses, ViewUserNotificationDetailV1Errors, ThrowOnError, "fields">;
|
|
63
|
+
export declare const markAllNotificationAsReadV1: <ThrowOnError extends boolean = true>(options?: Options<MarkAllNotificationAsReadV1Data, ThrowOnError>) => import("./client").RequestResult<MarkAllNotificationAsReadV1Responses, MarkAllNotificationAsReadV1Errors, ThrowOnError, "fields">;
|
|
64
|
+
export declare const updateMyNotificationTypePreferenceV1: <ThrowOnError extends boolean = true>(options: Options<UpdateMyNotificationTypePreferenceV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateMyNotificationTypePreferenceV1Responses, UpdateMyNotificationTypePreferenceV1Errors, ThrowOnError, "fields">;
|
|
65
|
+
export declare const markNotificationAsReadV1: <ThrowOnError extends boolean = true>(options: Options<MarkNotificationAsReadV1Data, ThrowOnError>) => import("./client").RequestResult<MarkNotificationAsReadV1Responses, MarkNotificationAsReadV1Errors, ThrowOnError, "fields">;
|
|
66
|
+
export declare const markNotificationAsUnreadV1: <ThrowOnError extends boolean = true>(options: Options<MarkNotificationAsUnreadV1Data, ThrowOnError>) => import("./client").RequestResult<MarkNotificationAsUnreadV1Responses, MarkNotificationAsUnreadV1Errors, ThrowOnError, "fields">;
|
|
67
|
+
export declare const updateMyNotificationPreferencePresetV1: <ThrowOnError extends boolean = true>(options: Options<UpdateMyNotificationPreferencePresetV1Data, ThrowOnError>) => import("./client").RequestResult<UpdateMyNotificationPreferencePresetV1Responses, UpdateMyNotificationPreferencePresetV1Errors, ThrowOnError, "fields">;
|
|
68
|
+
export declare const migrateNotificationTypesV1: <ThrowOnError extends boolean = true>(options: Options<MigrateNotificationTypesV1Data, ThrowOnError>) => import("./client").RequestResult<MigrateNotificationTypesV1Responses, MigrateNotificationTypesV1Errors, ThrowOnError, "fields">;
|
|
69
|
+
export declare const viewJobsIndexV1: <ThrowOnError extends boolean = true>(options?: Options<ViewJobsIndexV1Data, ThrowOnError>) => import("./client").RequestResult<ViewJobsIndexV1Responses, ViewJobsIndexV1Errors, ThrowOnError, "fields">;
|
|
70
|
+
export declare const viewJobDetailV1: <ThrowOnError extends boolean = true>(options: Options<ViewJobDetailV1Data, ThrowOnError>) => import("./client").RequestResult<ViewJobDetailV1Responses, ViewJobDetailV1Errors, ThrowOnError, "fields">;
|
|
71
|
+
export declare const searchCbeEnterprisesV1: <ThrowOnError extends boolean = true>(options: Options<SearchCbeEnterprisesV1Data, ThrowOnError>) => import("./client").RequestResult<SearchCbeEnterprisesV1Responses, SearchCbeEnterprisesV1Errors, ThrowOnError, "fields">;
|
|
72
|
+
export declare const searchCbeEstablishmentsCbeV1: <ThrowOnError extends boolean = true>(options: Options<SearchCbeEstablishmentsCbeV1Data, ThrowOnError>) => import("./client").RequestResult<SearchCbeEstablishmentsCbeV1Responses, SearchCbeEstablishmentsCbeV1Errors, ThrowOnError, "fields">;
|