ya-ts-client
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.RequestorStateService = exports.RequestorControlService = exports.ProviderService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.RequestorService = exports.DefaultService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.DefaultService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
@@ -8,1 +8,2 @@ export * as MarketApi from "./market-api"; | ||
export * as VersionApi from "./version"; | ||
/// <reference types="../typings/index.d.ts" /> |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.RequestorService = exports.ProviderService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
@@ -213,3 +213,4 @@ import type { CancelablePromise } from '../core/CancelablePromise'; | ||
* @param requestBody | ||
* @returns any Proposal. | ||
* @returns any Unexpected error. | ||
* @returns string Counter Proposal created. | ||
* @throws ApiError | ||
@@ -246,50 +247,5 @@ */ | ||
constraints: string; | ||
}): CancelablePromise<({ | ||
/** | ||
* The object which includes all the Demand/Offer/Proposal properties. | ||
* This is a JSON object in "flat convention" - where keys are full property names and their values indicate properties. | ||
* | ||
* The value's Javascript type shall conform with the type of the property (as indicated in Golem Standards). | ||
* ### Example property object: | ||
* ``` | ||
* { | ||
* "golem.com.pricing.model":"linear", | ||
* "golem.com.pricing.model.linear.coeffs":[0.001, 0.002, 0.0], | ||
* "golem.com.scheme":"payu", | ||
* "golem.com.scheme.payu.interval_sec":6.0, | ||
* "golem.com.usage.vector":["golem.usage.duration_sec","golem.usage.cpu_sec"], | ||
* "golem.inf.cpu.architecture":"x86_64", | ||
* "golem.inf.cpu.cores":4, | ||
* "golem.inf.cpu.threads":7, | ||
* "golem.inf.mem.gib":10.612468048930168, | ||
* "golem.inf.storage.gib":81.7227783203125, | ||
* "golem.node.debug.subnet":"market-devnet", | ||
* "golem.node.id.name":"tworec@mf-market-devnet", | ||
* "golem.runtime.name":"vm", | ||
* "golem.runtime.version@v":"0.1.0" | ||
* } | ||
* ``` | ||
* | ||
*/ | ||
properties: Record<string, any>; | ||
constraints: string; | ||
} & { | ||
readonly proposalId: string; | ||
readonly issuerId: string; | ||
/** | ||
* * `Initial` - proposal arrived from the market as response to subscription | ||
* * `Draft` - bespoke counter-proposal issued by one party directly to other party (negotiation phase) | ||
* * `Rejected` by other party | ||
* * `Accepted` - promoted into the Agreement draft | ||
* * `Expired` - not accepted nor rejected before validity period | ||
* | ||
*/ | ||
readonly state: 'Initial' | 'Draft' | 'Rejected' | 'Accepted' | 'Expired'; | ||
timestamp: string; | ||
/** | ||
* id of the proposal from other side which this proposal responds to | ||
* | ||
*/ | ||
prevProposalId?: string; | ||
})>; | ||
}): CancelablePromise<{ | ||
message?: string; | ||
} | string>; | ||
/** | ||
@@ -296,0 +252,0 @@ * RejectProposalDemand - Rejects Proposal (Demand). |
@@ -176,3 +176,4 @@ "use strict"; | ||
* @param requestBody | ||
* @returns any Proposal. | ||
* @returns any Unexpected error. | ||
* @returns string Counter Proposal created. | ||
* @throws ApiError | ||
@@ -352,13 +353,13 @@ */ | ||
410: `Agreement approval failed permanently. | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider himself has already | ||
called \`rejectAgreement\`. | ||
- \`Cancelled\` - Indicates that before Provider approved this Agreement, | ||
the Requestor has called \`cancelAgreement\`, thus invalidating the | ||
Agreement. The Provider may attempt to return to the Negotiation phase | ||
by sending a new Proposal. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider himself has already | ||
called \`rejectAgreement\`. | ||
- \`Cancelled\` - Indicates that before Provider approved this Agreement, | ||
the Requestor has called \`cancelAgreement\`, thus invalidating the | ||
Agreement. The Provider may attempt to return to the Negotiation phase | ||
by sending a new Proposal. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
}, | ||
@@ -391,13 +392,13 @@ }); | ||
410: `Agreement rejection failed permanently. | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider himself has already | ||
called \`rejectAgreement\`. | ||
- \`Cancelled\` - Indicates that before Provider rejected this Agreement, | ||
the Requestor has called \`cancelAgreement\`, thus invalidating the | ||
Agreement. The Provider may attempt to return to the Negotiation phase | ||
by sending a new Proposal. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider himself has already | ||
called \`rejectAgreement\`. | ||
- \`Cancelled\` - Indicates that before Provider rejected this Agreement, | ||
the Requestor has called \`cancelAgreement\`, thus invalidating the | ||
Agreement. The Provider may attempt to return to the Negotiation phase | ||
by sending a new Proposal. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
}, | ||
@@ -435,9 +436,9 @@ }); | ||
410: `Agreement termination failed permanently. | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider has rejected this Agreement. | ||
- \`Cancelled\` - Indicates the Requestor has called cancelled this Agreement. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider has rejected this Agreement. | ||
- \`Cancelled\` - Indicates the Requestor has called cancelled this Agreement. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
}, | ||
@@ -444,0 +445,0 @@ }); |
@@ -210,3 +210,4 @@ import type { CancelablePromise } from '../core/CancelablePromise'; | ||
* @param requestBody | ||
* @returns any Proposal. | ||
* @returns any Unexpected error. | ||
* @returns string Counter Proposal created. | ||
* @throws ApiError | ||
@@ -243,50 +244,5 @@ */ | ||
constraints: string; | ||
}): CancelablePromise<({ | ||
/** | ||
* The object which includes all the Demand/Offer/Proposal properties. | ||
* This is a JSON object in "flat convention" - where keys are full property names and their values indicate properties. | ||
* | ||
* The value's Javascript type shall conform with the type of the property (as indicated in Golem Standards). | ||
* ### Example property object: | ||
* ``` | ||
* { | ||
* "golem.com.pricing.model":"linear", | ||
* "golem.com.pricing.model.linear.coeffs":[0.001, 0.002, 0.0], | ||
* "golem.com.scheme":"payu", | ||
* "golem.com.scheme.payu.interval_sec":6.0, | ||
* "golem.com.usage.vector":["golem.usage.duration_sec","golem.usage.cpu_sec"], | ||
* "golem.inf.cpu.architecture":"x86_64", | ||
* "golem.inf.cpu.cores":4, | ||
* "golem.inf.cpu.threads":7, | ||
* "golem.inf.mem.gib":10.612468048930168, | ||
* "golem.inf.storage.gib":81.7227783203125, | ||
* "golem.node.debug.subnet":"market-devnet", | ||
* "golem.node.id.name":"tworec@mf-market-devnet", | ||
* "golem.runtime.name":"vm", | ||
* "golem.runtime.version@v":"0.1.0" | ||
* } | ||
* ``` | ||
* | ||
*/ | ||
properties: Record<string, any>; | ||
constraints: string; | ||
} & { | ||
readonly proposalId: string; | ||
readonly issuerId: string; | ||
/** | ||
* * `Initial` - proposal arrived from the market as response to subscription | ||
* * `Draft` - bespoke counter-proposal issued by one party directly to other party (negotiation phase) | ||
* * `Rejected` by other party | ||
* * `Accepted` - promoted into the Agreement draft | ||
* * `Expired` - not accepted nor rejected before validity period | ||
* | ||
*/ | ||
readonly state: 'Initial' | 'Draft' | 'Rejected' | 'Accepted' | 'Expired'; | ||
timestamp: string; | ||
/** | ||
* id of the proposal from other side which this proposal responds to | ||
* | ||
*/ | ||
prevProposalId?: string; | ||
})>; | ||
}): CancelablePromise<{ | ||
message?: string; | ||
} | string>; | ||
/** | ||
@@ -293,0 +249,0 @@ * RejectProposalOffer - Rejects Proposal (Offer). |
@@ -173,3 +173,4 @@ "use strict"; | ||
* @param requestBody | ||
* @returns any Proposal. | ||
* @returns any Unexpected error. | ||
* @returns string Counter Proposal created. | ||
* @throws ApiError | ||
@@ -384,14 +385,14 @@ */ | ||
410: `Agreement is not approved. This state is permanent. | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider has called | ||
\`rejectAgreement\`, which effectively stops the Agreement handshake. | ||
The Requestor may attempt to return to the Negotiation phase by | ||
sending a new Proposal or to the Agreement phase by creating | ||
new Agreement. | ||
- \`Cancelled\` - Indicates that the Requestor himself has called | ||
\`cancelAgreement\`, which effectively stops the Agreement handshake. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it | ||
was not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider has called | ||
\`rejectAgreement\`, which effectively stops the Agreement handshake. | ||
The Requestor may attempt to return to the Negotiation phase by | ||
sending a new Proposal or to the Agreement phase by creating | ||
new Agreement. | ||
- \`Cancelled\` - Indicates that the Requestor himself has called | ||
\`cancelAgreement\`, which effectively stops the Agreement handshake. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it | ||
was not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
}, | ||
@@ -477,9 +478,9 @@ }); | ||
410: `Agreement termination failed permanently. | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider has rejected this Agreement. | ||
- \`Cancelled\` - Indicates the Requestor has called cancelled this Agreement. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
Attached \`ErrorMessage\` contains further details: | ||
- \`Rejected\` - Indicates that the Provider has rejected this Agreement. | ||
- \`Cancelled\` - Indicates the Requestor has called cancelled this Agreement. | ||
- \`Expired\` - Indicates that Agreement validity period elapsed and it was | ||
not approved, rejected nor cancelled. | ||
- \`Terminated\` - Indicates that Agreement is already terminated. | ||
`, | ||
}, | ||
@@ -486,0 +487,0 @@ }); |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.RequestorService = exports.DefaultService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.RequestorService = exports.ProviderService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
@@ -8,2 +8,5 @@ /** | ||
timeout?: string; | ||
deposit?: { | ||
validate?: Record<string, any>; | ||
}; | ||
}; |
@@ -487,2 +487,5 @@ import type { CancelablePromise } from '../core/CancelablePromise'; | ||
timeout?: string; | ||
deposit?: { | ||
validate?: Record<string, any>; | ||
}; | ||
}): CancelablePromise<{ | ||
@@ -489,0 +492,0 @@ readonly allocationId: string; |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.CancelablePromise = exports.CancelError = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -19,0 +19,0 @@ /* tslint:disable */ |
@@ -15,3 +15,3 @@ import type { ApiRequestOptions } from './ApiRequestOptions'; | ||
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T> | undefined) => Promise<T | undefined>; | ||
export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>; | ||
export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>; | ||
@@ -18,0 +18,0 @@ export declare const getRequestBody: (options: ApiRequestOptions) => any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.request = exports.catchErrorCodes = exports.getResponseBody = exports.getResponseHeader = exports.sendRequest = exports.getRequestBody = exports.getHeaders = exports.resolve = exports.getFormData = exports.getQueryString = exports.base64 = exports.isFormData = exports.isBlob = exports.isStringWithValue = exports.isString = exports.isDefined = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -151,3 +151,3 @@ /* tslint:disable */ | ||
} | ||
if (options.body) { | ||
if (options.body !== undefined) { | ||
if (options.mediaType) { | ||
@@ -154,0 +154,0 @@ headers['Content-Type'] = options.mediaType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FetchHttpRequest = exports.DefaultService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.Client = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
@@ -6,0 +6,0 @@ /* tslint:disable */ |
{ | ||
"name": "ya-ts-client", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "TypeScript generated API clients for various Yagna public APIs. Core library for Golem Network related libraries and SDKs", | ||
@@ -22,11 +22,14 @@ "keywords": [ | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"typings" | ||
], | ||
"scripts": { | ||
"clean": "rimraf ./generated ./dist", | ||
"generate": "npm run clean && node ./generate.js && tsc", | ||
"generate": "npm run clean && node ./generate.js && tsc && npm run reference-typings", | ||
"reference-typings": "echo '/// <reference types=\"../typings/index.d.ts\" />' >> ./dist/index.d.ts", | ||
"compile": "tsc", | ||
"format": "prettier -w .", | ||
"docs": "typedoc --excludeExternals --excludeProtected --excludePrivate --disableSources generated/index.ts", | ||
"build": "npm run generate && npm run docs" | ||
"build": "npm run generate && npm run docs", | ||
"test": "jest test/" | ||
}, | ||
@@ -37,10 +40,10 @@ "author": "GolemFactory <contact@golem.network>", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^12.11.5", | ||
"@types/node": "^20.12.7", | ||
"jest": "^29.7.0", | ||
"json-schema-ref-parser": "^9.0.9", | ||
"openapi-typescript-codegen": "^0.27.0", | ||
"openapi-typescript-codegen": "^0.29.0", | ||
"prettier": "^3.2.5", | ||
"rimraf": "^5.0.5", | ||
"typedoc": "^0.25.9", | ||
"typescript": "^5.3.3" | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -47,0 +50,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421
512337
11978