Comparing version 0.10.0 to 0.11.0-beta.1
# Changelog | ||
## 0.11.0-beta.1 (2024-01-16) | ||
Full Changelog: [v0.10.0...v0.11.0-beta.1](https://github.com/stainless-sdks/sink-node-public/compare/v0.10.0...v0.11.0-beta.1) | ||
### Features | ||
* add and test `send_as_query_param` and `send_as_path_param` ([#332](https://github.com/stainless-sdks/sink-node-public/issues/332)) ([0a7053f](https://github.com/stainless-sdks/sink-node-public/commit/0a7053fb2cc20755c0b0f381c5bd67c14acd34f5)) | ||
* add path param enum test ([#333](https://github.com/stainless-sdks/sink-node-public/issues/333)) ([9ab5755](https://github.com/stainless-sdks/sink-node-public/commit/9ab5755e39945bccfc56eb969af52902796e4a97)) | ||
* add test for resource with only custom methods ([#331](https://github.com/stainless-sdks/sink-node-public/issues/331)) ([b54329d](https://github.com/stainless-sdks/sink-node-public/commit/b54329d66799833b308e71b5e1ac84efed1f0202)) | ||
### Chores | ||
* **internal:** narrow type into stringifyQuery ([#327](https://github.com/stainless-sdks/sink-node-public/issues/327)) ([9932f78](https://github.com/stainless-sdks/sink-node-public/commit/9932f7831420e776b9b67d5103b02c4b1fd0b998)) | ||
### Documentation | ||
* fix missing async in readme code sample ([#330](https://github.com/stainless-sdks/sink-node-public/issues/330)) ([8e27114](https://github.com/stainless-sdks/sink-node-public/commit/8e2711496176f439fa5bd2cc4219c6ee9908e72a)) | ||
* **readme:** improve api reference ([#329](https://github.com/stainless-sdks/sink-node-public/issues/329)) ([41d9c6b](https://github.com/stainless-sdks/sink-node-public/commit/41d9c6b90f19aef863cdb9462ae5f64277023c65)) | ||
## 0.10.0 (2024-01-10) | ||
@@ -4,0 +25,0 @@ |
@@ -311,3 +311,3 @@ "use strict"; | ||
} | ||
if (query) { | ||
if (typeof query === 'object' && query && !Array.isArray(query)) { | ||
url.search = this.stringifyQuery(query); | ||
@@ -314,0 +314,0 @@ } |
@@ -54,2 +54,4 @@ import * as Core from "./core.js"; | ||
camelCasePath?: string | null; | ||
clientQueryParam?: string | null; | ||
clientPathOrQueryParam?: string | null; | ||
/** | ||
@@ -134,2 +136,4 @@ * Specifies the environment to use for the API. | ||
camelCasePath: string | null; | ||
clientQueryParam: string | null; | ||
clientPathOrQueryParam: string | null; | ||
private _options; | ||
@@ -153,2 +157,4 @@ /** | ||
* @param {string | null} [opts.camelCasePath] | ||
* @param {string | null} [opts.clientQueryParam] | ||
* @param {string | null} [opts.clientPathOrQueryParam] | ||
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. | ||
@@ -164,3 +170,3 @@ * @param {string} [opts.baseURL=process.env['SINK_BASE_URL'] ?? https://demo.stainlessapi.com/] - Override the default base URL for the API. | ||
*/ | ||
constructor({ baseURL, userToken, username, clientId, clientSecret, someBooleanArg, someIntegerArg, someNumberArg, someNumberArgRequired, someNumberArgRequiredNoDefault, someNumberArgRequiredNoDefaultNoEnv, requiredArgNoEnv, requiredArgNoEnvWithDefault, clientPathParam, camelCasePath, ...opts }: ClientOptions); | ||
constructor({ baseURL, userToken, username, clientId, clientSecret, someBooleanArg, someIntegerArg, someNumberArg, someNumberArgRequired, someNumberArgRequiredNoDefault, someNumberArgRequiredNoDefaultNoEnv, requiredArgNoEnv, requiredArgNoEnvWithDefault, clientPathParam, camelCasePath, clientQueryParam, clientPathOrQueryParam, ...opts }: ClientOptions); | ||
testing: API.Testing; | ||
@@ -189,3 +195,3 @@ complexQueries: API.ComplexQueries; | ||
widgets: API.Widgets; | ||
defaultPathParams: API.DefaultPathParams; | ||
clientParams: API.ClientParams; | ||
responses: API.Responses; | ||
@@ -208,2 +214,3 @@ pathParams: API.PathParams; | ||
modelReferencedInParentAndChild: API.ModelReferencedInParentAndChildResource; | ||
onlyCustomMethods: API.OnlyCustomMethods; | ||
/** | ||
@@ -353,5 +360,9 @@ * API status check | ||
export import Widget = API.Widget; | ||
export import DefaultPathParams = API.DefaultPathParams; | ||
export import DefaultPathParamGlobalWithStandardResponse = API.DefaultPathParamGlobalWithStandardResponse; | ||
export import DefaultPathParamOnlyGlobalResponse = API.DefaultPathParamOnlyGlobalResponse; | ||
export import ClientParams = API.ClientParams; | ||
export import ClientParamWithPathParamResponse = API.ClientParamWithPathParamResponse; | ||
export import ClientParamWithPathParamAndStandardResponse = API.ClientParamWithPathParamAndStandardResponse; | ||
export import ClientParamWithQueryParamResponse = API.ClientParamWithQueryParamResponse; | ||
export import ClientParamWithPathParamParams = API.ClientParamWithPathParamParams; | ||
export import ClientParamWithPathParamAndStandardParams = API.ClientParamWithPathParamAndStandardParams; | ||
export import ClientParamWithQueryParamParams = API.ClientParamWithQueryParamParams; | ||
export import Responses = API.Responses; | ||
@@ -466,2 +477,3 @@ export import ModelFromNestedPath = API.ModelFromNestedPath; | ||
export import ModelReferencedInParentAndChild = API.ModelReferencedInParentAndChild; | ||
export import OnlyCustomMethods = API.OnlyCustomMethods; | ||
export import BasicSharedModelObject = API.BasicSharedModelObject; | ||
@@ -468,0 +480,0 @@ export import Currency = API.Currency; |
14
index.js
@@ -57,2 +57,4 @@ "use strict"; | ||
* @param {string | null} [opts.camelCasePath] | ||
* @param {string | null} [opts.clientQueryParam] | ||
* @param {string | null} [opts.clientPathOrQueryParam] | ||
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. | ||
@@ -68,3 +70,3 @@ * @param {string} [opts.baseURL=process.env['SINK_BASE_URL'] ?? https://demo.stainlessapi.com/] - Override the default base URL for the API. | ||
*/ | ||
constructor({ baseURL = Core.readEnv('SINK_BASE_URL'), userToken = Core.readEnv('SINK_CUSTOM_API_KEY_ENV') ?? null, username = Core.readEnv('SINK_USER'), clientId = Core.readEnv('SINK_CLIENT_ID') ?? null, clientSecret = Core.readEnv('SINK_CLIENT_SECRET') ?? 'hellosecret', someBooleanArg = Core.maybeCoerceBoolean(Core.readEnv('SINK_SOME_BOOLEAN_ARG')) ?? true, someIntegerArg = Core.maybeCoerceInteger(Core.readEnv('SINK_SOME_INTEGER_ARG')) ?? 123, someNumberArg = Core.maybeCoerceFloat(Core.readEnv('SINK_SOME_NUMBER_ARG')) ?? 1.2, someNumberArgRequired = Core.maybeCoerceFloat(Core.readEnv('SINK_SOME_NUMBER_ARG')) ?? 1.2, someNumberArgRequiredNoDefault = Core.maybeCoerceFloat(Core.readEnv('SINK_SOME_NUMBER_ARG')), someNumberArgRequiredNoDefaultNoEnv, requiredArgNoEnv, requiredArgNoEnvWithDefault = 'hi!', clientPathParam = null, camelCasePath = null, ...opts }) { | ||
constructor({ baseURL = Core.readEnv('SINK_BASE_URL'), userToken = Core.readEnv('SINK_CUSTOM_API_KEY_ENV') ?? null, username = Core.readEnv('SINK_USER'), clientId = Core.readEnv('SINK_CLIENT_ID') ?? null, clientSecret = Core.readEnv('SINK_CLIENT_SECRET') ?? 'hellosecret', someBooleanArg = Core.maybeCoerceBoolean(Core.readEnv('SINK_SOME_BOOLEAN_ARG')) ?? true, someIntegerArg = Core.maybeCoerceInteger(Core.readEnv('SINK_SOME_INTEGER_ARG')) ?? 123, someNumberArg = Core.maybeCoerceFloat(Core.readEnv('SINK_SOME_NUMBER_ARG')) ?? 1.2, someNumberArgRequired = Core.maybeCoerceFloat(Core.readEnv('SINK_SOME_NUMBER_ARG')) ?? 1.2, someNumberArgRequiredNoDefault = Core.maybeCoerceFloat(Core.readEnv('SINK_SOME_NUMBER_ARG')), someNumberArgRequiredNoDefaultNoEnv, requiredArgNoEnv, requiredArgNoEnvWithDefault = 'hi!', clientPathParam = null, camelCasePath = null, clientQueryParam = null, clientPathOrQueryParam = null, ...opts }) { | ||
if (username === undefined) { | ||
@@ -97,2 +99,4 @@ throw new Errors.SinkError("The SINK_USER environment variable is missing or empty; either provide it, or instantiate the Sink client with an username option, like new Sink({ username: 'Robert' })."); | ||
camelCasePath, | ||
clientQueryParam, | ||
clientPathOrQueryParam, | ||
...opts, | ||
@@ -138,3 +142,3 @@ baseURL, | ||
this.widgets = new API.Widgets(this); | ||
this.defaultPathParams = new API.DefaultPathParams(this); | ||
this.clientParams = new API.ClientParams(this); | ||
this.responses = new API.Responses(this); | ||
@@ -157,2 +161,3 @@ this.pathParams = new API.PathParams(this); | ||
this.modelReferencedInParentAndChild = new API.ModelReferencedInParentAndChildResource(this); | ||
this.onlyCustomMethods = new API.OnlyCustomMethods(this); | ||
this.apiStatusAlias = this.apiStatus; | ||
@@ -175,2 +180,4 @@ this._options = options; | ||
this.camelCasePath = camelCasePath; | ||
this.clientQueryParam = clientQueryParam; | ||
this.clientPathOrQueryParam = clientPathOrQueryParam; | ||
} | ||
@@ -278,3 +285,3 @@ /** | ||
Sink.Widgets = API.Widgets; | ||
Sink.DefaultPathParams = API.DefaultPathParams; | ||
Sink.ClientParams = API.ClientParams; | ||
Sink.Responses = API.Responses; | ||
@@ -297,2 +304,3 @@ Sink.PathParams = API.PathParams; | ||
Sink.ModelReferencedInParentAndChildResource = API.ModelReferencedInParentAndChildResource; | ||
Sink.OnlyCustomMethods = API.OnlyCustomMethods; | ||
})(Sink = exports.Sink || (exports.Sink = {})); | ||
@@ -299,0 +307,0 @@ exports = module.exports = Sink; |
{ | ||
"name": "sink-npm", | ||
"version": "0.10.0", | ||
"version": "0.11.0-beta.1", | ||
"description": "The official TypeScript library for the Sink API", | ||
@@ -5,0 +5,0 @@ "author": "Sink <dev@stainlessapi.com>", |
@@ -7,3 +7,3 @@ # Sink Custom Node Title API Library | ||
The API documentation can be found [here](https://stainlessapi.com). | ||
The REST API documentation can be found [on stainlessapi.com](https://stainlessapi.com). The full API of this library can be found in [api.md](https://www.github.com/stainless-sdks/sink-node-public/blob/main/api.md). | ||
@@ -284,4 +284,4 @@ ## Installation | ||
const client = new Sink({ | ||
fetch: (url: RequestInfo, init?: RequestInfo): Response => { | ||
console.log('About to make request', url, init); | ||
fetch: async (url: RequestInfo, init?: RequestInfo): Promise<Response> => { | ||
console.log('About to make a request', url, init); | ||
const response = await fetch(url, init); | ||
@@ -288,0 +288,0 @@ console.log('Got response', response); |
@@ -9,2 +9,3 @@ export * from "./shared.js"; | ||
export { Casing } from "./casing/casing.js"; | ||
export { ClientParamWithPathParamResponse, ClientParamWithPathParamAndStandardResponse, ClientParamWithQueryParamResponse, ClientParamWithPathParamParams, ClientParamWithPathParamAndStandardParams, ClientParamWithQueryParamParams, ClientParams, } from "./client-params.js"; | ||
export { Company, CompanyResource } from "./company/company.js"; | ||
@@ -14,3 +15,2 @@ export { ComplexQueryArrayQueryResponse, ComplexQueryObjectQueryResponse, ComplexQueryArrayQueryParams, ComplexQueryObjectQueryParams, ComplexQueries, } from "./complex-queries.js"; | ||
export { DeeplyNested } from "./deeply-nested/deeply-nested.js"; | ||
export { DefaultPathParamGlobalWithStandardResponse, DefaultPathParamOnlyGlobalResponse, DefaultPathParams, } from "./default-path-params.js"; | ||
export { DefaultReqOptions } from "./default-req-options/default-req-options.js"; | ||
@@ -31,2 +31,3 @@ export { DocstringLeadingDoubleQuoteResponse, DocstringTrailingDoubleQuoteResponse, Docstrings, } from "./docstrings.js"; | ||
export { ObjectSkippedProps, ToolSkippedParamsParams, Tools } from "./tools.js"; | ||
export { OnlyCustomMethods } from "./only-custom-methods.js"; | ||
export { OpenapiFormatArrayTypeOneEntryResponse, OpenapiFormatArrayTypeOneEntryWithNullResponse, OpenapiFormatArrayTypeOneEntryParams, OpenapiFormatArrayTypeOneEntryWithNullParams, OpenapiFormats, } from "./openapi-formats.js"; | ||
@@ -33,0 +34,0 @@ export { PaginationTests } from "./pagination-tests/pagination-tests.js"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Widgets = exports.Version1_30Names = exports.Types = exports.Tests = exports.Streaming = exports.SharedQueryParams = exports.Testing = exports.Resources = exports.ResourceRefs = exports.QueryParams = exports.PositionalParams = exports.PathParams = exports.Parent = exports.PaginationTests = exports.OpenapiFormats = exports.Tools = exports.BodyParams = exports.MyModelsPageOffsetTotalCount = exports.MyModelsPageOffset = exports.MyModelsPageCursor = exports.MyModelsPageCursorTopLevelArray = exports.MyModelsPageCursorFromHeaders = exports.MyModelsPageCursorSharedRef = exports.MyModelsPageCursorNestedObjectRef = exports.MyModelsPagePageNumber = exports.ModelReferencedInParentAndChildResource = exports.ConfigTools = exports.Responses = exports.MixedParams = exports.MethodConfig = exports.MakeAmbiguousSchemasLooser = exports.MakeAmbiguousSchemasExplicit = exports.InvalidSchemas = exports.HeaderParams = exports.Files = exports.EmptyBody = exports.Docstrings = exports.DefaultReqOptions = exports.DefaultPathParams = exports.DeeplyNested = exports.DecoratorTests = exports.ComplexQueries = exports.CompanyResource = exports.Casing = exports.Cards = exports.Binaries = exports.Names = exports.Recursion = exports.Envelopes = void 0; | ||
exports.Widgets = exports.Version1_30Names = exports.Types = exports.Tests = exports.Streaming = exports.SharedQueryParams = exports.Testing = exports.Resources = exports.ResourceRefs = exports.QueryParams = exports.PositionalParams = exports.PathParams = exports.Parent = exports.PaginationTests = exports.OpenapiFormats = exports.OnlyCustomMethods = exports.Tools = exports.BodyParams = exports.MyModelsPageOffsetTotalCount = exports.MyModelsPageOffset = exports.MyModelsPageCursor = exports.MyModelsPageCursorTopLevelArray = exports.MyModelsPageCursorFromHeaders = exports.MyModelsPageCursorSharedRef = exports.MyModelsPageCursorNestedObjectRef = exports.MyModelsPagePageNumber = exports.ModelReferencedInParentAndChildResource = exports.ConfigTools = exports.Responses = exports.MixedParams = exports.MethodConfig = exports.MakeAmbiguousSchemasLooser = exports.MakeAmbiguousSchemasExplicit = exports.InvalidSchemas = exports.HeaderParams = exports.Files = exports.EmptyBody = exports.Docstrings = exports.DefaultReqOptions = exports.DeeplyNested = exports.DecoratorTests = exports.ComplexQueries = exports.CompanyResource = exports.ClientParams = exports.Casing = exports.Cards = exports.Binaries = exports.Names = exports.Recursion = exports.Envelopes = void 0; | ||
__exportStar(require("./shared.js"), exports); | ||
@@ -33,2 +33,4 @@ var envelopes_1 = require("./envelopes.js"); | ||
Object.defineProperty(exports, "Casing", { enumerable: true, get: function () { return casing_1.Casing; } }); | ||
var client_params_1 = require("./client-params.js"); | ||
Object.defineProperty(exports, "ClientParams", { enumerable: true, get: function () { return client_params_1.ClientParams; } }); | ||
var company_1 = require("./company/company.js"); | ||
@@ -42,4 +44,2 @@ Object.defineProperty(exports, "CompanyResource", { enumerable: true, get: function () { return company_1.CompanyResource; } }); | ||
Object.defineProperty(exports, "DeeplyNested", { enumerable: true, get: function () { return deeply_nested_1.DeeplyNested; } }); | ||
var default_path_params_1 = require("./default-path-params.js"); | ||
Object.defineProperty(exports, "DefaultPathParams", { enumerable: true, get: function () { return default_path_params_1.DefaultPathParams; } }); | ||
var default_req_options_1 = require("./default-req-options/default-req-options.js"); | ||
@@ -83,2 +83,4 @@ Object.defineProperty(exports, "DefaultReqOptions", { enumerable: true, get: function () { return default_req_options_1.DefaultReqOptions; } }); | ||
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } }); | ||
var only_custom_methods_1 = require("./only-custom-methods.js"); | ||
Object.defineProperty(exports, "OnlyCustomMethods", { enumerable: true, get: function () { return only_custom_methods_1.OnlyCustomMethods; } }); | ||
var openapi_formats_1 = require("./openapi-formats.js"); | ||
@@ -85,0 +87,0 @@ Object.defineProperty(exports, "OpenapiFormats", { enumerable: true, get: function () { return openapi_formats_1.OpenapiFormats; } }); |
@@ -19,2 +19,6 @@ import * as Core from 'sink-npm/core'; | ||
/** | ||
* Endpoint with a singular path parameter that is an enum type. | ||
*/ | ||
enumParam(enumParam: 'A' | 'B' | 'C', options?: Core.RequestOptions): Core.APIPromise<Shared.BasicSharedModelObject>; | ||
/** | ||
* Endpoint with a singular path parameter that is of an integer type. | ||
@@ -21,0 +25,0 @@ */ |
@@ -26,2 +26,8 @@ "use strict"; | ||
/** | ||
* Endpoint with a singular path parameter that is an enum type. | ||
*/ | ||
enumParam(enumParam, options) { | ||
return this._client.post(`/path_params/enums/${enumParam}`, options); | ||
} | ||
/** | ||
* Endpoint with a singular path parameter that is of an integer type. | ||
@@ -28,0 +34,0 @@ */ |
@@ -455,4 +455,4 @@ import { VERSION } from './version'; | ||
if (query) { | ||
url.search = this.stringifyQuery(query); | ||
if (typeof query === 'object' && query && !Array.isArray(query)) { | ||
url.search = this.stringifyQuery(query as Record<string, unknown>); | ||
} | ||
@@ -459,0 +459,0 @@ |
@@ -73,2 +73,6 @@ // File generated from our OpenAPI spec by Stainless. | ||
clientQueryParam?: string | null; | ||
clientPathOrQueryParam?: string | null; | ||
/** | ||
@@ -162,2 +166,4 @@ * Specifies the environment to use for the API. | ||
camelCasePath: string | null; | ||
clientQueryParam: string | null; | ||
clientPathOrQueryParam: string | null; | ||
@@ -183,2 +189,4 @@ private _options: ClientOptions; | ||
* @param {string | null} [opts.camelCasePath] | ||
* @param {string | null} [opts.clientQueryParam] | ||
* @param {string | null} [opts.clientPathOrQueryParam] | ||
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. | ||
@@ -210,2 +218,4 @@ * @param {string} [opts.baseURL=process.env['SINK_BASE_URL'] ?? https://demo.stainlessapi.com/] - Override the default base URL for the API. | ||
camelCasePath = null, | ||
clientQueryParam = null, | ||
clientPathOrQueryParam = null, | ||
...opts | ||
@@ -249,2 +259,4 @@ }: ClientOptions) { | ||
camelCasePath, | ||
clientQueryParam, | ||
clientPathOrQueryParam, | ||
...opts, | ||
@@ -291,2 +303,4 @@ baseURL, | ||
this.camelCasePath = camelCasePath; | ||
this.clientQueryParam = clientQueryParam; | ||
this.clientPathOrQueryParam = clientPathOrQueryParam; | ||
} | ||
@@ -317,3 +331,3 @@ | ||
widgets: API.Widgets = new API.Widgets(this); | ||
defaultPathParams: API.DefaultPathParams = new API.DefaultPathParams(this); | ||
clientParams: API.ClientParams = new API.ClientParams(this); | ||
responses: API.Responses = new API.Responses(this); | ||
@@ -337,2 +351,3 @@ pathParams: API.PathParams = new API.PathParams(this); | ||
new API.ModelReferencedInParentAndChildResource(this); | ||
onlyCustomMethods: API.OnlyCustomMethods = new API.OnlyCustomMethods(this); | ||
@@ -575,5 +590,9 @@ /** | ||
export import DefaultPathParams = API.DefaultPathParams; | ||
export import DefaultPathParamGlobalWithStandardResponse = API.DefaultPathParamGlobalWithStandardResponse; | ||
export import DefaultPathParamOnlyGlobalResponse = API.DefaultPathParamOnlyGlobalResponse; | ||
export import ClientParams = API.ClientParams; | ||
export import ClientParamWithPathParamResponse = API.ClientParamWithPathParamResponse; | ||
export import ClientParamWithPathParamAndStandardResponse = API.ClientParamWithPathParamAndStandardResponse; | ||
export import ClientParamWithQueryParamResponse = API.ClientParamWithQueryParamResponse; | ||
export import ClientParamWithPathParamParams = API.ClientParamWithPathParamParams; | ||
export import ClientParamWithPathParamAndStandardParams = API.ClientParamWithPathParamAndStandardParams; | ||
export import ClientParamWithQueryParamParams = API.ClientParamWithQueryParamParams; | ||
@@ -706,2 +725,4 @@ export import Responses = API.Responses; | ||
export import OnlyCustomMethods = API.OnlyCustomMethods; | ||
export import BasicSharedModelObject = API.BasicSharedModelObject; | ||
@@ -708,0 +729,0 @@ export import Currency = API.Currency; |
@@ -49,2 +49,11 @@ // File generated from our OpenAPI spec by Stainless. | ||
export { Casing } from './casing/casing'; | ||
export { | ||
ClientParamWithPathParamResponse, | ||
ClientParamWithPathParamAndStandardResponse, | ||
ClientParamWithQueryParamResponse, | ||
ClientParamWithPathParamParams, | ||
ClientParamWithPathParamAndStandardParams, | ||
ClientParamWithQueryParamParams, | ||
ClientParams, | ||
} from './client-params'; | ||
export { Company, CompanyResource } from './company/company'; | ||
@@ -60,7 +69,2 @@ export { | ||
export { DeeplyNested } from './deeply-nested/deeply-nested'; | ||
export { | ||
DefaultPathParamGlobalWithStandardResponse, | ||
DefaultPathParamOnlyGlobalResponse, | ||
DefaultPathParams, | ||
} from './default-path-params'; | ||
export { DefaultReqOptions } from './default-req-options/default-req-options'; | ||
@@ -184,2 +188,3 @@ export { | ||
export { ObjectSkippedProps, ToolSkippedParamsParams, Tools } from './tools'; | ||
export { OnlyCustomMethods } from './only-custom-methods'; | ||
export { | ||
@@ -186,0 +191,0 @@ OpenapiFormatArrayTypeOneEntryResponse, |
@@ -40,2 +40,12 @@ // File generated from our OpenAPI spec by Stainless. | ||
/** | ||
* Endpoint with a singular path parameter that is an enum type. | ||
*/ | ||
enumParam( | ||
enumParam: 'A' | 'B' | 'C', | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<Shared.BasicSharedModelObject> { | ||
return this._client.post(`/path_params/enums/${enumParam}`, options); | ||
} | ||
/** | ||
* Endpoint with a singular path parameter that is of an integer type. | ||
@@ -42,0 +52,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.10.0'; // x-release-please-version | ||
export const VERSION = '0.11.0-beta.1'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.10.0"; | ||
export declare const VERSION = "0.11.0-beta.1"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.10.0'; // x-release-please-version | ||
exports.VERSION = '0.11.0-beta.1'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
1620552
908
25630
4