@steamsets/client-ts 0.26.7 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/docs/sdks/badges/README.md +6 -6
- package/funcs/badgesListPrices.d.ts +13 -2
- package/funcs/badgesListPrices.d.ts.map +1 -1
- package/funcs/badgesListPrices.js +21 -20
- package/funcs/badgesListPrices.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/badge.d.ts +8 -0
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +8 -0
- package/models/components/badge.js.map +1 -1
- package/models/components/bestleaderboardrank.d.ts +6 -3
- package/models/components/bestleaderboardrank.d.ts.map +1 -1
- package/models/components/bestleaderboardrank.js +2 -1
- package/models/components/bestleaderboardrank.js.map +1 -1
- package/models/components/errormodel.d.ts +63 -0
- package/models/components/errormodel.d.ts.map +1 -0
- package/models/components/errormodel.js +81 -0
- package/models/components/errormodel.js.map +1 -0
- package/models/components/index.d.ts +7 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -2
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountgetinforesponsebody.d.ts +0 -9
- package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountgetinforesponsebody.js +0 -3
- package/models/components/v1accountgetinforesponsebody.js.map +1 -1
- package/models/components/v1badgeapp.d.ts +37 -0
- package/models/components/v1badgeapp.d.ts.map +1 -0
- package/models/components/v1badgeapp.js +67 -0
- package/models/components/v1badgeapp.js.map +1 -0
- package/models/components/v1badgelevel.d.ts +33 -0
- package/models/components/v1badgelevel.d.ts.map +1 -0
- package/models/components/v1badgelevel.js +63 -0
- package/models/components/v1badgelevel.js.map +1 -0
- package/models/components/v1badgelistbadgepricesrequestbody.d.ts +2 -10
- package/models/components/v1badgelistbadgepricesrequestbody.d.ts.map +1 -1
- package/models/components/v1badgelistbadgepricesrequestbody.js +2 -10
- package/models/components/v1badgelistbadgepricesrequestbody.js.map +1 -1
- package/models/components/v1badgelistbadgepricesresponsebody.d.ts +24 -0
- package/models/components/v1badgelistbadgepricesresponsebody.d.ts.map +1 -1
- package/models/components/v1badgelistbadgepricesresponsebody.js +11 -0
- package/models/components/v1badgelistbadgepricesresponsebody.js.map +1 -1
- package/models/components/v1badgeset.d.ts +61 -0
- package/models/components/v1badgeset.d.ts.map +1 -0
- package/models/components/v1badgeset.js +87 -0
- package/models/components/v1badgeset.js.map +1 -0
- package/models/components/v1badgesetcount.d.ts +31 -0
- package/models/components/v1badgesetcount.d.ts.map +1 -0
- package/models/components/v1badgesetcount.js +61 -0
- package/models/components/v1badgesetcount.js.map +1 -0
- package/models/components/v1badgesetcounts.d.ts +34 -0
- package/models/components/v1badgesetcounts.d.ts.map +1 -0
- package/models/components/v1badgesetcounts.js +64 -0
- package/models/components/v1badgesetcounts.js.map +1 -0
- package/models/components/v1badgetypecount.d.ts +33 -0
- package/models/components/v1badgetypecount.d.ts.map +1 -0
- package/models/components/v1badgetypecount.js +63 -0
- package/models/components/v1badgetypecount.js.map +1 -0
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.d.ts +6 -0
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.d.ts.map +1 -1
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.js +2 -0
- package/models/components/v1leaderboardgetaccountleaderboardrequestbody.js.map +1 -1
- package/models/components/v1leaderboardgetaccountsmetarequestbody.d.ts +6 -0
- package/models/components/v1leaderboardgetaccountsmetarequestbody.d.ts.map +1 -1
- package/models/components/v1leaderboardgetaccountsmetarequestbody.js +2 -0
- package/models/components/v1leaderboardgetaccountsmetarequestbody.js.map +1 -1
- package/models/operations/badgelistbadgeprices.d.ts +5 -0
- package/models/operations/badgelistbadgeprices.d.ts.map +1 -1
- package/models/operations/badgelistbadgeprices.js +4 -0
- package/models/operations/badgelistbadgeprices.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badges.d.ts +11 -1
- package/sdk/badges.d.ts.map +1 -1
- package/sdk/badges.js +9 -1
- package/sdk/badges.js.map +1 -1
- package/src/funcs/badgesListPrices.ts +23 -32
- package/src/lib/config.ts +3 -3
- package/src/models/components/badge.ts +16 -0
- package/src/models/components/bestleaderboardrank.ts +2 -1
- package/src/models/components/errormodel.ts +122 -0
- package/src/models/components/index.ts +7 -2
- package/src/models/components/v1accountgetinforesponsebody.ts +0 -3
- package/src/models/components/v1badgeapp.ts +78 -0
- package/src/models/components/v1badgelevel.ts +70 -0
- package/src/models/components/v1badgelistbadgepricesrequestbody.ts +4 -28
- package/src/models/components/v1badgelistbadgepricesresponsebody.ts +43 -0
- package/src/models/components/v1badgeset.ts +126 -0
- package/src/models/components/v1badgesetcount.ts +68 -0
- package/src/models/components/v1badgesetcounts.ts +80 -0
- package/src/models/components/v1badgetypecount.ts +74 -0
- package/src/models/components/v1leaderboardgetaccountleaderboardrequestbody.ts +2 -0
- package/src/models/components/v1leaderboardgetaccountsmetarequestbody.ts +2 -0
- package/src/models/operations/badgelistbadgeprices.ts +9 -0
- package/src/sdk/badges.ts +13 -2
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/components/v1badgelistbadgepricefilters.d.ts +0 -35
- package/models/components/v1badgelistbadgepricefilters.d.ts.map +0 -1
- package/models/components/v1badgelistbadgepricefilters.js +0 -65
- package/models/components/v1badgelistbadgepricefilters.js.map +0 -1
- package/models/components/v1badgelistbadgepriceorder.d.ts +0 -57
- package/models/components/v1badgelistbadgepriceorder.d.ts.map +0 -1
- package/models/components/v1badgelistbadgepriceorder.js +0 -80
- package/models/components/v1badgelistbadgepriceorder.js.map +0 -1
- package/src/models/components/v1badgelistbadgepricefilters.ts +0 -80
- package/src/models/components/v1badgelistbadgepriceorder.ts +0 -102
|
@@ -17,6 +17,10 @@ export type BadgeListBadgePricesResponse = {
|
|
|
17
17
|
v1BadgeListBadgePricesResponseBody?:
|
|
18
18
|
| components.V1BadgeListBadgePricesResponseBody
|
|
19
19
|
| undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Error
|
|
22
|
+
*/
|
|
23
|
+
errorModel?: components.ErrorModel | undefined;
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
/** @internal */
|
|
@@ -28,10 +32,12 @@ export const BadgeListBadgePricesResponse$inboundSchema: z.ZodType<
|
|
|
28
32
|
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
29
33
|
V1BadgeListBadgePricesResponseBody: components
|
|
30
34
|
.V1BadgeListBadgePricesResponseBody$inboundSchema.optional(),
|
|
35
|
+
ErrorModel: components.ErrorModel$inboundSchema.optional(),
|
|
31
36
|
}).transform((v) => {
|
|
32
37
|
return remap$(v, {
|
|
33
38
|
"HttpMeta": "httpMeta",
|
|
34
39
|
"V1BadgeListBadgePricesResponseBody": "v1BadgeListBadgePricesResponseBody",
|
|
40
|
+
"ErrorModel": "errorModel",
|
|
35
41
|
});
|
|
36
42
|
});
|
|
37
43
|
|
|
@@ -41,6 +47,7 @@ export type BadgeListBadgePricesResponse$Outbound = {
|
|
|
41
47
|
V1BadgeListBadgePricesResponseBody?:
|
|
42
48
|
| components.V1BadgeListBadgePricesResponseBody$Outbound
|
|
43
49
|
| undefined;
|
|
50
|
+
ErrorModel?: components.ErrorModel$Outbound | undefined;
|
|
44
51
|
};
|
|
45
52
|
|
|
46
53
|
/** @internal */
|
|
@@ -52,10 +59,12 @@ export const BadgeListBadgePricesResponse$outboundSchema: z.ZodType<
|
|
|
52
59
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
53
60
|
v1BadgeListBadgePricesResponseBody: components
|
|
54
61
|
.V1BadgeListBadgePricesResponseBody$outboundSchema.optional(),
|
|
62
|
+
errorModel: components.ErrorModel$outboundSchema.optional(),
|
|
55
63
|
}).transform((v) => {
|
|
56
64
|
return remap$(v, {
|
|
57
65
|
httpMeta: "HttpMeta",
|
|
58
66
|
v1BadgeListBadgePricesResponseBody: "V1BadgeListBadgePricesResponseBody",
|
|
67
|
+
errorModel: "ErrorModel",
|
|
59
68
|
});
|
|
60
69
|
});
|
|
61
70
|
|
package/src/sdk/badges.ts
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
badgesListPrices,
|
|
7
|
+
ListPricesAcceptEnum,
|
|
8
|
+
} from "../funcs/badgesListPrices.js";
|
|
6
9
|
import { badgesListTags } from "../funcs/badgesListTags.js";
|
|
7
10
|
import { badgesTag } from "../funcs/badgesTag.js";
|
|
8
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -10,10 +13,18 @@ import * as components from "../models/components/index.js";
|
|
|
10
13
|
import * as operations from "../models/operations/index.js";
|
|
11
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
15
|
|
|
16
|
+
export { ListPricesAcceptEnum } from "../funcs/badgesListPrices.js";
|
|
17
|
+
|
|
13
18
|
export class Badges extends ClientSDK {
|
|
19
|
+
/**
|
|
20
|
+
* List badge prices
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Get a list of all badge pricing information
|
|
24
|
+
*/
|
|
14
25
|
async listPrices(
|
|
15
26
|
request: components.V1BadgeListBadgePricesRequestBody,
|
|
16
|
-
options?: RequestOptions,
|
|
27
|
+
options?: RequestOptions & { acceptHeaderOverride?: ListPricesAcceptEnum },
|
|
17
28
|
): Promise<operations.BadgeListBadgePricesResponse> {
|
|
18
29
|
return unwrapAsync(badgesListPrices(
|
|
19
30
|
this,
|
package/types/constdatetime.js
CHANGED
|
@@ -31,6 +31,6 @@ const z = __importStar(require("zod"));
|
|
|
31
31
|
function constDateTime(val) {
|
|
32
32
|
return z.custom((v) => {
|
|
33
33
|
return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
|
|
34
|
-
}, `Value must be
|
|
34
|
+
}, `Value must be equivalent to ${val}`);
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=constdatetime.js.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type V1BadgeListBadgePriceFilters = {
|
|
5
|
-
completedBadges: boolean;
|
|
6
|
-
freeToPlay: boolean;
|
|
7
|
-
ownedCards: boolean;
|
|
8
|
-
ownedGames: boolean;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const V1BadgeListBadgePriceFilters$inboundSchema: z.ZodType<V1BadgeListBadgePriceFilters, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type V1BadgeListBadgePriceFilters$Outbound = {
|
|
14
|
-
completedBadges: boolean;
|
|
15
|
-
freeToPlay: boolean;
|
|
16
|
-
ownedCards: boolean;
|
|
17
|
-
ownedGames: boolean;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const V1BadgeListBadgePriceFilters$outboundSchema: z.ZodType<V1BadgeListBadgePriceFilters$Outbound, z.ZodTypeDef, V1BadgeListBadgePriceFilters>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace V1BadgeListBadgePriceFilters$ {
|
|
26
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<V1BadgeListBadgePriceFilters, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<V1BadgeListBadgePriceFilters$Outbound, z.ZodTypeDef, V1BadgeListBadgePriceFilters>;
|
|
30
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$Outbound` instead. */
|
|
31
|
-
type Outbound = V1BadgeListBadgePriceFilters$Outbound;
|
|
32
|
-
}
|
|
33
|
-
export declare function v1BadgeListBadgePriceFiltersToJSON(v1BadgeListBadgePriceFilters: V1BadgeListBadgePriceFilters): string;
|
|
34
|
-
export declare function v1BadgeListBadgePriceFiltersFromJSON(jsonString: string): SafeParseResult<V1BadgeListBadgePriceFilters, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=v1badgelistbadgepricefilters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1badgelistbadgepricefilters.d.ts","sourceRoot":"","sources":["../../src/models/components/v1badgelistbadgepricefilters.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAM5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.V1BadgeListBadgePriceFilters$ = exports.V1BadgeListBadgePriceFilters$outboundSchema = exports.V1BadgeListBadgePriceFilters$inboundSchema = void 0;
|
|
30
|
-
exports.v1BadgeListBadgePriceFiltersToJSON = v1BadgeListBadgePriceFiltersToJSON;
|
|
31
|
-
exports.v1BadgeListBadgePriceFiltersFromJSON = v1BadgeListBadgePriceFiltersFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
-
/** @internal */
|
|
35
|
-
exports.V1BadgeListBadgePriceFilters$inboundSchema = z.object({
|
|
36
|
-
completedBadges: z.boolean(),
|
|
37
|
-
freeToPlay: z.boolean(),
|
|
38
|
-
ownedCards: z.boolean(),
|
|
39
|
-
ownedGames: z.boolean(),
|
|
40
|
-
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.V1BadgeListBadgePriceFilters$outboundSchema = z.object({
|
|
43
|
-
completedBadges: z.boolean(),
|
|
44
|
-
freeToPlay: z.boolean(),
|
|
45
|
-
ownedCards: z.boolean(),
|
|
46
|
-
ownedGames: z.boolean(),
|
|
47
|
-
});
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
var V1BadgeListBadgePriceFilters$;
|
|
53
|
-
(function (V1BadgeListBadgePriceFilters$) {
|
|
54
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$inboundSchema` instead. */
|
|
55
|
-
V1BadgeListBadgePriceFilters$.inboundSchema = exports.V1BadgeListBadgePriceFilters$inboundSchema;
|
|
56
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$outboundSchema` instead. */
|
|
57
|
-
V1BadgeListBadgePriceFilters$.outboundSchema = exports.V1BadgeListBadgePriceFilters$outboundSchema;
|
|
58
|
-
})(V1BadgeListBadgePriceFilters$ || (exports.V1BadgeListBadgePriceFilters$ = V1BadgeListBadgePriceFilters$ = {}));
|
|
59
|
-
function v1BadgeListBadgePriceFiltersToJSON(v1BadgeListBadgePriceFilters) {
|
|
60
|
-
return JSON.stringify(exports.V1BadgeListBadgePriceFilters$outboundSchema.parse(v1BadgeListBadgePriceFilters));
|
|
61
|
-
}
|
|
62
|
-
function v1BadgeListBadgePriceFiltersFromJSON(jsonString) {
|
|
63
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1BadgeListBadgePriceFilters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1BadgeListBadgePriceFilters' from JSON`);
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=v1badgelistbadgepricefilters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1badgelistbadgepricefilters.js","sourceRoot":"","sources":["../../src/models/components/v1badgelistbadgepricefilters.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,gFAQC;AAED,oFAQC;AA3ED,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C;AAED,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const V1BadgeListBadgePriceOrderDirection: {
|
|
6
|
-
readonly Asc: "asc";
|
|
7
|
-
readonly Desc: "desc";
|
|
8
|
-
};
|
|
9
|
-
export type V1BadgeListBadgePriceOrderDirection = ClosedEnum<typeof V1BadgeListBadgePriceOrderDirection>;
|
|
10
|
-
export type V1BadgeListBadgePriceOrder = {
|
|
11
|
-
by: string;
|
|
12
|
-
direction?: V1BadgeListBadgePriceOrderDirection | undefined;
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare const V1BadgeListBadgePriceOrderDirection$inboundSchema: z.ZodNativeEnum<typeof V1BadgeListBadgePriceOrderDirection>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const V1BadgeListBadgePriceOrderDirection$outboundSchema: z.ZodNativeEnum<typeof V1BadgeListBadgePriceOrderDirection>;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export declare namespace V1BadgeListBadgePriceOrderDirection$ {
|
|
23
|
-
/** @deprecated use `V1BadgeListBadgePriceOrderDirection$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
25
|
-
readonly Asc: "asc";
|
|
26
|
-
readonly Desc: "desc";
|
|
27
|
-
}>;
|
|
28
|
-
/** @deprecated use `V1BadgeListBadgePriceOrderDirection$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
30
|
-
readonly Asc: "asc";
|
|
31
|
-
readonly Desc: "desc";
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare const V1BadgeListBadgePriceOrder$inboundSchema: z.ZodType<V1BadgeListBadgePriceOrder, z.ZodTypeDef, unknown>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type V1BadgeListBadgePriceOrder$Outbound = {
|
|
38
|
-
by: string;
|
|
39
|
-
direction: string;
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const V1BadgeListBadgePriceOrder$outboundSchema: z.ZodType<V1BadgeListBadgePriceOrder$Outbound, z.ZodTypeDef, V1BadgeListBadgePriceOrder>;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export declare namespace V1BadgeListBadgePriceOrder$ {
|
|
48
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$inboundSchema` instead. */
|
|
49
|
-
const inboundSchema: z.ZodType<V1BadgeListBadgePriceOrder, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$outboundSchema` instead. */
|
|
51
|
-
const outboundSchema: z.ZodType<V1BadgeListBadgePriceOrder$Outbound, z.ZodTypeDef, V1BadgeListBadgePriceOrder>;
|
|
52
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$Outbound` instead. */
|
|
53
|
-
type Outbound = V1BadgeListBadgePriceOrder$Outbound;
|
|
54
|
-
}
|
|
55
|
-
export declare function v1BadgeListBadgePriceOrderToJSON(v1BadgeListBadgePriceOrder: V1BadgeListBadgePriceOrder): string;
|
|
56
|
-
export declare function v1BadgeListBadgePriceOrderFromJSON(jsonString: string): SafeParseResult<V1BadgeListBadgePriceOrder, SDKValidationError>;
|
|
57
|
-
//# sourceMappingURL=v1badgelistbadgepriceorder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1badgelistbadgepriceorder.d.ts","sourceRoot":"","sources":["../../src/models/components/v1badgelistbadgepriceorder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,mCAAmC,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,aAAa,CAC7E,OAAO,mCAAmC,CACS,CAAC;AAEtD,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAC7D,CAAC,CAAC,aAAa,CAAC,OAAO,mCAAmC,CACP,CAAC;AAEtD;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa;;;MACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc;;;MACyB,CAAC;CACtD;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAI1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.V1BadgeListBadgePriceOrder$ = exports.V1BadgeListBadgePriceOrder$outboundSchema = exports.V1BadgeListBadgePriceOrder$inboundSchema = exports.V1BadgeListBadgePriceOrderDirection$ = exports.V1BadgeListBadgePriceOrderDirection$outboundSchema = exports.V1BadgeListBadgePriceOrderDirection$inboundSchema = exports.V1BadgeListBadgePriceOrderDirection = void 0;
|
|
30
|
-
exports.v1BadgeListBadgePriceOrderToJSON = v1BadgeListBadgePriceOrderToJSON;
|
|
31
|
-
exports.v1BadgeListBadgePriceOrderFromJSON = v1BadgeListBadgePriceOrderFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
-
exports.V1BadgeListBadgePriceOrderDirection = {
|
|
35
|
-
Asc: "asc",
|
|
36
|
-
Desc: "desc",
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
exports.V1BadgeListBadgePriceOrderDirection$inboundSchema = z.nativeEnum(exports.V1BadgeListBadgePriceOrderDirection);
|
|
40
|
-
/** @internal */
|
|
41
|
-
exports.V1BadgeListBadgePriceOrderDirection$outboundSchema = exports.V1BadgeListBadgePriceOrderDirection$inboundSchema;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
var V1BadgeListBadgePriceOrderDirection$;
|
|
47
|
-
(function (V1BadgeListBadgePriceOrderDirection$) {
|
|
48
|
-
/** @deprecated use `V1BadgeListBadgePriceOrderDirection$inboundSchema` instead. */
|
|
49
|
-
V1BadgeListBadgePriceOrderDirection$.inboundSchema = exports.V1BadgeListBadgePriceOrderDirection$inboundSchema;
|
|
50
|
-
/** @deprecated use `V1BadgeListBadgePriceOrderDirection$outboundSchema` instead. */
|
|
51
|
-
V1BadgeListBadgePriceOrderDirection$.outboundSchema = exports.V1BadgeListBadgePriceOrderDirection$outboundSchema;
|
|
52
|
-
})(V1BadgeListBadgePriceOrderDirection$ || (exports.V1BadgeListBadgePriceOrderDirection$ = V1BadgeListBadgePriceOrderDirection$ = {}));
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.V1BadgeListBadgePriceOrder$inboundSchema = z.object({
|
|
55
|
-
by: z.string(),
|
|
56
|
-
direction: exports.V1BadgeListBadgePriceOrderDirection$inboundSchema.default("desc"),
|
|
57
|
-
});
|
|
58
|
-
/** @internal */
|
|
59
|
-
exports.V1BadgeListBadgePriceOrder$outboundSchema = z.object({
|
|
60
|
-
by: z.string(),
|
|
61
|
-
direction: exports.V1BadgeListBadgePriceOrderDirection$outboundSchema.default("desc"),
|
|
62
|
-
});
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
var V1BadgeListBadgePriceOrder$;
|
|
68
|
-
(function (V1BadgeListBadgePriceOrder$) {
|
|
69
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$inboundSchema` instead. */
|
|
70
|
-
V1BadgeListBadgePriceOrder$.inboundSchema = exports.V1BadgeListBadgePriceOrder$inboundSchema;
|
|
71
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$outboundSchema` instead. */
|
|
72
|
-
V1BadgeListBadgePriceOrder$.outboundSchema = exports.V1BadgeListBadgePriceOrder$outboundSchema;
|
|
73
|
-
})(V1BadgeListBadgePriceOrder$ || (exports.V1BadgeListBadgePriceOrder$ = V1BadgeListBadgePriceOrder$ = {}));
|
|
74
|
-
function v1BadgeListBadgePriceOrderToJSON(v1BadgeListBadgePriceOrder) {
|
|
75
|
-
return JSON.stringify(exports.V1BadgeListBadgePriceOrder$outboundSchema.parse(v1BadgeListBadgePriceOrder));
|
|
76
|
-
}
|
|
77
|
-
function v1BadgeListBadgePriceOrderFromJSON(jsonString) {
|
|
78
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1BadgeListBadgePriceOrder$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1BadgeListBadgePriceOrder' from JSON`);
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=v1badgelistbadgepriceorder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1badgelistbadgepriceorder.js","sourceRoot":"","sources":["../../src/models/components/v1badgelistbadgepriceorder.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFH,4EAMC;AAED,gFAQC;AAjGD,uCAAyB;AACzB,qDAAiD;AAKpC,QAAA,mCAAmC,GAAG;IACjD,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAUX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD;AAED,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,yDAAiD,CAAC,OAAO,CAAC,MAAM,CAAC;CAC7E,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,0DAAkD,CAAC,OAAO,CAAC,MAAM,CAAC;CAC9E,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type V1BadgeListBadgePriceFilters = {
|
|
11
|
-
completedBadges: boolean;
|
|
12
|
-
freeToPlay: boolean;
|
|
13
|
-
ownedCards: boolean;
|
|
14
|
-
ownedGames: boolean;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const V1BadgeListBadgePriceFilters$inboundSchema: z.ZodType<
|
|
19
|
-
V1BadgeListBadgePriceFilters,
|
|
20
|
-
z.ZodTypeDef,
|
|
21
|
-
unknown
|
|
22
|
-
> = z.object({
|
|
23
|
-
completedBadges: z.boolean(),
|
|
24
|
-
freeToPlay: z.boolean(),
|
|
25
|
-
ownedCards: z.boolean(),
|
|
26
|
-
ownedGames: z.boolean(),
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export type V1BadgeListBadgePriceFilters$Outbound = {
|
|
31
|
-
completedBadges: boolean;
|
|
32
|
-
freeToPlay: boolean;
|
|
33
|
-
ownedCards: boolean;
|
|
34
|
-
ownedGames: boolean;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const V1BadgeListBadgePriceFilters$outboundSchema: z.ZodType<
|
|
39
|
-
V1BadgeListBadgePriceFilters$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
V1BadgeListBadgePriceFilters
|
|
42
|
-
> = z.object({
|
|
43
|
-
completedBadges: z.boolean(),
|
|
44
|
-
freeToPlay: z.boolean(),
|
|
45
|
-
ownedCards: z.boolean(),
|
|
46
|
-
ownedGames: z.boolean(),
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace V1BadgeListBadgePriceFilters$ {
|
|
54
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = V1BadgeListBadgePriceFilters$inboundSchema;
|
|
56
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema = V1BadgeListBadgePriceFilters$outboundSchema;
|
|
58
|
-
/** @deprecated use `V1BadgeListBadgePriceFilters$Outbound` instead. */
|
|
59
|
-
export type Outbound = V1BadgeListBadgePriceFilters$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function v1BadgeListBadgePriceFiltersToJSON(
|
|
63
|
-
v1BadgeListBadgePriceFilters: V1BadgeListBadgePriceFilters,
|
|
64
|
-
): string {
|
|
65
|
-
return JSON.stringify(
|
|
66
|
-
V1BadgeListBadgePriceFilters$outboundSchema.parse(
|
|
67
|
-
v1BadgeListBadgePriceFilters,
|
|
68
|
-
),
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function v1BadgeListBadgePriceFiltersFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<V1BadgeListBadgePriceFilters, SDKValidationError> {
|
|
75
|
-
return safeParse(
|
|
76
|
-
jsonString,
|
|
77
|
-
(x) => V1BadgeListBadgePriceFilters$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'V1BadgeListBadgePriceFilters' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export const V1BadgeListBadgePriceOrderDirection = {
|
|
12
|
-
Asc: "asc",
|
|
13
|
-
Desc: "desc",
|
|
14
|
-
} as const;
|
|
15
|
-
export type V1BadgeListBadgePriceOrderDirection = ClosedEnum<
|
|
16
|
-
typeof V1BadgeListBadgePriceOrderDirection
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
export type V1BadgeListBadgePriceOrder = {
|
|
20
|
-
by: string;
|
|
21
|
-
direction?: V1BadgeListBadgePriceOrderDirection | undefined;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const V1BadgeListBadgePriceOrderDirection$inboundSchema: z.ZodNativeEnum<
|
|
26
|
-
typeof V1BadgeListBadgePriceOrderDirection
|
|
27
|
-
> = z.nativeEnum(V1BadgeListBadgePriceOrderDirection);
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const V1BadgeListBadgePriceOrderDirection$outboundSchema:
|
|
31
|
-
z.ZodNativeEnum<typeof V1BadgeListBadgePriceOrderDirection> =
|
|
32
|
-
V1BadgeListBadgePriceOrderDirection$inboundSchema;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export namespace V1BadgeListBadgePriceOrderDirection$ {
|
|
39
|
-
/** @deprecated use `V1BadgeListBadgePriceOrderDirection$inboundSchema` instead. */
|
|
40
|
-
export const inboundSchema =
|
|
41
|
-
V1BadgeListBadgePriceOrderDirection$inboundSchema;
|
|
42
|
-
/** @deprecated use `V1BadgeListBadgePriceOrderDirection$outboundSchema` instead. */
|
|
43
|
-
export const outboundSchema =
|
|
44
|
-
V1BadgeListBadgePriceOrderDirection$outboundSchema;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const V1BadgeListBadgePriceOrder$inboundSchema: z.ZodType<
|
|
49
|
-
V1BadgeListBadgePriceOrder,
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
unknown
|
|
52
|
-
> = z.object({
|
|
53
|
-
by: z.string(),
|
|
54
|
-
direction: V1BadgeListBadgePriceOrderDirection$inboundSchema.default("desc"),
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export type V1BadgeListBadgePriceOrder$Outbound = {
|
|
59
|
-
by: string;
|
|
60
|
-
direction: string;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const V1BadgeListBadgePriceOrder$outboundSchema: z.ZodType<
|
|
65
|
-
V1BadgeListBadgePriceOrder$Outbound,
|
|
66
|
-
z.ZodTypeDef,
|
|
67
|
-
V1BadgeListBadgePriceOrder
|
|
68
|
-
> = z.object({
|
|
69
|
-
by: z.string(),
|
|
70
|
-
direction: V1BadgeListBadgePriceOrderDirection$outboundSchema.default("desc"),
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export namespace V1BadgeListBadgePriceOrder$ {
|
|
78
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$inboundSchema` instead. */
|
|
79
|
-
export const inboundSchema = V1BadgeListBadgePriceOrder$inboundSchema;
|
|
80
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$outboundSchema` instead. */
|
|
81
|
-
export const outboundSchema = V1BadgeListBadgePriceOrder$outboundSchema;
|
|
82
|
-
/** @deprecated use `V1BadgeListBadgePriceOrder$Outbound` instead. */
|
|
83
|
-
export type Outbound = V1BadgeListBadgePriceOrder$Outbound;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function v1BadgeListBadgePriceOrderToJSON(
|
|
87
|
-
v1BadgeListBadgePriceOrder: V1BadgeListBadgePriceOrder,
|
|
88
|
-
): string {
|
|
89
|
-
return JSON.stringify(
|
|
90
|
-
V1BadgeListBadgePriceOrder$outboundSchema.parse(v1BadgeListBadgePriceOrder),
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function v1BadgeListBadgePriceOrderFromJSON(
|
|
95
|
-
jsonString: string,
|
|
96
|
-
): SafeParseResult<V1BadgeListBadgePriceOrder, SDKValidationError> {
|
|
97
|
-
return safeParse(
|
|
98
|
-
jsonString,
|
|
99
|
-
(x) => V1BadgeListBadgePriceOrder$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
-
`Failed to parse 'V1BadgeListBadgePriceOrder' from JSON`,
|
|
101
|
-
);
|
|
102
|
-
}
|