@explorins/pers-shared 2.1.24 → 2.1.25
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/dist/cjs/shared-lib/dto/campaign/campaignClaim.request.dto.d.ts +3 -3
- package/dist/cjs/shared-lib/dto/campaign/campaignClaim.request.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/campaign/campaignClaim.request.dto.js +21 -21
- package/dist/cjs/shared-lib/dto/campaign/campaignClaim.request.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts +1 -1
- package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.js +9 -9
- package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/index.d.ts +1 -0
- package/dist/cjs/shared-lib/dto/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/index.js +1 -0
- package/dist/cjs/shared-lib/dto/index.js.map +1 -1
- package/dist/cjs/shared-lib/dto/item-supply.dto.d.ts +5 -0
- package/dist/cjs/shared-lib/dto/item-supply.dto.d.ts.map +1 -0
- package/dist/cjs/shared-lib/dto/item-supply.dto.js +27 -0
- package/dist/cjs/shared-lib/dto/item-supply.dto.js.map +1 -0
- package/dist/cjs/shared-lib/dto/redemption/index.d.ts +1 -0
- package/dist/cjs/shared-lib/dto/redemption/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/index.js +1 -0
- package/dist/cjs/shared-lib/dto/redemption/index.js.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.d.ts +2 -2
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.js +4 -12
- package/dist/cjs/shared-lib/dto/redemption/redemption.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts +19 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts.map +1 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.js +96 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.js.map +1 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.request.dto.d.ts +1 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.request.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.request.dto.js +26 -0
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.request.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction-trigger-process.dto.d.ts +2 -2
- package/dist/cjs/shared-lib/dto/transaction/transaction-trigger-process.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction-trigger-process.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.d.ts +2 -2
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.js.map +1 -1
- package/dist/cjs/shared-lib/types/account-selector.type.d.ts +1 -2
- package/dist/cjs/shared-lib/types/account-selector.type.d.ts.map +1 -1
- package/dist/cjs/shared-lib/value-objects/account-selector.vo.js +4 -4
- package/dist/cjs/shared-lib/value-objects/account-selector.vo.js.map +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.d.ts +3 -3
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.js +18 -18
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js +7 -7
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/index.d.ts +1 -0
- package/dist/esm/shared-lib/dto/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/index.js +1 -0
- package/dist/esm/shared-lib/dto/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/item-supply.dto.d.ts +5 -0
- package/dist/esm/shared-lib/dto/item-supply.dto.d.ts.map +1 -0
- package/dist/esm/shared-lib/dto/item-supply.dto.js +18 -0
- package/dist/esm/shared-lib/dto/item-supply.dto.js.map +1 -0
- package/dist/esm/shared-lib/dto/redemption/index.d.ts +1 -0
- package/dist/esm/shared-lib/dto/redemption/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/index.js +1 -0
- package/dist/esm/shared-lib/dto/redemption/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.d.ts +2 -2
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js +4 -11
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts +19 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts.map +1 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js +77 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js.map +1 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.request.dto.d.ts +1 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.request.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.request.dto.js +21 -0
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.request.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-trigger-process.dto.d.ts +2 -2
- package/dist/esm/shared-lib/dto/transaction/transaction-trigger-process.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-trigger-process.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.d.ts +2 -2
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.js.map +1 -1
- package/dist/esm/shared-lib/types/account-selector.type.d.ts +1 -2
- package/dist/esm/shared-lib/types/account-selector.type.d.ts.map +1 -1
- package/dist/esm/shared-lib/value-objects/account-selector.vo.js +4 -4
- package/dist/esm/shared-lib/value-objects/account-selector.vo.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionUserRedeem.dto.d.ts +0 -12
- package/dist/cjs/shared-lib/dto/redemption/redemptionUserRedeem.dto.d.ts.map +0 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionUserRedeem.dto.js +0 -59
- package/dist/cjs/shared-lib/dto/redemption/redemptionUserRedeem.dto.js.map +0 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionUserRedeem.dto.d.ts +0 -12
- package/dist/esm/shared-lib/dto/redemption/redemptionUserRedeem.dto.d.ts.map +0 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionUserRedeem.dto.js +0 -45
- package/dist/esm/shared-lib/dto/redemption/redemptionUserRedeem.dto.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-trigger-process.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-trigger-process.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transaction-trigger-process.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-trigger-process.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AAGjG,qBAAa,4BAA4B;IAKvC,IAAI,EAAE,6BAA6B,CAA0C;IAO7E,OAAO,EAAE,GAAG,GAAG,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAAQ;CAC/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-trigger-process.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-trigger-process.dto.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,4BAA4B;IAKvC,IAAI,GAAkC,6BAA6B,CAAC,QAAQ,CAAC;IAO7E,OAAO,
|
|
1
|
+
{"version":3,"file":"transaction-trigger-process.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-trigger-process.dto.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,4BAA4B;IAKvC,IAAI,GAAkC,6BAA6B,CAAC,QAAQ,CAAC;IAO7E,OAAO,GAAkD,IAAI,CAAC;CAC/D;AARC;IAJC,WAAW,CAAC;QACT,IAAI,EAAE,6BAA6B;QACnC,WAAW,EAAE,gDAAgD;KAChE,CAAC;0DAC2E;AAO7E;IALC,WAAW,CAAC;QACX,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,QAAQ,EAAE,oDAAoD;QACpE,QAAQ,EAAE,IAAI;KACf,CAAC;6DAC4D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Web3TransactionType } from "../../enum/transaction-type.enum";
|
|
2
2
|
import { TokenSelectorDTO } from "../token/token-selector.dto";
|
|
3
3
|
import { AccountSelectorDTO } from "../account-selector.dto";
|
|
4
|
-
import { TransactionFormat } from "../../types/transaction-format";
|
|
4
|
+
import type { TransactionFormat } from "../../types/transaction-format";
|
|
5
5
|
import { TransactionDTO } from "./transaction.dto";
|
|
6
|
-
import { WalletSigningScenarioType } from "../../interfaces/wallet-signing-scenario.interface";
|
|
6
|
+
import type { WalletSigningScenarioType } from "../../interfaces/wallet-signing-scenario.interface";
|
|
7
7
|
import { TransactionStatus } from "../../enum/transaction-status.enum";
|
|
8
8
|
import { CounterfactualWalletTransactionResponse } from "../../interfaces";
|
|
9
9
|
import type { LegacyTransaction } from "@explorins/web3-ts/types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"transaction.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAEpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,uCAAuC,EAAE,MAAM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;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"transaction.request.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAEtG,sEAAsE;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,8EAA8E;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,MAAM,OAAO,+BAA+B;IAIxC,aAAa,GAAW,EAAE,CAAC;IAQ3B,IAAI,GAAsB,mBAAmB,CAAC,MAAM,CAAC;IAOrD,SAAS,CAAU;IAOnB,iBAAiB,CAAU;CAC5B;AAvBC;IAHC,WAAW,CAAC;QACT,WAAW,EAAE,4DAA4D;KAC5E,CAAC;sEACyB;AAQ3B;IANC,WAAW,CAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC;QACxC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,mBAAmB,CA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Q9B,mBAAmB,CAAuB;IAS1C,MAAM,CAAsB;IAS5B,SAAS,CAAsB;IAS/B,KAAK,CAAoB;IASzB,MAAM,CAAU;CACnB;AArCG;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,mBAAmB,CAAC,QAAQ;KACxC,CAAC;IACD,UAAU,EAAE;IACZ,MAAM,CAAC,mBAAmB,CAAC;kEACc;AAS1C;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,yLAAyL;QACtM,IAAI,EAAE,kBAAkB;KAC3B,CAAC;IACD,UAAU,EAAE;IACZ,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;qDACH;AAS5B;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,0DAA0D;QACvE,IAAI,EAAE,kBAAkB;KAC3B,CAAC;IACD,UAAU,EAAE;IACZ,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;wDACA;AAS/B;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,6GAA6G;QAC1H,IAAI,EAAE,gBAAgB;KACzB,CAAC;IACD,UAAU,EAAE;IACZ,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;oDACJ;AASzB;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,GAAG;QACZ,IAAI,EAAE,MAAM;KACf,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;qDACK"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AccountOwnerType } from "../../shared-lib/enum/owner-type.enum";
|
|
2
|
-
import { Address } from "../../shared-lib/value-objects/address.value-object";
|
|
3
2
|
export type AccountSelector = {
|
|
4
3
|
/** Type of the actor entity */
|
|
5
4
|
accountType: AccountOwnerType.EXTERNAL;
|
|
6
5
|
/** Blockchain address for external actors */
|
|
7
|
-
accountAddress:
|
|
6
|
+
accountAddress: string;
|
|
8
7
|
} | {
|
|
9
8
|
/** Type of the actor entity */
|
|
10
9
|
accountType: AccountOwnerType.USER | AccountOwnerType.BUSINESS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-selector.type.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/account-selector.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"account-selector.type.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types/account-selector.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAGzE,MAAM,MAAM,eAAe,GACvB;IACE,+BAA+B;IAC/B,WAAW,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IACvC,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;CACxB,GACD;IACE,+BAA+B;IAC/B,WAAW,EAAE,gBAAgB,CAAC,IAAI,GAAG,gBAAgB,CAAC,QAAQ,CAAC;IAC/D,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE,+BAA+B;IAC/B,WAAW,EAAE,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC;CAEhE,CAAC"}
|
|
@@ -29,7 +29,7 @@ export class AccountSelectorVo {
|
|
|
29
29
|
}
|
|
30
30
|
accountSelectorData = {
|
|
31
31
|
accountType: selector.accountType,
|
|
32
|
-
accountAddress:
|
|
32
|
+
accountAddress: selector.accountAddress
|
|
33
33
|
};
|
|
34
34
|
break;
|
|
35
35
|
case AccountOwnerType.TENANT:
|
|
@@ -49,7 +49,7 @@ export class AccountSelectorVo {
|
|
|
49
49
|
static createExternal(address) {
|
|
50
50
|
return new AccountSelectorVo({
|
|
51
51
|
accountType: AccountOwnerType.EXTERNAL,
|
|
52
|
-
accountAddress: address,
|
|
52
|
+
accountAddress: address.getValue(),
|
|
53
53
|
// accountId: address.getValue()
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -92,7 +92,7 @@ export class AccountSelectorVo {
|
|
|
92
92
|
constructor(data) {
|
|
93
93
|
this.accountType = data.accountType;
|
|
94
94
|
this.accountId = 'accountId' in data ? data.accountId : undefined;
|
|
95
|
-
this.accountAddress = 'accountAddress' in data ? data.accountAddress : undefined;
|
|
95
|
+
this.accountAddress = 'accountAddress' in data ? new Address(data.accountAddress) : undefined;
|
|
96
96
|
this.validateBusinessRules();
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
@@ -140,7 +140,7 @@ export class AccountSelectorVo {
|
|
|
140
140
|
}
|
|
141
141
|
return {
|
|
142
142
|
accountType: this.accountType,
|
|
143
|
-
accountAddress: this.accountAddress
|
|
143
|
+
accountAddress: this.accountAddress.getValue()
|
|
144
144
|
};
|
|
145
145
|
case AccountOwnerType.TENANT:
|
|
146
146
|
case AccountOwnerType.SYSTEM:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-selector.vo.js","sourceRoot":"","sources":["../../../../src/shared-lib/value-objects/account-selector.vo.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAIjD,MAAM,OAAO,iBAAiB;IAc5B,MAAM,CAAC,OAAO,CAAC,QAA4B;QACzC,8DAA8D;QAC9D,IAAI,mBAAoC,CAAC;QAEzC,QAAQ,QAAQ,CAAC,WAAW,EAAE,CAAC;YAC7B,KAAK,gBAAgB,CAAC,IAAI,CAAC;YAC3B,KAAK,gBAAgB,CA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 -1,12 +0,0 @@
|
|
|
1
|
-
import { TransactionDTO } from "../transaction/transaction.dto";
|
|
2
|
-
export declare class RedemptionUserRedeemDTO {
|
|
3
|
-
id: string;
|
|
4
|
-
userId: string;
|
|
5
|
-
redemptionId: string;
|
|
6
|
-
transactionIds: string[];
|
|
7
|
-
userCountryCode: string | null;
|
|
8
|
-
}
|
|
9
|
-
export declare class RedemptionUserRedeemDetailedDTO extends RedemptionUserRedeemDTO {
|
|
10
|
-
transactions: TransactionDTO[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=redemptionUserRedeem.dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionUserRedeem.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionUserRedeem.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGhE,qBAAa,uBAAuB;IAKhC,EAAE,EAAE,MAAM,CAAM;IAKhB,MAAM,EAAE,MAAM,CAAM;IAKpB,YAAY,EAAE,MAAM,CAAK;IAKzB,cAAc,EAAE,MAAM,EAAE,CAAM;IAO9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;CACzC;AAED,qBAAa,+BAAgC,SAAQ,uBAAuB;IAOxE,YAAY,EAAE,cAAc,EAAE,CAAM;CACvC"}
|
|
@@ -1,59 +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.RedemptionUserRedeemDetailedDTO = exports.RedemptionUserRedeemDTO = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const transaction_dto_1 = require("../transaction/transaction.dto");
|
|
15
|
-
class RedemptionUserRedeemDTO {
|
|
16
|
-
id = '';
|
|
17
|
-
userId = '';
|
|
18
|
-
redemptionId = '';
|
|
19
|
-
transactionIds = [];
|
|
20
|
-
userCountryCode = null;
|
|
21
|
-
}
|
|
22
|
-
exports.RedemptionUserRedeemDTO = RedemptionUserRedeemDTO;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ description: 'The id of the redemption user redeem' }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], RedemptionUserRedeemDTO.prototype, "id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, swagger_1.ApiProperty)({ description: 'The user id that is claiming the redemption' }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], RedemptionUserRedeemDTO.prototype, "userId", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, swagger_1.ApiProperty)({ description: 'The redemption that the user is redeeming' }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], RedemptionUserRedeemDTO.prototype, "redemptionId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)({ description: 'The transaction ids that resulted from the user redeeming the redemption' }),
|
|
37
|
-
__metadata("design:type", Array)
|
|
38
|
-
], RedemptionUserRedeemDTO.prototype, "transactionIds", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({
|
|
41
|
-
description: 'The country code of the user redeeming the redemption',
|
|
42
|
-
type: String,
|
|
43
|
-
nullable: true
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], RedemptionUserRedeemDTO.prototype, "userCountryCode", void 0);
|
|
47
|
-
class RedemptionUserRedeemDetailedDTO extends RedemptionUserRedeemDTO {
|
|
48
|
-
transactions = [];
|
|
49
|
-
}
|
|
50
|
-
exports.RedemptionUserRedeemDetailedDTO = RedemptionUserRedeemDetailedDTO;
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, swagger_1.ApiProperty)({
|
|
53
|
-
description: 'The transactions that resulted from the user redeeming the redemption',
|
|
54
|
-
type: () => [transaction_dto_1.TransactionDTO], // Use lazy resolver to prevent circular dependency
|
|
55
|
-
isArray: true
|
|
56
|
-
}),
|
|
57
|
-
__metadata("design:type", Array)
|
|
58
|
-
], RedemptionUserRedeemDetailedDTO.prototype, "transactions", void 0);
|
|
59
|
-
//# sourceMappingURL=redemptionUserRedeem.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionUserRedeem.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionUserRedeem.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,oEAAgE;AAGhE,MAAa,uBAAuB;IAKhC,EAAE,GAAW,EAAE,CAAC;IAKhB,MAAM,GAAW,EAAE,CAAC;IAKpB,YAAY,GAAW,EAAE,CAAA;IAKzB,cAAc,GAAa,EAAE,CAAC;IAO9B,eAAe,GAAkB,IAAI,CAAC;CACzC;AA5BD,0DA4BC;AAvBG;IAHC,IAAA,qBAAW,EACR,EAAC,WAAW,EAAE,sCAAsC,EAAC,CACxD;;mDACe;AAKhB;IAHC,IAAA,qBAAW,EACR,EAAC,WAAW,EAAE,6CAA6C,EAAC,CAC/D;;uDACmB;AAKpB;IAHC,IAAA,qBAAW,EACR,EAAC,WAAW,EAAE,2CAA2C,EAAC,CAC7D;;6DACwB;AAKzB;IAHC,IAAA,qBAAW,EACR,EAAC,WAAW,EAAE,0EAA0E,EAAC,CAC5F;;+DAC6B;AAO9B;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACjB,CAAC;;gEACoC;AAG1C,MAAa,+BAAgC,SAAQ,uBAAuB;IAOxE,YAAY,GAAqB,EAAE,CAAC;CACvC;AARD,0EAQC;AADG;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uEAAuE;QACpF,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gCAAc,CAAC,EAAE,mDAAmD;QACjF,OAAO,EAAE,IAAI;KAChB,CAAC;;qEACkC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TransactionDTO } from "../transaction/transaction.dto";
|
|
2
|
-
export declare class RedemptionUserRedeemDTO {
|
|
3
|
-
id: string;
|
|
4
|
-
userId: string;
|
|
5
|
-
redemptionId: string;
|
|
6
|
-
transactionIds: string[];
|
|
7
|
-
userCountryCode: string | null;
|
|
8
|
-
}
|
|
9
|
-
export declare class RedemptionUserRedeemDetailedDTO extends RedemptionUserRedeemDTO {
|
|
10
|
-
transactions: TransactionDTO[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=redemptionUserRedeem.dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionUserRedeem.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionUserRedeem.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGhE,qBAAa,uBAAuB;IAKhC,EAAE,EAAE,MAAM,CAAM;IAKhB,MAAM,EAAE,MAAM,CAAM;IAKpB,YAAY,EAAE,MAAM,CAAK;IAKzB,cAAc,EAAE,MAAM,EAAE,CAAM;IAO9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;CACzC;AAED,qBAAa,+BAAgC,SAAQ,uBAAuB;IAOxE,YAAY,EAAE,cAAc,EAAE,CAAM;CACvC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { ApiProperty } from "@nestjs/swagger";
|
|
8
|
-
import { TransactionDTO } from "../transaction/transaction.dto";
|
|
9
|
-
export class RedemptionUserRedeemDTO {
|
|
10
|
-
id = '';
|
|
11
|
-
userId = '';
|
|
12
|
-
redemptionId = '';
|
|
13
|
-
transactionIds = [];
|
|
14
|
-
userCountryCode = null;
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
ApiProperty({ description: 'The id of the redemption user redeem' })
|
|
18
|
-
], RedemptionUserRedeemDTO.prototype, "id", void 0);
|
|
19
|
-
__decorate([
|
|
20
|
-
ApiProperty({ description: 'The user id that is claiming the redemption' })
|
|
21
|
-
], RedemptionUserRedeemDTO.prototype, "userId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
ApiProperty({ description: 'The redemption that the user is redeeming' })
|
|
24
|
-
], RedemptionUserRedeemDTO.prototype, "redemptionId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
ApiProperty({ description: 'The transaction ids that resulted from the user redeeming the redemption' })
|
|
27
|
-
], RedemptionUserRedeemDTO.prototype, "transactionIds", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
ApiProperty({
|
|
30
|
-
description: 'The country code of the user redeeming the redemption',
|
|
31
|
-
type: String,
|
|
32
|
-
nullable: true
|
|
33
|
-
})
|
|
34
|
-
], RedemptionUserRedeemDTO.prototype, "userCountryCode", void 0);
|
|
35
|
-
export class RedemptionUserRedeemDetailedDTO extends RedemptionUserRedeemDTO {
|
|
36
|
-
transactions = [];
|
|
37
|
-
}
|
|
38
|
-
__decorate([
|
|
39
|
-
ApiProperty({
|
|
40
|
-
description: 'The transactions that resulted from the user redeeming the redemption',
|
|
41
|
-
type: () => [TransactionDTO], // Use lazy resolver to prevent circular dependency
|
|
42
|
-
isArray: true
|
|
43
|
-
})
|
|
44
|
-
], RedemptionUserRedeemDetailedDTO.prototype, "transactions", void 0);
|
|
45
|
-
//# sourceMappingURL=redemptionUserRedeem.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionUserRedeem.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionUserRedeem.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGhE,MAAM,OAAO,uBAAuB;IAKhC,EAAE,GAAW,EAAE,CAAC;IAKhB,MAAM,GAAW,EAAE,CAAC;IAKpB,YAAY,GAAW,EAAE,CAAA;IAKzB,cAAc,GAAa,EAAE,CAAC;IAO9B,eAAe,GAAkB,IAAI,CAAC;CACzC;AAvBG;IAHC,WAAW,CACR,EAAC,WAAW,EAAE,sCAAsC,EAAC,CACxD;mDACe;AAKhB;IAHC,WAAW,CACR,EAAC,WAAW,EAAE,6CAA6C,EAAC,CAC/D;uDACmB;AAKpB;IAHC,WAAW,CACR,EAAC,WAAW,EAAE,2CAA2C,EAAC,CAC7D;6DACwB;AAKzB;IAHC,WAAW,CACR,EAAC,WAAW,EAAE,0EAA0E,EAAC,CAC5F;+DAC6B;AAO9B;IALC,WAAW,CAAC;QACT,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACjB,CAAC;gEACoC;AAG1C,MAAM,OAAO,+BAAgC,SAAQ,uBAAuB;IAOxE,YAAY,GAAqB,EAAE,CAAC;CACvC;AADG;IALC,WAAW,CAAC;QACT,WAAW,EAAE,uEAAuE;QACpF,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,mDAAmD;QACjF,OAAO,EAAE,IAAI;KAChB,CAAC;qEACkC"}
|