@umapi/contracts 1.0.27 → 1.0.28

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,7 @@
1
+ export declare class GetProfileResponseDto {
2
+ firstName: string | null;
3
+ lastName: string | null;
4
+ middleName: string | null;
5
+ profileIncomplete: boolean;
6
+ }
7
+ //# sourceMappingURL=get-profile-response.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-profile-response.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/profile/get-profile-response.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAMxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAOzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,iBAAiB,EAAE,OAAO,CAAC;CACpC"}
@@ -0,0 +1,50 @@
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.GetProfileResponseDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ class GetProfileResponseDto {
16
+ }
17
+ exports.GetProfileResponseDto = GetProfileResponseDto;
18
+ __decorate([
19
+ (0, swagger_1.ApiProperty)({
20
+ description: 'Имя пользователя',
21
+ example: 'Иван',
22
+ nullable: true,
23
+ }),
24
+ __metadata("design:type", Object)
25
+ ], GetProfileResponseDto.prototype, "firstName", void 0);
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({
28
+ description: 'Фамилия пользователя',
29
+ example: 'Иванов',
30
+ nullable: true,
31
+ }),
32
+ __metadata("design:type", Object)
33
+ ], GetProfileResponseDto.prototype, "lastName", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({
36
+ description: 'Отчество пользователя',
37
+ example: 'Иванович',
38
+ nullable: true,
39
+ }),
40
+ __metadata("design:type", Object)
41
+ ], GetProfileResponseDto.prototype, "middleName", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({
44
+ description: 'Флаг, указывающий, что профиль не заполнен',
45
+ example: true,
46
+ }),
47
+ (0, class_validator_1.IsBoolean)(),
48
+ __metadata("design:type", Boolean)
49
+ ], GetProfileResponseDto.prototype, "profileIncomplete", void 0);
50
+ //# sourceMappingURL=get-profile-response.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-profile-response.dto.js","sourceRoot":"","sources":["../../../src/dto/profile/get-profile-response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,6CAA8C;AAE9C,MAAa,qBAAqB;CA4BjC;AA5BD,sDA4BC;AAtBS;IALP,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;wDAC+B;AAOzB;IALP,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;;uDAC8B;AAOxB;IALP,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;yDACgC;AAO1B;IALP,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,IAAI;KACd,CAAC;IACD,IAAA,2BAAS,GAAE;;gEACuB"}
@@ -0,0 +1,6 @@
1
+ export declare class UpdateProfileDto {
2
+ firstName?: string;
3
+ lastName?: string;
4
+ middleName?: string;
5
+ }
6
+ //# sourceMappingURL=update-profile.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-profile.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/profile/update-profile.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAS3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAUnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAUlB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,51 @@
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.UpdateProfileDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ class UpdateProfileDto {
16
+ }
17
+ exports.UpdateProfileDto = UpdateProfileDto;
18
+ __decorate([
19
+ (0, swagger_1.ApiProperty)({
20
+ description: 'Имя пользователя',
21
+ example: 'Иван',
22
+ required: false,
23
+ }),
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.Length)(1, 50),
27
+ __metadata("design:type", String)
28
+ ], UpdateProfileDto.prototype, "firstName", void 0);
29
+ __decorate([
30
+ (0, swagger_1.ApiProperty)({
31
+ description: 'Фамилия пользователя',
32
+ example: 'Иванов',
33
+ required: false,
34
+ }),
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.Length)(1, 50),
38
+ __metadata("design:type", String)
39
+ ], UpdateProfileDto.prototype, "lastName", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({
42
+ description: 'Отчество пользователя',
43
+ example: 'Иванович',
44
+ required: false,
45
+ }),
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsString)(),
48
+ (0, class_validator_1.Length)(1, 50),
49
+ __metadata("design:type", String)
50
+ ], UpdateProfileDto.prototype, "middleName", void 0);
51
+ //# sourceMappingURL=update-profile.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-profile.dto.js","sourceRoot":"","sources":["../../../src/dto/profile/update-profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6CAA8C;AAE9C,MAAa,gBAAgB;CA8B5B;AA9BD,4CA8BC;AArBC;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,CAAC;;mDACK;AAUnB;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,CAAC;;kDACI;AAUlB;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,CAAC;;oDACM"}
@@ -0,0 +1,10 @@
1
+ export * from './dto';
2
+ export * from './interfaces';
3
+ export * from './helpers/phone.helper';
4
+ export * from './dto/bind-identifier-request.dto';
5
+ export * from './dto/bind-identifier-response.dto';
6
+ export * from './dto/bind-identifier-success-response.dto';
7
+ export * from './dto/confirm-new-identifier-request.dto';
8
+ export * from './dto/profile/update-profile.dto';
9
+ export * from './dto/profile/get-profile-response.dto';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Экспорт всех контрактов
18
+ __exportStar(require("./dto"), exports);
19
+ __exportStar(require("./interfaces"), exports);
20
+ __exportStar(require("./helpers/phone.helper"), exports);
21
+ __exportStar(require("./dto/bind-identifier-request.dto"), exports);
22
+ __exportStar(require("./dto/bind-identifier-response.dto"), exports);
23
+ __exportStar(require("./dto/bind-identifier-success-response.dto"), exports);
24
+ __exportStar(require("./dto/confirm-new-identifier-request.dto"), exports);
25
+ __exportStar(require("./dto/profile/update-profile.dto"), exports);
26
+ __exportStar(require("./dto/profile/get-profile-response.dto"), exports);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,wCAAsB;AACtB,+CAA6B;AAC7B,yDAAuC;AACvC,oEAAkD;AAClD,qEAAmD;AACnD,6EAA2D;AAC3D,2EAAyD;AACzD,mEAAiD;AACjD,yEAAuD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umapi/contracts",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Shared contracts for UMAPI microservices",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",