@xoxno/types 1.0.348 → 1.0.351
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/cosmos-db/documents/user/user-profile.doc.d.ts +2 -0
- package/dist/cosmos-db/documents/user/user-profile.doc.js +12 -0
- package/dist/entities/passkey/passkey.d.ts +4 -0
- package/dist/entities/passkey/passkey.js +24 -0
- package/dist/entities/perp/transfer.d.ts +2 -2
- package/dist/enums/perp.enum.d.ts +3 -1
- package/dist/enums/perp.enum.js +7 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { SocialsDto } from '../../../common/socials';
|
|
|
2
2
|
import { ActivityChain } from '../../../enums/common.enum';
|
|
3
3
|
import { UserDataType } from '../../../enums/user-data-type.enum';
|
|
4
4
|
import { UserDeposit } from './user-deposit';
|
|
5
|
+
import { Passkey } from '../../../entities/passkey/passkey';
|
|
5
6
|
export declare class UserProfileDoc {
|
|
6
7
|
dataType: UserDataType;
|
|
7
8
|
address: string;
|
|
@@ -22,5 +23,6 @@ export declare class UserProfileDoc {
|
|
|
22
23
|
_ts: number;
|
|
23
24
|
id: string;
|
|
24
25
|
isBoberBattleUser?: boolean;
|
|
26
|
+
passkeys?: Passkey[];
|
|
25
27
|
constructor(props?: Partial<UserProfileDoc>);
|
|
26
28
|
}
|
|
@@ -17,6 +17,7 @@ const socials_1 = require("../../../common/socials");
|
|
|
17
17
|
const common_enum_1 = require("../../../enums/common.enum");
|
|
18
18
|
const user_data_type_enum_1 = require("../../../enums/user-data-type.enum");
|
|
19
19
|
const user_deposit_1 = require("./user-deposit");
|
|
20
|
+
const passkey_1 = require("../../../entities/passkey/passkey");
|
|
20
21
|
class UserProfileDoc {
|
|
21
22
|
constructor(props) {
|
|
22
23
|
this.dataType = user_data_type_enum_1.UserDataType.UserProfile;
|
|
@@ -36,6 +37,7 @@ class UserProfileDoc {
|
|
|
36
37
|
this.chain = common_enum_1.ActivityChain.MVX;
|
|
37
38
|
this._ts = 0;
|
|
38
39
|
this.id = '';
|
|
40
|
+
this.passkeys = [];
|
|
39
41
|
Object.assign(this, props);
|
|
40
42
|
this.id = `${this.address}-${this.dataType}`;
|
|
41
43
|
}
|
|
@@ -169,3 +171,13 @@ __decorate([
|
|
|
169
171
|
(0, class_validator_1.IsBoolean)(),
|
|
170
172
|
__metadata("design:type", Boolean)
|
|
171
173
|
], UserProfileDoc.prototype, "isBoberBattleUser", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, swagger_1.ApiProperty)({
|
|
176
|
+
type: () => [passkey_1.Passkey],
|
|
177
|
+
description: 'User passkeys',
|
|
178
|
+
required: false,
|
|
179
|
+
}),
|
|
180
|
+
(0, class_validator_1.IsObject)(),
|
|
181
|
+
(0, class_transformer_1.Type)(() => passkey_1.Passkey),
|
|
182
|
+
__metadata("design:type", Array)
|
|
183
|
+
], UserProfileDoc.prototype, "passkeys", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.Passkey = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class Passkey {
|
|
15
|
+
}
|
|
16
|
+
exports.Passkey = Passkey;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Passkey.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Passkey.prototype, "publicKey", void 0);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PerpOrderType, PerpTransferType } from '../../enums';
|
|
1
|
+
import { PerpOrderType, PerpTransferType, PerpWithdrawalChain } from '../../enums';
|
|
2
2
|
export declare class PerpTransferTransfer {
|
|
3
3
|
type: PerpOrderType.SEND_ASSET;
|
|
4
4
|
destination: string;
|
|
5
5
|
symbol: string;
|
|
6
6
|
amount: string;
|
|
7
7
|
sourceDex: PerpTransferType;
|
|
8
|
-
destinationDex: PerpTransferType;
|
|
8
|
+
destinationDex: PerpTransferType | PerpWithdrawalChain;
|
|
9
9
|
}
|
|
10
10
|
export declare class PerpTransfer {
|
|
11
11
|
action: PerpTransferTransfer;
|
|
@@ -149,7 +149,9 @@ export declare enum PerpOrderDetailedStatus {
|
|
|
149
149
|
}
|
|
150
150
|
export declare enum PerpTransferType {
|
|
151
151
|
SPOT = "Spot",
|
|
152
|
-
PERP = "Perps"
|
|
152
|
+
PERP = "Perps"
|
|
153
|
+
}
|
|
154
|
+
export declare enum PerpWithdrawalChain {
|
|
153
155
|
MVX = "MVX",
|
|
154
156
|
ETH = "ETH",
|
|
155
157
|
BSC = "BSC"
|
package/dist/enums/perp.enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PerpTransferType = exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.PerpAgainstAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
|
|
3
|
+
exports.PerpWithdrawalChain = exports.PerpTransferType = exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.PerpAgainstAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
|
|
4
4
|
var PerpEnum;
|
|
5
5
|
(function (PerpEnum) {
|
|
6
6
|
PerpEnum["L2BOOK"] = "l2Book";
|
|
@@ -178,7 +178,10 @@ var PerpTransferType;
|
|
|
178
178
|
(function (PerpTransferType) {
|
|
179
179
|
PerpTransferType["SPOT"] = "Spot";
|
|
180
180
|
PerpTransferType["PERP"] = "Perps";
|
|
181
|
-
PerpTransferType["MVX"] = "MVX";
|
|
182
|
-
PerpTransferType["ETH"] = "ETH";
|
|
183
|
-
PerpTransferType["BSC"] = "BSC";
|
|
184
181
|
})(PerpTransferType || (exports.PerpTransferType = PerpTransferType = {}));
|
|
182
|
+
var PerpWithdrawalChain;
|
|
183
|
+
(function (PerpWithdrawalChain) {
|
|
184
|
+
PerpWithdrawalChain["MVX"] = "MVX";
|
|
185
|
+
PerpWithdrawalChain["ETH"] = "ETH";
|
|
186
|
+
PerpWithdrawalChain["BSC"] = "BSC";
|
|
187
|
+
})(PerpWithdrawalChain || (exports.PerpWithdrawalChain = PerpWithdrawalChain = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export * from './entities/notification-data/notification-success-response.dto';
|
|
|
132
132
|
export * from './entities/notification-data/notification-template';
|
|
133
133
|
export * from './entities/notification-data/push-notification.doc';
|
|
134
134
|
export * from './entities/notification-data/tag-priority';
|
|
135
|
+
export * from './entities/passkey/passkey';
|
|
135
136
|
export * from './entities/perp/coins';
|
|
136
137
|
export * from './entities/perp/legal-check';
|
|
137
138
|
export * from './entities/perp/margin-table';
|
package/dist/index.js
CHANGED
|
@@ -148,6 +148,7 @@ __exportStar(require("./entities/notification-data/notification-success-response
|
|
|
148
148
|
__exportStar(require("./entities/notification-data/notification-template"), exports);
|
|
149
149
|
__exportStar(require("./entities/notification-data/push-notification.doc"), exports);
|
|
150
150
|
__exportStar(require("./entities/notification-data/tag-priority"), exports);
|
|
151
|
+
__exportStar(require("./entities/passkey/passkey"), exports);
|
|
151
152
|
__exportStar(require("./entities/perp/coins"), exports);
|
|
152
153
|
__exportStar(require("./entities/perp/legal-check"), exports);
|
|
153
154
|
__exportStar(require("./entities/perp/margin-table"), exports);
|