mirror of
https://github.com/LukeHagar/dub-node.git
synced 2025-12-06 04:19:37 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.272.0 (#89)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
37d50041be
commit
f6145a97ce
@@ -3,10 +3,10 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||
management:
|
||||
docChecksum: d13f5102cda97c578071c17197996172
|
||||
docVersion: 0.0.1
|
||||
speakeasyVersion: 1.269.1
|
||||
speakeasyVersion: 1.272.0
|
||||
generationVersion: 2.312.1
|
||||
releaseVersion: 0.24.4
|
||||
configChecksum: e898c52661b3e0d1837c6c2d8b801d02
|
||||
releaseVersion: 0.24.5
|
||||
configChecksum: 92157209ffa5c1159c8556491f90b1cd
|
||||
repoURL: https://github.com/dubinc/dub-node.git
|
||||
installationURL: https://github.com/dubinc/dub-node
|
||||
published: true
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.24.4
|
||||
version: 0.24.5
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.269.1
|
||||
speakeasyVersion: 1.272.0
|
||||
sources:
|
||||
my-first-source: {}
|
||||
targets:
|
||||
|
||||
24
README.md
24
README.md
@@ -47,10 +47,6 @@ const dub = new Dub({
|
||||
async function run() {
|
||||
const result = await dub.links.create({
|
||||
url: "https://google/com",
|
||||
externalId: "123456",
|
||||
tagIds: ["clux0rgak00011..."],
|
||||
tagNames: "<value>",
|
||||
geo: {},
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
@@ -150,10 +146,7 @@ const dub = new Dub({
|
||||
async function run() {
|
||||
let result;
|
||||
try {
|
||||
result = await dub.links.list({
|
||||
tagIds: ["<value>"],
|
||||
tagNames: "<value>",
|
||||
});
|
||||
result = await dub.links.list({});
|
||||
} catch (err) {
|
||||
switch (true) {
|
||||
case err instanceof errors.SDKValidationError: {
|
||||
@@ -235,10 +228,7 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.list({
|
||||
tagIds: ["<value>"],
|
||||
tagNames: "<value>",
|
||||
});
|
||||
const result = await dub.links.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result);
|
||||
@@ -263,10 +253,7 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.list({
|
||||
tagIds: ["<value>"],
|
||||
tagNames: "<value>",
|
||||
});
|
||||
const result = await dub.links.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result);
|
||||
@@ -347,10 +334,7 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.list({
|
||||
tagIds: ["<value>"],
|
||||
tagNames: "<value>",
|
||||
});
|
||||
const result = await dub.links.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result);
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -157,3 +157,13 @@ Based on:
|
||||
- [typescript v0.24.4] .
|
||||
### Releases
|
||||
- [NPM v0.24.4] https://www.npmjs.com/package/dub/v/0.24.4 - .
|
||||
|
||||
## 2024-04-24 11:53:21
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.272.0 (2.312.1) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.24.5] .
|
||||
### Releases
|
||||
- [NPM v0.24.5] https://www.npmjs.com/package/dub/v/0.24.5 - .
|
||||
4
USAGE.md
4
USAGE.md
@@ -10,10 +10,6 @@ const dub = new Dub({
|
||||
async function run() {
|
||||
const result = await dub.links.create({
|
||||
url: "https://google/com",
|
||||
externalId: "123456",
|
||||
tagIds: ["clux0rgak00011..."],
|
||||
tagNames: "<value>",
|
||||
geo: {},
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
|
||||
@@ -69,7 +69,6 @@ Add a domain to the authenticated workspace.
|
||||
|
||||
```typescript
|
||||
import { Dub } from "dub";
|
||||
import { Type } from "dub/models/operations";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
@@ -79,11 +78,6 @@ const dub = new Dub({
|
||||
async function run() {
|
||||
const result = await dub.domains.add({
|
||||
slug: "acme.com",
|
||||
type: Type.Redirect,
|
||||
target: "https://acme.com/landing",
|
||||
expiredUrl: "https://acme.com/expired",
|
||||
archived: false,
|
||||
placeholder: "https://dub.co/help/article/what-is-dub",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
@@ -181,7 +175,6 @@ Edit a domain for the authenticated workspace.
|
||||
|
||||
```typescript
|
||||
import { Dub } from "dub";
|
||||
import { EditDomainType } from "dub/models/operations";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
@@ -190,14 +183,7 @@ const dub = new Dub({
|
||||
|
||||
async function run() {
|
||||
const slug = "acme.com";
|
||||
const requestBody = {
|
||||
slug: "acme.com",
|
||||
type: EditDomainType.Redirect,
|
||||
target: "https://acme.com/landing",
|
||||
expiredUrl: "https://acme.com/expired",
|
||||
archived: false,
|
||||
placeholder: "https://dub.co/help/article/what-is-dub",
|
||||
};
|
||||
const requestBody = {};
|
||||
|
||||
const result = await dub.domains.update(slug, requestBody);
|
||||
|
||||
|
||||
@@ -26,12 +26,7 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.list({
|
||||
tagIds: [
|
||||
"<value>",
|
||||
],
|
||||
tagNames: "<value>",
|
||||
});
|
||||
const result = await dub.links.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -84,12 +79,6 @@ const dub = new Dub({
|
||||
async function run() {
|
||||
const result = await dub.links.create({
|
||||
url: "https://google/com",
|
||||
externalId: "123456",
|
||||
tagIds: [
|
||||
"clux0rgak00011...",
|
||||
],
|
||||
tagNames: "<value>",
|
||||
geo: {},
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
@@ -134,7 +123,6 @@ Retrieve the number of links for the authenticated workspace. The provided query
|
||||
|
||||
```typescript
|
||||
import { Dub } from "dub";
|
||||
import { One } from "dub/models/operations";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
@@ -142,11 +130,7 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.count({
|
||||
tagIds: "<value>",
|
||||
tagNames: "<value>",
|
||||
groupBy: One.Domain,
|
||||
});
|
||||
const result = await dub.links.count({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -254,14 +238,6 @@ async function run() {
|
||||
const linkId = "<value>";
|
||||
const requestBody = {
|
||||
url: "https://google/com",
|
||||
externalId: "123456",
|
||||
tagIds: [
|
||||
"clux0rgak00011...",
|
||||
],
|
||||
tagNames: [
|
||||
"<value>",
|
||||
],
|
||||
geo: {},
|
||||
};
|
||||
|
||||
const result = await dub.links.update(linkId, requestBody);
|
||||
@@ -372,14 +348,6 @@ async function run() {
|
||||
const result = await dub.links.createMany([
|
||||
{
|
||||
url: "https://google/com",
|
||||
externalId: "123456",
|
||||
tagIds: [
|
||||
"clux0rgak00011...",
|
||||
],
|
||||
tagNames: [
|
||||
"<value>",
|
||||
],
|
||||
geo: {},
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.24.4",
|
||||
"version": "0.24.5",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./models/errors": "./src/models/errors/index.ts",
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.24.4",
|
||||
"version": "0.24.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dub",
|
||||
"version": "0.24.4",
|
||||
"version": "0.24.5",
|
||||
"devDependencies": {
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/node": "^20.12.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.24.4",
|
||||
"version": "0.24.5",
|
||||
"author": "Dub",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = {
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.1",
|
||||
sdkVersion: "0.24.4",
|
||||
sdkVersion: "0.24.5",
|
||||
genVersion: "2.312.1",
|
||||
userAgent: "speakeasy-sdk/typescript 0.24.4 2.312.1 0.0.1 dub",
|
||||
userAgent: "speakeasy-sdk/typescript 0.24.5 2.312.1 0.0.1 dub",
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user