@plutonlabs/sdk 0.0.3-beta → 0.0.5-beta
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 +1 -0
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts +6 -6
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js +4 -4
- package/dist/modules/quote/domain/dto/quote/index.d.ts +0 -1
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.js +0 -1
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +1 -2
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +2 -2
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +17 -2
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts +0 -3
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts +3 -4
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +3 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -1
- package/package.json +25 -22
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts +0 -8
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js +0 -22
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js.map +0 -1
package/Readme.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# pluton-sdk
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export declare class ChainTransactionDto {
|
2
2
|
static from<T extends {
|
3
3
|
id: string;
|
4
|
-
|
5
|
-
|
4
|
+
quoteRequestId: string;
|
5
|
+
quoteResponseId: string;
|
6
6
|
blockNumber?: number;
|
7
7
|
blockHash?: string;
|
8
8
|
hash: string;
|
@@ -20,8 +20,8 @@ export declare class ChainTransactionDto {
|
|
20
20
|
}>(tx: T): ChainTransactionDto;
|
21
21
|
static listFrom<T extends {
|
22
22
|
id: string;
|
23
|
-
|
24
|
-
|
23
|
+
quoteRequestId: string;
|
24
|
+
quoteResponseId: string;
|
25
25
|
blockNumber?: number;
|
26
26
|
blockHash?: string;
|
27
27
|
hash: string;
|
@@ -46,12 +46,12 @@ export declare class ChainTransactionDto {
|
|
46
46
|
* UUID of the request quote
|
47
47
|
* @example 'a1b2c3d4-e5f6-7890-1234-56789abcdef0'
|
48
48
|
*/
|
49
|
-
|
49
|
+
quoteRequestId: string;
|
50
50
|
/**
|
51
51
|
* UUID of the response quote
|
52
52
|
* @example 'f0e1d2c3-b4a5-6789-0123-456789abcdef'
|
53
53
|
*/
|
54
|
-
|
54
|
+
quoteResponseId: string;
|
55
55
|
/**
|
56
56
|
* Block number where the transaction was mined
|
57
57
|
* @example 123456
|
@@ -23,8 +23,8 @@ class ChainTransactionDto {
|
|
23
23
|
static from(tx) {
|
24
24
|
const dto = new ChainTransactionDto();
|
25
25
|
dto.id = tx.id;
|
26
|
-
dto.
|
27
|
-
dto.
|
26
|
+
dto.quoteRequestId = tx.quoteRequestId;
|
27
|
+
dto.quoteResponseId = tx.quoteResponseId;
|
28
28
|
dto.blockNumber = tx.blockNumber;
|
29
29
|
dto.blockHash = tx.blockHash;
|
30
30
|
dto.hash = tx.hash;
|
@@ -50,12 +50,12 @@ __decorate([
|
|
50
50
|
(0, class_validator_1.IsNotEmpty)(),
|
51
51
|
(0, class_validator_1.IsUUID)(),
|
52
52
|
__metadata("design:type", String)
|
53
|
-
], ChainTransactionDto.prototype, "
|
53
|
+
], ChainTransactionDto.prototype, "quoteRequestId", void 0);
|
54
54
|
__decorate([
|
55
55
|
(0, class_validator_1.IsNotEmpty)(),
|
56
56
|
(0, class_validator_1.IsUUID)(),
|
57
57
|
__metadata("design:type", String)
|
58
|
-
], ChainTransactionDto.prototype, "
|
58
|
+
], ChainTransactionDto.prototype, "quoteResponseId", void 0);
|
59
59
|
__decorate([
|
60
60
|
(0, class_validator_1.IsOptional)(),
|
61
61
|
(0, class_validator_1.IsNumber)(),
|
@@ -2,7 +2,6 @@ export * from "./quote_base_intent_request.dto";
|
|
2
2
|
export * from "./quote_bridge_intent_request.dto";
|
3
3
|
export * from "./quote_bridge_intent_response.dto";
|
4
4
|
export * from "./quote_estimate_bridge_intent_request.dto";
|
5
|
-
export * from "./quote_estimate_bridge_intent_response.dto";
|
6
5
|
export * from "./quote_intent_request.dto";
|
7
6
|
export * from "./quote_intent_response.dto";
|
8
7
|
export * from "./quote_request_lifecycle.dto";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,4CAA4C,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AAErC,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAErD,cAAc,aAAa,CAAC"}
|
@@ -18,7 +18,6 @@ __exportStar(require("./quote_base_intent_request.dto"), exports);
|
|
18
18
|
__exportStar(require("./quote_bridge_intent_request.dto"), exports);
|
19
19
|
__exportStar(require("./quote_bridge_intent_response.dto"), exports);
|
20
20
|
__exportStar(require("./quote_estimate_bridge_intent_request.dto"), exports);
|
21
|
-
__exportStar(require("./quote_estimate_bridge_intent_response.dto"), exports);
|
22
21
|
__exportStar(require("./quote_intent_request.dto"), exports);
|
23
22
|
__exportStar(require("./quote_intent_response.dto"), exports);
|
24
23
|
__exportStar(require("./quote_request_lifecycle.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAEhD,oEAAkD;AAClD,qEAAmD;AAEnD,6EAA2D;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAEhD,oEAAkD;AAClD,qEAAmD;AAEnD,6EAA2D;AAE3D,6DAA2C;AAC3C,8DAA4C;AAE5C,gEAA8C;AAC9C,sDAAoC;AAEpC,iEAA+C;AAC/C,uDAAqC;AAErC,uEAAqD;AACrD,wEAAsD;AAEtD,sEAAoD;AACpD,uEAAqD;AAErD,8CAA4B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_base_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,yBAAyB;IACpC;;;OAGG;
|
1
|
+
{"version":3,"file":"quote_base_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,yBAAyB;IACpC;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
@@ -16,8 +16,7 @@ class BaseQuoteIntentRequestDto {
|
|
16
16
|
}
|
17
17
|
exports.BaseQuoteIntentRequestDto = BaseQuoteIntentRequestDto;
|
18
18
|
__decorate([
|
19
|
-
(0, class_validator_1.
|
20
|
-
(0, class_validator_1.IsUUID)(),
|
19
|
+
(0, class_validator_1.IsString)(),
|
21
20
|
__metadata("design:type", String)
|
22
21
|
], BaseQuoteIntentRequestDto.prototype, "plutonId", void 0);
|
23
22
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_base_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_base_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,kDAAmD;AAEnD,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AARC;IADC,IAAA,0BAAQ,GAAE;;2DACO;AAOlB;IADC,IAAA,4BAAU,GAAE;;6DACU"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,qBAAa,4BAA6B,SAAQ,0BAA0B;IAC1E;;;OAGG;
|
1
|
+
{"version":3,"file":"quote_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,qBAAa,4BAA6B,SAAQ,0BAA0B;IAC1E;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,gBAAgB,EAAE,IAAI,CAAC;IAEvB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAC;CACpB"}
|
@@ -17,6 +17,7 @@ class QuoteBridgeIntentResponseDto extends quote_intent_response_dto_1.BaseQuote
|
|
17
17
|
exports.QuoteBridgeIntentResponseDto = QuoteBridgeIntentResponseDto;
|
18
18
|
__decorate([
|
19
19
|
(0, class_validator_1.IsNotEmpty)(),
|
20
|
+
(0, class_validator_1.IsString)(),
|
20
21
|
__metadata("design:type", String)
|
21
22
|
], QuoteBridgeIntentResponseDto.prototype, "amount", void 0);
|
22
23
|
//# sourceMappingURL=quote_bridge_intent_response.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,2EAAyE;AAEzE,MAAa,4BAA6B,SAAQ,sDAA0B;
|
1
|
+
{"version":3,"file":"quote_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,2EAAyE;AAEzE,MAAa,4BAA6B,SAAQ,sDAA0B;CAkB3E;AAlBD,oEAkBC;AAXC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI"}
|
@@ -13,7 +13,7 @@ export declare class QuoteEstimateBridgeIntentRequestDto extends BaseQuoteIntent
|
|
13
13
|
* @example '0xb44146014eD5f7001Ec9b03153950f4129ec7296'
|
14
14
|
* @description address of token contract on source chain, empty if native token
|
15
15
|
*/
|
16
|
-
sourceTokenAddress
|
16
|
+
sourceTokenAddress?: string;
|
17
17
|
/**
|
18
18
|
* @example 1333
|
19
19
|
*/
|
@@ -26,7 +26,7 @@ export declare class QuoteEstimateBridgeIntentRequestDto extends BaseQuoteIntent
|
|
26
26
|
* @example '0xb44146014eD5f7001Ec9b03153950f4129ec7296'
|
27
27
|
* @description address of token contract on destination chain, empty if native token
|
28
28
|
*/
|
29
|
-
destinationTokenAddress
|
29
|
+
destinationTokenAddress?: string;
|
30
30
|
/**
|
31
31
|
* @example '1000'
|
32
32
|
*/
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,qBAAa,mCAAoC,SAAQ,yBAAyB;IAChF;;OAEG;
|
1
|
+
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,qBAAa,mCAAoC,SAAQ,yBAAyB;IAChF;;OAEG;IAGH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAGH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IAEH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IAGH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IAGH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IAEH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
@@ -18,30 +18,45 @@ class QuoteEstimateBridgeIntentRequestDto extends quote_base_intent_request_dto_
|
|
18
18
|
exports.QuoteEstimateBridgeIntentRequestDto = QuoteEstimateBridgeIntentRequestDto;
|
19
19
|
__decorate([
|
20
20
|
(0, class_validator_1.IsNotEmpty)(),
|
21
|
+
(0, class_validator_1.IsNumber)(),
|
21
22
|
__metadata("design:type", Number)
|
22
23
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "sourceChainId", void 0);
|
23
24
|
__decorate([
|
24
25
|
(0, class_validator_1.IsNotEmpty)(),
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
25
27
|
__metadata("design:type", Number)
|
26
28
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "sourceCoinType", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, class_validator_1.IsString)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], QuoteEstimateBridgeIntentRequestDto.prototype, "sourceTokenAddress", void 0);
|
27
33
|
__decorate([
|
28
34
|
(0, class_validator_1.IsNotEmpty)(),
|
35
|
+
(0, class_validator_1.IsNumber)(),
|
29
36
|
__metadata("design:type", Number)
|
30
37
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "destinationChainId", void 0);
|
31
38
|
__decorate([
|
32
39
|
(0, class_validator_1.IsNotEmpty)(),
|
40
|
+
(0, class_validator_1.IsNumber)(),
|
33
41
|
__metadata("design:type", Number)
|
34
42
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "destinationCoinType", void 0);
|
35
43
|
__decorate([
|
36
|
-
(0, class_validator_1.
|
44
|
+
(0, class_validator_1.IsString)(),
|
45
|
+
__metadata("design:type", String)
|
46
|
+
], QuoteEstimateBridgeIntentRequestDto.prototype, "destinationTokenAddress", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
49
|
+
(0, class_validator_1.IsNumber)(),
|
37
50
|
__metadata("design:type", String)
|
38
51
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "amount", void 0);
|
39
52
|
__decorate([
|
40
|
-
(0, class_validator_1.
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
41
55
|
__metadata("design:type", Number)
|
42
56
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "slippage", void 0);
|
43
57
|
__decorate([
|
44
58
|
(0, class_validator_1.IsNotEmpty)(),
|
59
|
+
(0, class_validator_1.IsString)(),
|
45
60
|
__metadata("design:type", String)
|
46
61
|
], QuoteEstimateBridgeIntentRequestDto.prototype, "calcMode", void 0);
|
47
62
|
//# sourceMappingURL=quote_estimate_bridge_intent_request.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AACjF,mFAA4E;AAC5E,kDAAiD;AAEjD,MAAa,mCAAoC,SAAQ,yDAAyB;CAgEjF;AAhED,kFAgEC;AA1DC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACW;AAOtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACY;AAOvB;IADC,IAAA,0BAAQ,GAAE;;+EACiB;AAO5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+EACgB;AAO3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gFACiB;AAO5B;IADC,IAAA,0BAAQ,GAAE;;oFACsB;AAOjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACI;AAOf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACQ"}
|
@@ -4,7 +4,4 @@ export type QuoteIntentRequestType = QuoteBridgeIntentRequestDto | QuoteEstimate
|
|
4
4
|
export type CreateQuoteIntentRequestDto = QuoteIntentRequestType & {
|
5
5
|
quoteRequestId: string;
|
6
6
|
};
|
7
|
-
export type SolverQuoteIntentRequestDto = QuoteIntentRequestType & {
|
8
|
-
id: string;
|
9
|
-
};
|
10
7
|
//# sourceMappingURL=quote_intent_request.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,MAAM,MAAM,sBAAsB,GAC9B,2BAA2B,GAC3B,mCAAmC,CAAC;AAExC,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG;IACjE,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC
|
1
|
+
{"version":3,"file":"quote_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,MAAM,MAAM,sBAAsB,GAC9B,2BAA2B,GAC3B,mCAAmC,CAAC;AAExC,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG;IACjE,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { QuoteBridgeIntentResponseDto } from './quote_bridge_intent_response.dto';
|
2
|
-
import { QuoteEstimateBridgeIntentResponseDto } from './quote_estimate_bridge_intent_response.dto';
|
3
2
|
import { IntentType } from '../../../../../common';
|
4
3
|
import { SelectionStatus } from '../../enums';
|
5
4
|
export declare class BaseQuoteIntentResponseDto {
|
6
|
-
id
|
5
|
+
id?: string;
|
7
6
|
solverId: string;
|
8
7
|
intentType: IntentType;
|
9
|
-
selectionStatus
|
8
|
+
selectionStatus?: SelectionStatus;
|
10
9
|
intentRequestId: string;
|
11
10
|
}
|
12
|
-
export type QuoteIntentResponseDto = QuoteBridgeIntentResponseDto
|
11
|
+
export type QuoteIntentResponseDto = QuoteBridgeIntentResponseDto;
|
13
12
|
export type CreateQuoteIntentResponseDto = QuoteIntentResponseDto & {
|
14
13
|
quoteResponseId: string;
|
15
14
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"quote_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,0BAA0B;IAIrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAMZ,QAAQ,EAAE,MAAM,CAAC;IAKjB,UAAU,EAAE,UAAU,CAAC;IAMvB,eAAe,CAAC,EAAE,eAAe,CAAgC;IAMjE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,sBAAsB,GAC9B,4BAA4B,CAAC;AAEjC,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,GAAG;IAClE,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
@@ -14,6 +14,9 @@ const class_validator_1 = require("class-validator");
|
|
14
14
|
const common_1 = require("../../../../../common");
|
15
15
|
const enums_1 = require("../../enums");
|
16
16
|
class BaseQuoteIntentResponseDto {
|
17
|
+
constructor() {
|
18
|
+
this.selectionStatus = enums_1.SelectionStatus.NOT_SELECTED;
|
19
|
+
}
|
17
20
|
}
|
18
21
|
exports.BaseQuoteIntentResponseDto = BaseQuoteIntentResponseDto;
|
19
22
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;
|
1
|
+
{"version":3,"file":"quote_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,kDAAmD;AACnD,uCAA8C;AAE9C,MAAa,0BAA0B;IAAvC;QAqBE,oBAAe,GAAqB,uBAAe,CAAC,YAAY,CAAC;IAOnE,CAAC;CAAA;AA5BD,gEA4BC;AAxBC;IAHC,IAAA,wBAAM,GAAE;IACT,kDAAkD;IAClD,kDAAkD;;;sDACtC;AAMZ;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACT,uEAAuE;IACvE,kDAAkD;;;4DACjC;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACb,yBAAyB;IACzB,6BAA6B;;;8DACN;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACX,0EAA0E;IAC1E,aAAa;;;mEACoD;AAMjE;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACT,gEAAgE;IAChE,kDAAkD;;;mEAC1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"quote_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,eAAe;IAE1B;;;OAGG;IACH,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C"}
|
package/package.json
CHANGED
@@ -1,22 +1,25 @@
|
|
1
|
-
{
|
2
|
-
"name": "@plutonlabs/sdk",
|
3
|
-
"version": "0.0.
|
4
|
-
"main": "dist/index.js",
|
5
|
-
"types": "dist/index.d.ts",
|
6
|
-
"files": [
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
"
|
21
|
-
|
22
|
-
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.5-beta",
|
4
|
+
"main": "dist/index.js",
|
5
|
+
"types": "dist/index.d.ts",
|
6
|
+
"files": [
|
7
|
+
"dist"
|
8
|
+
],
|
9
|
+
"scripts": {
|
10
|
+
"build": "tsc"
|
11
|
+
},
|
12
|
+
"keywords": [],
|
13
|
+
"author": "",
|
14
|
+
"license": "ISC",
|
15
|
+
"description": "",
|
16
|
+
"devDependencies": {
|
17
|
+
"typescript": "^5.7.3"
|
18
|
+
},
|
19
|
+
"dependencies": {
|
20
|
+
"@plutonlabs/sdk": "^0.0.3-beta",
|
21
|
+
"bignumber.js": "^9.1.2",
|
22
|
+
"class-transformer": "^0.5.1",
|
23
|
+
"class-validator": "^0.14.1"
|
24
|
+
}
|
25
|
+
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { BaseQuoteIntentResponseDto } from './quote_intent_response.dto';
|
2
|
-
export declare class QuoteEstimateBridgeIntentResponseDto extends BaseQuoteIntentResponseDto {
|
3
|
-
/**
|
4
|
-
* @example '1000'
|
5
|
-
*/
|
6
|
-
amount: string;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=quote_estimate_bridge_intent_response.dto.d.ts.map
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,qBAAa,oCAAqC,SAAQ,0BAA0B;IAClF;;OAEG;IAEH,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.QuoteEstimateBridgeIntentResponseDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const quote_intent_response_dto_1 = require("./quote_intent_response.dto");
|
15
|
-
class QuoteEstimateBridgeIntentResponseDto extends quote_intent_response_dto_1.BaseQuoteIntentResponseDto {
|
16
|
-
}
|
17
|
-
exports.QuoteEstimateBridgeIntentResponseDto = QuoteEstimateBridgeIntentResponseDto;
|
18
|
-
__decorate([
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
20
|
-
__metadata("design:type", String)
|
21
|
-
], QuoteEstimateBridgeIntentResponseDto.prototype, "amount", void 0);
|
22
|
-
//# sourceMappingURL=quote_estimate_bridge_intent_response.dto.js.map
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,2EAAyE;AAEzE,MAAa,oCAAqC,SAAQ,sDAA0B;CAMnF;AAND,oFAMC;AADC;IADC,IAAA,4BAAU,GAAE;;oEACE"}
|