Skip to content

Commit

Permalink
Release 1.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 9, 2023
1 parent 8c8b972 commit 9f81d83
Show file tree
Hide file tree
Showing 20 changed files with 158 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "",
"version": "1.0.12",
"version": "1.0.13",
"private": false,
"repository": "https://github.com/dopt/blocks-javascript-browser-client",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/blocks/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Blocks {
"X-Api-Key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.0.12",
"X-Fern-SDK-Version": "1.0.13",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -124,7 +124,7 @@ export class Blocks {
"X-Api-Key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.0.12",
"X-Fern-SDK-Version": "1.0.13",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
26 changes: 20 additions & 6 deletions src/api/resources/flows/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ export class Flows {
* @throws {@link DoptApi.InternalServerError}
*/
public async getFlow(sid: string, request: DoptApi.GetFlowRequest): Promise<DoptApi.GetFlowResponse> {
const { version, include, userIdentifier, groupIdentifier } = request;
const { version, tag, include, userIdentifier, groupIdentifier } = request;
const _queryParams = new URLSearchParams();
_queryParams.append("version", version.toString());
if (version != null) {
_queryParams.append("version", version.toString());
}

if (tag != null) {
_queryParams.append("tag", tag);
}

if (include != null) {
_queryParams.append("include", include);
}
Expand All @@ -49,7 +56,7 @@ export class Flows {
"X-Api-Key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.0.12",
"X-Fern-SDK-Version": "1.0.13",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -108,9 +115,16 @@ export class Flows {
intent: DoptApi.IntentRequestIntent,
request: DoptApi.IntentRequest
): Promise<void> {
const { version, userIdentifier, groupIdentifier, force, ..._body } = request;
const { version, tag, userIdentifier, groupIdentifier, force, ..._body } = request;
const _queryParams = new URLSearchParams();
_queryParams.append("version", version.toString());
if (version != null) {
_queryParams.append("version", version.toString());
}

if (tag != null) {
_queryParams.append("tag", tag);
}

_queryParams.append("userIdentifier", userIdentifier);
if (groupIdentifier != null) {
_queryParams.append("groupIdentifier", groupIdentifier);
Expand All @@ -130,7 +144,7 @@ export class Flows {
"X-Api-Key": await core.Supplier.get(this.options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "",
"X-Fern-SDK-Version": "1.0.12",
"X-Fern-SDK-Version": "1.0.13",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
5 changes: 4 additions & 1 deletion src/api/resources/flows/client/requests/GetFlowRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as DoptApi from "../../../..";

export interface GetFlowRequest {
version: number;
version?: number;
tag?: DoptApi.GetFlowRequestTag;
include?: "block";
userIdentifier: string;
groupIdentifier?: string;
Expand Down
5 changes: 4 additions & 1 deletion src/api/resources/flows/client/requests/IntentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as DoptApi from "../../../..";

export interface IntentRequest {
version: number;
version?: number;
tag?: DoptApi.IntentRequestTag;
userIdentifier: string;
groupIdentifier?: string;
force?: boolean;
Expand Down
5 changes: 4 additions & 1 deletion src/api/types/FlowIntentQueryString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as DoptApi from "..";

export interface FlowIntentQueryString {
version: number;
version?: number;
tag?: DoptApi.FlowIntentQueryStringTag;
userIdentifier: string;
groupIdentifier?: string;
force?: boolean;
Expand Down
10 changes: 10 additions & 0 deletions src/api/types/FlowIntentQueryStringTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export type FlowIntentQueryStringTag = "uncommitted" | "latest";

export const FlowIntentQueryStringTag = {
Uncommitted: "uncommitted",
Latest: "latest",
} as const;
5 changes: 4 additions & 1 deletion src/api/types/GetFlowQueryString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as DoptApi from "..";

export interface GetFlowQueryString {
version: number;
version?: number;
tag?: DoptApi.GetFlowQueryStringTag;
include?: "block";
userIdentifier: string;
groupIdentifier?: string;
Expand Down
10 changes: 10 additions & 0 deletions src/api/types/GetFlowQueryStringTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export type GetFlowQueryStringTag = "uncommitted" | "latest";

export const GetFlowQueryStringTag = {
Uncommitted: "uncommitted",
Latest: "latest",
} as const;
10 changes: 10 additions & 0 deletions src/api/types/GetFlowRequestTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export type GetFlowRequestTag = "uncommitted" | "latest";

export const GetFlowRequestTag = {
Uncommitted: "uncommitted",
Latest: "latest",
} as const;
10 changes: 10 additions & 0 deletions src/api/types/IntentRequestTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export type IntentRequestTag = "uncommitted" | "latest";

export const IntentRequestTag = {
Uncommitted: "uncommitted",
Latest: "latest",
} as const;
4 changes: 4 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from "./GetBlockResponseState";
export * from "./GetBlockResponseType";
export * from "./GetBlockResponseFieldsItem";
export * from "./GetBlockResponseFieldsItemGetBlockResponseFieldsItem";
export * from "./GetFlowRequestTag";
export * from "./GetFlowResponse";
export * from "./GetFlowResponseState";
export * from "./GetFlowResponseBlocksItem";
Expand All @@ -11,18 +12,21 @@ export * from "./GetFlowResponseBlocksItemType";
export * from "./GetFlowResponseBlocksItemFieldsItem";
export * from "./GetFlowResponseBlocksItemFieldsItemGetFlowResponseBlocksItemFieldsItem";
export * from "./IntentRequestIntent";
export * from "./IntentRequestTag";
export * from "./BadRequestErrorResponseBody";
export * from "./BadRequestErrorResponseBodyCode";
export * from "./BlockTransitionQueryString";
export * from "./BlockTransitionRequestBody";
export * from "./BlockTransitionRequestParams";
export * from "./FlowIntentQueryString";
export * from "./FlowIntentQueryStringTag";
export * from "./FlowIntentRequestBody";
export * from "./FlowIntentRequestParams";
export * from "./FlowIntentRequestParamsIntent";
export * from "./GetBlockQueryString";
export * from "./GetBlockRequestParams";
export * from "./GetFlowQueryString";
export * from "./GetFlowQueryStringTag";
export * from "./GetFlowRequestParams";
export * from "./HealthCheckResponseBody";
export * from "./InternalServerErrorResponseBody";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as core from "../../../../../core";

export const IntentRequest: core.serialization.Schema<
serializers.IntentRequest.Raw,
Omit<DoptApi.IntentRequest, "version" | "userIdentifier" | "groupIdentifier" | "force">
Omit<DoptApi.IntentRequest, "version" | "tag" | "userIdentifier" | "groupIdentifier" | "force">
> = core.serialization.object({});

export declare namespace IntentRequest {
Expand Down
6 changes: 4 additions & 2 deletions src/serialization/types/FlowIntentQueryString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ export const FlowIntentQueryString: core.serialization.ObjectSchema<
serializers.FlowIntentQueryString.Raw,
DoptApi.FlowIntentQueryString
> = core.serialization.object({
version: core.serialization.number(),
version: core.serialization.number().optional(),
tag: core.serialization.lazy(async () => (await import("..")).FlowIntentQueryStringTag).optional(),
userIdentifier: core.serialization.string(),
groupIdentifier: core.serialization.string().optional(),
force: core.serialization.boolean().optional(),
});

export declare namespace FlowIntentQueryString {
interface Raw {
version: number;
version?: number | null;
tag?: serializers.FlowIntentQueryStringTag.Raw | null;
userIdentifier: string;
groupIdentifier?: string | null;
force?: boolean | null;
Expand Down
16 changes: 16 additions & 0 deletions src/serialization/types/FlowIntentQueryStringTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as DoptApi from "../../api";
import * as core from "../../core";

export const FlowIntentQueryStringTag: core.serialization.Schema<
serializers.FlowIntentQueryStringTag.Raw,
DoptApi.FlowIntentQueryStringTag
> = core.serialization.enum_(["uncommitted", "latest"]);

export declare namespace FlowIntentQueryStringTag {
type Raw = "uncommitted" | "latest";
}
6 changes: 4 additions & 2 deletions src/serialization/types/GetFlowQueryString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ export const GetFlowQueryString: core.serialization.ObjectSchema<
serializers.GetFlowQueryString.Raw,
DoptApi.GetFlowQueryString
> = core.serialization.object({
version: core.serialization.number(),
version: core.serialization.number().optional(),
tag: core.serialization.lazy(async () => (await import("..")).GetFlowQueryStringTag).optional(),
include: core.serialization.stringLiteral("block").optional(),
userIdentifier: core.serialization.string(),
groupIdentifier: core.serialization.string().optional(),
});

export declare namespace GetFlowQueryString {
interface Raw {
version: number;
version?: number | null;
tag?: serializers.GetFlowQueryStringTag.Raw | null;
include?: "block" | null;
userIdentifier: string;
groupIdentifier?: string | null;
Expand Down
16 changes: 16 additions & 0 deletions src/serialization/types/GetFlowQueryStringTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as DoptApi from "../../api";
import * as core from "../../core";

export const GetFlowQueryStringTag: core.serialization.Schema<
serializers.GetFlowQueryStringTag.Raw,
DoptApi.GetFlowQueryStringTag
> = core.serialization.enum_(["uncommitted", "latest"]);

export declare namespace GetFlowQueryStringTag {
type Raw = "uncommitted" | "latest";
}
16 changes: 16 additions & 0 deletions src/serialization/types/GetFlowRequestTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as DoptApi from "../../api";
import * as core from "../../core";

export const GetFlowRequestTag: core.serialization.Schema<
serializers.GetFlowRequestTag.Raw,
DoptApi.GetFlowRequestTag
> = core.serialization.enum_(["uncommitted", "latest"]);

export declare namespace GetFlowRequestTag {
type Raw = "uncommitted" | "latest";
}
14 changes: 14 additions & 0 deletions src/serialization/types/IntentRequestTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as DoptApi from "../../api";
import * as core from "../../core";

export const IntentRequestTag: core.serialization.Schema<serializers.IntentRequestTag.Raw, DoptApi.IntentRequestTag> =
core.serialization.enum_(["uncommitted", "latest"]);

export declare namespace IntentRequestTag {
type Raw = "uncommitted" | "latest";
}
4 changes: 4 additions & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from "./GetBlockResponseState";
export * from "./GetBlockResponseType";
export * from "./GetBlockResponseFieldsItem";
export * from "./GetBlockResponseFieldsItemGetBlockResponseFieldsItem";
export * from "./GetFlowRequestTag";
export * from "./GetFlowResponse";
export * from "./GetFlowResponseState";
export * from "./GetFlowResponseBlocksItem";
Expand All @@ -11,18 +12,21 @@ export * from "./GetFlowResponseBlocksItemType";
export * from "./GetFlowResponseBlocksItemFieldsItem";
export * from "./GetFlowResponseBlocksItemFieldsItemGetFlowResponseBlocksItemFieldsItem";
export * from "./IntentRequestIntent";
export * from "./IntentRequestTag";
export * from "./BadRequestErrorResponseBody";
export * from "./BadRequestErrorResponseBodyCode";
export * from "./BlockTransitionQueryString";
export * from "./BlockTransitionRequestBody";
export * from "./BlockTransitionRequestParams";
export * from "./FlowIntentQueryString";
export * from "./FlowIntentQueryStringTag";
export * from "./FlowIntentRequestBody";
export * from "./FlowIntentRequestParams";
export * from "./FlowIntentRequestParamsIntent";
export * from "./GetBlockQueryString";
export * from "./GetBlockRequestParams";
export * from "./GetFlowQueryString";
export * from "./GetFlowQueryStringTag";
export * from "./GetFlowRequestParams";
export * from "./HealthCheckResponseBody";
export * from "./InternalServerErrorResponseBody";
Expand Down

0 comments on commit 9f81d83

Please sign in to comment.