@reyaxyz/api-sdk 0.127.11 → 0.128.1
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 -1
- package/dist/clients/modules/owner/index.js +9 -0
- package/dist/clients/modules/owner/index.js.map +1 -1
- package/dist/clients/modules/owner/types.js.map +1 -1
- package/dist/types/clients/modules/owner/index.d.ts +2 -1
- package/dist/types/clients/modules/owner/index.d.ts.map +1 -1
- package/dist/types/clients/modules/owner/types.d.ts +4 -0
- package/dist/types/clients/modules/owner/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/clients/modules/owner/index.ts +9 -0
- package/src/clients/modules/owner/types.ts +6 -0
package/README.md
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
|
|
7
7
|
| Statements | Branches | Functions | Lines |
|
|
8
8
|
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
|
|
9
|
-
|  |  |  |  |
|
|
10
10
|
|
|
@@ -66,6 +66,15 @@ var OwnerClient = /** @class */ (function (_super) {
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
+
OwnerClient.prototype.getAccountOwnerMetadata = function (params) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
var uri;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
uri = "/api/owner/".concat(params.accountId, "/account-owner-metadata");
|
|
74
|
+
return [2 /*return*/, this.get(uri)];
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
};
|
|
69
78
|
OwnerClient.prototype.getOwnerConfigurationSettings = function (params) {
|
|
70
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
80
|
var uri;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|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AqC,GAA3C,UACE,MAAmD;;;;gBAE7C,GAAG,GAAG,+DAA+D,CAAC;gBAC5E,sBAAO,IAAI,CAAC,GAAG,CACb,GAAG,EACH,EAAE,EACF;wBACE,OAAO,EAAE,MAAM,CAAC,YAAY;wBAC5B,WAAW,EAAE,MAAM,CAAC,WAAW;qBAChC,CACF,EAAC;;;KACH;IACH,kBAAC;AAAD,CAAC,AAxDD,CAAyC,mBAAU,GAwDlD","sourcesContent":["import {\n AddFavoriteMarketParams,\n AddFavoriteMarketResult,\n GetAccountOwnerMetadataParams,\n GetAccountOwnerMetadataResult,\n GetOwnerConfigurationSettingsParams,\n GetOwnerConfigurationSettingsResult,\n GetOwnerLastSeenNotificationTimestampParams,\n GetOwnerLastSeenNotificationTimestampResult,\n GetOwnerMetadataParams,\n GetOwnerMetadataResult,\n RemoveFavoriteMarketParams,\n RemoveFavoriteMarketResult,\n SetOwnerLastSeenNotificationTimestampParams,\n SetOwnerLastSeenNotificationTimestampResult,\n} from './types';\nimport { RestClient } from '@reyaxyz/common';\n\nexport default class OwnerClient extends RestClient {\n async getOwnerMetadata(\n params: GetOwnerMetadataParams,\n ): Promise<GetOwnerMetadataResult> {\n const uri = `/api/owner/${params.ownerAddress}/metadata`;\n return this.get(uri);\n }\n\n async getAccountOwnerMetadata(\n params: GetAccountOwnerMetadataParams,\n ): Promise<GetAccountOwnerMetadataResult> {\n const uri = `/api/owner/${params.accountId}/account-owner-metadata`;\n return this.get(uri);\n }\n\n async getOwnerConfigurationSettings(\n params: GetOwnerConfigurationSettingsParams,\n ): Promise<GetOwnerConfigurationSettingsResult> {\n const uri = `/api/owner/${params.ownerAddress}/configuration/settings`;\n return this.get(uri);\n }\n\n async addFavoriteMarket(\n params: AddFavoriteMarketParams,\n ): Promise<AddFavoriteMarketResult> {\n const uri = `/api/owner/${params.ownerAddress}/configuration/favorite-market`;\n return this.post(uri, undefined, params);\n }\n\n async removeFavoriteMarket(\n params: RemoveFavoriteMarketParams,\n ): Promise<RemoveFavoriteMarketResult> {\n const uri = `/api/owner/${params.ownerAddress}/configuration/favorite-market`;\n return this.delete(uri, undefined, params);\n }\n\n async getOwnerLastSeenNotificationTimestamp(\n params: GetOwnerLastSeenNotificationTimestampParams,\n ): Promise<GetOwnerLastSeenNotificationTimestampResult> {\n const uri = `/api/owner/${params.ownerAddress}/last-seen-notification-timestamp/auto-exchange`;\n return this.get(uri);\n }\n\n async setOwnerLastSeenNotificationTimestamp(\n params: SetOwnerLastSeenNotificationTimestampParams,\n ): Promise<SetOwnerLastSeenNotificationTimestampResult> {\n const uri = `/api/owner/set-last-seen-notification-timestamp/auto-exchange`;\n return this.put(\n uri,\n {},\n {\n address: params.ownerAddress,\n timestampMs: params.timestampMs,\n },\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/owner/types.ts"],"names":[],"mappings":"","sourcesContent":["import { OwnerMetadataEntity } from '@reyaxyz/common';\n\nexport type GetOwnerMetadataParams = {\n ownerAddress: string;\n};\n\nexport type GetOwnerConfigurationSettingsParams = {\n ownerAddress: string;\n};\n\nexport type GetOwnerConfigurationSettingsResult = {\n favoriteMarkets: number[];\n};\n\nexport type AddFavoriteMarketParams = {\n ownerAddress: string;\n marketId: number;\n};\n\nexport type AddFavoriteMarketResult = { success: boolean };\n\nexport type RemoveFavoriteMarketParams = {\n ownerAddress: string;\n marketId: number;\n};\n\nexport type RemoveFavoriteMarketResult = { success: boolean };\n\nexport type GetOwnerMetadataResult = OwnerMetadataEntity;\n\nexport type GetOwnerLastSeenNotificationTimestampParams = {\n ownerAddress: string;\n};\n\nexport type GetOwnerLastSeenNotificationTimestampResult = {\n timestampMs: number;\n};\n\nexport type SetOwnerLastSeenNotificationTimestampParams = {\n ownerAddress: string;\n timestampMs: number;\n};\n\nexport type SetOwnerLastSeenNotificationTimestampResult = {\n timestampMs: number;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/owner/types.ts"],"names":[],"mappings":"","sourcesContent":["import { OwnerMetadataEntity } from '@reyaxyz/common';\n\nexport type GetOwnerMetadataParams = {\n ownerAddress: string;\n};\n\nexport type GetAccountOwnerMetadataParams = {\n accountId: string;\n};\n\nexport type GetOwnerConfigurationSettingsParams = {\n ownerAddress: string;\n};\n\nexport type GetOwnerConfigurationSettingsResult = {\n favoriteMarkets: number[];\n};\n\nexport type AddFavoriteMarketParams = {\n ownerAddress: string;\n marketId: number;\n};\n\nexport type AddFavoriteMarketResult = { success: boolean };\n\nexport type RemoveFavoriteMarketParams = {\n ownerAddress: string;\n marketId: number;\n};\n\nexport type RemoveFavoriteMarketResult = { success: boolean };\n\nexport type GetOwnerMetadataResult = OwnerMetadataEntity;\n\nexport type GetAccountOwnerMetadataResult = OwnerMetadataEntity;\n\nexport type GetOwnerLastSeenNotificationTimestampParams = {\n ownerAddress: string;\n};\n\nexport type GetOwnerLastSeenNotificationTimestampResult = {\n timestampMs: number;\n};\n\nexport type SetOwnerLastSeenNotificationTimestampParams = {\n ownerAddress: string;\n timestampMs: number;\n};\n\nexport type SetOwnerLastSeenNotificationTimestampResult = {\n timestampMs: number;\n};\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AddFavoriteMarketParams, AddFavoriteMarketResult, GetOwnerConfigurationSettingsParams, GetOwnerConfigurationSettingsResult, GetOwnerLastSeenNotificationTimestampParams, GetOwnerLastSeenNotificationTimestampResult, GetOwnerMetadataParams, GetOwnerMetadataResult, RemoveFavoriteMarketParams, RemoveFavoriteMarketResult, SetOwnerLastSeenNotificationTimestampParams, SetOwnerLastSeenNotificationTimestampResult } from './types';
|
|
1
|
+
import { AddFavoriteMarketParams, AddFavoriteMarketResult, GetAccountOwnerMetadataParams, GetAccountOwnerMetadataResult, GetOwnerConfigurationSettingsParams, GetOwnerConfigurationSettingsResult, GetOwnerLastSeenNotificationTimestampParams, GetOwnerLastSeenNotificationTimestampResult, GetOwnerMetadataParams, GetOwnerMetadataResult, RemoveFavoriteMarketParams, RemoveFavoriteMarketResult, SetOwnerLastSeenNotificationTimestampParams, SetOwnerLastSeenNotificationTimestampResult } from './types';
|
|
2
2
|
import { RestClient } from '@reyaxyz/common';
|
|
3
3
|
export default class OwnerClient extends RestClient {
|
|
4
4
|
getOwnerMetadata(params: GetOwnerMetadataParams): Promise<GetOwnerMetadataResult>;
|
|
5
|
+
getAccountOwnerMetadata(params: GetAccountOwnerMetadataParams): Promise<GetAccountOwnerMetadataResult>;
|
|
5
6
|
getOwnerConfigurationSettings(params: GetOwnerConfigurationSettingsParams): Promise<GetOwnerConfigurationSettingsResult>;
|
|
6
7
|
addFavoriteMarket(params: AddFavoriteMarketParams): Promise<AddFavoriteMarketResult>;
|
|
7
8
|
removeFavoriteMarket(params: RemoveFavoriteMarketParams): Promise<RemoveFavoriteMarketResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,mCAAmC,EACnC,mCAAmC,EACnC,2CAA2C,EAC3C,2CAA2C,EAC3C,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,2CAA2C,EAC3C,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IAC3C,gBAAgB,CACpB,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAK5B,6BAA6B,CACjC,MAAM,EAAE,mCAAmC,GAC1C,OAAO,CAAC,mCAAmC,CAAC;IAKzC,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;IAK7B,oBAAoB,CACxB,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC;IAKhC,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;IAKjD,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;CAWxD"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/owner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,mCAAmC,EACnC,mCAAmC,EACnC,2CAA2C,EAC3C,2CAA2C,EAC3C,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,2CAA2C,EAC3C,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IAC3C,gBAAgB,CACpB,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAK5B,uBAAuB,CAC3B,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC;IAKnC,6BAA6B,CACjC,MAAM,EAAE,mCAAmC,GAC1C,OAAO,CAAC,mCAAmC,CAAC;IAKzC,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;IAK7B,oBAAoB,CACxB,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC;IAKhC,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;IAKjD,qCAAqC,CACzC,MAAM,EAAE,2CAA2C,GAClD,OAAO,CAAC,2CAA2C,CAAC;CAWxD"}
|
|
@@ -2,6 +2,9 @@ import { OwnerMetadataEntity } from '@reyaxyz/common';
|
|
|
2
2
|
export type GetOwnerMetadataParams = {
|
|
3
3
|
ownerAddress: string;
|
|
4
4
|
};
|
|
5
|
+
export type GetAccountOwnerMetadataParams = {
|
|
6
|
+
accountId: string;
|
|
7
|
+
};
|
|
5
8
|
export type GetOwnerConfigurationSettingsParams = {
|
|
6
9
|
ownerAddress: string;
|
|
7
10
|
};
|
|
@@ -23,6 +26,7 @@ export type RemoveFavoriteMarketResult = {
|
|
|
23
26
|
success: boolean;
|
|
24
27
|
};
|
|
25
28
|
export type GetOwnerMetadataResult = OwnerMetadataEntity;
|
|
29
|
+
export type GetAccountOwnerMetadataResult = OwnerMetadataEntity;
|
|
26
30
|
export type GetOwnerLastSeenNotificationTimestampParams = {
|
|
27
31
|
ownerAddress: string;
|
|
28
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/owner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM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,6BAA6B,GAAG,mBAAmB,CAAC;AAEhE,MAAM,MAAM,2CAA2C,GAAG;IACxD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/api-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@reyaxyz/common": "0.200.
|
|
36
|
+
"@reyaxyz/common": "0.200.2",
|
|
37
37
|
"@simplewebauthn/types": "^10.0.0",
|
|
38
38
|
"axios": "^1.6.2",
|
|
39
39
|
"bignumber.js": "^9.1.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"ws": "^8.16.0"
|
|
43
43
|
},
|
|
44
44
|
"packageManager": "pnpm@8.3.1",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ccac40c789ac4a4e7224cd5677e66d715eb2ffda",
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/ws": "8.5.10"
|
|
48
48
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddFavoriteMarketParams,
|
|
3
3
|
AddFavoriteMarketResult,
|
|
4
|
+
GetAccountOwnerMetadataParams,
|
|
5
|
+
GetAccountOwnerMetadataResult,
|
|
4
6
|
GetOwnerConfigurationSettingsParams,
|
|
5
7
|
GetOwnerConfigurationSettingsResult,
|
|
6
8
|
GetOwnerLastSeenNotificationTimestampParams,
|
|
@@ -22,6 +24,13 @@ export default class OwnerClient extends RestClient {
|
|
|
22
24
|
return this.get(uri);
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
async getAccountOwnerMetadata(
|
|
28
|
+
params: GetAccountOwnerMetadataParams,
|
|
29
|
+
): Promise<GetAccountOwnerMetadataResult> {
|
|
30
|
+
const uri = `/api/owner/${params.accountId}/account-owner-metadata`;
|
|
31
|
+
return this.get(uri);
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
async getOwnerConfigurationSettings(
|
|
26
35
|
params: GetOwnerConfigurationSettingsParams,
|
|
27
36
|
): Promise<GetOwnerConfigurationSettingsResult> {
|
|
@@ -4,6 +4,10 @@ export type GetOwnerMetadataParams = {
|
|
|
4
4
|
ownerAddress: string;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
export type GetAccountOwnerMetadataParams = {
|
|
8
|
+
accountId: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
7
11
|
export type GetOwnerConfigurationSettingsParams = {
|
|
8
12
|
ownerAddress: string;
|
|
9
13
|
};
|
|
@@ -28,6 +32,8 @@ export type RemoveFavoriteMarketResult = { success: boolean };
|
|
|
28
32
|
|
|
29
33
|
export type GetOwnerMetadataResult = OwnerMetadataEntity;
|
|
30
34
|
|
|
35
|
+
export type GetAccountOwnerMetadataResult = OwnerMetadataEntity;
|
|
36
|
+
|
|
31
37
|
export type GetOwnerLastSeenNotificationTimestampParams = {
|
|
32
38
|
ownerAddress: string;
|
|
33
39
|
};
|