Comparing version 0.9.1 to 0.10.0
# Changelog | ||
## 0.10.0 (2024-01-10) | ||
Full Changelog: [v0.9.1...v0.10.0](https://github.com/stainless-sdks/sink-node-public/compare/v0.9.1...v0.10.0) | ||
### Features | ||
* **types:** add test for unknown paginated items ([#323](https://github.com/stainless-sdks/sink-node-public/issues/323)) ([ab867f6](https://github.com/stainless-sdks/sink-node-public/commit/ab867f6c98fae37d46e8083b5063434bf5e1cfdd)) | ||
### Bug Fixes | ||
* use default base url if BASE_URL env var is blank ([#326](https://github.com/stainless-sdks/sink-node-public/issues/326)) ([ce1c03f](https://github.com/stainless-sdks/sink-node-public/commit/ce1c03f8d38a00074186b79c360c15c6c4a20955)) | ||
### Chores | ||
* add .keep files for examples and custom code directories ([#325](https://github.com/stainless-sdks/sink-node-public/issues/325)) ([4441763](https://github.com/stainless-sdks/sink-node-public/commit/44417637997667eca53ca0b5567a3da0947149f6)) | ||
## 0.9.1 (2024-01-05) | ||
@@ -4,0 +22,0 @@ |
@@ -211,2 +211,4 @@ | ||
* | ||
* Trims beginning and trailing whitespace. | ||
* | ||
* Will return undefined if the environment variable doesn't exist or cannot be accessed. | ||
@@ -213,0 +215,0 @@ */ |
@@ -694,2 +694,4 @@ "use strict"; | ||
* | ||
* Trims beginning and trailing whitespace. | ||
* | ||
* Will return undefined if the environment variable doesn't exist or cannot be accessed. | ||
@@ -699,6 +701,6 @@ */ | ||
if (typeof process !== 'undefined') { | ||
return process.env?.[env] ?? undefined; | ||
return process.env?.[env]?.trim() ?? undefined; | ||
} | ||
if (typeof Deno !== 'undefined') { | ||
return Deno.env?.get?.(env); | ||
return Deno.env?.get?.(env)?.trim(); | ||
} | ||
@@ -705,0 +707,0 @@ return undefined; |
{ | ||
"name": "sink-npm", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "The official TypeScript library for the Sink API", | ||
@@ -5,0 +5,0 @@ "author": "Sink <dev@stainlessapi.com>", |
export { CursorListParams, Cursor } from "./cursor.js"; | ||
export { FakePageListParams, FakePages } from "./fake-pages.js"; | ||
export { ItemsTypeListUnknownResponse, ItemsTypeListUnknownParams, ItemsTypeListUnknownResponsesPagePageNumber, ItemsTypes, } from "./items-types.js"; | ||
export { OffsetListParams, OffsetWithTotalCountParams, Offset } from "./offset.js"; | ||
@@ -4,0 +5,0 @@ export { PageNumberListParams, PageNumber } from "./page-number.js"; |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TopLevelArrays = exports.ResponseHeaders = exports.Refs = exports.PaginationTests = exports.PageNumber = exports.Offset = exports.FakePages = exports.Cursor = void 0; | ||
exports.TopLevelArrays = exports.ResponseHeaders = exports.Refs = exports.PaginationTests = exports.PageNumber = exports.Offset = exports.ItemsTypes = exports.ItemsTypeListUnknownResponsesPagePageNumber = exports.FakePages = exports.Cursor = void 0; | ||
var cursor_1 = require("./cursor.js"); | ||
@@ -9,2 +9,5 @@ Object.defineProperty(exports, "Cursor", { enumerable: true, get: function () { return cursor_1.Cursor; } }); | ||
Object.defineProperty(exports, "FakePages", { enumerable: true, get: function () { return fake_pages_1.FakePages; } }); | ||
var items_types_1 = require("./items-types.js"); | ||
Object.defineProperty(exports, "ItemsTypeListUnknownResponsesPagePageNumber", { enumerable: true, get: function () { return items_types_1.ItemsTypeListUnknownResponsesPagePageNumber; } }); | ||
Object.defineProperty(exports, "ItemsTypes", { enumerable: true, get: function () { return items_types_1.ItemsTypes; } }); | ||
var offset_1 = require("./offset.js"); | ||
@@ -11,0 +14,0 @@ Object.defineProperty(exports, "Offset", { enumerable: true, get: function () { return offset_1.Offset; } }); |
import { APIResource } from 'sink-npm/resource'; | ||
import * as CursorAPI from 'sink-npm/resources/pagination-tests/cursor'; | ||
import * as FakePagesAPI from 'sink-npm/resources/pagination-tests/fake-pages'; | ||
import * as ItemsTypesAPI from 'sink-npm/resources/pagination-tests/items-types'; | ||
import * as OffsetAPI from 'sink-npm/resources/pagination-tests/offset'; | ||
@@ -10,2 +11,3 @@ import * as PageNumberAPI from 'sink-npm/resources/pagination-tests/page-number'; | ||
export declare class PaginationTests extends APIResource { | ||
itemsTypes: ItemsTypesAPI.ItemsTypes; | ||
pageNumber: PageNumberAPI.PageNumber; | ||
@@ -20,2 +22,6 @@ refs: RefsAPI.Refs; | ||
export declare namespace PaginationTests { | ||
export import ItemsTypes = ItemsTypesAPI.ItemsTypes; | ||
export import ItemsTypeListUnknownResponse = ItemsTypesAPI.ItemsTypeListUnknownResponse; | ||
export import ItemsTypeListUnknownResponsesPagePageNumber = ItemsTypesAPI.ItemsTypeListUnknownResponsesPagePageNumber; | ||
export import ItemsTypeListUnknownParams = ItemsTypesAPI.ItemsTypeListUnknownParams; | ||
export import PageNumber = PageNumberAPI.PageNumber; | ||
@@ -22,0 +28,0 @@ export import PageNumberListParams = PageNumberAPI.PageNumberListParams; |
@@ -31,2 +31,3 @@ "use strict"; | ||
const FakePagesAPI = __importStar(require("sink-npm/resources/pagination-tests/fake-pages")); | ||
const ItemsTypesAPI = __importStar(require("sink-npm/resources/pagination-tests/items-types")); | ||
const OffsetAPI = __importStar(require("sink-npm/resources/pagination-tests/offset")); | ||
@@ -40,2 +41,3 @@ const PageNumberAPI = __importStar(require("sink-npm/resources/pagination-tests/page-number")); | ||
super(...arguments); | ||
this.itemsTypes = new ItemsTypesAPI.ItemsTypes(this._client); | ||
this.pageNumber = new PageNumberAPI.PageNumber(this._client); | ||
@@ -52,2 +54,4 @@ this.refs = new RefsAPI.Refs(this._client); | ||
(function (PaginationTests) { | ||
PaginationTests.ItemsTypes = ItemsTypesAPI.ItemsTypes; | ||
PaginationTests.ItemsTypeListUnknownResponsesPagePageNumber = ItemsTypesAPI.ItemsTypeListUnknownResponsesPagePageNumber; | ||
PaginationTests.PageNumber = PageNumberAPI.PageNumber; | ||
@@ -54,0 +58,0 @@ PaginationTests.Refs = RefsAPI.Refs; |
@@ -974,2 +974,4 @@ import { VERSION } from './version'; | ||
* | ||
* Trims beginning and trailing whitespace. | ||
* | ||
* Will return undefined if the environment variable doesn't exist or cannot be accessed. | ||
@@ -979,6 +981,6 @@ */ | ||
if (typeof process !== 'undefined') { | ||
return process.env?.[env] ?? undefined; | ||
return process.env?.[env]?.trim() ?? undefined; | ||
} | ||
if (typeof Deno !== 'undefined') { | ||
return Deno.env?.get?.(env); | ||
return Deno.env?.get?.(env)?.trim(); | ||
} | ||
@@ -985,0 +987,0 @@ return undefined; |
@@ -5,2 +5,8 @@ // File generated from our OpenAPI spec by Stainless. | ||
export { FakePageListParams, FakePages } from './fake-pages'; | ||
export { | ||
ItemsTypeListUnknownResponse, | ||
ItemsTypeListUnknownParams, | ||
ItemsTypeListUnknownResponsesPagePageNumber, | ||
ItemsTypes, | ||
} from './items-types'; | ||
export { OffsetListParams, OffsetWithTotalCountParams, Offset } from './offset'; | ||
@@ -7,0 +13,0 @@ export { PageNumberListParams, PageNumber } from './page-number'; |
@@ -6,2 +6,3 @@ // File generated from our OpenAPI spec by Stainless. | ||
import * as FakePagesAPI from "./fake-pages"; | ||
import * as ItemsTypesAPI from "./items-types"; | ||
import * as OffsetAPI from "./offset"; | ||
@@ -14,2 +15,3 @@ import * as PageNumberAPI from "./page-number"; | ||
export class PaginationTests extends APIResource { | ||
itemsTypes: ItemsTypesAPI.ItemsTypes = new ItemsTypesAPI.ItemsTypes(this._client); | ||
pageNumber: PageNumberAPI.PageNumber = new PageNumberAPI.PageNumber(this._client); | ||
@@ -25,2 +27,6 @@ refs: RefsAPI.Refs = new RefsAPI.Refs(this._client); | ||
export namespace PaginationTests { | ||
export import ItemsTypes = ItemsTypesAPI.ItemsTypes; | ||
export import ItemsTypeListUnknownResponse = ItemsTypesAPI.ItemsTypeListUnknownResponse; | ||
export import ItemsTypeListUnknownResponsesPagePageNumber = ItemsTypesAPI.ItemsTypeListUnknownResponsesPagePageNumber; | ||
export import ItemsTypeListUnknownParams = ItemsTypesAPI.ItemsTypeListUnknownParams; | ||
export import PageNumber = PageNumberAPI.PageNumber; | ||
@@ -27,0 +33,0 @@ export import PageNumberListParams = PageNumberAPI.PageNumberListParams; |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.9.1'; // x-release-please-version | ||
export const VERSION = '0.10.0'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.9.1"; | ||
export declare const VERSION = "0.10.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.9.1'; // x-release-please-version | ||
exports.VERSION = '0.10.0'; // 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
1602174
901
25381