@skroz/profile-api 1.0.26 → 1.0.27
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.
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
const type_graphql_1 = require("type-graphql");
|
|
13
|
+
let ResultAndDescription = class ResultAndDescription {
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
(0, type_graphql_1.Field)(() => Boolean),
|
|
17
|
+
__metadata("design:type", Boolean)
|
|
18
|
+
], ResultAndDescription.prototype, "ok", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(() => String, { nullable: true }),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], ResultAndDescription.prototype, "description", void 0);
|
|
23
|
+
ResultAndDescription = __decorate([
|
|
24
|
+
(0, type_graphql_1.ObjectType)({ isAbstract: true })
|
|
25
|
+
], ResultAndDescription);
|
|
26
|
+
exports.default = ResultAndDescription;
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export { default as UpdateProfileInput, updateProfileTransformers, updateProfile
|
|
|
10
10
|
export { default as SendTokenInput, sendTokenTransformers, sendTokenValidators } from './SendTokenInput';
|
|
11
11
|
export { default as RecoverPasswordInput, recoverPasswordTransformers, recoverPasswordValidators } from './RecoverPasswordInput';
|
|
12
12
|
export { OauthLoginInput, TelegramAuthData } from './OauthInput';
|
|
13
|
+
export { default as ResultAndDescription } from './ResultAndDescription';
|
package/dist/dto/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TelegramAuthData = exports.OauthLoginInput = exports.recoverPasswordValidators = exports.recoverPasswordTransformers = exports.RecoverPasswordInput = exports.sendTokenValidators = exports.sendTokenTransformers = exports.SendTokenInput = exports.updateProfileValidators = exports.updateProfileTransformers = exports.UpdateProfileInput = exports.updateEmailValidators = exports.updateEmailTransformers = exports.UpdateEmailInput = exports.updatePasswordValidators = exports.updatePasswordTransformers = exports.UpdatePasswordInput = exports.SendTokenPayload = exports.StatusPayload = exports.confirmEmailValidators = exports.ConfirmEmailInput = exports.forgotPasswordValidators = exports.forgotPasswordTransformers = exports.ForgotPasswordInput = exports.authTransformers = exports.loginValidators = exports.registerValidators = exports.AuthInput = exports.passwordValidators = exports.passwordTransformers = exports.PasswordInput = void 0;
|
|
6
|
+
exports.ResultAndDescription = exports.TelegramAuthData = exports.OauthLoginInput = exports.recoverPasswordValidators = exports.recoverPasswordTransformers = exports.RecoverPasswordInput = exports.sendTokenValidators = exports.sendTokenTransformers = exports.SendTokenInput = exports.updateProfileValidators = exports.updateProfileTransformers = exports.UpdateProfileInput = exports.updateEmailValidators = exports.updateEmailTransformers = exports.UpdateEmailInput = exports.updatePasswordValidators = exports.updatePasswordTransformers = exports.UpdatePasswordInput = exports.SendTokenPayload = exports.StatusPayload = exports.confirmEmailValidators = exports.ConfirmEmailInput = exports.forgotPasswordValidators = exports.forgotPasswordTransformers = exports.ForgotPasswordInput = exports.authTransformers = exports.loginValidators = exports.registerValidators = exports.AuthInput = exports.passwordValidators = exports.passwordTransformers = exports.PasswordInput = void 0;
|
|
7
7
|
var PasswordInput_1 = require("./PasswordInput");
|
|
8
8
|
Object.defineProperty(exports, "PasswordInput", { enumerable: true, get: function () { return __importDefault(PasswordInput_1).default; } });
|
|
9
9
|
Object.defineProperty(exports, "passwordTransformers", { enumerable: true, get: function () { return PasswordInput_1.passwordTransformers; } });
|
|
@@ -47,3 +47,5 @@ Object.defineProperty(exports, "recoverPasswordValidators", { enumerable: true,
|
|
|
47
47
|
var OauthInput_1 = require("./OauthInput");
|
|
48
48
|
Object.defineProperty(exports, "OauthLoginInput", { enumerable: true, get: function () { return OauthInput_1.OauthLoginInput; } });
|
|
49
49
|
Object.defineProperty(exports, "TelegramAuthData", { enumerable: true, get: function () { return OauthInput_1.TelegramAuthData; } });
|
|
50
|
+
var ResultAndDescription_1 = require("./ResultAndDescription");
|
|
51
|
+
Object.defineProperty(exports, "ResultAndDescription", { enumerable: true, get: function () { return __importDefault(ResultAndDescription_1).default; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skroz/profile-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "git@gitlab.com:skroz/libs/utils.git",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"type-graphql": "^1.1.1",
|
|
45
45
|
"typeorm": "^0.2.45"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "fe4ee603e441d8e65f1c77eebdd2359b2b99a789"
|
|
48
48
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Field, ObjectType } from 'type-graphql';
|
|
2
|
+
|
|
3
|
+
@ObjectType({ isAbstract: true })
|
|
4
|
+
class ResultAndDescription {
|
|
5
|
+
@Field(() => Boolean)
|
|
6
|
+
ok!: boolean;
|
|
7
|
+
|
|
8
|
+
@Field(() => String, { nullable: true })
|
|
9
|
+
description?: string | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ResultAndDescription;
|
package/src/dto/index.ts
CHANGED
|
@@ -15,3 +15,4 @@ export { default as UpdateProfileInput, updateProfileTransformers, updateProfile
|
|
|
15
15
|
export { default as SendTokenInput, sendTokenTransformers, sendTokenValidators } from './SendTokenInput';
|
|
16
16
|
export { default as RecoverPasswordInput, recoverPasswordTransformers, recoverPasswordValidators } from './RecoverPasswordInput';
|
|
17
17
|
export { OauthLoginInput, TelegramAuthData } from './OauthInput';
|
|
18
|
+
export { default as ResultAndDescription } from './ResultAndDescription';
|