algosdk 1.15.0-beta.1 → 1.17.0

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.
Files changed (112) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/src/client/kmd.js +1 -1
  5. package/dist/cjs/src/client/kmd.js.map +1 -1
  6. package/dist/cjs/src/client/v2/algod/models/types.js +32 -5
  7. package/dist/cjs/src/client/v2/algod/models/types.js.map +1 -1
  8. package/dist/cjs/src/client/v2/indexer/indexer.js +8 -8
  9. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js +29 -4
  10. package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
  11. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js +29 -3
  12. package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js.map +1 -1
  13. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js +76 -3
  14. package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  15. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js +30 -4
  16. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
  17. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js +30 -3
  18. package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
  19. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js +30 -25
  20. package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  21. package/dist/cjs/src/client/v2/indexer/lookupApplicationLogs.js +112 -6
  22. package/dist/cjs/src/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
  23. package/dist/cjs/src/client/v2/indexer/lookupApplications.js +40 -1
  24. package/dist/cjs/src/client/v2/indexer/lookupApplications.js.map +1 -1
  25. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js +29 -6
  26. package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  27. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js +2 -0
  28. package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  29. package/dist/cjs/src/client/v2/indexer/lookupAssetTransactions.js +298 -18
  30. package/dist/cjs/src/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  31. package/dist/cjs/src/client/v2/indexer/lookupBlock.js +16 -0
  32. package/dist/cjs/src/client/v2/indexer/lookupBlock.js.map +1 -1
  33. package/dist/cjs/src/client/v2/indexer/lookupTransactionByID.js +16 -0
  34. package/dist/cjs/src/client/v2/indexer/lookupTransactionByID.js.map +1 -1
  35. package/dist/cjs/src/client/v2/indexer/makeHealthCheck.js +15 -0
  36. package/dist/cjs/src/client/v2/indexer/makeHealthCheck.js.map +1 -1
  37. package/dist/cjs/src/client/v2/indexer/searchAccounts.js +210 -10
  38. package/dist/cjs/src/client/v2/indexer/searchAccounts.js.map +1 -1
  39. package/dist/cjs/src/client/v2/indexer/searchForApplications.js +103 -7
  40. package/dist/cjs/src/client/v2/indexer/searchForApplications.js.map +1 -1
  41. package/dist/cjs/src/client/v2/indexer/searchForAssets.js +132 -7
  42. package/dist/cjs/src/client/v2/indexer/searchForAssets.js.map +1 -1
  43. package/dist/cjs/src/client/v2/indexer/searchForTransactions.js +328 -19
  44. package/dist/cjs/src/client/v2/indexer/searchForTransactions.js.map +1 -1
  45. package/dist/cjs/src/dryrun.js +199 -2
  46. package/dist/cjs/src/dryrun.js.map +1 -1
  47. package/dist/esm/src/client/kmd.js +1 -1
  48. package/dist/esm/src/client/kmd.js.map +1 -1
  49. package/dist/esm/src/client/v2/algod/models/types.js +30 -4
  50. package/dist/esm/src/client/v2/algod/models/types.js.map +1 -1
  51. package/dist/esm/src/client/v2/indexer/indexer.js +8 -8
  52. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js +29 -4
  53. package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
  54. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js +29 -3
  55. package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js.map +1 -1
  56. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js +76 -3
  57. package/dist/esm/src/client/v2/indexer/lookupAccountByID.js.map +1 -1
  58. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js +30 -4
  59. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
  60. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js +30 -3
  61. package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
  62. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js +30 -25
  63. package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
  64. package/dist/esm/src/client/v2/indexer/lookupApplicationLogs.js +112 -6
  65. package/dist/esm/src/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
  66. package/dist/esm/src/client/v2/indexer/lookupApplications.js +40 -1
  67. package/dist/esm/src/client/v2/indexer/lookupApplications.js.map +1 -1
  68. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js +29 -6
  69. package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +1 -1
  70. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js +2 -0
  71. package/dist/esm/src/client/v2/indexer/lookupAssetByID.js.map +1 -1
  72. package/dist/esm/src/client/v2/indexer/lookupAssetTransactions.js +298 -18
  73. package/dist/esm/src/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
  74. package/dist/esm/src/client/v2/indexer/lookupBlock.js +16 -0
  75. package/dist/esm/src/client/v2/indexer/lookupBlock.js.map +1 -1
  76. package/dist/esm/src/client/v2/indexer/lookupTransactionByID.js +16 -0
  77. package/dist/esm/src/client/v2/indexer/lookupTransactionByID.js.map +1 -1
  78. package/dist/esm/src/client/v2/indexer/makeHealthCheck.js +15 -0
  79. package/dist/esm/src/client/v2/indexer/makeHealthCheck.js.map +1 -1
  80. package/dist/esm/src/client/v2/indexer/searchAccounts.js +210 -10
  81. package/dist/esm/src/client/v2/indexer/searchAccounts.js.map +1 -1
  82. package/dist/esm/src/client/v2/indexer/searchForApplications.js +103 -7
  83. package/dist/esm/src/client/v2/indexer/searchForApplications.js.map +1 -1
  84. package/dist/esm/src/client/v2/indexer/searchForAssets.js +132 -7
  85. package/dist/esm/src/client/v2/indexer/searchForAssets.js.map +1 -1
  86. package/dist/esm/src/client/v2/indexer/searchForTransactions.js +328 -19
  87. package/dist/esm/src/client/v2/indexer/searchForTransactions.js.map +1 -1
  88. package/dist/esm/src/dryrun.js +197 -1
  89. package/dist/esm/src/dryrun.js.map +1 -1
  90. package/dist/types/src/client/kmd.d.ts +4 -4
  91. package/dist/types/src/client/v2/algod/models/types.d.ts +39 -6
  92. package/dist/types/src/client/v2/indexer/indexer.d.ts +8 -8
  93. package/dist/types/src/client/v2/indexer/lookupAccountAppLocalStates.d.ts +29 -4
  94. package/dist/types/src/client/v2/indexer/lookupAccountAssets.d.ts +29 -3
  95. package/dist/types/src/client/v2/indexer/lookupAccountByID.d.ts +76 -0
  96. package/dist/types/src/client/v2/indexer/lookupAccountCreatedApplications.d.ts +30 -4
  97. package/dist/types/src/client/v2/indexer/lookupAccountCreatedAssets.d.ts +30 -3
  98. package/dist/types/src/client/v2/indexer/lookupAccountTransactions.d.ts +30 -25
  99. package/dist/types/src/client/v2/indexer/lookupApplicationLogs.d.ts +112 -6
  100. package/dist/types/src/client/v2/indexer/lookupApplications.d.ts +40 -0
  101. package/dist/types/src/client/v2/indexer/lookupAssetBalances.d.ts +29 -6
  102. package/dist/types/src/client/v2/indexer/lookupAssetByID.d.ts +2 -0
  103. package/dist/types/src/client/v2/indexer/lookupAssetTransactions.d.ts +298 -1
  104. package/dist/types/src/client/v2/indexer/lookupBlock.d.ts +16 -0
  105. package/dist/types/src/client/v2/indexer/lookupTransactionByID.d.ts +16 -0
  106. package/dist/types/src/client/v2/indexer/makeHealthCheck.d.ts +15 -0
  107. package/dist/types/src/client/v2/indexer/searchAccounts.d.ts +210 -0
  108. package/dist/types/src/client/v2/indexer/searchForApplications.d.ts +102 -1
  109. package/dist/types/src/client/v2/indexer/searchForAssets.d.ts +132 -0
  110. package/dist/types/src/client/v2/indexer/searchForTransactions.d.ts +328 -1
  111. package/dist/types/src/dryrun.d.ts +81 -1
  112. package/package.json +4 -3
@@ -5,11 +5,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsonrequest_1 = __importDefault(require("../jsonrequest"));
7
7
  class LookupAccountCreatedApplications extends jsonrequest_1.default {
8
+ /**
9
+ * Returns application information created by the given account.
10
+ *
11
+ * #### Example
12
+ * ```typescript
13
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
14
+ * const accountCreatedApps = await indexerClient.lookupAccountCreatedApplications(address).do();
15
+ * ```
16
+ *
17
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-applications)
18
+ * @param account - The address of the account to look up.
19
+ * @category GET
20
+ */
8
21
  constructor(c, intDecoding, account) {
9
22
  super(c, intDecoding);
10
23
  this.account = account;
11
24
  this.account = account;
12
25
  }
26
+ /**
27
+ * @returns `/v2/accounts/${account}/created-applications`
28
+ */
13
29
  path() {
14
30
  return `/v2/accounts/${this.account}/created-applications`;
15
31
  }
@@ -27,6 +43,7 @@ class LookupAccountCreatedApplications extends jsonrequest_1.default {
27
43
  * ```
28
44
  *
29
45
  * @param limit - maximum number of results to return.
46
+ * @category query
30
47
  */
31
48
  limit(limit) {
32
49
  this.query.limit = limit;
@@ -45,6 +62,7 @@ class LookupAccountCreatedApplications extends jsonrequest_1.default {
45
62
  * .do();
46
63
  * ```
47
64
  * @param round
65
+ * @category query
48
66
  */
49
67
  round(round) {
50
68
  this.query.round = round;
@@ -57,14 +75,20 @@ class LookupAccountCreatedApplications extends jsonrequest_1.default {
57
75
  * ```typescript
58
76
  * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
59
77
  * const maxResults = 20;
60
- * const nextToken = "APA6C7C3NCANRPIBUWQOF7WSKLJMK6RPQUVFLLDV4U5WCQE4DEF26D4E3E";
61
- * const accountAssets = await indexerClient
78
+ *
79
+ * const accountAssetsPage1 = await indexerClient
80
+ * .lookupAccountCreatedApplications(address)
81
+ * .limit(maxResults)
82
+ * .do();
83
+ *
84
+ * const accountAssetsPage2 = await indexerClient
62
85
  * .lookupAccountCreatedApplications(address)
63
86
  * .limit(maxResults)
64
- * .next(nextToken)
87
+ * .next(accountAssetsPage1["next-token"])
65
88
  * .do();
66
89
  * ```
67
90
  * @param nextToken - provided by the previous results.
91
+ * @category query
68
92
  */
69
93
  nextToken(nextToken) {
70
94
  this.query.next = nextToken;
@@ -82,13 +106,14 @@ class LookupAccountCreatedApplications extends jsonrequest_1.default {
82
106
  * .do();
83
107
  * ```
84
108
  * @param value
109
+ * @category query
85
110
  */
86
111
  includeAll(value = true) {
87
112
  this.query['include-all'] = value;
88
113
  return this;
89
114
  }
90
115
  /**
91
- * Specify an applicationID to search for
116
+ * Specify an applicationID to search for.
92
117
  *
93
118
  * #### Example
94
119
  * ```typescript
@@ -100,6 +125,7 @@ class LookupAccountCreatedApplications extends jsonrequest_1.default {
100
125
  * .do();
101
126
  * ```
102
127
  * @param index - the applicationID
128
+ * @category query
103
129
  */
104
130
  applicationID(index) {
105
131
  this.query['application-id'] = index;
@@ -1 +1 @@
1
- {"version":3,"file":"lookupAccountCreatedApplications.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupAccountCreatedApplications.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,gCAAiC,SAAQ,qBAAW;IACvE,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAFd,YAAO,GAAP,OAAO,CAAQ;QAGvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,IAAI;QACF,OAAO,gBAAgB,IAAI,CAAC,OAAO,uBAAuB,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,KAAa;QACzB,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA9GD,mDA8GC"}
1
+ {"version":3,"file":"lookupAccountCreatedApplications.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupAccountCreatedApplications.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,gCAAiC,SAAQ,qBAAW;IACvE;;;;;;;;;;;;OAYG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAFd,YAAO,GAAP,OAAO,CAAQ;QAGvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,gBAAgB,IAAI,CAAC,OAAO,uBAAuB,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,KAAa;QACzB,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAxID,mDAwIC"}
@@ -5,11 +5,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsonrequest_1 = __importDefault(require("../jsonrequest"));
7
7
  class LookupAccountCreatedAssets extends jsonrequest_1.default {
8
+ /**
9
+ * Returns asset information created by the given account.
10
+ *
11
+ * #### Example
12
+ * ```typescript
13
+ * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
14
+ * const accountCreatedAssets = await indexerClient.lookupAccountCreatedAssets(address).do();
15
+ * ```
16
+ *
17
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-assets)
18
+ * @param account - The address of the account to look up.
19
+ * @category GET
20
+ */
8
21
  constructor(c, intDecoding, account) {
9
22
  super(c, intDecoding);
10
23
  this.account = account;
11
24
  this.account = account;
12
25
  }
26
+ /**
27
+ * @returns `/v2/accounts/${account}/created-assets`
28
+ */
13
29
  path() {
14
30
  return `/v2/accounts/${this.account}/created-assets`;
15
31
  }
@@ -27,6 +43,7 @@ class LookupAccountCreatedAssets extends jsonrequest_1.default {
27
43
  * ```
28
44
  *
29
45
  * @param limit - maximum number of results to return.
46
+ * @category query
30
47
  */
31
48
  limit(limit) {
32
49
  this.query.limit = limit;
@@ -45,6 +62,7 @@ class LookupAccountCreatedAssets extends jsonrequest_1.default {
45
62
  * .do();
46
63
  * ```
47
64
  * @param round
65
+ * @category query
48
66
  */
49
67
  round(round) {
50
68
  this.query.round = round;
@@ -57,14 +75,21 @@ class LookupAccountCreatedAssets extends jsonrequest_1.default {
57
75
  * ```typescript
58
76
  * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
59
77
  * const maxResults = 20;
60
- * const nextToken = "APA6C7C3NCANRPIBUWQOF7WSKLJMK6RPQUVFLLDV4U5WCQE4DEF26D4E3E";
61
- * const accountAssets = await indexerClient
78
+ *
79
+ * const accountAssetsPage1 = await indexerClient
80
+ * .lookupAccountCreatedAssets(address)
81
+ * .limit(maxResults)
82
+ * .do();
83
+ * ```
84
+ *
85
+ * const accountAssetsPage2 = await indexerClient
62
86
  * .lookupAccountCreatedAssets(address)
63
87
  * .limit(maxResults)
64
- * .next(nextToken)
88
+ * .next(accountAssetsPage1["next-token"])
65
89
  * .do();
66
90
  * ```
67
91
  * @param nextToken - provided by the previous results.
92
+ * @category query
68
93
  */
69
94
  nextToken(nextToken) {
70
95
  this.query.next = nextToken;
@@ -82,6 +107,7 @@ class LookupAccountCreatedAssets extends jsonrequest_1.default {
82
107
  * .do();
83
108
  * ```
84
109
  * @param value
110
+ * @category query
85
111
  */
86
112
  includeAll(value = true) {
87
113
  this.query['include-all'] = value;
@@ -100,6 +126,7 @@ class LookupAccountCreatedAssets extends jsonrequest_1.default {
100
126
  * .do();
101
127
  * ```
102
128
  * @param index - the assetID
129
+ * @category query
103
130
  */
104
131
  assetID(index) {
105
132
  this.query['asset-id'] = index;
@@ -1 +1 @@
1
- {"version":3,"file":"lookupAccountCreatedAssets.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupAccountCreatedAssets.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,0BAA2B,SAAQ,qBAAW;IACjE,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAFd,YAAO,GAAP,OAAO,CAAQ;QAGvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,IAAI;QACF,OAAO,gBAAgB,IAAI,CAAC,OAAO,iBAAiB,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,KAAa;QACnB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA9GD,6CA8GC"}
1
+ {"version":3,"file":"lookupAccountCreatedAssets.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupAccountCreatedAssets.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,0BAA2B,SAAQ,qBAAW;IACjE;;;;;;;;;;;;OAYG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAFd,YAAO,GAAP,OAAO,CAAQ;QAGvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,gBAAgB,IAAI,CAAC,OAAO,iBAAiB,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,KAAa;QACnB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAzID,6CAyIC"}
@@ -36,13 +36,13 @@ class LookupAccountTransactions extends jsonrequest_1.default {
36
36
  this.account = account;
37
37
  }
38
38
  /**
39
- * @returns /v2/accounts/`${account}`/transactions
39
+ * @returns `/v2/accounts/${account}/transactions`
40
40
  */
41
41
  path() {
42
42
  return `/v2/accounts/${this.account}/transactions`;
43
43
  }
44
44
  /**
45
- * Specifies a prefix which must be contained in the note field
45
+ * Specifies a prefix which must be contained in the note field.
46
46
  *
47
47
  * #### Example
48
48
  * ```typescript
@@ -62,7 +62,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
62
62
  return this;
63
63
  }
64
64
  /**
65
- * Type of transaction to filter with
65
+ * Type of transaction to filter with.
66
66
  *
67
67
  * #### Example
68
68
  * ```typescript
@@ -73,7 +73,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
73
73
  * .do();
74
74
  * ```
75
75
  *
76
- * @param type - one of “pay”, “keyreg”, “acfg”, “axfer”, “afrz”, "appl"
76
+ * @param type - one of `pay`, `keyreg`, `acfg`, `axfer`, `afrz`, `appl`
77
77
  * @category query
78
78
  */
79
79
  txType(type) {
@@ -81,7 +81,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
81
81
  return this;
82
82
  }
83
83
  /**
84
- * Type of signature to filter with
84
+ * Type of signature to filter with.
85
85
  * - sig: Standard
86
86
  * - msig: MultiSig
87
87
  * - lsig: LogicSig
@@ -95,7 +95,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
95
95
  * .do();
96
96
  * ```
97
97
  *
98
- * @param type - one of “sig”, “msig”, “lsig”
98
+ * @param type - one of `sig`, `msig`, `lsig`
99
99
  * @category query
100
100
  */
101
101
  sigType(type) {
@@ -103,7 +103,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
103
103
  return this;
104
104
  }
105
105
  /**
106
- * Lookup the specific transaction by ID
106
+ * Lookup the specific transaction by ID.
107
107
  *
108
108
  * #### Example
109
109
  * ```typescript
@@ -114,7 +114,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
114
114
  * .txid(txId)
115
115
  * .do();
116
116
  * ```
117
- *
117
+ * @remarks Alternatively, use `indexerClient.lookupTransactionByID(txnId).do()`
118
118
  * @param txid
119
119
  * @category query
120
120
  */
@@ -123,7 +123,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
123
123
  return this;
124
124
  }
125
125
  /**
126
- * Include results for the specified round
126
+ * Include results for the specified round.
127
127
  *
128
128
  * #### Example
129
129
  * ```typescript
@@ -143,7 +143,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
143
143
  return this;
144
144
  }
145
145
  /**
146
- * Include results at or after the specified min-round
146
+ * Include results at or after the specified min-round.
147
147
  *
148
148
  * #### Example
149
149
  * ```typescript
@@ -163,7 +163,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
163
163
  return this;
164
164
  }
165
165
  /**
166
- * Include results at or before the specified max-round
166
+ * Include results at or before the specified max-round.
167
167
  *
168
168
  * #### Example
169
169
  * ```typescript
@@ -183,7 +183,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
183
183
  return this;
184
184
  }
185
185
  /**
186
- * Asset ID to filter with
186
+ * Asset ID to filter with.
187
187
  *
188
188
  * #### Example
189
189
  * ```typescript
@@ -203,15 +203,15 @@ class LookupAccountTransactions extends jsonrequest_1.default {
203
203
  return this;
204
204
  }
205
205
  /**
206
- * Maximum number of results to return
206
+ * Maximum number of results to return.
207
207
  *
208
208
  * #### Example
209
209
  * ```typescript
210
- * const limit = 25;
210
+ * const maxResults = 25;
211
211
  * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
212
212
  * const accountTxns = await indexerClient
213
213
  * .lookupAccountTransactions(address)
214
- * .limit(limit)
214
+ * .limit(maxResults)
215
215
  * .do();
216
216
  * ```
217
217
  *
@@ -223,7 +223,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
223
223
  return this;
224
224
  }
225
225
  /**
226
- * Include results before the given time
226
+ * Include results before the given time.
227
227
  *
228
228
  * #### Example
229
229
  * ```typescript
@@ -243,7 +243,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
243
243
  return this;
244
244
  }
245
245
  /**
246
- * Include results after the given time
246
+ * Include results after the given time.
247
247
  *
248
248
  * #### Example
249
249
  * ```typescript
@@ -297,7 +297,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
297
297
  return this;
298
298
  }
299
299
  /**
300
- * Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units
300
+ * Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
301
301
  *
302
302
  * #### Example 1
303
303
  * ```typescript
@@ -333,17 +333,22 @@ class LookupAccountTransactions extends jsonrequest_1.default {
333
333
  *
334
334
  * #### Example
335
335
  * ```typescript
336
- * const limit = 25;
337
- * const nextToken = "the next token returned in the previous query response";
336
+ * const maxResults = 25;
338
337
  * const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
339
- * const accountTxns = await indexerClient
338
+ *
339
+ * const accountTxnsPage1 = await indexerClient
340
+ * .lookupAccountTransactions(address)
341
+ * .limit(maxResults)
342
+ * .do();
343
+ *
344
+ * const accountTxnsPage2 = await indexerClient
340
345
  * .lookupAccountTransactions(address)
341
- * .limit(limit)
342
- * .nextToken(nextToken)
346
+ * .limit(maxResults)
347
+ * .nextToken(accountTxnsPage1["next-token"])
343
348
  * .do();
344
349
  * ```
345
350
  *
346
- * @param nextToken
351
+ * @param nextToken - provided by the previous results.
347
352
  * @category query
348
353
  */
349
354
  nextToken(nextToken) {
@@ -351,7 +356,7 @@ class LookupAccountTransactions extends jsonrequest_1.default {
351
356
  return this;
352
357
  }
353
358
  /**
354
- * Include results which include the rekey-to field
359
+ * Whether or not to include rekeying transactions.
355
360
  *
356
361
  * #### Example
357
362
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"lookupAccountTransactions.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupAccountTransactions.ts"],"names":[],"mappings":";;;;;;AAAA,iEAAyC;AAIzC;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAyB;IAC1D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC;AALD,gDAKC;AAED,MAAqB,yBAA0B,SAAQ,qBAAW;IAChE;;;;;;;;;;;OAWG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAFd,YAAO,GAAP,OAAO,CAAQ;QAGvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,gBAAgB,IAAI,CAAC,OAAO,eAAe,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,MAA2B;QACpC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAY;QACjB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;QAC7B,OAAO,IAAI,CAA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AC,KAAK,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,mBAAmB,CAAC,OAAe;QACjC,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,gBAAgB,CAAC,MAAc;QAC7B,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,OAAgB;QACtB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAnXD,4CAmXC"}
1
+ {"version":3,"file":"lookupAccountTransactions.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupAccountTransactions.ts"],"names":[],"mappings":";;;;;;AAAA,iEAAyC;AAIzC;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAyB;IAC1D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC;AALD,gDAKC;AAED,MAAqB,yBAA0B,SAAQ,qBAAW;IAChE;;;;;;;;;;;OAWG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,C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 var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsonrequest_1 = __importDefault(require("../jsonrequest"));
7
7
  class LookupApplicationLogs extends jsonrequest_1.default {
8
+ /**
9
+ * Returns log messages generated by the passed in application.
10
+ *
11
+ * #### Example
12
+ * ```typescript
13
+ * const appId = 60553466;
14
+ * const appLogs = await indexerClient.lookupApplicationLogs(appId).do();
15
+ * ```
16
+ *
17
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-idlogs)
18
+ * @param appID - The ID of the application which generated the logs.
19
+ * @category GET
20
+ */
8
21
  constructor(c, intDecoding, appID) {
9
22
  super(c, intDecoding);
10
23
  this.appID = appID;
11
24
  this.appID = appID;
12
25
  }
26
+ /**
27
+ * @returns `/v2/applications/${appID}/logs`
28
+ */
13
29
  path() {
14
30
  return `/v2/applications/${this.appID}/logs`;
15
31
  }
16
- /** limit for filter, as int */
32
+ /**
33
+ * Limit results for pagination.
34
+ *
35
+ * #### Example
36
+ * ```typescript
37
+ * const maxResults = 20;
38
+ * const appLogs = await indexerClient
39
+ * .lookupApplicationLogs(appId)
40
+ * .limit(maxResults)
41
+ * .do();
42
+ * ```
43
+ *
44
+ * @param limit - maximum number of results to return.
45
+ */
17
46
  limit(limit) {
18
47
  this.query.limit = limit;
19
48
  return this;
20
49
  }
21
- /** min round to filter with, as int */
50
+ /**
51
+ * Include results at or after the specified min-round.
52
+ *
53
+ * #### Example
54
+ * ```typescript
55
+ * const minRound = 18309917;
56
+ * const appLogs = await indexerClient
57
+ * .lookupApplicationLogs(appId)
58
+ * .minRound(minRound)
59
+ * .do();
60
+ * ```
61
+ *
62
+ * @param round
63
+ * @category query
64
+ */
22
65
  minRound(round) {
23
66
  this.query['min-round'] = round;
24
67
  return this;
25
68
  }
26
- /** max round to filter with, as int */
69
+ /**
70
+ * Include results at or before the specified max-round.
71
+ *
72
+ * #### Example
73
+ * ```typescript
74
+ * const maxRound = 18309917;
75
+ * const appLogs = await indexerClient
76
+ * .lookupApplicationLogs(appId)
77
+ * .maxRound(maxRound)
78
+ * .do();
79
+ * ```
80
+ *
81
+ * @param round
82
+ * @category query
83
+ */
27
84
  maxRound(round) {
28
85
  this.query['max-round'] = round;
29
86
  return this;
30
87
  }
31
- /** used for pagination */
88
+ /**
89
+ * The next page of results.
90
+ *
91
+ * #### Example
92
+ * ```typescript
93
+ * const maxResults = 25;
94
+ *
95
+ * const appLogsPage1 = await indexerClient
96
+ * .lookupApplicationLogs(appId)
97
+ * .limit(maxResults)
98
+ * .do();
99
+ *
100
+ * const appLogsPage2 = await indexerClient
101
+ * .lookupApplicationLogs(appId)
102
+ * .limit(maxResults)
103
+ * .nextToken(appLogsPage1["next-token"])
104
+ * .do();
105
+ * ```
106
+ *
107
+ * @param nextToken - provided by the previous results.
108
+ * @category query
109
+ */
32
110
  nextToken(nextToken) {
33
111
  this.query.next = nextToken;
34
112
  return this;
35
113
  }
36
- /** only include transactions with this sender address */
114
+ /**
115
+ * Only include transactions with this sender address.
116
+ *
117
+ * #### Example
118
+ * ```typescript
119
+ * const sender = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
120
+ * const appLogs = await indexerClient
121
+ * .lookupApplicationLogs(appId)
122
+ * .sender(sender)
123
+ * .do();
124
+ * ```
125
+ *
126
+ * @param senderAddress
127
+ * @category query
128
+ */
37
129
  sender(senderAddress) {
38
130
  this.query['sender-address'] = senderAddress;
39
131
  return this;
40
132
  }
41
- /** txid to filter with, as string */
133
+ /**
134
+ * Lookup the specific transaction by ID.
135
+ *
136
+ * #### Example
137
+ * ```typescript
138
+ * const txId = "MEUOC4RQJB23CQZRFRKYEI6WBO73VTTPST5A7B3S5OKBUY6LFUDA";
139
+ * const appLogs = await indexerClient
140
+ * .lookupApplicationLogs(appId)
141
+ * .txid(txId)
142
+ * .do();
143
+ * ```
144
+ *
145
+ * @param txid
146
+ * @category query
147
+ */
42
148
  txid(txid) {
43
149
  this.query.txid = txid;
44
150
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"lookupApplicationLogs.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupApplicationLogs.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,qBAAsB,SAAQ,qBAAW;IAC5D,YAAY,CAAa,EAAE,WAAwB,EAAU,KAAa;QACxE,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QADqC,UAAK,GAAL,KAAK,CAAQ;QAExE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,OAAO,CAAC;IAC/C,CAAC;IAED,+BAA+B;IAC/B,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,uCAAuC;IACvC,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,uCAAuC;IACvC,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,yDAAyD;IACzD,MAAM,CAAC,aAAqB;QAC1B,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,aAAa,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,qCAAqC;IACrC,IAAI,CAAC,IAAY;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA7CD,wCA6CC"}
1
+ {"version":3,"file":"lookupApplicationLogs.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupApplicationLogs.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,qBAAsB,SAAQ,qBAAW;IAC5D;;;;;;;;;;;;OAYG;IACH,YAAY,CAAa,EAAE,WAAwB,EAAU,KAAa;QACxE,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QADqC,UAAK,GAAL,KAAK,CAAQ;QAExE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,OAAO,CAAC;IAC/C,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,KAAa;QACjB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,aAAqB;QAC1B,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,aAAa,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,IAAY;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvJD,wCAuJC"}
@@ -5,15 +5,54 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsonrequest_1 = __importDefault(require("../jsonrequest"));
7
7
  class LookupApplications extends jsonrequest_1.default {
8
+ /**
9
+ * Returns information about the passed application.
10
+ *
11
+ * #### Example
12
+ * ```typescript
13
+ * const appId = 60553466;
14
+ * const appInfo = await indexerClient.lookupApplications(appId).do();
15
+ * ```
16
+ *
17
+ * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-id)
18
+ * @param index - The ID of the application to look up.
19
+ * @category GET
20
+ */
8
21
  constructor(c, intDecoding, index) {
9
22
  super(c, intDecoding);
10
23
  this.index = index;
11
24
  this.index = index;
12
25
  }
26
+ /**
27
+ * @returns `/v2/applications/${index}`
28
+ */
13
29
  path() {
14
30
  return `/v2/applications/${this.index}`;
15
31
  }
16
- // include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
32
+ /**
33
+ * Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
34
+ *
35
+ * #### Example 1
36
+ * ```typescript
37
+ * const appId = 60553466;
38
+ * const appInfo = await indexerClient
39
+ * .lookupApplications(appId)
40
+ * .includeAll(false)
41
+ * .do();
42
+ * ```
43
+ *
44
+ * #### Example 2
45
+ * ```typescript
46
+ * const appId = 60553466;
47
+ * const appInfo = await indexerClient
48
+ * .lookupApplications(appId)
49
+ * .includeAll()
50
+ * .do();
51
+ * ```
52
+ *
53
+ * @param value - default true when called without passing a value
54
+ * @category query
55
+ */
17
56
  includeAll(value = true) {
18
57
  this.query['include-all'] = value;
19
58
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"lookupApplications.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupApplications.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,kBAAmB,SAAQ,qBAAW;IACzD,YAAY,CAAa,EAAE,WAAwB,EAAU,KAAa;QACxE,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QADqC,UAAK,GAAL,KAAK,CAAQ;QAExE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,EAAE,CAAC;IAC1C,CAAC;IAED,wJAAwJ;IACxJ,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAfD,qCAeC"}
1
+ {"version":3,"file":"lookupApplications.js","sourceRoot":"","sources":["../../../../../../src/client/v2/indexer/lookupApplications.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAIzC,MAAqB,kBAAmB,SAAQ,qBAAW;IACzD;;;;;;;;;;;;OAYG;IACH,YAAY,CAAa,EAAE,WAAwB,EAAU,KAAa;QACxE,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QADqC,UAAK,GAAL,KAAK,CAAQ;QAExE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,EAAE,CAAC;IAC1C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,UAAU,CAAC,KAAK,GAAG,IAAI;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtDD,qCAsDC"}