@moovio/sdk 0.16.4 → 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.
- package/README.md +62 -44
- package/bin/mcp-server.js +1867 -585
- package/bin/mcp-server.js.map +37 -9
- package/docs/sdks/products/README.md +616 -0
- package/examples/package-lock.json +1 -1
- package/funcs/productsCreate.d.ts +15 -0
- package/funcs/productsCreate.d.ts.map +1 -0
- package/funcs/productsCreate.js +138 -0
- package/funcs/productsCreate.js.map +1 -0
- package/funcs/productsDisable.d.ts +17 -0
- package/funcs/productsDisable.d.ts.map +1 -0
- package/funcs/productsDisable.js +139 -0
- package/funcs/productsDisable.js.map +1 -0
- package/funcs/productsGet.d.ts +14 -0
- package/funcs/productsGet.d.ts.map +1 -0
- package/funcs/productsGet.js +126 -0
- package/funcs/productsGet.js.map +1 -0
- package/funcs/productsList.d.ts +14 -0
- package/funcs/productsList.d.ts.map +1 -0
- package/funcs/productsList.js +127 -0
- package/funcs/productsList.js.map +1 -0
- package/funcs/productsUpdate.d.ts +15 -0
- package/funcs/productsUpdate.d.ts.map +1 -0
- package/funcs/productsUpdate.js +142 -0
- package/funcs/productsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/productsCreate.d.ts +8 -0
- package/mcp-server/tools/productsCreate.d.ts.map +1 -0
- package/mcp-server/tools/productsCreate.js +62 -0
- package/mcp-server/tools/productsCreate.js.map +1 -0
- package/mcp-server/tools/productsDisable.d.ts +8 -0
- package/mcp-server/tools/productsDisable.d.ts.map +1 -0
- package/mcp-server/tools/productsDisable.js +63 -0
- package/mcp-server/tools/productsDisable.js.map +1 -0
- package/mcp-server/tools/productsGet.d.ts +8 -0
- package/mcp-server/tools/productsGet.d.ts.map +1 -0
- package/mcp-server/tools/productsGet.js +62 -0
- package/mcp-server/tools/productsGet.js.map +1 -0
- package/mcp-server/tools/productsList.d.ts +8 -0
- package/mcp-server/tools/productsList.d.ts.map +1 -0
- package/mcp-server/tools/productsList.js +62 -0
- package/mcp-server/tools/productsList.js.map +1 -0
- package/mcp-server/tools/productsUpdate.d.ts +8 -0
- package/mcp-server/tools/productsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/productsUpdate.js +62 -0
- package/mcp-server/tools/productsUpdate.js.map +1 -0
- package/models/components/amountdecimalvalidationerror.d.ts +31 -0
- package/models/components/amountdecimalvalidationerror.d.ts.map +1 -0
- package/models/components/amountdecimalvalidationerror.js +71 -0
- package/models/components/amountdecimalvalidationerror.js.map +1 -0
- package/models/components/assignproductimage.d.ts +32 -0
- package/models/components/assignproductimage.d.ts.map +1 -0
- package/models/components/assignproductimage.js +69 -0
- package/models/components/assignproductimage.js.map +1 -0
- package/models/components/assignproductimagevalidationerror.d.ts +29 -0
- package/models/components/assignproductimagevalidationerror.d.ts.map +1 -0
- package/models/components/assignproductimagevalidationerror.js +69 -0
- package/models/components/assignproductimagevalidationerror.js.map +1 -0
- package/models/components/createproductoption.d.ts +55 -0
- package/models/components/createproductoption.d.ts.map +1 -0
- package/models/components/createproductoption.js +77 -0
- package/models/components/createproductoption.js.map +1 -0
- package/models/components/createproductoptiongroup.d.ts +60 -0
- package/models/components/createproductoptiongroup.d.ts.map +1 -0
- package/models/components/createproductoptiongroup.js +78 -0
- package/models/components/createproductoptiongroup.js.map +1 -0
- package/models/components/index.d.ts +12 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +12 -0
- package/models/components/index.js.map +1 -1
- package/models/components/product.d.ts +81 -0
- package/models/components/product.d.ts.map +1 -0
- package/models/components/product.js +88 -0
- package/models/components/product.js.map +1 -0
- package/models/components/productimagemetadata.d.ts +42 -0
- package/models/components/productimagemetadata.d.ts.map +1 -0
- package/models/components/productimagemetadata.js +73 -0
- package/models/components/productimagemetadata.js.map +1 -0
- package/models/components/productoption.d.ts +58 -0
- package/models/components/productoption.d.ts.map +1 -0
- package/models/components/productoption.js +77 -0
- package/models/components/productoption.js.map +1 -0
- package/models/components/productoptiongroup.d.ts +63 -0
- package/models/components/productoptiongroup.d.ts.map +1 -0
- package/models/components/productoptiongroup.js +78 -0
- package/models/components/productoptiongroup.js.map +1 -0
- package/models/components/productoptiongroupvalidationerror.d.ts +42 -0
- package/models/components/productoptiongroupvalidationerror.d.ts.map +1 -0
- package/models/components/productoptiongroupvalidationerror.js +78 -0
- package/models/components/productoptiongroupvalidationerror.js.map +1 -0
- package/models/components/productoptionvalidationerror.d.ts +41 -0
- package/models/components/productoptionvalidationerror.d.ts.map +1 -0
- package/models/components/productoptionvalidationerror.js +77 -0
- package/models/components/productoptionvalidationerror.js.map +1 -0
- package/models/components/productrequest.d.ts +61 -0
- package/models/components/productrequest.d.ts.map +1 -0
- package/models/components/productrequest.js +80 -0
- package/models/components/productrequest.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/productrequestvalidationerror.d.ts +61 -0
- package/models/errors/productrequestvalidationerror.d.ts.map +1 -0
- package/models/errors/productrequestvalidationerror.js +105 -0
- package/models/errors/productrequestvalidationerror.js.map +1 -0
- package/models/operations/createproduct.d.ts +101 -0
- package/models/operations/createproduct.d.ts.map +1 -0
- package/models/operations/createproduct.js +155 -0
- package/models/operations/createproduct.js.map +1 -0
- package/models/operations/disableproduct.d.ts +98 -0
- package/models/operations/disableproduct.d.ts.map +1 -0
- package/models/operations/disableproduct.js +142 -0
- package/models/operations/disableproduct.js.map +1 -0
- package/models/operations/getproduct.d.ts +101 -0
- package/models/operations/getproduct.d.ts.map +1 -0
- package/models/operations/getproduct.js +147 -0
- package/models/operations/getproduct.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listproducts.d.ts +103 -0
- package/models/operations/listproducts.d.ts.map +1 -0
- package/models/operations/listproducts.js +149 -0
- package/models/operations/listproducts.js.map +1 -0
- package/models/operations/updateproduct.d.ts +103 -0
- package/models/operations/updateproduct.d.ts.map +1 -0
- package/models/operations/updateproduct.js +157 -0
- package/models/operations/updateproduct.js.map +1 -0
- package/package.json +1 -1
- package/sdk/products.d.ts +27 -0
- package/sdk/products.d.ts.map +1 -0
- package/sdk/products.js +49 -0
- package/sdk/products.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/productsCreate.ts +200 -0
- package/src/funcs/productsDisable.ts +199 -0
- package/src/funcs/productsGet.ts +182 -0
- package/src/funcs/productsList.ts +182 -0
- package/src/funcs/productsUpdate.ts +206 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/productsCreate.ts +35 -0
- package/src/mcp-server/tools/productsDisable.ts +35 -0
- package/src/mcp-server/tools/productsGet.ts +35 -0
- package/src/mcp-server/tools/productsList.ts +35 -0
- package/src/mcp-server/tools/productsUpdate.ts +35 -0
- package/src/models/components/amountdecimalvalidationerror.ts +72 -0
- package/src/models/components/assignproductimage.ts +69 -0
- package/src/models/components/assignproductimagevalidationerror.ts +69 -0
- package/src/models/components/createproductoption.ts +108 -0
- package/src/models/components/createproductoptiongroup.ts +110 -0
- package/src/models/components/index.ts +12 -0
- package/src/models/components/product.ts +148 -0
- package/src/models/components/productimagemetadata.ts +83 -0
- package/src/models/components/productoption.ts +107 -0
- package/src/models/components/productoptiongroup.ts +113 -0
- package/src/models/components/productoptiongroupvalidationerror.ts +91 -0
- package/src/models/components/productoptionvalidationerror.ts +94 -0
- package/src/models/components/productrequest.ts +117 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/productrequestvalidationerror.ts +124 -0
- package/src/models/operations/createproduct.ts +231 -0
- package/src/models/operations/disableproduct.ts +216 -0
- package/src/models/operations/getproduct.ts +223 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listproducts.ts +227 -0
- package/src/models/operations/updateproduct.ts +235 -0
- package/src/sdk/products.ts +86 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productrequest.js","sourceRoot":"","sources":["../../src/models/components/productrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,oDAEC;AAED,wDAQC;AAhHD,uCAAyB;AACzB,qDAAiD;AAGjD,yDAK4B;AAC5B,mEAKiC;AACjC,+EAKuC;AA+BvC,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,8CAA2B;IACtC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,wDAAgC,CAAC,CAAC,QAAQ,EAAE;IAC5D,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,oEAAsC,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,+CAA4B;IACvC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yDAAiC,CAAC,CAAC,QAAQ,EAAE;IAC7D,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,qEAAuC,CAAC,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
package/models/errors/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from "./patchaccounterror.js";
|
|
|
28
28
|
export * from "./patchsweepconfigerror.js";
|
|
29
29
|
export * from "./patchtransfervalidationerror.js";
|
|
30
30
|
export * from "./patchwalletvalidationerror.js";
|
|
31
|
+
export * from "./productrequestvalidationerror.js";
|
|
31
32
|
export * from "./refundvalidationerror.js";
|
|
32
33
|
export * from "./representativevalidationerror.js";
|
|
33
34
|
export * from "./requestcarderror.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yB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AC"}
|
package/models/errors/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./patchaccounterror.js"), exports);
|
|
|
47
47
|
__exportStar(require("./patchsweepconfigerror.js"), exports);
|
|
48
48
|
__exportStar(require("./patchtransfervalidationerror.js"), exports);
|
|
49
49
|
__exportStar(require("./patchwalletvalidationerror.js"), exports);
|
|
50
|
+
__exportStar(require("./productrequestvalidationerror.js"), exports);
|
|
50
51
|
__exportStar(require("./refundvalidationerror.js"), exports);
|
|
51
52
|
__exportStar(require("./representativevalidationerror.js"), exports);
|
|
52
53
|
__exportStar(require("./requestcarderror.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,uEAAqD;AACrD,4DAA0C;AAC1C,gDAA8B;AAC9B,4DAA0C;AAC1C,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,2DAAyC;AACzC,0DAAwC;AACxC,8DAA4C;AAC5C,8DAA4C;AAC5C,yDAAuC;AACvC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,oEAAkD;AAClD,kEAAgD;AAChD,6EAA2D;AAC3D,mEAAiD;AACjD,iDAA+B;AAC/B,6DAA2C;AAC3C,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD;AAClD,kEAAgD;AAChD,6DAA2C;AAC3C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,gDAA8B;AAC9B,sEAAoD;AACpD,+DAA6C;AAC7C,uDAAqC;AACrC,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,uEAAqD;AACrD,4DAA0C;AAC1C,gDAA8B;AAC9B,4DAA0C;AAC1C,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,2DAAyC;AACzC,0DAAwC;AACxC,8DAA4C;AAC5C,8DAA4C;AAC5C,yDAAuC;AACvC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,oEAAkD;AAClD,kEAAgD;AAChD,6EAA2D;AAC3D,mEAAiD;AACjD,iDAA+B;AAC/B,6DAA2C;AAC3C,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD;AAClD,kEAAgD;AAChD,qEAAmD;AACnD,6DAA2C;AAC3C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,gDAA8B;AAC9B,sEAAoD;AACpD,+DAA6C;AAC7C,uDAAqC;AACrC,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import * as components from "../components/index.js";
|
|
3
|
+
import { MoovError } from "./mooverror.js";
|
|
4
|
+
export type ProductRequestValidationErrorData = {
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
basePrice?: components.AmountDecimalValidationError | undefined;
|
|
8
|
+
images?: {
|
|
9
|
+
[k: string]: components.AssignProductImageValidationError;
|
|
10
|
+
} | undefined;
|
|
11
|
+
optionGroups?: {
|
|
12
|
+
[k: string]: components.ProductOptionGroupValidationError;
|
|
13
|
+
} | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare class ProductRequestValidationError extends MoovError {
|
|
16
|
+
title?: string | undefined;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
basePrice?: components.AmountDecimalValidationError | undefined;
|
|
19
|
+
images?: {
|
|
20
|
+
[k: string]: components.AssignProductImageValidationError;
|
|
21
|
+
} | undefined;
|
|
22
|
+
optionGroups?: {
|
|
23
|
+
[k: string]: components.ProductOptionGroupValidationError;
|
|
24
|
+
} | undefined;
|
|
25
|
+
/** The original data that was passed to this error instance. */
|
|
26
|
+
data$: ProductRequestValidationErrorData;
|
|
27
|
+
constructor(err: ProductRequestValidationErrorData, httpMeta: {
|
|
28
|
+
response: Response;
|
|
29
|
+
request: Request;
|
|
30
|
+
body: string;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const ProductRequestValidationError$inboundSchema: z.ZodType<ProductRequestValidationError, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ProductRequestValidationError$Outbound = {
|
|
37
|
+
title?: string | undefined;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
basePrice?: components.AmountDecimalValidationError$Outbound | undefined;
|
|
40
|
+
images?: {
|
|
41
|
+
[k: string]: components.AssignProductImageValidationError$Outbound;
|
|
42
|
+
} | undefined;
|
|
43
|
+
optionGroups?: {
|
|
44
|
+
[k: string]: components.ProductOptionGroupValidationError$Outbound;
|
|
45
|
+
} | undefined;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const ProductRequestValidationError$outboundSchema: z.ZodType<ProductRequestValidationError$Outbound, z.ZodTypeDef, ProductRequestValidationError>;
|
|
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 declare namespace ProductRequestValidationError$ {
|
|
54
|
+
/** @deprecated use `ProductRequestValidationError$inboundSchema` instead. */
|
|
55
|
+
const inboundSchema: z.ZodType<ProductRequestValidationError, z.ZodTypeDef, unknown>;
|
|
56
|
+
/** @deprecated use `ProductRequestValidationError$outboundSchema` instead. */
|
|
57
|
+
const outboundSchema: z.ZodType<ProductRequestValidationError$Outbound, z.ZodTypeDef, ProductRequestValidationError>;
|
|
58
|
+
/** @deprecated use `ProductRequestValidationError$Outbound` instead. */
|
|
59
|
+
type Outbound = ProductRequestValidationError$Outbound;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=productrequestvalidationerror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productrequestvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/errors/productrequestvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,UAAU,CAAC,4BAA4B,GAAG,SAAS,CAAC;IAChE,MAAM,CAAC,EACH;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,iCAAiC,CAAA;KAAE,GAC7D,SAAS,CAAC;IACd,YAAY,CAAC,EACT;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,iCAAiC,CAAA;KAAE,GAC7D,SAAS,CAAC;CACf,CAAC;AAEF,qBAAa,6BAA8B,SAAQ,SAAS;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,UAAU,CAAC,4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ACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ProductRequestValidationError$ = exports.ProductRequestValidationError$outboundSchema = exports.ProductRequestValidationError$inboundSchema = exports.ProductRequestValidationError = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
const components = __importStar(require("../components/index.js"));
|
|
42
|
+
const mooverror_js_1 = require("./mooverror.js");
|
|
43
|
+
class ProductRequestValidationError extends mooverror_js_1.MoovError {
|
|
44
|
+
constructor(err, httpMeta) {
|
|
45
|
+
const message = "message" in err && typeof err.message === "string"
|
|
46
|
+
? err.message
|
|
47
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
48
|
+
super(message, httpMeta);
|
|
49
|
+
this.data$ = err;
|
|
50
|
+
if (err.title != null)
|
|
51
|
+
this.title = err.title;
|
|
52
|
+
if (err.description != null)
|
|
53
|
+
this.description = err.description;
|
|
54
|
+
if (err.basePrice != null)
|
|
55
|
+
this.basePrice = err.basePrice;
|
|
56
|
+
if (err.images != null)
|
|
57
|
+
this.images = err.images;
|
|
58
|
+
if (err.optionGroups != null)
|
|
59
|
+
this.optionGroups = err.optionGroups;
|
|
60
|
+
this.name = "ProductRequestValidationError";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.ProductRequestValidationError = ProductRequestValidationError;
|
|
64
|
+
/** @internal */
|
|
65
|
+
exports.ProductRequestValidationError$inboundSchema = z.object({
|
|
66
|
+
title: z.string().optional(),
|
|
67
|
+
description: z.string().optional(),
|
|
68
|
+
basePrice: components.AmountDecimalValidationError$inboundSchema.optional(),
|
|
69
|
+
images: z.record(components.AssignProductImageValidationError$inboundSchema)
|
|
70
|
+
.optional(),
|
|
71
|
+
optionGroups: z.record(components.ProductOptionGroupValidationError$inboundSchema).optional(),
|
|
72
|
+
request$: z.instanceof(Request),
|
|
73
|
+
response$: z.instanceof(Response),
|
|
74
|
+
body$: z.string(),
|
|
75
|
+
})
|
|
76
|
+
.transform((v) => {
|
|
77
|
+
return new ProductRequestValidationError(v, {
|
|
78
|
+
request: v.request$,
|
|
79
|
+
response: v.response$,
|
|
80
|
+
body: v.body$,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.ProductRequestValidationError$outboundSchema = z.instanceof(ProductRequestValidationError)
|
|
85
|
+
.transform(v => v.data$)
|
|
86
|
+
.pipe(z.object({
|
|
87
|
+
title: z.string().optional(),
|
|
88
|
+
description: z.string().optional(),
|
|
89
|
+
basePrice: components.AmountDecimalValidationError$outboundSchema
|
|
90
|
+
.optional(),
|
|
91
|
+
images: z.record(components.AssignProductImageValidationError$outboundSchema).optional(),
|
|
92
|
+
optionGroups: z.record(components.ProductOptionGroupValidationError$outboundSchema).optional(),
|
|
93
|
+
}));
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
var ProductRequestValidationError$;
|
|
99
|
+
(function (ProductRequestValidationError$) {
|
|
100
|
+
/** @deprecated use `ProductRequestValidationError$inboundSchema` instead. */
|
|
101
|
+
ProductRequestValidationError$.inboundSchema = exports.ProductRequestValidationError$inboundSchema;
|
|
102
|
+
/** @deprecated use `ProductRequestValidationError$outboundSchema` instead. */
|
|
103
|
+
ProductRequestValidationError$.outboundSchema = exports.ProductRequestValidationError$outboundSchema;
|
|
104
|
+
})(ProductRequestValidationError$ || (exports.ProductRequestValidationError$ = ProductRequestValidationError$ = {}));
|
|
105
|
+
//# sourceMappingURL=productrequestvalidationerror.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productrequestvalidationerror.js","sourceRoot":"","sources":["../../src/models/errors/productrequestvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;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AAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type CreateProductGlobals = {
|
|
6
|
+
/**
|
|
7
|
+
* Specify an API version.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
12
|
+
* - `YYYY` is the year
|
|
13
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
14
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
15
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
16
|
+
*
|
|
17
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
18
|
+
*/
|
|
19
|
+
xMoovVersion?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type CreateProductRequest = {
|
|
22
|
+
accountID: string;
|
|
23
|
+
productRequest: components.ProductRequest;
|
|
24
|
+
};
|
|
25
|
+
export type CreateProductResponse = {
|
|
26
|
+
headers: {
|
|
27
|
+
[k: string]: Array<string>;
|
|
28
|
+
};
|
|
29
|
+
result: components.Product;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const CreateProductGlobals$inboundSchema: z.ZodType<CreateProductGlobals, z.ZodTypeDef, unknown>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type CreateProductGlobals$Outbound = {
|
|
35
|
+
"x-moov-version": string;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const CreateProductGlobals$outboundSchema: z.ZodType<CreateProductGlobals$Outbound, z.ZodTypeDef, CreateProductGlobals>;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace CreateProductGlobals$ {
|
|
44
|
+
/** @deprecated use `CreateProductGlobals$inboundSchema` instead. */
|
|
45
|
+
const inboundSchema: z.ZodType<CreateProductGlobals, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @deprecated use `CreateProductGlobals$outboundSchema` instead. */
|
|
47
|
+
const outboundSchema: z.ZodType<CreateProductGlobals$Outbound, z.ZodTypeDef, CreateProductGlobals>;
|
|
48
|
+
/** @deprecated use `CreateProductGlobals$Outbound` instead. */
|
|
49
|
+
type Outbound = CreateProductGlobals$Outbound;
|
|
50
|
+
}
|
|
51
|
+
export declare function createProductGlobalsToJSON(createProductGlobals: CreateProductGlobals): string;
|
|
52
|
+
export declare function createProductGlobalsFromJSON(jsonString: string): SafeParseResult<CreateProductGlobals, SDKValidationError>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const CreateProductRequest$inboundSchema: z.ZodType<CreateProductRequest, z.ZodTypeDef, unknown>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type CreateProductRequest$Outbound = {
|
|
57
|
+
accountID: string;
|
|
58
|
+
ProductRequest: components.ProductRequest$Outbound;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const CreateProductRequest$outboundSchema: z.ZodType<CreateProductRequest$Outbound, z.ZodTypeDef, CreateProductRequest>;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export declare namespace CreateProductRequest$ {
|
|
67
|
+
/** @deprecated use `CreateProductRequest$inboundSchema` instead. */
|
|
68
|
+
const inboundSchema: z.ZodType<CreateProductRequest, z.ZodTypeDef, unknown>;
|
|
69
|
+
/** @deprecated use `CreateProductRequest$outboundSchema` instead. */
|
|
70
|
+
const outboundSchema: z.ZodType<CreateProductRequest$Outbound, z.ZodTypeDef, CreateProductRequest>;
|
|
71
|
+
/** @deprecated use `CreateProductRequest$Outbound` instead. */
|
|
72
|
+
type Outbound = CreateProductRequest$Outbound;
|
|
73
|
+
}
|
|
74
|
+
export declare function createProductRequestToJSON(createProductRequest: CreateProductRequest): string;
|
|
75
|
+
export declare function createProductRequestFromJSON(jsonString: string): SafeParseResult<CreateProductRequest, SDKValidationError>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export declare const CreateProductResponse$inboundSchema: z.ZodType<CreateProductResponse, z.ZodTypeDef, unknown>;
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type CreateProductResponse$Outbound = {
|
|
80
|
+
Headers: {
|
|
81
|
+
[k: string]: Array<string>;
|
|
82
|
+
};
|
|
83
|
+
Result: components.Product$Outbound;
|
|
84
|
+
};
|
|
85
|
+
/** @internal */
|
|
86
|
+
export declare const CreateProductResponse$outboundSchema: z.ZodType<CreateProductResponse$Outbound, z.ZodTypeDef, CreateProductResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export declare namespace CreateProductResponse$ {
|
|
92
|
+
/** @deprecated use `CreateProductResponse$inboundSchema` instead. */
|
|
93
|
+
const inboundSchema: z.ZodType<CreateProductResponse, z.ZodTypeDef, unknown>;
|
|
94
|
+
/** @deprecated use `CreateProductResponse$outboundSchema` instead. */
|
|
95
|
+
const outboundSchema: z.ZodType<CreateProductResponse$Outbound, z.ZodTypeDef, CreateProductResponse>;
|
|
96
|
+
/** @deprecated use `CreateProductResponse$Outbound` instead. */
|
|
97
|
+
type Outbound = CreateProductResponse$Outbound;
|
|
98
|
+
}
|
|
99
|
+
export declare function createProductResponseToJSON(createProductResponse: CreateProductResponse): string;
|
|
100
|
+
export declare function createProductResponseFromJSON(jsonString: string): SafeParseResult<CreateProductResponse, SDKValidationError>;
|
|
101
|
+
//# sourceMappingURL=createproduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createproduct.d.ts","sourceRoot":"","sources":["../../src/models/operations/createproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAOpB,CAAC;AAEH;;;GAGG;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CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CASrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -0,0 +1,155 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreateProductResponse$ = exports.CreateProductResponse$outboundSchema = exports.CreateProductResponse$inboundSchema = exports.CreateProductRequest$ = exports.CreateProductRequest$outboundSchema = exports.CreateProductRequest$inboundSchema = exports.CreateProductGlobals$ = exports.CreateProductGlobals$outboundSchema = exports.CreateProductGlobals$inboundSchema = void 0;
|
|
40
|
+
exports.createProductGlobalsToJSON = createProductGlobalsToJSON;
|
|
41
|
+
exports.createProductGlobalsFromJSON = createProductGlobalsFromJSON;
|
|
42
|
+
exports.createProductRequestToJSON = createProductRequestToJSON;
|
|
43
|
+
exports.createProductRequestFromJSON = createProductRequestFromJSON;
|
|
44
|
+
exports.createProductResponseToJSON = createProductResponseToJSON;
|
|
45
|
+
exports.createProductResponseFromJSON = createProductResponseFromJSON;
|
|
46
|
+
const z = __importStar(require("zod"));
|
|
47
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
|
+
const components = __importStar(require("../components/index.js"));
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.CreateProductGlobals$inboundSchema = z.object({
|
|
52
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"x-moov-version": "xMoovVersion",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.CreateProductGlobals$outboundSchema = z.object({
|
|
60
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return (0, primitives_js_1.remap)(v, {
|
|
63
|
+
xMoovVersion: "x-moov-version",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
var CreateProductGlobals$;
|
|
71
|
+
(function (CreateProductGlobals$) {
|
|
72
|
+
/** @deprecated use `CreateProductGlobals$inboundSchema` instead. */
|
|
73
|
+
CreateProductGlobals$.inboundSchema = exports.CreateProductGlobals$inboundSchema;
|
|
74
|
+
/** @deprecated use `CreateProductGlobals$outboundSchema` instead. */
|
|
75
|
+
CreateProductGlobals$.outboundSchema = exports.CreateProductGlobals$outboundSchema;
|
|
76
|
+
})(CreateProductGlobals$ || (exports.CreateProductGlobals$ = CreateProductGlobals$ = {}));
|
|
77
|
+
function createProductGlobalsToJSON(createProductGlobals) {
|
|
78
|
+
return JSON.stringify(exports.CreateProductGlobals$outboundSchema.parse(createProductGlobals));
|
|
79
|
+
}
|
|
80
|
+
function createProductGlobalsFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateProductGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProductGlobals' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.CreateProductRequest$inboundSchema = z.object({
|
|
85
|
+
accountID: z.string(),
|
|
86
|
+
ProductRequest: components.ProductRequest$inboundSchema,
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return (0, primitives_js_1.remap)(v, {
|
|
89
|
+
"ProductRequest": "productRequest",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
/** @internal */
|
|
93
|
+
exports.CreateProductRequest$outboundSchema = z.object({
|
|
94
|
+
accountID: z.string(),
|
|
95
|
+
productRequest: components.ProductRequest$outboundSchema,
|
|
96
|
+
}).transform((v) => {
|
|
97
|
+
return (0, primitives_js_1.remap)(v, {
|
|
98
|
+
productRequest: "ProductRequest",
|
|
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
|
+
var CreateProductRequest$;
|
|
106
|
+
(function (CreateProductRequest$) {
|
|
107
|
+
/** @deprecated use `CreateProductRequest$inboundSchema` instead. */
|
|
108
|
+
CreateProductRequest$.inboundSchema = exports.CreateProductRequest$inboundSchema;
|
|
109
|
+
/** @deprecated use `CreateProductRequest$outboundSchema` instead. */
|
|
110
|
+
CreateProductRequest$.outboundSchema = exports.CreateProductRequest$outboundSchema;
|
|
111
|
+
})(CreateProductRequest$ || (exports.CreateProductRequest$ = CreateProductRequest$ = {}));
|
|
112
|
+
function createProductRequestToJSON(createProductRequest) {
|
|
113
|
+
return JSON.stringify(exports.CreateProductRequest$outboundSchema.parse(createProductRequest));
|
|
114
|
+
}
|
|
115
|
+
function createProductRequestFromJSON(jsonString) {
|
|
116
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateProductRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProductRequest' from JSON`);
|
|
117
|
+
}
|
|
118
|
+
/** @internal */
|
|
119
|
+
exports.CreateProductResponse$inboundSchema = z.object({
|
|
120
|
+
Headers: z.record(z.array(z.string())),
|
|
121
|
+
Result: components.Product$inboundSchema,
|
|
122
|
+
}).transform((v) => {
|
|
123
|
+
return (0, primitives_js_1.remap)(v, {
|
|
124
|
+
"Headers": "headers",
|
|
125
|
+
"Result": "result",
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
/** @internal */
|
|
129
|
+
exports.CreateProductResponse$outboundSchema = z.object({
|
|
130
|
+
headers: z.record(z.array(z.string())),
|
|
131
|
+
result: components.Product$outboundSchema,
|
|
132
|
+
}).transform((v) => {
|
|
133
|
+
return (0, primitives_js_1.remap)(v, {
|
|
134
|
+
headers: "Headers",
|
|
135
|
+
result: "Result",
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
/**
|
|
139
|
+
* @internal
|
|
140
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
141
|
+
*/
|
|
142
|
+
var CreateProductResponse$;
|
|
143
|
+
(function (CreateProductResponse$) {
|
|
144
|
+
/** @deprecated use `CreateProductResponse$inboundSchema` instead. */
|
|
145
|
+
CreateProductResponse$.inboundSchema = exports.CreateProductResponse$inboundSchema;
|
|
146
|
+
/** @deprecated use `CreateProductResponse$outboundSchema` instead. */
|
|
147
|
+
CreateProductResponse$.outboundSchema = exports.CreateProductResponse$outboundSchema;
|
|
148
|
+
})(CreateProductResponse$ || (exports.CreateProductResponse$ = CreateProductResponse$ = {}));
|
|
149
|
+
function createProductResponseToJSON(createProductResponse) {
|
|
150
|
+
return JSON.stringify(exports.CreateProductResponse$outboundSchema.parse(createProductResponse));
|
|
151
|
+
}
|
|
152
|
+
function createProductResponseFromJSON(jsonString) {
|
|
153
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateProductResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProductResponse' from JSON`);
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=createproduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createproduct.js","sourceRoot":"","sources":["../../src/models/operations/createproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFH,gEAMC;AAED,oEAQC;AAiDD,gEAMC;AAED,oEAQC;AAmDD,kEAMC;AAED,sEAQC;AAlOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA8BrD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,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AAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 DisableProductGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* Specify an API version.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
*
|
|
10
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
11
|
+
* - `YYYY` is the year
|
|
12
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
13
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
14
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
15
|
+
*
|
|
16
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
17
|
+
*/
|
|
18
|
+
xMoovVersion?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
export type DisableProductRequest = {
|
|
21
|
+
accountID: string;
|
|
22
|
+
productID: string;
|
|
23
|
+
};
|
|
24
|
+
export type DisableProductResponse = {
|
|
25
|
+
headers: {
|
|
26
|
+
[k: string]: Array<string>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const DisableProductGlobals$inboundSchema: z.ZodType<DisableProductGlobals, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type DisableProductGlobals$Outbound = {
|
|
33
|
+
"x-moov-version": string;
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const DisableProductGlobals$outboundSchema: z.ZodType<DisableProductGlobals$Outbound, z.ZodTypeDef, DisableProductGlobals>;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export declare namespace DisableProductGlobals$ {
|
|
42
|
+
/** @deprecated use `DisableProductGlobals$inboundSchema` instead. */
|
|
43
|
+
const inboundSchema: z.ZodType<DisableProductGlobals, z.ZodTypeDef, unknown>;
|
|
44
|
+
/** @deprecated use `DisableProductGlobals$outboundSchema` instead. */
|
|
45
|
+
const outboundSchema: z.ZodType<DisableProductGlobals$Outbound, z.ZodTypeDef, DisableProductGlobals>;
|
|
46
|
+
/** @deprecated use `DisableProductGlobals$Outbound` instead. */
|
|
47
|
+
type Outbound = DisableProductGlobals$Outbound;
|
|
48
|
+
}
|
|
49
|
+
export declare function disableProductGlobalsToJSON(disableProductGlobals: DisableProductGlobals): string;
|
|
50
|
+
export declare function disableProductGlobalsFromJSON(jsonString: string): SafeParseResult<DisableProductGlobals, SDKValidationError>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const DisableProductRequest$inboundSchema: z.ZodType<DisableProductRequest, z.ZodTypeDef, unknown>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type DisableProductRequest$Outbound = {
|
|
55
|
+
accountID: string;
|
|
56
|
+
productID: string;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const DisableProductRequest$outboundSchema: z.ZodType<DisableProductRequest$Outbound, z.ZodTypeDef, DisableProductRequest>;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export declare namespace DisableProductRequest$ {
|
|
65
|
+
/** @deprecated use `DisableProductRequest$inboundSchema` instead. */
|
|
66
|
+
const inboundSchema: z.ZodType<DisableProductRequest, z.ZodTypeDef, unknown>;
|
|
67
|
+
/** @deprecated use `DisableProductRequest$outboundSchema` instead. */
|
|
68
|
+
const outboundSchema: z.ZodType<DisableProductRequest$Outbound, z.ZodTypeDef, DisableProductRequest>;
|
|
69
|
+
/** @deprecated use `DisableProductRequest$Outbound` instead. */
|
|
70
|
+
type Outbound = DisableProductRequest$Outbound;
|
|
71
|
+
}
|
|
72
|
+
export declare function disableProductRequestToJSON(disableProductRequest: DisableProductRequest): string;
|
|
73
|
+
export declare function disableProductRequestFromJSON(jsonString: string): SafeParseResult<DisableProductRequest, SDKValidationError>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const DisableProductResponse$inboundSchema: z.ZodType<DisableProductResponse, z.ZodTypeDef, unknown>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type DisableProductResponse$Outbound = {
|
|
78
|
+
Headers: {
|
|
79
|
+
[k: string]: Array<string>;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/** @internal */
|
|
83
|
+
export declare const DisableProductResponse$outboundSchema: z.ZodType<DisableProductResponse$Outbound, z.ZodTypeDef, DisableProductResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export declare namespace DisableProductResponse$ {
|
|
89
|
+
/** @deprecated use `DisableProductResponse$inboundSchema` instead. */
|
|
90
|
+
const inboundSchema: z.ZodType<DisableProductResponse, z.ZodTypeDef, unknown>;
|
|
91
|
+
/** @deprecated use `DisableProductResponse$outboundSchema` instead. */
|
|
92
|
+
const outboundSchema: z.ZodType<DisableProductResponse$Outbound, z.ZodTypeDef, DisableProductResponse>;
|
|
93
|
+
/** @deprecated use `DisableProductResponse$Outbound` instead. */
|
|
94
|
+
type Outbound = DisableProductResponse$Outbound;
|
|
95
|
+
}
|
|
96
|
+
export declare function disableProductResponseToJSON(disableProductResponse: DisableProductResponse): string;
|
|
97
|
+
export declare function disableProductResponseFromJSON(jsonString: string): SafeParseResult<DisableProductResponse, SDKValidationError>;
|
|
98
|
+
//# sourceMappingURL=disableproduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disableproduct.d.ts","sourceRoot":"","sources":["../../src/models/operations/disableproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CA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