ProtectedbuildProtectedcreateCreates a function that checks the permission for a request generated by an oazapfts function.
This is intended to help creating a manual operation.
the function generated by oazapfts.
a function that receives the variables of fn (if any) and returns a promise that resolves to true if the request is allowed
and false otherwise.
ProtectedcreateCreates a function that runs a oazapfts function with an abort signal.
This is intended to help creating a manual operation.
a function that receives a signal and the variables of fn (if any) and returns the same as fn.
ProtectedfetchMakes a request (same signature as globalThis.fetch). This request will prepend the base url to the url and, if there's an active
session, include authentication headers.
the url or request object.
Optionalinit: RequestInitthe fetch options.
a promise with the Response.
ProtectedinfiniteBuilds a query manually by using a configuration object.
the configuration object containing the name, a request function and a permission function.
Builds a query manually by using a configuration object.
the configuration object containing the name and a request function.
Builds a query automatically by using a function generated by oazapfts.
the oazapfts function.
the configuration for the infinite query.
Builds a query automatically by using a function generated by oazapfts with the variables page and size.
the oazapfts function that returns an array.
Optionaloptions: Partial<InfiniteQueryOptions<Variables, Result, PageParamName, Accumulator>>optional configuration for the infinite query. By default, it will use the variables page and size of the function passed in the first parameter.
Builds a query automatically by using a function generated by oazapfts in which the variables pageParamName is a string
which can be used for dynamic indexing.
the oazapfts function that returns an array.
optional configuration for the infinite query. By default, it will use the variables page and size of the function passed in the first parameter.
ProtectedisProtectedmutationBuilds a mutation manually by using a configuration object.
Builds a mutation manually by using a configuration object.
Builds a mutation automatically by using a function generated by oazapfts.
ProtectedqueryBuilds a query manually by using a configuration object.
Builds a query manually by using a configuration object.
Builds a query automatically by using a function generated by oazapfts.
ProtectedrequestVerifies if the current user is allowed to send the given request.
the request's method.
the path to the resource.
Optionalbody: string | objectthe request's body.
a promise that resolves to true if it's allowed or false otherwise.
ProtectedresolveURLProtectedstreamReads an EventSource from the endpoint. Differently than the original specification, this allows common HTTP requests with method and body to be made.
the url or request object.
Optionalinit: RequestInitthe fetch options.
a promise with a FetchEventStream, which is an AsyncGenerator.
StaticsetupSets up all network clients. Must be called before attempting to make any request.
An object with functions capable of checking, retrieving and ending the current session.
The environment to send the requests to.
Apply manifesto resource