@steamsets/client-ts 0.26.8 → 0.27.1

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.
Files changed (94) hide show
  1. package/README.md +5 -3
  2. package/docs/sdks/badges/README.md +6 -6
  3. package/funcs/badgesListPrices.d.ts +13 -2
  4. package/funcs/badgesListPrices.d.ts.map +1 -1
  5. package/funcs/badgesListPrices.js +21 -20
  6. package/funcs/badgesListPrices.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/models/components/badge.d.ts +8 -0
  11. package/models/components/badge.d.ts.map +1 -1
  12. package/models/components/badge.js +8 -0
  13. package/models/components/badge.js.map +1 -1
  14. package/models/components/errormodel.d.ts +63 -0
  15. package/models/components/errormodel.d.ts.map +1 -0
  16. package/models/components/errormodel.js +81 -0
  17. package/models/components/errormodel.js.map +1 -0
  18. package/models/components/index.d.ts +7 -2
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +7 -2
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/v1accountgetinforesponsebody.d.ts +0 -9
  23. package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
  24. package/models/components/v1accountgetinforesponsebody.js +0 -3
  25. package/models/components/v1accountgetinforesponsebody.js.map +1 -1
  26. package/models/components/v1badgeapp.d.ts +39 -0
  27. package/models/components/v1badgeapp.d.ts.map +1 -0
  28. package/models/components/v1badgeapp.js +69 -0
  29. package/models/components/v1badgeapp.js.map +1 -0
  30. package/models/components/v1badgelevel.d.ts +33 -0
  31. package/models/components/v1badgelevel.d.ts.map +1 -0
  32. package/models/components/v1badgelevel.js +63 -0
  33. package/models/components/v1badgelevel.js.map +1 -0
  34. package/models/components/v1badgelistbadgepricesrequestbody.d.ts +2 -10
  35. package/models/components/v1badgelistbadgepricesrequestbody.d.ts.map +1 -1
  36. package/models/components/v1badgelistbadgepricesrequestbody.js +2 -10
  37. package/models/components/v1badgelistbadgepricesrequestbody.js.map +1 -1
  38. package/models/components/v1badgelistbadgepricesresponsebody.d.ts +24 -0
  39. package/models/components/v1badgelistbadgepricesresponsebody.d.ts.map +1 -1
  40. package/models/components/v1badgelistbadgepricesresponsebody.js +11 -0
  41. package/models/components/v1badgelistbadgepricesresponsebody.js.map +1 -1
  42. package/models/components/v1badgeset.d.ts +61 -0
  43. package/models/components/v1badgeset.d.ts.map +1 -0
  44. package/models/components/v1badgeset.js +87 -0
  45. package/models/components/v1badgeset.js.map +1 -0
  46. package/models/components/v1badgesetcount.d.ts +31 -0
  47. package/models/components/v1badgesetcount.d.ts.map +1 -0
  48. package/models/components/v1badgesetcount.js +61 -0
  49. package/models/components/v1badgesetcount.js.map +1 -0
  50. package/models/components/v1badgesetcounts.d.ts +34 -0
  51. package/models/components/v1badgesetcounts.d.ts.map +1 -0
  52. package/models/components/v1badgesetcounts.js +64 -0
  53. package/models/components/v1badgesetcounts.js.map +1 -0
  54. package/models/components/v1badgetypecount.d.ts +33 -0
  55. package/models/components/v1badgetypecount.d.ts.map +1 -0
  56. package/models/components/v1badgetypecount.js +63 -0
  57. package/models/components/v1badgetypecount.js.map +1 -0
  58. package/models/operations/badgelistbadgeprices.d.ts +5 -0
  59. package/models/operations/badgelistbadgeprices.d.ts.map +1 -1
  60. package/models/operations/badgelistbadgeprices.js +4 -0
  61. package/models/operations/badgelistbadgeprices.js.map +1 -1
  62. package/package.json +1 -1
  63. package/sdk/badges.d.ts +11 -1
  64. package/sdk/badges.d.ts.map +1 -1
  65. package/sdk/badges.js +9 -1
  66. package/sdk/badges.js.map +1 -1
  67. package/src/funcs/badgesListPrices.ts +23 -32
  68. package/src/lib/config.ts +3 -3
  69. package/src/models/components/badge.ts +16 -0
  70. package/src/models/components/errormodel.ts +122 -0
  71. package/src/models/components/index.ts +7 -2
  72. package/src/models/components/v1accountgetinforesponsebody.ts +0 -3
  73. package/src/models/components/v1badgeapp.ts +82 -0
  74. package/src/models/components/v1badgelevel.ts +70 -0
  75. package/src/models/components/v1badgelistbadgepricesrequestbody.ts +4 -28
  76. package/src/models/components/v1badgelistbadgepricesresponsebody.ts +43 -0
  77. package/src/models/components/v1badgeset.ts +126 -0
  78. package/src/models/components/v1badgesetcount.ts +68 -0
  79. package/src/models/components/v1badgesetcounts.ts +80 -0
  80. package/src/models/components/v1badgetypecount.ts +74 -0
  81. package/src/models/operations/badgelistbadgeprices.ts +9 -0
  82. package/src/sdk/badges.ts +13 -2
  83. package/src/types/constdatetime.ts +1 -1
  84. package/types/constdatetime.js +1 -1
  85. package/models/components/v1badgelistbadgepricefilters.d.ts +0 -35
  86. package/models/components/v1badgelistbadgepricefilters.d.ts.map +0 -1
  87. package/models/components/v1badgelistbadgepricefilters.js +0 -65
  88. package/models/components/v1badgelistbadgepricefilters.js.map +0 -1
  89. package/models/components/v1badgelistbadgepriceorder.d.ts +0 -57
  90. package/models/components/v1badgelistbadgepriceorder.d.ts.map +0 -1
  91. package/models/components/v1badgelistbadgepriceorder.js +0 -80
  92. package/models/components/v1badgelistbadgepriceorder.js.map +0 -1
  93. package/src/models/components/v1badgelistbadgepricefilters.ts +0 -80
  94. package/src/models/components/v1badgelistbadgepriceorder.ts +0 -102
@@ -0,0 +1,126 @@
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
+ import {
10
+ V1BadgeLevel,
11
+ V1BadgeLevel$inboundSchema,
12
+ V1BadgeLevel$Outbound,
13
+ V1BadgeLevel$outboundSchema,
14
+ } from "./v1badgelevel.js";
15
+ import {
16
+ V1BadgeSetCount,
17
+ V1BadgeSetCount$inboundSchema,
18
+ V1BadgeSetCount$Outbound,
19
+ V1BadgeSetCount$outboundSchema,
20
+ } from "./v1badgesetcount.js";
21
+
22
+ export type V1BadgeSet = {
23
+ appId: number;
24
+ avgCardPrc: number;
25
+ badges: { [k: string]: V1BadgeLevel };
26
+ canBuy: boolean;
27
+ cards: number;
28
+ currLevel: number;
29
+ isFoil: boolean;
30
+ issues: Array<string> | null;
31
+ link: string;
32
+ maxPrc: number;
33
+ minPrc: number;
34
+ price: number;
35
+ priceDiff: number;
36
+ setCount: V1BadgeSetCount;
37
+ };
38
+
39
+ /** @internal */
40
+ export const V1BadgeSet$inboundSchema: z.ZodType<
41
+ V1BadgeSet,
42
+ z.ZodTypeDef,
43
+ unknown
44
+ > = z.object({
45
+ appId: z.number().int(),
46
+ avgCardPrc: z.number().int(),
47
+ badges: z.record(V1BadgeLevel$inboundSchema),
48
+ canBuy: z.boolean(),
49
+ cards: z.number().int(),
50
+ currLevel: z.number().int(),
51
+ isFoil: z.boolean(),
52
+ issues: z.nullable(z.array(z.string())),
53
+ link: z.string(),
54
+ maxPrc: z.number().int(),
55
+ minPrc: z.number().int(),
56
+ price: z.number().int(),
57
+ priceDiff: z.number().int(),
58
+ setCount: V1BadgeSetCount$inboundSchema,
59
+ });
60
+
61
+ /** @internal */
62
+ export type V1BadgeSet$Outbound = {
63
+ appId: number;
64
+ avgCardPrc: number;
65
+ badges: { [k: string]: V1BadgeLevel$Outbound };
66
+ canBuy: boolean;
67
+ cards: number;
68
+ currLevel: number;
69
+ isFoil: boolean;
70
+ issues: Array<string> | null;
71
+ link: string;
72
+ maxPrc: number;
73
+ minPrc: number;
74
+ price: number;
75
+ priceDiff: number;
76
+ setCount: V1BadgeSetCount$Outbound;
77
+ };
78
+
79
+ /** @internal */
80
+ export const V1BadgeSet$outboundSchema: z.ZodType<
81
+ V1BadgeSet$Outbound,
82
+ z.ZodTypeDef,
83
+ V1BadgeSet
84
+ > = z.object({
85
+ appId: z.number().int(),
86
+ avgCardPrc: z.number().int(),
87
+ badges: z.record(V1BadgeLevel$outboundSchema),
88
+ canBuy: z.boolean(),
89
+ cards: z.number().int(),
90
+ currLevel: z.number().int(),
91
+ isFoil: z.boolean(),
92
+ issues: z.nullable(z.array(z.string())),
93
+ link: z.string(),
94
+ maxPrc: z.number().int(),
95
+ minPrc: z.number().int(),
96
+ price: z.number().int(),
97
+ priceDiff: z.number().int(),
98
+ setCount: V1BadgeSetCount$outboundSchema,
99
+ });
100
+
101
+ /**
102
+ * @internal
103
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
104
+ */
105
+ export namespace V1BadgeSet$ {
106
+ /** @deprecated use `V1BadgeSet$inboundSchema` instead. */
107
+ export const inboundSchema = V1BadgeSet$inboundSchema;
108
+ /** @deprecated use `V1BadgeSet$outboundSchema` instead. */
109
+ export const outboundSchema = V1BadgeSet$outboundSchema;
110
+ /** @deprecated use `V1BadgeSet$Outbound` instead. */
111
+ export type Outbound = V1BadgeSet$Outbound;
112
+ }
113
+
114
+ export function v1BadgeSetToJSON(v1BadgeSet: V1BadgeSet): string {
115
+ return JSON.stringify(V1BadgeSet$outboundSchema.parse(v1BadgeSet));
116
+ }
117
+
118
+ export function v1BadgeSetFromJSON(
119
+ jsonString: string,
120
+ ): SafeParseResult<V1BadgeSet, SDKValidationError> {
121
+ return safeParse(
122
+ jsonString,
123
+ (x) => V1BadgeSet$inboundSchema.parse(JSON.parse(x)),
124
+ `Failed to parse 'V1BadgeSet' from JSON`,
125
+ );
126
+ }
@@ -0,0 +1,68 @@
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 V1BadgeSetCount = {
11
+ duplicateSets: number;
12
+ uniqueSets: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export const V1BadgeSetCount$inboundSchema: z.ZodType<
17
+ V1BadgeSetCount,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ duplicateSets: z.number().int(),
22
+ uniqueSets: z.number().int(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type V1BadgeSetCount$Outbound = {
27
+ duplicateSets: number;
28
+ uniqueSets: number;
29
+ };
30
+
31
+ /** @internal */
32
+ export const V1BadgeSetCount$outboundSchema: z.ZodType<
33
+ V1BadgeSetCount$Outbound,
34
+ z.ZodTypeDef,
35
+ V1BadgeSetCount
36
+ > = z.object({
37
+ duplicateSets: z.number().int(),
38
+ uniqueSets: z.number().int(),
39
+ });
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace V1BadgeSetCount$ {
46
+ /** @deprecated use `V1BadgeSetCount$inboundSchema` instead. */
47
+ export const inboundSchema = V1BadgeSetCount$inboundSchema;
48
+ /** @deprecated use `V1BadgeSetCount$outboundSchema` instead. */
49
+ export const outboundSchema = V1BadgeSetCount$outboundSchema;
50
+ /** @deprecated use `V1BadgeSetCount$Outbound` instead. */
51
+ export type Outbound = V1BadgeSetCount$Outbound;
52
+ }
53
+
54
+ export function v1BadgeSetCountToJSON(
55
+ v1BadgeSetCount: V1BadgeSetCount,
56
+ ): string {
57
+ return JSON.stringify(V1BadgeSetCount$outboundSchema.parse(v1BadgeSetCount));
58
+ }
59
+
60
+ export function v1BadgeSetCountFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<V1BadgeSetCount, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => V1BadgeSetCount$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'V1BadgeSetCount' from JSON`,
67
+ );
68
+ }
@@ -0,0 +1,80 @@
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
+ import {
10
+ V1BadgeTypeCount,
11
+ V1BadgeTypeCount$inboundSchema,
12
+ V1BadgeTypeCount$Outbound,
13
+ V1BadgeTypeCount$outboundSchema,
14
+ } from "./v1badgetypecount.js";
15
+
16
+ export type V1BadgeSetCounts = {
17
+ duplicate: V1BadgeTypeCount;
18
+ total: V1BadgeTypeCount;
19
+ unique: V1BadgeTypeCount;
20
+ };
21
+
22
+ /** @internal */
23
+ export const V1BadgeSetCounts$inboundSchema: z.ZodType<
24
+ V1BadgeSetCounts,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ duplicate: V1BadgeTypeCount$inboundSchema,
29
+ total: V1BadgeTypeCount$inboundSchema,
30
+ unique: V1BadgeTypeCount$inboundSchema,
31
+ });
32
+
33
+ /** @internal */
34
+ export type V1BadgeSetCounts$Outbound = {
35
+ duplicate: V1BadgeTypeCount$Outbound;
36
+ total: V1BadgeTypeCount$Outbound;
37
+ unique: V1BadgeTypeCount$Outbound;
38
+ };
39
+
40
+ /** @internal */
41
+ export const V1BadgeSetCounts$outboundSchema: z.ZodType<
42
+ V1BadgeSetCounts$Outbound,
43
+ z.ZodTypeDef,
44
+ V1BadgeSetCounts
45
+ > = z.object({
46
+ duplicate: V1BadgeTypeCount$outboundSchema,
47
+ total: V1BadgeTypeCount$outboundSchema,
48
+ unique: V1BadgeTypeCount$outboundSchema,
49
+ });
50
+
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ export namespace V1BadgeSetCounts$ {
56
+ /** @deprecated use `V1BadgeSetCounts$inboundSchema` instead. */
57
+ export const inboundSchema = V1BadgeSetCounts$inboundSchema;
58
+ /** @deprecated use `V1BadgeSetCounts$outboundSchema` instead. */
59
+ export const outboundSchema = V1BadgeSetCounts$outboundSchema;
60
+ /** @deprecated use `V1BadgeSetCounts$Outbound` instead. */
61
+ export type Outbound = V1BadgeSetCounts$Outbound;
62
+ }
63
+
64
+ export function v1BadgeSetCountsToJSON(
65
+ v1BadgeSetCounts: V1BadgeSetCounts,
66
+ ): string {
67
+ return JSON.stringify(
68
+ V1BadgeSetCounts$outboundSchema.parse(v1BadgeSetCounts),
69
+ );
70
+ }
71
+
72
+ export function v1BadgeSetCountsFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<V1BadgeSetCounts, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => V1BadgeSetCounts$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'V1BadgeSetCounts' from JSON`,
79
+ );
80
+ }
@@ -0,0 +1,74 @@
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 V1BadgeTypeCount = {
11
+ foil: number;
12
+ normal: number;
13
+ total: number;
14
+ };
15
+
16
+ /** @internal */
17
+ export const V1BadgeTypeCount$inboundSchema: z.ZodType<
18
+ V1BadgeTypeCount,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ foil: z.number().int(),
23
+ normal: z.number().int(),
24
+ total: z.number().int(),
25
+ });
26
+
27
+ /** @internal */
28
+ export type V1BadgeTypeCount$Outbound = {
29
+ foil: number;
30
+ normal: number;
31
+ total: number;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1BadgeTypeCount$outboundSchema: z.ZodType<
36
+ V1BadgeTypeCount$Outbound,
37
+ z.ZodTypeDef,
38
+ V1BadgeTypeCount
39
+ > = z.object({
40
+ foil: z.number().int(),
41
+ normal: z.number().int(),
42
+ total: z.number().int(),
43
+ });
44
+
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ export namespace V1BadgeTypeCount$ {
50
+ /** @deprecated use `V1BadgeTypeCount$inboundSchema` instead. */
51
+ export const inboundSchema = V1BadgeTypeCount$inboundSchema;
52
+ /** @deprecated use `V1BadgeTypeCount$outboundSchema` instead. */
53
+ export const outboundSchema = V1BadgeTypeCount$outboundSchema;
54
+ /** @deprecated use `V1BadgeTypeCount$Outbound` instead. */
55
+ export type Outbound = V1BadgeTypeCount$Outbound;
56
+ }
57
+
58
+ export function v1BadgeTypeCountToJSON(
59
+ v1BadgeTypeCount: V1BadgeTypeCount,
60
+ ): string {
61
+ return JSON.stringify(
62
+ V1BadgeTypeCount$outboundSchema.parse(v1BadgeTypeCount),
63
+ );
64
+ }
65
+
66
+ export function v1BadgeTypeCountFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<V1BadgeTypeCount, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) => V1BadgeTypeCount$inboundSchema.parse(JSON.parse(x)),
72
+ `Failed to parse 'V1BadgeTypeCount' from JSON`,
73
+ );
74
+ }
@@ -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 { badgesListPrices } from "../funcs/badgesListPrices.js";
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,
@@ -11,5 +11,5 @@ export function constDateTime(
11
11
  return (
12
12
  typeof v === "string" && new Date(v).getTime() === new Date(val).getTime()
13
13
  );
14
- }, `Value must be equivelant to ${val}`);
14
+ }, `Value must be equivalent to ${val}`);
15
15
  }
@@ -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 equivelant to ${val}`);
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"}