@compass-labs/api-sdk 2.1.7 → 2.1.8

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.
@@ -6,6 +6,7 @@ import { UnsignedTransaction } from "./unsignedtransaction.js";
6
6
  export type EarnSwapResponse = {
7
7
  transaction: UnsignedTransaction | null;
8
8
  eip712: BatchedSafeOperationsResponseOutput | null;
9
+ estimatedAmountOut: string;
9
10
  };
10
11
  /** @internal */
11
12
  export declare const EarnSwapResponse$inboundSchema: z.ZodType<EarnSwapResponse, z.ZodTypeDef, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"earnswapresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/earnswapresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,mCAAmC,GAAG,IAAI,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
1
+ {"version":3,"file":"earnswapresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/earnswapresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,mCAAmC,GAAG,IAAI,CAAC;IACnD,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -47,9 +47,11 @@ const unsignedtransaction_js_1 = require("./unsignedtransaction.js");
47
47
  exports.EarnSwapResponse$inboundSchema = z.object({
48
48
  transaction: z.nullable(unsignedtransaction_js_1.UnsignedTransaction$inboundSchema),
49
49
  eip_712: z.nullable(batchedsafeoperationsresponseoutput_js_1.BatchedSafeOperationsResponseOutput$inboundSchema),
50
+ estimated_amount_out: z.string(),
50
51
  }).transform((v) => {
51
52
  return (0, primitives_js_1.remap)(v, {
52
53
  "eip_712": "eip712",
54
+ "estimated_amount_out": "estimatedAmountOut",
53
55
  });
54
56
  });
55
57
  function earnSwapResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"earnswapresponse.js","sourceRoot":"","sources":["../../../../src/models/components/earnswapresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,4DAQC;AAzCD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD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AAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
@@ -6,6 +6,7 @@ import { UnsignedTransaction } from "./unsignedtransaction.js";
6
6
  export type EarnSwapResponse = {
7
7
  transaction: UnsignedTransaction | null;
8
8
  eip712: BatchedSafeOperationsResponseOutput | null;
9
+ estimatedAmountOut: string;
9
10
  };
10
11
  /** @internal */
11
12
  export declare const EarnSwapResponse$inboundSchema: z.ZodType<EarnSwapResponse, z.ZodTypeDef, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"earnswapresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/earnswapresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,mCAAmC,GAAG,IAAI,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
1
+ {"version":3,"file":"earnswapresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/earnswapresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,mCAAmC,GAAG,IAAI,CAAC;IACnD,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -10,9 +10,11 @@ import { UnsignedTransaction$inboundSchema, } from "./unsignedtransaction.js";
10
10
  export const EarnSwapResponse$inboundSchema = z.object({
11
11
  transaction: z.nullable(UnsignedTransaction$inboundSchema),
12
12
  eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema),
13
+ estimated_amount_out: z.string(),
13
14
  }).transform((v) => {
14
15
  return remap$(v, {
15
16
  "eip_712": "eip712",
17
+ "estimated_amount_out": "estimatedAmountOut",
16
18
  });
17
19
  });
18
20
  export function earnSwapResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"earnswapresponse.js","sourceRoot":"","sources":["../../../../src/models/components/earnswapresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,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AAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IACtE,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,sBAAsB,EAAE,oBAAoB;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -19,6 +19,7 @@ import {
19
19
  export type EarnSwapResponse = {
20
20
  transaction: UnsignedTransaction | null;
21
21
  eip712: BatchedSafeOperationsResponseOutput | null;
22
+ estimatedAmountOut: string;
22
23
  };
23
24
 
24
25
  /** @internal */
@@ -29,9 +30,11 @@ export const EarnSwapResponse$inboundSchema: z.ZodType<
29
30
  > = z.object({
30
31
  transaction: z.nullable(UnsignedTransaction$inboundSchema),
31
32
  eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema),
33
+ estimated_amount_out: z.string(),
32
34
  }).transform((v) => {
33
35
  return remap$(v, {
34
36
  "eip_712": "eip712",
37
+ "estimated_amount_out": "estimatedAmountOut",
35
38
  });
36
39
  });
37
40