@codeforamerica/safety-net-openapi-california 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/applications/client/client.gen.d.ts +2 -0
- package/dist/applications/client/client.gen.js +128 -0
- package/dist/applications/client/index.d.ts +8 -0
- package/dist/applications/client/index.js +6 -0
- package/dist/applications/client/types.gen.d.ts +88 -0
- package/dist/applications/client/types.gen.js +2 -0
- package/dist/applications/client/utils.gen.d.ts +14 -0
- package/dist/applications/client/utils.gen.js +171 -0
- package/dist/applications/client.gen.d.ts +12 -0
- package/dist/applications/client.gen.js +3 -0
- package/dist/applications/core/auth.gen.d.ts +18 -0
- package/dist/applications/core/auth.gen.js +14 -0
- package/dist/applications/core/bodySerializer.gen.d.ts +25 -0
- package/dist/applications/core/bodySerializer.gen.js +57 -0
- package/dist/applications/core/params.gen.d.ts +43 -0
- package/dist/applications/core/params.gen.js +100 -0
- package/dist/applications/core/pathSerializer.gen.d.ts +33 -0
- package/dist/applications/core/pathSerializer.gen.js +114 -0
- package/dist/applications/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/applications/core/queryKeySerializer.gen.js +99 -0
- package/dist/applications/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/applications/core/serverSentEvents.gen.js +137 -0
- package/dist/applications/core/types.gen.d.ts +78 -0
- package/dist/applications/core/types.gen.js +2 -0
- package/dist/applications/core/utils.gen.d.ts +19 -0
- package/dist/applications/core/utils.gen.js +87 -0
- package/dist/applications/index.d.ts +2 -0
- package/dist/applications/index.js +2 -0
- package/dist/applications/sdk.gen.d.ts +45 -0
- package/dist/applications/sdk.gen.js +70 -0
- package/dist/applications/types.gen.d.ts +34007 -0
- package/dist/applications/types.gen.js +2 -0
- package/dist/applications/zod.gen.d.ts +17374 -0
- package/dist/applications/zod.gen.js +16857 -0
- package/dist/households/client/client.gen.d.ts +2 -0
- package/dist/households/client/client.gen.js +128 -0
- package/dist/households/client/index.d.ts +8 -0
- package/dist/households/client/index.js +6 -0
- package/dist/households/client/types.gen.d.ts +88 -0
- package/dist/households/client/types.gen.js +2 -0
- package/dist/households/client/utils.gen.d.ts +14 -0
- package/dist/households/client/utils.gen.js +171 -0
- package/dist/households/client.gen.d.ts +12 -0
- package/dist/households/client.gen.js +3 -0
- package/dist/households/core/auth.gen.d.ts +18 -0
- package/dist/households/core/auth.gen.js +14 -0
- package/dist/households/core/bodySerializer.gen.d.ts +25 -0
- package/dist/households/core/bodySerializer.gen.js +57 -0
- package/dist/households/core/params.gen.d.ts +43 -0
- package/dist/households/core/params.gen.js +100 -0
- package/dist/households/core/pathSerializer.gen.d.ts +33 -0
- package/dist/households/core/pathSerializer.gen.js +114 -0
- package/dist/households/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/households/core/queryKeySerializer.gen.js +99 -0
- package/dist/households/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/households/core/serverSentEvents.gen.js +137 -0
- package/dist/households/core/types.gen.d.ts +78 -0
- package/dist/households/core/types.gen.js +2 -0
- package/dist/households/core/utils.gen.d.ts +19 -0
- package/dist/households/core/utils.gen.js +87 -0
- package/dist/households/index.d.ts +2 -0
- package/dist/households/index.js +2 -0
- package/dist/households/sdk.gen.d.ts +45 -0
- package/dist/households/sdk.gen.js +70 -0
- package/dist/households/types.gen.d.ts +1693 -0
- package/dist/households/types.gen.js +2 -0
- package/dist/households/zod.gen.d.ts +624 -0
- package/dist/households/zod.gen.js +625 -0
- package/dist/incomes/client/client.gen.d.ts +2 -0
- package/dist/incomes/client/client.gen.js +128 -0
- package/dist/incomes/client/index.d.ts +8 -0
- package/dist/incomes/client/index.js +6 -0
- package/dist/incomes/client/types.gen.d.ts +88 -0
- package/dist/incomes/client/types.gen.js +2 -0
- package/dist/incomes/client/utils.gen.d.ts +14 -0
- package/dist/incomes/client/utils.gen.js +171 -0
- package/dist/incomes/client.gen.d.ts +12 -0
- package/dist/incomes/client.gen.js +3 -0
- package/dist/incomes/core/auth.gen.d.ts +18 -0
- package/dist/incomes/core/auth.gen.js +14 -0
- package/dist/incomes/core/bodySerializer.gen.d.ts +25 -0
- package/dist/incomes/core/bodySerializer.gen.js +57 -0
- package/dist/incomes/core/params.gen.d.ts +43 -0
- package/dist/incomes/core/params.gen.js +100 -0
- package/dist/incomes/core/pathSerializer.gen.d.ts +33 -0
- package/dist/incomes/core/pathSerializer.gen.js +114 -0
- package/dist/incomes/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/incomes/core/queryKeySerializer.gen.js +99 -0
- package/dist/incomes/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/incomes/core/serverSentEvents.gen.js +137 -0
- package/dist/incomes/core/types.gen.d.ts +78 -0
- package/dist/incomes/core/types.gen.js +2 -0
- package/dist/incomes/core/utils.gen.d.ts +19 -0
- package/dist/incomes/core/utils.gen.js +87 -0
- package/dist/incomes/index.d.ts +2 -0
- package/dist/incomes/index.js +2 -0
- package/dist/incomes/sdk.gen.d.ts +47 -0
- package/dist/incomes/sdk.gen.js +72 -0
- package/dist/incomes/types.gen.d.ts +1425 -0
- package/dist/incomes/types.gen.js +2 -0
- package/dist/incomes/zod.gen.d.ts +961 -0
- package/dist/incomes/zod.gen.js +920 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/persons/client/client.gen.d.ts +2 -0
- package/dist/persons/client/client.gen.js +128 -0
- package/dist/persons/client/index.d.ts +8 -0
- package/dist/persons/client/index.js +6 -0
- package/dist/persons/client/types.gen.d.ts +88 -0
- package/dist/persons/client/types.gen.js +2 -0
- package/dist/persons/client/utils.gen.d.ts +14 -0
- package/dist/persons/client/utils.gen.js +171 -0
- package/dist/persons/client.gen.d.ts +12 -0
- package/dist/persons/client.gen.js +3 -0
- package/dist/persons/core/auth.gen.d.ts +18 -0
- package/dist/persons/core/auth.gen.js +14 -0
- package/dist/persons/core/bodySerializer.gen.d.ts +25 -0
- package/dist/persons/core/bodySerializer.gen.js +57 -0
- package/dist/persons/core/params.gen.d.ts +43 -0
- package/dist/persons/core/params.gen.js +100 -0
- package/dist/persons/core/pathSerializer.gen.d.ts +33 -0
- package/dist/persons/core/pathSerializer.gen.js +114 -0
- package/dist/persons/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/persons/core/queryKeySerializer.gen.js +99 -0
- package/dist/persons/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/persons/core/serverSentEvents.gen.js +137 -0
- package/dist/persons/core/types.gen.d.ts +78 -0
- package/dist/persons/core/types.gen.js +2 -0
- package/dist/persons/core/utils.gen.d.ts +19 -0
- package/dist/persons/core/utils.gen.js +87 -0
- package/dist/persons/index.d.ts +2 -0
- package/dist/persons/index.js +2 -0
- package/dist/persons/sdk.gen.d.ts +45 -0
- package/dist/persons/sdk.gen.js +70 -0
- package/dist/persons/types.gen.d.ts +7595 -0
- package/dist/persons/types.gen.js +2 -0
- package/dist/persons/zod.gen.d.ts +3578 -0
- package/dist/persons/zod.gen.js +3579 -0
- package/dist/search-helpers.d.ts +242 -0
- package/dist/search-helpers.js +244 -0
- package/package.json +95 -0
- package/src/applications/client/client.gen.ts +166 -0
- package/src/applications/client/index.ts +23 -0
- package/src/applications/client/types.gen.ts +197 -0
- package/src/applications/client/utils.gen.ts +213 -0
- package/src/applications/client.gen.ts +16 -0
- package/src/applications/core/auth.gen.ts +42 -0
- package/src/applications/core/bodySerializer.gen.ts +100 -0
- package/src/applications/core/params.gen.ts +176 -0
- package/src/applications/core/pathSerializer.gen.ts +181 -0
- package/src/applications/core/queryKeySerializer.gen.ts +136 -0
- package/src/applications/core/serverSentEvents.gen.ts +266 -0
- package/src/applications/core/types.gen.ts +118 -0
- package/src/applications/core/utils.gen.ts +143 -0
- package/src/applications/index.ts +4 -0
- package/src/applications/sdk.gen.ts +92 -0
- package/src/applications/types.gen.ts +34043 -0
- package/src/applications/zod.gen.ts +16877 -0
- package/src/households/client/client.gen.ts +166 -0
- package/src/households/client/index.ts +23 -0
- package/src/households/client/types.gen.ts +197 -0
- package/src/households/client/utils.gen.ts +213 -0
- package/src/households/client.gen.ts +16 -0
- package/src/households/core/auth.gen.ts +42 -0
- package/src/households/core/bodySerializer.gen.ts +100 -0
- package/src/households/core/params.gen.ts +176 -0
- package/src/households/core/pathSerializer.gen.ts +181 -0
- package/src/households/core/queryKeySerializer.gen.ts +136 -0
- package/src/households/core/serverSentEvents.gen.ts +266 -0
- package/src/households/core/types.gen.ts +118 -0
- package/src/households/core/utils.gen.ts +143 -0
- package/src/households/index.ts +4 -0
- package/src/households/sdk.gen.ts +92 -0
- package/src/households/types.gen.ts +1729 -0
- package/src/households/zod.gen.ts +645 -0
- package/src/incomes/client/client.gen.ts +166 -0
- package/src/incomes/client/index.ts +23 -0
- package/src/incomes/client/types.gen.ts +197 -0
- package/src/incomes/client/utils.gen.ts +213 -0
- package/src/incomes/client.gen.ts +16 -0
- package/src/incomes/core/auth.gen.ts +42 -0
- package/src/incomes/core/bodySerializer.gen.ts +100 -0
- package/src/incomes/core/params.gen.ts +176 -0
- package/src/incomes/core/pathSerializer.gen.ts +181 -0
- package/src/incomes/core/queryKeySerializer.gen.ts +136 -0
- package/src/incomes/core/serverSentEvents.gen.ts +266 -0
- package/src/incomes/core/types.gen.ts +118 -0
- package/src/incomes/core/utils.gen.ts +143 -0
- package/src/incomes/index.ts +4 -0
- package/src/incomes/sdk.gen.ts +94 -0
- package/src/incomes/types.gen.ts +1460 -0
- package/src/incomes/zod.gen.ts +939 -0
- package/src/index.ts +5 -0
- package/src/persons/client/client.gen.ts +166 -0
- package/src/persons/client/index.ts +23 -0
- package/src/persons/client/types.gen.ts +197 -0
- package/src/persons/client/utils.gen.ts +213 -0
- package/src/persons/client.gen.ts +16 -0
- package/src/persons/core/auth.gen.ts +42 -0
- package/src/persons/core/bodySerializer.gen.ts +100 -0
- package/src/persons/core/params.gen.ts +176 -0
- package/src/persons/core/pathSerializer.gen.ts +181 -0
- package/src/persons/core/queryKeySerializer.gen.ts +136 -0
- package/src/persons/core/serverSentEvents.gen.ts +266 -0
- package/src/persons/core/types.gen.ts +118 -0
- package/src/persons/core/utils.gen.ts +143 -0
- package/src/persons/index.ts +4 -0
- package/src/persons/sdk.gen.ts +92 -0
- package/src/persons/types.gen.ts +7631 -0
- package/src/persons/zod.gen.ts +3599 -0
- package/src/search-helpers.ts +264 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen';
|
|
3
|
+
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
4
|
+
export const defaultPathSerializer = ({ path, url: _url }) => {
|
|
5
|
+
let url = _url;
|
|
6
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
7
|
+
if (matches) {
|
|
8
|
+
for (const match of matches) {
|
|
9
|
+
let explode = false;
|
|
10
|
+
let name = match.substring(1, match.length - 1);
|
|
11
|
+
let style = 'simple';
|
|
12
|
+
if (name.endsWith('*')) {
|
|
13
|
+
explode = true;
|
|
14
|
+
name = name.substring(0, name.length - 1);
|
|
15
|
+
}
|
|
16
|
+
if (name.startsWith('.')) {
|
|
17
|
+
name = name.substring(1);
|
|
18
|
+
style = 'label';
|
|
19
|
+
}
|
|
20
|
+
else if (name.startsWith(';')) {
|
|
21
|
+
name = name.substring(1);
|
|
22
|
+
style = 'matrix';
|
|
23
|
+
}
|
|
24
|
+
const value = path[name];
|
|
25
|
+
if (value === undefined || value === null) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (typeof value === 'object') {
|
|
33
|
+
url = url.replace(match, serializeObjectParam({
|
|
34
|
+
explode,
|
|
35
|
+
name,
|
|
36
|
+
style,
|
|
37
|
+
value: value,
|
|
38
|
+
valueOnly: true,
|
|
39
|
+
}));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (style === 'matrix') {
|
|
43
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
44
|
+
name,
|
|
45
|
+
value: value,
|
|
46
|
+
})}`);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
50
|
+
url = url.replace(match, replaceValue);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return url;
|
|
54
|
+
};
|
|
55
|
+
export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
|
|
56
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
57
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
58
|
+
if (path) {
|
|
59
|
+
url = defaultPathSerializer({ path, url });
|
|
60
|
+
}
|
|
61
|
+
let search = query ? querySerializer(query) : '';
|
|
62
|
+
if (search.startsWith('?')) {
|
|
63
|
+
search = search.substring(1);
|
|
64
|
+
}
|
|
65
|
+
if (search) {
|
|
66
|
+
url += `?${search}`;
|
|
67
|
+
}
|
|
68
|
+
return url;
|
|
69
|
+
};
|
|
70
|
+
export function getValidRequestBody(options) {
|
|
71
|
+
const hasBody = options.body !== undefined;
|
|
72
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
73
|
+
if (isSerializedBody) {
|
|
74
|
+
if ('serializedBody' in options) {
|
|
75
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
76
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
77
|
+
}
|
|
78
|
+
// not all clients implement a serializedBody property (i.e. client-axios)
|
|
79
|
+
return options.body !== '' ? options.body : null;
|
|
80
|
+
}
|
|
81
|
+
// plain/text body
|
|
82
|
+
if (hasBody) {
|
|
83
|
+
return options.body;
|
|
84
|
+
}
|
|
85
|
+
// no body was provided
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createApplication, deleteApplication, getApplication, listApplications, type Options, updateApplication } from './sdk.gen';
|
|
2
|
+
export type { Application, ApplicationCreate, ApplicationCreateWritable, ApplicationIdParam, ApplicationList, ApplicationListWritable, ApplicationUpdate, ApplicationUpdateWritable, ApplicationWritable, ClientOptions, CreateApplicationData, CreateApplicationError, CreateApplicationErrors, CreateApplicationResponse, CreateApplicationResponses, DeleteApplicationData, DeleteApplicationError, DeleteApplicationErrors, DeleteApplicationResponse, DeleteApplicationResponses, GetApplicationData, GetApplicationError, GetApplicationErrors, GetApplicationResponse, GetApplicationResponses, ListApplicationsData, ListApplicationsError, ListApplicationsErrors, ListApplicationsResponse, ListApplicationsResponses, UpdateApplicationData, UpdateApplicationError, UpdateApplicationErrors, UpdateApplicationResponse, UpdateApplicationResponses } from './types.gen';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { CreateApplicationData, CreateApplicationErrors, CreateApplicationResponses, DeleteApplicationData, DeleteApplicationErrors, DeleteApplicationResponses, GetApplicationData, GetApplicationErrors, GetApplicationResponses, ListApplicationsData, ListApplicationsErrors, ListApplicationsResponses, UpdateApplicationData, UpdateApplicationErrors, UpdateApplicationResponses } 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
|
+
/**
|
|
17
|
+
* List applications
|
|
18
|
+
*
|
|
19
|
+
* Retrieve a paginated list of applications.
|
|
20
|
+
*/
|
|
21
|
+
export declare const listApplications: <ThrowOnError extends boolean = false>(options?: Options<ListApplicationsData, ThrowOnError>) => import("./client").RequestResult<ListApplicationsResponses, ListApplicationsErrors, ThrowOnError>;
|
|
22
|
+
/**
|
|
23
|
+
* Create an application
|
|
24
|
+
*
|
|
25
|
+
* Create a new public assistance application.
|
|
26
|
+
*/
|
|
27
|
+
export declare const createApplication: <ThrowOnError extends boolean = false>(options: Options<CreateApplicationData, ThrowOnError>) => import("./client").RequestResult<CreateApplicationResponses, CreateApplicationErrors, ThrowOnError>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete an application
|
|
30
|
+
*
|
|
31
|
+
* Permanently remove an application record.
|
|
32
|
+
*/
|
|
33
|
+
export declare const deleteApplication: <ThrowOnError extends boolean = false>(options: Options<DeleteApplicationData, ThrowOnError>) => import("./client").RequestResult<DeleteApplicationResponses, DeleteApplicationErrors, ThrowOnError>;
|
|
34
|
+
/**
|
|
35
|
+
* Get an application
|
|
36
|
+
*
|
|
37
|
+
* Retrieve a single application by identifier.
|
|
38
|
+
*/
|
|
39
|
+
export declare const getApplication: <ThrowOnError extends boolean = false>(options: Options<GetApplicationData, ThrowOnError>) => import("./client").RequestResult<GetApplicationResponses, GetApplicationErrors, ThrowOnError>;
|
|
40
|
+
/**
|
|
41
|
+
* Update an application
|
|
42
|
+
*
|
|
43
|
+
* Apply partial updates to an existing application.
|
|
44
|
+
*/
|
|
45
|
+
export declare const updateApplication: <ThrowOnError extends boolean = false>(options: Options<UpdateApplicationData, ThrowOnError>) => import("./client").RequestResult<UpdateApplicationResponses, UpdateApplicationErrors, ThrowOnError>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen';
|
|
3
|
+
import { zCreateApplicationData, zCreateApplicationResponse, zDeleteApplicationData, zDeleteApplicationResponse, zGetApplicationData, zGetApplicationResponse, zListApplicationsData, zListApplicationsResponse, zUpdateApplicationData, zUpdateApplicationResponse } from './zod.gen';
|
|
4
|
+
/**
|
|
5
|
+
* List applications
|
|
6
|
+
*
|
|
7
|
+
* Retrieve a paginated list of applications.
|
|
8
|
+
*/
|
|
9
|
+
export const listApplications = (options) => (options?.client ?? client).get({
|
|
10
|
+
requestValidator: async (data) => await zListApplicationsData.parseAsync(data),
|
|
11
|
+
responseType: 'json',
|
|
12
|
+
responseValidator: async (data) => await zListApplicationsResponse.parseAsync(data),
|
|
13
|
+
url: '/applications',
|
|
14
|
+
...options
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Create an application
|
|
18
|
+
*
|
|
19
|
+
* Create a new public assistance application.
|
|
20
|
+
*/
|
|
21
|
+
export const createApplication = (options) => (options.client ?? client).post({
|
|
22
|
+
requestValidator: async (data) => await zCreateApplicationData.parseAsync(data),
|
|
23
|
+
responseType: 'json',
|
|
24
|
+
responseValidator: async (data) => await zCreateApplicationResponse.parseAsync(data),
|
|
25
|
+
url: '/applications',
|
|
26
|
+
...options,
|
|
27
|
+
headers: {
|
|
28
|
+
'Content-Type': 'application/json',
|
|
29
|
+
...options.headers
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Delete an application
|
|
34
|
+
*
|
|
35
|
+
* Permanently remove an application record.
|
|
36
|
+
*/
|
|
37
|
+
export const deleteApplication = (options) => (options.client ?? client).delete({
|
|
38
|
+
requestValidator: async (data) => await zDeleteApplicationData.parseAsync(data),
|
|
39
|
+
responseValidator: async (data) => await zDeleteApplicationResponse.parseAsync(data),
|
|
40
|
+
url: '/applications/{applicationId}',
|
|
41
|
+
...options
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Get an application
|
|
45
|
+
*
|
|
46
|
+
* Retrieve a single application by identifier.
|
|
47
|
+
*/
|
|
48
|
+
export const getApplication = (options) => (options.client ?? client).get({
|
|
49
|
+
requestValidator: async (data) => await zGetApplicationData.parseAsync(data),
|
|
50
|
+
responseType: 'json',
|
|
51
|
+
responseValidator: async (data) => await zGetApplicationResponse.parseAsync(data),
|
|
52
|
+
url: '/applications/{applicationId}',
|
|
53
|
+
...options
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Update an application
|
|
57
|
+
*
|
|
58
|
+
* Apply partial updates to an existing application.
|
|
59
|
+
*/
|
|
60
|
+
export const updateApplication = (options) => (options.client ?? client).patch({
|
|
61
|
+
requestValidator: async (data) => await zUpdateApplicationData.parseAsync(data),
|
|
62
|
+
responseType: 'json',
|
|
63
|
+
responseValidator: async (data) => await zUpdateApplicationResponse.parseAsync(data),
|
|
64
|
+
url: '/applications/{applicationId}',
|
|
65
|
+
...options,
|
|
66
|
+
headers: {
|
|
67
|
+
'Content-Type': 'application/json',
|
|
68
|
+
...options.headers
|
|
69
|
+
}
|
|
70
|
+
});
|