@signa-app/dto 0.1.0

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.
Files changed (46) hide show
  1. package/README.md +36 -0
  2. package/dist/dto/auth.dto.d.ts +37 -0
  3. package/dist/dto/auth.dto.d.ts.map +1 -0
  4. package/dist/dto/auth.dto.js +213 -0
  5. package/dist/dto/auth.dto.js.map +1 -0
  6. package/dist/dto/box-offer.dto.d.ts +17 -0
  7. package/dist/dto/box-offer.dto.d.ts.map +1 -0
  8. package/dist/dto/box-offer.dto.js +86 -0
  9. package/dist/dto/box-offer.dto.js.map +1 -0
  10. package/dist/dto/box-slot.dto.d.ts +18 -0
  11. package/dist/dto/box-slot.dto.d.ts.map +1 -0
  12. package/dist/dto/box-slot.dto.js +89 -0
  13. package/dist/dto/box-slot.dto.js.map +1 -0
  14. package/dist/dto/box.dto.d.ts +23 -0
  15. package/dist/dto/box.dto.d.ts.map +1 -0
  16. package/dist/dto/box.dto.js +107 -0
  17. package/dist/dto/box.dto.js.map +1 -0
  18. package/dist/dto/chat.dto.d.ts +38 -0
  19. package/dist/dto/chat.dto.d.ts.map +1 -0
  20. package/dist/dto/chat.dto.js +181 -0
  21. package/dist/dto/chat.dto.js.map +1 -0
  22. package/dist/dto/message.dto.d.ts +41 -0
  23. package/dist/dto/message.dto.d.ts.map +1 -0
  24. package/dist/dto/message.dto.js +263 -0
  25. package/dist/dto/message.dto.js.map +1 -0
  26. package/dist/dto/payment.d.ts +60 -0
  27. package/dist/dto/payment.d.ts.map +1 -0
  28. package/dist/dto/payment.js +258 -0
  29. package/dist/dto/payment.js.map +1 -0
  30. package/dist/dto/user.dto.d.ts +18 -0
  31. package/dist/dto/user.dto.d.ts.map +1 -0
  32. package/dist/dto/user.dto.js +96 -0
  33. package/dist/dto/user.dto.js.map +1 -0
  34. package/dist/dto//321/201ommon.dto.d.ts +19 -0
  35. package/dist/dto//321/201ommon.dto.d.ts.map +1 -0
  36. package/dist/dto//321/201ommon.dto.js +53 -0
  37. package/dist/dto//321/201ommon.dto.js.map +1 -0
  38. package/dist/index.d.ts +12 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +37 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/types/query-parameters.d.ts +19 -0
  43. package/dist/types/query-parameters.d.ts.map +1 -0
  44. package/dist/types/query-parameters.js +3 -0
  45. package/dist/types/query-parameters.js.map +1 -0
  46. package/package.json +45 -0
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # signa-dto
2
+
3
+ Shared TypeScript DTO and type package for Signa Next and Nest applications.
4
+
5
+ ## Setup
6
+
7
+ ```bash
8
+ npm install
9
+ npm run build
10
+ ```
11
+
12
+ ## Adding Types
13
+
14
+ Put DTO and type files into `src/` and export them from `src/index.ts`.
15
+
16
+ Example:
17
+
18
+ ```ts
19
+ export * from "./auth";
20
+ export * from "./users";
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```ts
26
+ import type { SomeDto } from "@signa-app/dto";
27
+ ```
28
+
29
+ ## Publishing
30
+
31
+ ```bash
32
+ npm version patch
33
+ npm publish
34
+ ```
35
+
36
+ Before publishing, update the package name, license, and access settings if needed.
@@ -0,0 +1,37 @@
1
+ import { GetUserDTO } from "./user.dto";
2
+ import { EChains } from "@signa-app/entities";
3
+ export declare class GetNonceResponseDTO {
4
+ nonce: string;
5
+ message: string;
6
+ }
7
+ export declare class ValidateEtnRequestDTO {
8
+ nonce: string;
9
+ message: string;
10
+ signature: string;
11
+ address: string;
12
+ chainId: number;
13
+ }
14
+ export declare class ValidateEtnResponseDTO {
15
+ ok: boolean;
16
+ address?: string;
17
+ isExist: boolean;
18
+ existed?: any;
19
+ accessToken?: string;
20
+ }
21
+ export declare class CheckAvailableUsernameRequestDTO {
22
+ userName: string;
23
+ }
24
+ export declare class CheckAvailableUsernameResponseDTO {
25
+ isAvailable: boolean;
26
+ }
27
+ export declare class RegistrationUserRequestDTO {
28
+ address: string;
29
+ chain: EChains;
30
+ userName: string;
31
+ displayName?: string;
32
+ }
33
+ export declare class RegistrationUserResponseDTO {
34
+ user: GetUserDTO;
35
+ accessToken: string;
36
+ }
37
+ //# sourceMappingURL=auth.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.dto.d.ts","sourceRoot":"","sources":["../../src/dto/auth.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAYtC,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAG5C,qBAAa,mBAAmB;IAK9B,KAAK,EAAE,MAAM,CAAC;IAMd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,qBAAqB;IAMhC,KAAK,EAAE,MAAM,CAAC;IAOd,OAAO,EAAE,MAAM,CAAC;IAOhB,SAAS,EAAE,MAAM,CAAC;IAalB,OAAO,EAAE,MAAM,CAAC;IAOhB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,sBAAsB;IAKjC,EAAE,EAAE,OAAO,CAAC;IAOZ,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,OAAO,EAAE,OAAO,CAAC;IAOjB,OAAO,CAAC,EAAE,GAAG,CAAC;IAOd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,gCAAgC;IAM3C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,iCAAiC;IAK5C,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,qBAAa,0BAA0B;IAYrC,OAAO,EAAG,MAAM,CAAC;IASjB,KAAK,EAAE,OAAO,CAAC;IAaf,QAAQ,EAAG,MAAM,CAAC;IAQlB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,2BAA2B;IAKtC,IAAI,EAAE,UAAU,CAAC;IAMjB,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,213 @@
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.RegistrationUserResponseDTO = exports.RegistrationUserRequestDTO = exports.CheckAvailableUsernameResponseDTO = exports.CheckAvailableUsernameRequestDTO = exports.ValidateEtnResponseDTO = exports.ValidateEtnRequestDTO = exports.GetNonceResponseDTO = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const user_dto_1 = require("./user.dto");
15
+ const class_validator_1 = require("class-validator");
16
+ const entities_1 = require("@signa-app/entities");
17
+ const _ommon_dto_1 = require("./\u0441ommon.dto");
18
+ class GetNonceResponseDTO {
19
+ }
20
+ exports.GetNonceResponseDTO = GetNonceResponseDTO;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ description: "Generated nonce string",
24
+ example: "123e4567e89b12d3a456426614174000",
25
+ }),
26
+ __metadata("design:type", String)
27
+ ], GetNonceResponseDTO.prototype, "nonce", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ description: "Message to be signed",
31
+ example: "Signa login\nNonce: 123e4567...\nIssuedAt: 2023-12-25T12:00:00.000Z",
32
+ }),
33
+ __metadata("design:type", String)
34
+ ], GetNonceResponseDTO.prototype, "message", void 0);
35
+ class ValidateEtnRequestDTO {
36
+ }
37
+ exports.ValidateEtnRequestDTO = ValidateEtnRequestDTO;
38
+ __decorate([
39
+ (0, swagger_1.ApiProperty)({
40
+ description: "Generated nonce",
41
+ example: "123e4567e89b12d3a456426614174000",
42
+ }),
43
+ (0, class_validator_1.IsString)(),
44
+ __metadata("design:type", String)
45
+ ], ValidateEtnRequestDTO.prototype, "nonce", void 0);
46
+ __decorate([
47
+ (0, swagger_1.ApiProperty)({
48
+ description: "Message that was signed by the wallet",
49
+ example: "Signa login\nNonce: 123e4567...\nIssuedAt: 2023-12-25T12:00:00.000Z",
50
+ }),
51
+ (0, class_validator_1.IsString)(),
52
+ __metadata("design:type", String)
53
+ ], ValidateEtnRequestDTO.prototype, "message", void 0);
54
+ __decorate([
55
+ (0, swagger_1.ApiProperty)({
56
+ description: "Signature of the message signed by the wallet",
57
+ example: "0x1234567890abcdef...",
58
+ }),
59
+ (0, class_validator_1.IsString)(),
60
+ __metadata("design:type", String)
61
+ ], ValidateEtnRequestDTO.prototype, "signature", void 0);
62
+ __decorate([
63
+ (0, swagger_1.ApiProperty)({
64
+ description: "Wallet address",
65
+ example: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
66
+ }),
67
+ (0, class_validator_1.IsDefined)({ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_REQUIRED }),
68
+ (0, class_validator_1.IsString)({ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_REQUIRED }),
69
+ (0, class_validator_1.IsNotEmpty)({ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_REQUIRED }),
70
+ (0, class_validator_1.Matches)(/^0x[a-fA-F0-9]{40}$/, {
71
+ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_FORMAT,
72
+ }),
73
+ (0, class_validator_1.Length)(42, 42, { message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_LENGTH }),
74
+ __metadata("design:type", String)
75
+ ], ValidateEtnRequestDTO.prototype, "address", void 0);
76
+ __decorate([
77
+ (0, swagger_1.ApiProperty)({
78
+ description: 'Chain ID of the network (e.g. "1" for Ethereum mainnet)',
79
+ example: 1,
80
+ }),
81
+ (0, class_validator_1.IsNumber)(),
82
+ __metadata("design:type", Number)
83
+ ], ValidateEtnRequestDTO.prototype, "chainId", void 0);
84
+ class ValidateEtnResponseDTO {
85
+ }
86
+ exports.ValidateEtnResponseDTO = ValidateEtnResponseDTO;
87
+ __decorate([
88
+ (0, swagger_1.ApiProperty)({
89
+ description: "Whether signature verification was successful",
90
+ example: true,
91
+ }),
92
+ __metadata("design:type", Boolean)
93
+ ], ValidateEtnResponseDTO.prototype, "ok", void 0);
94
+ __decorate([
95
+ (0, swagger_1.ApiProperty)({
96
+ description: "ETH wallet address that signed the message",
97
+ example: "0x1234567890abcdef...",
98
+ required: false,
99
+ }),
100
+ __metadata("design:type", String)
101
+ ], ValidateEtnResponseDTO.prototype, "address", void 0);
102
+ __decorate([
103
+ (0, swagger_1.ApiProperty)({
104
+ description: "Whether the user already exists in the system",
105
+ example: true,
106
+ }),
107
+ __metadata("design:type", Boolean)
108
+ ], ValidateEtnResponseDTO.prototype, "isExist", void 0);
109
+ __decorate([
110
+ (0, swagger_1.ApiProperty)({
111
+ description: "User details if the user exists",
112
+ type: () => user_dto_1.GetUserDTO,
113
+ required: false,
114
+ }),
115
+ __metadata("design:type", Object)
116
+ ], ValidateEtnResponseDTO.prototype, "existed", void 0);
117
+ __decorate([
118
+ (0, swagger_1.ApiProperty)({
119
+ description: "JWT token for authentication (access token)",
120
+ example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
121
+ required: false,
122
+ }),
123
+ __metadata("design:type", String)
124
+ ], ValidateEtnResponseDTO.prototype, "accessToken", void 0);
125
+ class CheckAvailableUsernameRequestDTO {
126
+ }
127
+ exports.CheckAvailableUsernameRequestDTO = CheckAvailableUsernameRequestDTO;
128
+ __decorate([
129
+ (0, swagger_1.ApiProperty)({
130
+ description: "Username to check availability",
131
+ example: "john_doe",
132
+ }),
133
+ (0, class_validator_1.IsString)(),
134
+ __metadata("design:type", String)
135
+ ], CheckAvailableUsernameRequestDTO.prototype, "userName", void 0);
136
+ class CheckAvailableUsernameResponseDTO {
137
+ }
138
+ exports.CheckAvailableUsernameResponseDTO = CheckAvailableUsernameResponseDTO;
139
+ __decorate([
140
+ (0, swagger_1.ApiProperty)({
141
+ description: "Whether the username is available",
142
+ example: true,
143
+ }),
144
+ __metadata("design:type", Boolean)
145
+ ], CheckAvailableUsernameResponseDTO.prototype, "isAvailable", void 0);
146
+ class RegistrationUserRequestDTO {
147
+ }
148
+ exports.RegistrationUserRequestDTO = RegistrationUserRequestDTO;
149
+ __decorate([
150
+ (0, swagger_1.ApiProperty)({
151
+ description: "Wallet address of the user",
152
+ example: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
153
+ }),
154
+ (0, class_validator_1.IsDefined)({ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_REQUIRED }),
155
+ (0, class_validator_1.IsString)({ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_REQUIRED }),
156
+ (0, class_validator_1.IsNotEmpty)({ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_REQUIRED }),
157
+ (0, class_validator_1.Matches)(/^0x[a-fA-F0-9]{40}$/, {
158
+ message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_FORMAT,
159
+ }),
160
+ (0, class_validator_1.Length)(42, 42, { message: _ommon_dto_1.EApiErrorCode.ETH_ADDRESS_LENGTH }),
161
+ __metadata("design:type", String)
162
+ ], RegistrationUserRequestDTO.prototype, "address", void 0);
163
+ __decorate([
164
+ (0, swagger_1.ApiProperty)({
165
+ description: "Blockchain network",
166
+ enum: entities_1.EChains,
167
+ example: entities_1.EChains.ETH,
168
+ enumName: "EChains",
169
+ }),
170
+ (0, class_validator_1.IsEnum)(entities_1.EChains, { message: _ommon_dto_1.EApiErrorCode.INVALID_CHAIN }),
171
+ __metadata("design:type", String)
172
+ ], RegistrationUserRequestDTO.prototype, "chain", void 0);
173
+ __decorate([
174
+ (0, swagger_1.ApiProperty)({
175
+ description: "Unique username",
176
+ example: "john_doe",
177
+ minLength: 3, // Add appropriate minimum length based on your requirements
178
+ pattern: "^[a-zA-Z0-9_-]+$",
179
+ }),
180
+ (0, class_validator_1.IsDefined)({ message: _ommon_dto_1.EApiErrorCode.USERNAME_REQUIRED }),
181
+ (0, class_validator_1.IsString)({ message: _ommon_dto_1.EApiErrorCode.USERNAME_REQUIRED }),
182
+ (0, class_validator_1.IsNotEmpty)({ message: _ommon_dto_1.EApiErrorCode.USERNAME_REQUIRED }),
183
+ (0, class_validator_1.MinLength)(5, { message: _ommon_dto_1.EApiErrorCode.USERNAME_MIN }),
184
+ (0, class_validator_1.Matches)(/^[a-zA-Z0-9_-]+$/, { message: _ommon_dto_1.EApiErrorCode.USERNAME_FORMAT }),
185
+ __metadata("design:type", String)
186
+ ], RegistrationUserRequestDTO.prototype, "userName", void 0);
187
+ __decorate([
188
+ (0, swagger_1.ApiProperty)({
189
+ description: "Display name shown to other users",
190
+ example: "John Doe",
191
+ required: false,
192
+ }),
193
+ (0, class_validator_1.IsOptional)(),
194
+ __metadata("design:type", String)
195
+ ], RegistrationUserRequestDTO.prototype, "displayName", void 0);
196
+ class RegistrationUserResponseDTO {
197
+ }
198
+ exports.RegistrationUserResponseDTO = RegistrationUserResponseDTO;
199
+ __decorate([
200
+ (0, swagger_1.ApiProperty)({
201
+ description: "User details after registration",
202
+ type: () => user_dto_1.GetUserDTO,
203
+ }),
204
+ __metadata("design:type", user_dto_1.GetUserDTO)
205
+ ], RegistrationUserResponseDTO.prototype, "user", void 0);
206
+ __decorate([
207
+ (0, swagger_1.ApiProperty)({
208
+ description: "JWT token for authentication (access token)",
209
+ example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
210
+ }),
211
+ __metadata("design:type", String)
212
+ ], RegistrationUserResponseDTO.prototype, "accessToken", void 0);
213
+ //# sourceMappingURL=auth.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../src/dto/auth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AC,CAAC;IACnD,IAAA,yBAAO,EAAC,kBAAkB,EAAE,EAAC,OAAO,EAAE,0BAAa,CAAC,eAAe,EAAC,CAAC;;4DACpD;AAQlB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;;+DACQ;AAGvB,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAPC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,GAAG,EAAE,CAAC,qBAAU;KACvB,CAAC;8BACI,qBAAU;yDAAC;AAMjB;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,yCAAyC;KACnD,CAAC;;gEACkB"}
@@ -0,0 +1,17 @@
1
+ import { BoxOfferEntity } from "@signa-app/entities";
2
+ import { BoxDTO } from "./box.dto";
3
+ export declare class CreateBoxOffersRequestDTO {
4
+ boxUuids: string[];
5
+ }
6
+ export declare class DeleteBoxOffersRequestDTO {
7
+ orderUuids: string[];
8
+ }
9
+ export declare class BoxOfferDTO {
10
+ uuid: string;
11
+ box: BoxDTO;
12
+ chatUuid: string | null;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ static fromEntity(entity: BoxOfferEntity): BoxOfferDTO;
16
+ }
17
+ //# sourceMappingURL=box-offer.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-offer.dto.d.ts","sourceRoot":"","sources":["../../src/dto/box-offer.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAGjC,qBAAa,yBAAyB;IASpC,QAAQ,EAAG,MAAM,EAAE,CAAC;CACrB;AAED,qBAAa,yBAAyB;IASpC,UAAU,EAAG,MAAM,EAAE,CAAC;CACvB;AAED,qBAAa,WAAW;IAEtB,IAAI,EAAG,MAAM,CAAC;IAGd,GAAG,EAAG,MAAM,CAAC;IAOb,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAMzB,SAAS,EAAG,IAAI,CAAC;IAMjB,SAAS,EAAG,IAAI,CAAC;IAEjB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,WAAW;CASvD"}
@@ -0,0 +1,86 @@
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.BoxOfferDTO = exports.DeleteBoxOffersRequestDTO = exports.CreateBoxOffersRequestDTO = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const box_dto_1 = require("./box.dto");
15
+ const class_validator_1 = require("class-validator");
16
+ class CreateBoxOffersRequestDTO {
17
+ }
18
+ exports.CreateBoxOffersRequestDTO = CreateBoxOffersRequestDTO;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({
21
+ description: "Array of box UUIDs to create offers for",
22
+ example: ["123e4567-e89b-12d3-a456-426614174000", "123e4567-e89b-12d3-a456-426614174001"],
23
+ isArray: true,
24
+ }),
25
+ (0, class_validator_1.IsArray)(),
26
+ (0, class_validator_1.ArrayNotEmpty)(),
27
+ (0, class_validator_1.IsUUID)("4", { each: true }),
28
+ __metadata("design:type", Array)
29
+ ], CreateBoxOffersRequestDTO.prototype, "boxUuids", void 0);
30
+ class DeleteBoxOffersRequestDTO {
31
+ }
32
+ exports.DeleteBoxOffersRequestDTO = DeleteBoxOffersRequestDTO;
33
+ __decorate([
34
+ (0, swagger_1.ApiProperty)({
35
+ description: "Array of box offer UUIDs to delete",
36
+ example: ["123e4567-e89b-12d3-a456-426614174000", "123e4567-e89b-12d3-a456-426614174001"],
37
+ isArray: true,
38
+ }),
39
+ (0, class_validator_1.IsArray)(),
40
+ (0, class_validator_1.ArrayNotEmpty)(),
41
+ (0, class_validator_1.IsUUID)("4", { each: true }),
42
+ __metadata("design:type", Array)
43
+ ], DeleteBoxOffersRequestDTO.prototype, "orderUuids", void 0);
44
+ class BoxOfferDTO {
45
+ static fromEntity(entity) {
46
+ const dto = new BoxOfferDTO();
47
+ dto.uuid = entity.uuid;
48
+ dto.box = box_dto_1.BoxDTO.fromEntity(entity.box);
49
+ dto.chatUuid = entity.chat?.uuid ?? null;
50
+ dto.createdAt = entity.createdAt;
51
+ dto.updatedAt = entity.updatedAt;
52
+ return dto;
53
+ }
54
+ }
55
+ exports.BoxOfferDTO = BoxOfferDTO;
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({ description: "Box offer UUID", example: "123e4567-e89b-12d3-a456-426614174000" }),
58
+ __metadata("design:type", String)
59
+ ], BoxOfferDTO.prototype, "uuid", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiProperty)({ description: "Related box", type: box_dto_1.BoxDTO }),
62
+ __metadata("design:type", box_dto_1.BoxDTO)
63
+ ], BoxOfferDTO.prototype, "box", void 0);
64
+ __decorate([
65
+ (0, swagger_1.ApiProperty)({
66
+ description: "Chat UUID where this offer is attached",
67
+ example: "123e4567-e89b-12d3-a456-426614174002",
68
+ nullable: true,
69
+ }),
70
+ __metadata("design:type", Object)
71
+ ], BoxOfferDTO.prototype, "chatUuid", void 0);
72
+ __decorate([
73
+ (0, swagger_1.ApiProperty)({
74
+ description: "Box offer creation timestamp",
75
+ example: "2023-01-01T00:00:00Z",
76
+ }),
77
+ __metadata("design:type", Date)
78
+ ], BoxOfferDTO.prototype, "createdAt", void 0);
79
+ __decorate([
80
+ (0, swagger_1.ApiProperty)({
81
+ description: "Box offer last update timestamp",
82
+ example: "2023-01-01T00:00:00Z",
83
+ }),
84
+ __metadata("design:type", Date)
85
+ ], BoxOfferDTO.prototype, "updatedAt", void 0);
86
+ //# sourceMappingURL=box-offer.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-offer.dto.js","sourceRoot":"","sources":["../../src/dto/box-offer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAE5C,uCAAiC;AACjC,qDAA+D;AAE/D,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AADC;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,CAAC,sCAAsC,EAAE,sCAAsC,CAAC;QACzF,OAAO,EAAE,IAAI;KACd,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,wBAAM,EAAC,GAAG,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;;2DACN;AAGtB,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AADC;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,CAAC,sCAAsC,EAAE,sCAAsC,CAAC;QACzF,OAAO,EAAE,IAAI;KACd,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,wBAAM,EAAC,GAAG,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;;6DACJ;AAGxB,MAAa,WAAW;IA0BtB,MAAM,CAAC,UAAU,CAAC,MAAsB;QACtC,MAAM,GAAG,GAAG,IAAI,WAAW,EAAE,CAAC;QAC9B,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACvB,GAAG,CAAC,GAAG,GAAG,gBAAM,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxC,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC;QACzC,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QACjC,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QACjC,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAnCD,kCAmCC;AAjCC;IADC,IAAA,qBAAW,EAAC,EAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,sCAAsC,EAAC,CAAC;;yCAChF;AAGd;IADC,IAAA,qBAAW,EAAC,EAAC,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,gBAAM,EAAC,CAAC;8BAClD,gBAAM;wCAAC;AAOb;IALC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,sCAAsC;QAC/C,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACuB;AAMzB;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE,sBAAsB;KAChC,CAAC;8BACU,IAAI;8CAAC;AAMjB;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,sBAAsB;KAChC,CAAC;8BACU,IAAI;8CAAC"}
@@ -0,0 +1,18 @@
1
+ import { BoxSlotEntity, EBoxType, ECurrency } from "@signa-app/entities";
2
+ export declare class BoxSlotDTO {
3
+ uuid: string;
4
+ name: string;
5
+ type: EBoxType;
6
+ price: bigint;
7
+ currency: ECurrency;
8
+ memoryLimit: number;
9
+ logo?: string | null;
10
+ orderNo?: number | null;
11
+ isMostPopular: boolean;
12
+ static fromEntity(entity: BoxSlotEntity, mostPopularUuid: string | undefined | null): BoxSlotDTO;
13
+ }
14
+ export declare class BuyBoxSlotDTO {
15
+ name: string;
16
+ price: string;
17
+ }
18
+ //# sourceMappingURL=box-slot.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-slot.dto.d.ts","sourceRoot":"","sources":["../../src/dto/box-slot.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAEvE,qBAAa,UAAU;IAKrB,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,QAAQ,CAAC;IAOf,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,SAAS,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,aAAa,EAAE,OAAO,CAAS;IAE/B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,UAAU;CAajG;AAED,qBAAa,aAAa;IAExB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,89 @@
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.BuyBoxSlotDTO = exports.BoxSlotDTO = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const entities_1 = require("@signa-app/entities");
15
+ class BoxSlotDTO {
16
+ constructor() {
17
+ this.isMostPopular = false;
18
+ }
19
+ static fromEntity(entity, mostPopularUuid) {
20
+ const dto = new BoxSlotDTO();
21
+ dto.uuid = entity.uuid;
22
+ dto.name = entity.name;
23
+ dto.type = entity.type;
24
+ dto.price = entity.price;
25
+ dto.currency = entity.currency;
26
+ dto.memoryLimit = entity.memoryLimit;
27
+ dto.logo = entity.logo ?? null;
28
+ dto.orderNo = entity.orderNo ?? null;
29
+ dto.isMostPopular = mostPopularUuid ? mostPopularUuid === entity.uuid : false;
30
+ return dto;
31
+ }
32
+ }
33
+ exports.BoxSlotDTO = BoxSlotDTO;
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({
36
+ description: "Box slot UUID",
37
+ example: "123e4567-e89b-12d3-a456-426614174000",
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], BoxSlotDTO.prototype, "uuid", void 0);
41
+ __decorate([
42
+ (0, swagger_1.ApiProperty)({ description: "Slot/plan name", example: "Basic" }),
43
+ __metadata("design:type", String)
44
+ ], BoxSlotDTO.prototype, "name", void 0);
45
+ __decorate([
46
+ (0, swagger_1.ApiProperty)({ description: "Slot type", enum: entities_1.EBoxType }),
47
+ __metadata("design:type", String)
48
+ ], BoxSlotDTO.prototype, "type", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiProperty)({
51
+ description: "Price (bigint, e.g., Wei)",
52
+ example: "990000000000000000",
53
+ })
54
+ // bigint in TS runtime is usually serialized as string; keep bigint to match entity
55
+ ,
56
+ __metadata("design:type", BigInt)
57
+ ], BoxSlotDTO.prototype, "price", void 0);
58
+ __decorate([
59
+ (0, swagger_1.ApiProperty)({ description: "Currency", enum: entities_1.ECurrency }),
60
+ __metadata("design:type", String)
61
+ ], BoxSlotDTO.prototype, "currency", void 0);
62
+ __decorate([
63
+ (0, swagger_1.ApiProperty)({ description: "Memory limit (number)", example: 1024 }),
64
+ __metadata("design:type", Number)
65
+ ], BoxSlotDTO.prototype, "memoryLimit", void 0);
66
+ __decorate([
67
+ (0, swagger_1.ApiPropertyOptional)({ description: "Logo filename or relative path", example: "basic.svg", nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], BoxSlotDTO.prototype, "logo", void 0);
70
+ __decorate([
71
+ (0, swagger_1.ApiPropertyOptional)({ description: "Sort order number", example: 1, nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], BoxSlotDTO.prototype, "orderNo", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({ description: "Indicates whether this plan is marked as most popular in the storefront", example: false, default: false }),
76
+ __metadata("design:type", Boolean)
77
+ ], BoxSlotDTO.prototype, "isMostPopular", void 0);
78
+ class BuyBoxSlotDTO {
79
+ }
80
+ exports.BuyBoxSlotDTO = BuyBoxSlotDTO;
81
+ __decorate([
82
+ (0, swagger_1.ApiProperty)({ description: "Slot/plan name", example: "Basic" }),
83
+ __metadata("design:type", String)
84
+ ], BuyBoxSlotDTO.prototype, "name", void 0);
85
+ __decorate([
86
+ (0, swagger_1.ApiProperty)({ description: "Price of your new box", example: "Basic" }),
87
+ __metadata("design:type", String)
88
+ ], BuyBoxSlotDTO.prototype, "price", void 0);
89
+ //# sourceMappingURL=box-slot.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-slot.dto.js","sourceRoot":"","sources":["../../src/dto/box-slot.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AACjE,kDAAuE;AAEvE,MAAa,UAAU;IAAvB;QAiCE,kBAAa,GAAY,KAAK,CAAC;IAejC,CAAC;IAbC,MAAM,CAAC,UAAU,CAAC,MAAqB,EAAE,eAA0C;QACjF,MAAM,GAAG,GAAG,IAAI,UAAU,EA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O,EAAE,IAAI,EAAC,CAAC;;+CAC/C;AAGpB;IADC,IAAA,6BAAmB,EAAC,EAAC,WAAW,EAAE,gCAAgC,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;wCACtF;AAGrB;IADC,IAAA,6BAAmB,EAAC,EAAC,WAAW,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;2CAC5D;AAGxB;IADC,IAAA,qBAAW,EAAC,EAAC,WAAW,EAAE,yEAAyE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;;iDACvG;AAiBjC,MAAa,aAAa;CAMzB;AAND,sCAMC;AAJC;IADC,IAAA,qBAAW,EAAC,EAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAC,CAAC;;2CAClD;AAGb;IADC,IAAA,qBAAW,EAAC,EAAC,WAAW,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAO,EAAC,CAAC;;4CACxD"}
@@ -0,0 +1,23 @@
1
+ import { BoxEntity, ECurrency } from "@signa-app/entities";
2
+ export declare class BoxDTO {
3
+ uuid: string;
4
+ ownerUuid: string;
5
+ name?: string | null;
6
+ price?: string | null;
7
+ currency?: ECurrency | null;
8
+ actualFileSizeBytes?: string | null;
9
+ isClosed: boolean;
10
+ slotUuid?: string | null;
11
+ static fromEntity(entity: BoxEntity): BoxDTO;
12
+ }
13
+ export declare class BoxUpdateDTO {
14
+ name?: string | null;
15
+ price?: string | null;
16
+ }
17
+ export declare class BoxUpdateAndCloseRequestDTO {
18
+ boxContentKey: string;
19
+ }
20
+ export declare class BoxUpdateAndCloseResponseDTO {
21
+ presignedUrl: string;
22
+ }
23
+ //# sourceMappingURL=box.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box.dto.d.ts","sourceRoot":"","sources":["../../src/dto/box.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAGzD,qBAAa,MAAM;IAEjB,IAAI,EAAG,MAAM,CAAC;IAGd,SAAS,EAAG,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAG5B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,QAAQ,EAAG,OAAO,CAAC;IAOnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;CAY7C;AAED,qBAAa,YAAY;IAKvB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,2BAA2B;IAQtC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,4BAA4B;IAMvC,YAAY,EAAE,MAAM,CAAC;CACtB"}