@xoxno/types 1.0.349 → 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/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);
|
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);
|