@moovio/sdk 0.16.5 → 0.16.6

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.
@@ -144,7 +144,10 @@ async function run() {
144
144
  {
145
145
  name: "Strawberry puree",
146
146
  description: "Fresh and fruity.",
147
- priceModifier: "0.99",
147
+ priceModifier: {
148
+ currency: "USD",
149
+ valueDecimal: "0.99",
150
+ },
148
151
  images: [
149
152
  {
150
153
  imageID: "d359808d-9896-4414-8d17-dac43f35842d",
@@ -153,11 +156,17 @@ async function run() {
153
156
  },
154
157
  {
155
158
  name: "Passionfruit syrup",
156
- priceModifier: "0.49",
159
+ priceModifier: {
160
+ currency: "USD",
161
+ valueDecimal: "0.49",
162
+ },
157
163
  },
158
164
  {
159
165
  name: "Cherry syrup",
160
- priceModifier: "0.49",
166
+ priceModifier: {
167
+ currency: "USD",
168
+ valueDecimal: "0.49",
169
+ },
161
170
  },
162
171
  ],
163
172
  },
@@ -172,7 +181,10 @@ async function run() {
172
181
  },
173
182
  {
174
183
  name: "Honey",
175
- priceModifier: "0.99",
184
+ priceModifier: {
185
+ currency: "USD",
186
+ valueDecimal: "0.99",
187
+ },
176
188
  },
177
189
  {
178
190
  name: "Stevia",
@@ -236,7 +248,10 @@ async function run() {
236
248
  {
237
249
  name: "Strawberry puree",
238
250
  description: "Fresh and fruity.",
239
- priceModifier: "0.99",
251
+ priceModifier: {
252
+ currency: "USD",
253
+ valueDecimal: "0.99",
254
+ },
240
255
  images: [
241
256
  {
242
257
  imageID: "d359808d-9896-4414-8d17-dac43f35842d",
@@ -245,11 +260,17 @@ async function run() {
245
260
  },
246
261
  {
247
262
  name: "Passionfruit syrup",
248
- priceModifier: "0.49",
263
+ priceModifier: {
264
+ currency: "USD",
265
+ valueDecimal: "0.49",
266
+ },
249
267
  },
250
268
  {
251
269
  name: "Cherry syrup",
252
- priceModifier: "0.49",
270
+ priceModifier: {
271
+ currency: "USD",
272
+ valueDecimal: "0.49",
273
+ },
253
274
  },
254
275
  ],
255
276
  },
@@ -264,7 +285,10 @@ async function run() {
264
285
  },
265
286
  {
266
287
  name: "Honey",
267
- priceModifier: "0.99",
288
+ priceModifier: {
289
+ currency: "USD",
290
+ valueDecimal: "0.99",
291
+ },
268
292
  },
269
293
  {
270
294
  name: "Stevia",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@moovio/sdk",
21
- "version": "0.16.5",
21
+ "version": "0.16.6",
22
22
  "dependencies": {
23
23
  "decimal.js": "^10.4.3",
24
24
  "zod": "^3.20.0"
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@moovio/sdk",
5
- "version": "0.16.5",
5
+ "version": "0.16.6",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
39
39
  export declare const SDK_METADATA: {
40
40
  readonly language: "typescript";
41
41
  readonly openapiDocVersion: "latest";
42
- readonly sdkVersion: "0.16.5";
42
+ readonly sdkVersion: "0.16.6";
43
43
  readonly genVersion: "2.723.11";
44
- readonly userAgent: "speakeasy-sdk/typescript 0.16.5 2.723.11 latest @moovio/sdk";
44
+ readonly userAgent: "speakeasy-sdk/typescript 0.16.6 2.723.11 latest @moovio/sdk";
45
45
  };
46
46
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
31
31
  exports.SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "latest",
34
- sdkVersion: "0.16.5",
34
+ sdkVersion: "0.16.6",
35
35
  genVersion: "2.723.11",
36
- userAgent: "speakeasy-sdk/typescript 0.16.5 2.723.11 latest @moovio/sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.16.6 2.723.11 latest @moovio/sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
22
22
  exports.app = (0, core_1.buildApplication)(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "0.16.5",
25
+ currentVersion: "0.16.6",
26
26
  },
27
27
  });
28
28
  (0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
@@ -168,7 +168,7 @@ const walletTransactionsList_js_1 = require("./tools/walletTransactionsList.js")
168
168
  function createMCPServer(deps) {
169
169
  const server = new mcp_js_1.McpServer({
170
170
  name: "Moov",
171
- version: "0.16.5",
171
+ version: "0.16.6",
172
172
  });
173
173
  const client = new core_js_1.MoovCore({
174
174
  security: deps.security,
@@ -1,6 +1,7 @@
1
1
  import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { AmountDecimal, AmountDecimal$Outbound } from "./amountdecimal.js";
4
5
  import { AssignProductImage, AssignProductImage$Outbound } from "./assignproductimage.js";
5
6
  export type CreateProductOption = {
6
7
  /**
@@ -20,7 +21,7 @@ export type CreateProductOption = {
20
21
  /**
21
22
  * The adjustment applied to a product's base price by this option. Can be negative, positive, or zero.
22
23
  */
23
- priceModifier?: string | undefined;
24
+ priceModifier?: AmountDecimal | undefined;
24
25
  /**
25
26
  * Assign previously uploaded images to a product or option.
26
27
  */
@@ -32,7 +33,7 @@ export declare const CreateProductOption$inboundSchema: z.ZodType<CreateProductO
32
33
  export type CreateProductOption$Outbound = {
33
34
  name: string;
34
35
  description?: string | undefined;
35
- priceModifier?: string | undefined;
36
+ priceModifier?: AmountDecimal$Outbound | undefined;
36
37
  images?: Array<AssignProductImage$Outbound> | undefined;
37
38
  };
38
39
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"createproductoption.d.ts","sourceRoot":"","sources":["../../src/models/components/createproductoption.ts"],"names":[],"mappings":"AAIA,OAAO,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AgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
1
+ {"version":3,"file":"createproductoption.d.ts","sourceRoot":"","sources":["../../src/models/components/createproductoption.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;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACnD,MAAM,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAMnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -41,19 +41,20 @@ exports.createProductOptionToJSON = createProductOptionToJSON;
41
41
  exports.createProductOptionFromJSON = createProductOptionFromJSON;
42
42
  const z = __importStar(require("zod"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
+ const amountdecimal_js_1 = require("./amountdecimal.js");
44
45
  const assignproductimage_js_1 = require("./assignproductimage.js");
45
46
  /** @internal */
46
47
  exports.CreateProductOption$inboundSchema = z.object({
47
48
  name: z.string(),
48
49
  description: z.string().optional(),
49
- priceModifier: z.string().optional(),
50
+ priceModifier: amountdecimal_js_1.AmountDecimal$inboundSchema.optional(),
50
51
  images: z.array(assignproductimage_js_1.AssignProductImage$inboundSchema).optional(),
51
52
  });
52
53
  /** @internal */
53
54
  exports.CreateProductOption$outboundSchema = z.object({
54
55
  name: z.string(),
55
56
  description: z.string().optional(),
56
- priceModifier: z.string().optional(),
57
+ priceModifier: amountdecimal_js_1.AmountDecimal$outboundSchema.optional(),
57
58
  images: z.array(assignproductimage_js_1.AssignProductImage$outboundSchema).optional(),
58
59
  });
59
60
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"createproductoption.js","sourceRoot":"","sources":["../../src/models/components/createproductoption.ts"],"names":[],"mapp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AC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createproductoption.js","sourceRoot":"","sources":["../../src/models/components/createproductoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFH,8DAMC;AAED,kEAQC;AAvGD,uCAAyB;AACzB,qDAAiD;AAGjD,yDAK4B;AAC5B,mEAKiC;AA2BjC,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,8CAA2B,CAAC,QAAQ,EAAE;IACrD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,wDAAgC,CAAC,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,+CAA4B,CAAC,QAAQ,EAAE;IACtD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yDAAiC,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { AmountDecimal, AmountDecimal$Outbound } from "./amountdecimal.js";
4
5
  import { ProductImageMetadata, ProductImageMetadata$Outbound } from "./productimagemetadata.js";
5
6
  /**
6
7
  * Represents a single product option within a group.
@@ -23,7 +24,7 @@ export type ProductOption = {
23
24
  /**
24
25
  * The adjustment applied to a product's base price by this option. Can be negative, positive, or zero.
25
26
  */
26
- priceModifier?: string | undefined;
27
+ priceModifier?: AmountDecimal | undefined;
27
28
  /**
28
29
  * The images associated with this option.
29
30
  */
@@ -35,7 +36,7 @@ export declare const ProductOption$inboundSchema: z.ZodType<ProductOption, z.Zod
35
36
  export type ProductOption$Outbound = {
36
37
  name: string;
37
38
  description?: string | undefined;
38
- priceModifier?: string | undefined;
39
+ priceModifier?: AmountDecimal$Outbound | undefined;
39
40
  images?: Array<ProductImageMetadata$Outbound> | undefined;
40
41
  };
41
42
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"productoption.d.ts","sourceRoot":"","sources":["../../src/models/components/productoption.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;AACrE,OAAO,EACL,oBAAoB,EAEpB,6B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iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
@@ -41,19 +41,20 @@ exports.productOptionToJSON = productOptionToJSON;
41
41
  exports.productOptionFromJSON = productOptionFromJSON;
42
42
  const z = __importStar(require("zod"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
+ const amountdecimal_js_1 = require("./amountdecimal.js");
44
45
  const productimagemetadata_js_1 = require("./productimagemetadata.js");
45
46
  /** @internal */
46
47
  exports.ProductOption$inboundSchema = z.object({
47
48
  name: z.string(),
48
49
  description: z.string().optional(),
49
- priceModifier: z.string().optional(),
50
+ priceModifier: amountdecimal_js_1.AmountDecimal$inboundSchema.optional(),
50
51
  images: z.array(productimagemetadata_js_1.ProductImageMetadata$inboundSchema).optional(),
51
52
  });
52
53
  /** @internal */
53
54
  exports.ProductOption$outboundSchema = z.object({
54
55
  name: z.string(),
55
56
  description: z.string().optional(),
56
- priceModifier: z.string().optional(),
57
+ priceModifier: amountdecimal_js_1.AmountDecimal$outboundSchema.optional(),
57
58
  images: z.array(productimagemetadata_js_1.ProductImageMetadata$outboundSchema).optional(),
58
59
  });
59
60
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productoption.js","sourceRoot":"","sources":["../../src/models/components/productoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,kDAEC;AAED,sDAQC;AAhGD,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AA8BnC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,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AC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { AmountDecimalValidationError, AmountDecimalValidationError$Outbound } from "./amountdecimalvalidationerror.js";
4
5
  import { AssignProductImageValidationError, AssignProductImageValidationError$Outbound } from "./assignproductimagevalidationerror.js";
5
6
  export type ProductOptionValidationError = {
6
7
  name?: string | undefined;
7
8
  description?: string | undefined;
8
- priceModifier?: string | undefined;
9
+ priceModifier?: AmountDecimalValidationError | undefined;
9
10
  images?: {
10
11
  [k: string]: AssignProductImageValidationError;
11
12
  } | undefined;
@@ -16,7 +17,7 @@ export declare const ProductOptionValidationError$inboundSchema: z.ZodType<Produ
16
17
  export type ProductOptionValidationError$Outbound = {
17
18
  name?: string | undefined;
18
19
  description?: string | undefined;
19
- priceModifier?: string | undefined;
20
+ priceModifier?: AmountDecimalValidationError$Outbound | undefined;
20
21
  images?: {
21
22
  [k: string]: AssignProductImageValidationError$Outbound;
22
23
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"productoptionvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/productoptionvalidationerror.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;AACrE,OAAO,EACL,iCAAiC,EAEjC,0CAA0C,EAE3C,MAAM,wCAAwC,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,iCAAiC,CAAA;KAAE,GAAG,SAAS,CAAC;CACzE,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,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,CAAC,EACH;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,0CAA0C,CAAA;KAAE,GAC3D,SAAS,CAAC;CACf,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
+ {"version":3,"file":"productoptionvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/productoptionvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;A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C,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"}
@@ -41,19 +41,20 @@ exports.productOptionValidationErrorToJSON = productOptionValidationErrorToJSON;
41
41
  exports.productOptionValidationErrorFromJSON = productOptionValidationErrorFromJSON;
42
42
  const z = __importStar(require("zod"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
+ const amountdecimalvalidationerror_js_1 = require("./amountdecimalvalidationerror.js");
44
45
  const assignproductimagevalidationerror_js_1 = require("./assignproductimagevalidationerror.js");
45
46
  /** @internal */
46
47
  exports.ProductOptionValidationError$inboundSchema = z.object({
47
48
  name: z.string().optional(),
48
49
  description: z.string().optional(),
49
- priceModifier: z.string().optional(),
50
+ priceModifier: amountdecimalvalidationerror_js_1.AmountDecimalValidationError$inboundSchema.optional(),
50
51
  images: z.record(assignproductimagevalidationerror_js_1.AssignProductImageValidationError$inboundSchema).optional(),
51
52
  });
52
53
  /** @internal */
53
54
  exports.ProductOptionValidationError$outboundSchema = z.object({
54
55
  name: z.string().optional(),
55
56
  description: z.string().optional(),
56
- priceModifier: z.string().optional(),
57
+ priceModifier: amountdecimalvalidationerror_js_1.AmountDecimalValidationError$outboundSchema.optional(),
57
58
  images: z.record(assignproductimagevalidationerror_js_1.AssignProductImageValidationError$outboundSchema).optional(),
58
59
  });
59
60
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productoptionvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/productoptionvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEH,gFAQC;AAED,oFAQC;AAnFD,uCAAyB;AACzB,qDAAiD;AAGjD,iGAKgD;AAShD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,C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CAAoC,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/src/lib/config.ts CHANGED
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "latest",
76
- sdkVersion: "0.16.5",
76
+ sdkVersion: "0.16.6",
77
77
  genVersion: "2.723.11",
78
- userAgent: "speakeasy-sdk/typescript 0.16.5 2.723.11 latest @moovio/sdk",
78
+ userAgent: "speakeasy-sdk/typescript 0.16.6 2.723.11 latest @moovio/sdk",
79
79
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.16.5",
22
+ currentVersion: "0.16.6",
23
23
  },
24
24
  });
25
25
 
@@ -181,7 +181,7 @@ export function createMCPServer(deps: {
181
181
  }) {
182
182
  const server = new McpServer({
183
183
  name: "Moov",
184
- version: "0.16.5",
184
+ version: "0.16.6",
185
185
  });
186
186
 
187
187
  const client = new MoovCore({
@@ -6,6 +6,12 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimal,
11
+ AmountDecimal$inboundSchema,
12
+ AmountDecimal$Outbound,
13
+ AmountDecimal$outboundSchema,
14
+ } from "./amountdecimal.js";
9
15
  import {
10
16
  AssignProductImage,
11
17
  AssignProductImage$inboundSchema,
@@ -31,7 +37,7 @@ export type CreateProductOption = {
31
37
  /**
32
38
  * The adjustment applied to a product's base price by this option. Can be negative, positive, or zero.
33
39
  */
34
- priceModifier?: string | undefined;
40
+ priceModifier?: AmountDecimal | undefined;
35
41
  /**
36
42
  * Assign previously uploaded images to a product or option.
37
43
  */
@@ -46,7 +52,7 @@ export const CreateProductOption$inboundSchema: z.ZodType<
46
52
  > = z.object({
47
53
  name: z.string(),
48
54
  description: z.string().optional(),
49
- priceModifier: z.string().optional(),
55
+ priceModifier: AmountDecimal$inboundSchema.optional(),
50
56
  images: z.array(AssignProductImage$inboundSchema).optional(),
51
57
  });
52
58
 
@@ -54,7 +60,7 @@ export const CreateProductOption$inboundSchema: z.ZodType<
54
60
  export type CreateProductOption$Outbound = {
55
61
  name: string;
56
62
  description?: string | undefined;
57
- priceModifier?: string | undefined;
63
+ priceModifier?: AmountDecimal$Outbound | undefined;
58
64
  images?: Array<AssignProductImage$Outbound> | undefined;
59
65
  };
60
66
 
@@ -66,7 +72,7 @@ export const CreateProductOption$outboundSchema: z.ZodType<
66
72
  > = z.object({
67
73
  name: z.string(),
68
74
  description: z.string().optional(),
69
- priceModifier: z.string().optional(),
75
+ priceModifier: AmountDecimal$outboundSchema.optional(),
70
76
  images: z.array(AssignProductImage$outboundSchema).optional(),
71
77
  });
72
78
 
@@ -6,6 +6,12 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimal,
11
+ AmountDecimal$inboundSchema,
12
+ AmountDecimal$Outbound,
13
+ AmountDecimal$outboundSchema,
14
+ } from "./amountdecimal.js";
9
15
  import {
10
16
  ProductImageMetadata,
11
17
  ProductImageMetadata$inboundSchema,
@@ -34,7 +40,7 @@ export type ProductOption = {
34
40
  /**
35
41
  * The adjustment applied to a product's base price by this option. Can be negative, positive, or zero.
36
42
  */
37
- priceModifier?: string | undefined;
43
+ priceModifier?: AmountDecimal | undefined;
38
44
  /**
39
45
  * The images associated with this option.
40
46
  */
@@ -49,7 +55,7 @@ export const ProductOption$inboundSchema: z.ZodType<
49
55
  > = z.object({
50
56
  name: z.string(),
51
57
  description: z.string().optional(),
52
- priceModifier: z.string().optional(),
58
+ priceModifier: AmountDecimal$inboundSchema.optional(),
53
59
  images: z.array(ProductImageMetadata$inboundSchema).optional(),
54
60
  });
55
61
 
@@ -57,7 +63,7 @@ export const ProductOption$inboundSchema: z.ZodType<
57
63
  export type ProductOption$Outbound = {
58
64
  name: string;
59
65
  description?: string | undefined;
60
- priceModifier?: string | undefined;
66
+ priceModifier?: AmountDecimal$Outbound | undefined;
61
67
  images?: Array<ProductImageMetadata$Outbound> | undefined;
62
68
  };
63
69
 
@@ -69,7 +75,7 @@ export const ProductOption$outboundSchema: z.ZodType<
69
75
  > = z.object({
70
76
  name: z.string(),
71
77
  description: z.string().optional(),
72
- priceModifier: z.string().optional(),
78
+ priceModifier: AmountDecimal$outboundSchema.optional(),
73
79
  images: z.array(ProductImageMetadata$outboundSchema).optional(),
74
80
  });
75
81
 
@@ -6,6 +6,12 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimalValidationError,
11
+ AmountDecimalValidationError$inboundSchema,
12
+ AmountDecimalValidationError$Outbound,
13
+ AmountDecimalValidationError$outboundSchema,
14
+ } from "./amountdecimalvalidationerror.js";
9
15
  import {
10
16
  AssignProductImageValidationError,
11
17
  AssignProductImageValidationError$inboundSchema,
@@ -16,7 +22,7 @@ import {
16
22
  export type ProductOptionValidationError = {
17
23
  name?: string | undefined;
18
24
  description?: string | undefined;
19
- priceModifier?: string | undefined;
25
+ priceModifier?: AmountDecimalValidationError | undefined;
20
26
  images?: { [k: string]: AssignProductImageValidationError } | undefined;
21
27
  };
22
28
 
@@ -28,7 +34,7 @@ export const ProductOptionValidationError$inboundSchema: z.ZodType<
28
34
  > = z.object({
29
35
  name: z.string().optional(),
30
36
  description: z.string().optional(),
31
- priceModifier: z.string().optional(),
37
+ priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
32
38
  images: z.record(AssignProductImageValidationError$inboundSchema).optional(),
33
39
  });
34
40
 
@@ -36,7 +42,7 @@ export const ProductOptionValidationError$inboundSchema: z.ZodType<
36
42
  export type ProductOptionValidationError$Outbound = {
37
43
  name?: string | undefined;
38
44
  description?: string | undefined;
39
- priceModifier?: string | undefined;
45
+ priceModifier?: AmountDecimalValidationError$Outbound | undefined;
40
46
  images?:
41
47
  | { [k: string]: AssignProductImageValidationError$Outbound }
42
48
  | undefined;
@@ -50,7 +56,7 @@ export const ProductOptionValidationError$outboundSchema: z.ZodType<
50
56
  > = z.object({
51
57
  name: z.string().optional(),
52
58
  description: z.string().optional(),
53
- priceModifier: z.string().optional(),
59
+ priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
54
60
  images: z.record(AssignProductImageValidationError$outboundSchema).optional(),
55
61
  });
56
62