Skip to content

Commit

Permalink
Release 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 12, 2024
1 parent 17d0c05 commit 58fc95a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crossmint",
"version": "0.0.3",
"version": "0.0.4",
"private": false,
"repository": "https://github.com/fern-demo/crossmint-typescript-sdk",
"main": "./index.js",
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/headless/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ export class Headless {
): Promise<Crossmint.CreateOrderResponse> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.CrossmintEnvironment.Default,
(await core.Supplier.get(this._options.environment)) ?? environments.CrossmintEnvironment.Staging,
"2022-06-09/orders"
),
method: "POST",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "crossmint",
"X-Fern-SDK-Version": "0.0.3",
"X-Fern-SDK-Version": "0.0.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -169,14 +169,14 @@ export class Headless {
public async getOrder(orderId: string, requestOptions?: Headless.RequestOptions): Promise<Crossmint.OrderObject> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.CrossmintEnvironment.Default,
(await core.Supplier.get(this._options.environment)) ?? environments.CrossmintEnvironment.Staging,
`2022-06-09/orders/${encodeURIComponent(orderId)}`
),
method: "GET",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "crossmint",
"X-Fern-SDK-Version": "0.0.3",
"X-Fern-SDK-Version": "0.0.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -285,14 +285,14 @@ export class Headless {
): Promise<Crossmint.OrderObject> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.CrossmintEnvironment.Default,
(await core.Supplier.get(this._options.environment)) ?? environments.CrossmintEnvironment.Staging,
`2022-06-09/orders/${encodeURIComponent(orderId)}`
),
method: "PATCH",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "crossmint",
"X-Fern-SDK-Version": "0.0.3",
"X-Fern-SDK-Version": "0.0.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
5 changes: 3 additions & 2 deletions src/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*/

export const CrossmintEnvironment = {
Default: "https://staging.crossmint.com/api",
Staging: "https://staging.crossmint.com/api",
Production: "https://www.crossmint.com/api",
} as const;

export type CrossmintEnvironment = typeof CrossmintEnvironment.Default;
export type CrossmintEnvironment = typeof CrossmintEnvironment.Staging | typeof CrossmintEnvironment.Production;

0 comments on commit 58fc95a

Please sign in to comment.