@heliofi/common 0.0.7 → 0.0.9

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 (203) hide show
  1. package/dist/src/domain/model/approve-transaction/dtos/approveTransactionDto.d.ts +2 -1
  2. package/dist/src/domain/model/approve-transaction/dtos/approveTransactionDto.js +9 -6
  3. package/dist/src/domain/model/approve-transaction/dtos/approveTransactionDto.js.map +1 -1
  4. package/dist/src/domain/model/index.d.ts +2 -0
  5. package/dist/src/domain/model/index.js +2 -0
  6. package/dist/src/domain/model/index.js.map +1 -1
  7. package/dist/src/domain/model/link-features/dtos/linkFeaturesDto.d.ts +1 -0
  8. package/dist/src/domain/model/link-features/dtos/linkFeaturesDto.js +5 -0
  9. package/dist/src/domain/model/link-features/dtos/linkFeaturesDto.js.map +1 -1
  10. package/dist/src/domain/model/paylink/dtos/createPaylinkDto.d.ts +2 -0
  11. package/dist/src/domain/model/paylink/dtos/createPaylinkDto.js +8 -1
  12. package/dist/src/domain/model/paylink/dtos/createPaylinkDto.js.map +1 -1
  13. package/dist/src/domain/model/paylink-tx/entities/BasePaylinkTx.d.ts +3 -1
  14. package/dist/src/domain/model/paylink-tx/entities/BasePaylinkTx.js.map +1 -1
  15. package/dist/src/domain/model/payment-request/entities/PaymentRequest.d.ts +2 -0
  16. package/dist/src/domain/model/payment-request/entities/PaymentRequest.js.map +1 -1
  17. package/dist/src/domain/model/payment-request/entities/PaymentType.d.ts +4 -0
  18. package/dist/src/domain/model/payment-request/entities/PaymentType.js +9 -0
  19. package/dist/src/domain/model/payment-request/entities/PaymentType.js.map +1 -0
  20. package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.d.ts +2 -0
  21. package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.js.map +1 -1
  22. package/dist/src/domain/model/payment-request/entities/index.d.ts +1 -0
  23. package/dist/src/domain/model/payment-request/entities/index.js +1 -0
  24. package/dist/src/domain/model/payment-request/entities/index.js.map +1 -1
  25. package/dist/src/domain/model/payment-request-features/entities/PaymentRequestFeatures.d.ts +1 -0
  26. package/dist/src/domain/model/payment-request-features/entities/PaymentRequestFeatures.js.map +1 -1
  27. package/dist/src/domain/model/product/dtos/ProductDto.d.ts +6 -0
  28. package/dist/src/domain/model/product/dtos/ProductDto.js +37 -0
  29. package/dist/src/domain/model/product/dtos/ProductDto.js.map +1 -0
  30. package/dist/src/domain/model/product/dtos/index.d.ts +1 -0
  31. package/dist/src/domain/model/product/dtos/index.js +18 -0
  32. package/dist/src/domain/model/product/dtos/index.js.map +1 -0
  33. package/dist/src/domain/model/product/entities/Product.d.ts +7 -0
  34. package/dist/src/domain/model/product/entities/Product.js +8 -0
  35. package/dist/src/domain/model/product/entities/Product.js.map +1 -0
  36. package/dist/src/domain/model/product/entities/ProductInputType.d.ts +4 -0
  37. package/dist/src/domain/model/product/entities/ProductInputType.js +9 -0
  38. package/dist/src/domain/model/product/entities/ProductInputType.js.map +1 -0
  39. package/dist/src/domain/model/product/entities/index.d.ts +2 -0
  40. package/dist/src/domain/model/product/entities/index.js +19 -0
  41. package/dist/src/domain/model/product/entities/index.js.map +1 -0
  42. package/{src/domain/model/customer-details/index.ts → dist/src/domain/model/product/index.d.ts} +0 -0
  43. package/dist/src/domain/model/product/index.js +19 -0
  44. package/dist/src/domain/model/product/index.js.map +1 -0
  45. package/dist/src/domain/model/product-details/dtos/ProductDetailsDto.d.ts +4 -0
  46. package/dist/src/domain/model/product-details/dtos/ProductDetailsDto.js +30 -0
  47. package/dist/src/domain/model/product-details/dtos/ProductDetailsDto.js.map +1 -0
  48. package/dist/src/domain/model/product-details/dtos/index.d.ts +1 -0
  49. package/dist/src/domain/model/product-details/dtos/index.js +18 -0
  50. package/dist/src/domain/model/product-details/dtos/index.js.map +1 -0
  51. package/dist/src/domain/model/product-details/entities/ProductDetails.d.ts +5 -0
  52. package/dist/src/domain/model/product-details/entities/ProductDetails.js +8 -0
  53. package/dist/src/domain/model/product-details/entities/ProductDetails.js.map +1 -0
  54. package/dist/src/domain/model/product-details/entities/index.d.ts +1 -0
  55. package/dist/src/domain/model/product-details/entities/index.js +18 -0
  56. package/dist/src/domain/model/product-details/entities/index.js.map +1 -0
  57. package/{src/domain/model/attachment/index.ts → dist/src/domain/model/product-details/index.d.ts} +0 -0
  58. package/dist/src/domain/model/product-details/index.js +19 -0
  59. package/dist/src/domain/model/product-details/index.js.map +1 -0
  60. package/dist/src/domain/model/transaction-meta/dtos/CreateTransactionMetaDto.d.ts +2 -0
  61. package/dist/src/domain/model/transaction-meta/dtos/CreateTransactionMetaDto.js +14 -0
  62. package/dist/src/domain/model/transaction-meta/dtos/CreateTransactionMetaDto.js.map +1 -1
  63. package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.d.ts +2 -0
  64. package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.js.map +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +2 -2
  67. package/src/__tests__/index.test.ts +0 -5
  68. package/src/domain/constants/index.ts +0 -2
  69. package/src/domain/index.ts +0 -3
  70. package/src/domain/model/apiKey/dtos/createApiKeyDto.ts +0 -15
  71. package/src/domain/model/apiKey/dtos/index.ts +0 -2
  72. package/src/domain/model/apiKey/dtos/updateApiKeyDto.ts +0 -11
  73. package/src/domain/model/apiKey/entities/ApiKey.ts +0 -11
  74. package/src/domain/model/apiKey/entities/index.ts +0 -1
  75. package/src/domain/model/apiKey/index.ts +0 -2
  76. package/src/domain/model/approve-transaction/dtos/approveTransactionDto.ts +0 -62
  77. package/src/domain/model/approve-transaction/dtos/index.ts +0 -1
  78. package/src/domain/model/approve-transaction/index.ts +0 -1
  79. package/src/domain/model/attachment/dtos/createAttachmentDto.ts +0 -22
  80. package/src/domain/model/attachment/dtos/index.ts +0 -1
  81. package/src/domain/model/attachment/entities/Attachment.ts +0 -6
  82. package/src/domain/model/attachment/entities/AttachmentType.enum.ts +0 -3
  83. package/src/domain/model/attachment/entities/BaseAttachment.ts +0 -11
  84. package/src/domain/model/attachment/entities/ShallowEnrichedAttachment.ts +0 -6
  85. package/src/domain/model/attachment/entities/index.ts +0 -4
  86. package/src/domain/model/auth/dtos/index.ts +0 -1
  87. package/src/domain/model/auth/dtos/signOnDto.ts +0 -14
  88. package/src/domain/model/auth/entities/AuthResponse.ts +0 -9
  89. package/src/domain/model/auth/entities/AuthUser.ts +0 -13
  90. package/src/domain/model/auth/entities/index.ts +0 -2
  91. package/src/domain/model/auth/index.ts +0 -2
  92. package/src/domain/model/blockchain/constants/Cluster.ts +0 -5
  93. package/src/domain/model/blockchain/constants/index.ts +0 -1
  94. package/src/domain/model/blockchain/dtos/blockchainDto.ts +0 -11
  95. package/src/domain/model/blockchain/dtos/index.ts +0 -1
  96. package/src/domain/model/blockchain/entities/Blockchain.ts +0 -9
  97. package/src/domain/model/blockchain/entities/index.ts +0 -1
  98. package/src/domain/model/blockchain/index.ts +0 -3
  99. package/src/domain/model/company/dtos/createCompanyDto.ts +0 -29
  100. package/src/domain/model/company/dtos/index.ts +0 -2
  101. package/src/domain/model/company/dtos/updateCompanyDto.ts +0 -29
  102. package/src/domain/model/company/entities/Company.ts +0 -18
  103. package/src/domain/model/company/entities/index.ts +0 -1
  104. package/src/domain/model/company/index.ts +0 -2
  105. package/src/domain/model/content/dtos/contentDto.ts +0 -11
  106. package/src/domain/model/content/dtos/index.ts +0 -1
  107. package/src/domain/model/content/entities/Content.ts +0 -7
  108. package/src/domain/model/content/entities/index.ts +0 -1
  109. package/src/domain/model/content/index.ts +0 -2
  110. package/src/domain/model/currency/dtos/createCurrency.ts +0 -33
  111. package/src/domain/model/currency/dtos/index.ts +0 -2
  112. package/src/domain/model/currency/dtos/updateCurrency.ts +0 -39
  113. package/src/domain/model/currency/entities/BaseCurrency.ts +0 -17
  114. package/src/domain/model/currency/entities/Currency.ts +0 -6
  115. package/src/domain/model/currency/entities/index.ts +0 -2
  116. package/src/domain/model/currency/index.ts +0 -2
  117. package/src/domain/model/customer-details/dtos/CustomerDetailsDto.ts +0 -32
  118. package/src/domain/model/customer-details/dtos/index.ts +0 -1
  119. package/src/domain/model/customer-details/entities/CustomerDetails.ts +0 -17
  120. package/src/domain/model/customer-details/entities/index.ts +0 -1
  121. package/src/domain/model/discordDetails/dtos/createDiscordDetails.ts +0 -21
  122. package/src/domain/model/discordDetails/dtos/index.ts +0 -2
  123. package/src/domain/model/discordDetails/dtos/updateDiscordDetails.ts +0 -19
  124. package/src/domain/model/discordDetails/entities/BaseDiscordDetails.ts +0 -11
  125. package/src/domain/model/discordDetails/entities/DiscordDetails.ts +0 -6
  126. package/src/domain/model/discordDetails/entities/index.ts +0 -2
  127. package/src/domain/model/discordDetails/index.ts +0 -2
  128. package/src/domain/model/email/dtos/emailDto.ts +0 -46
  129. package/src/domain/model/email/dtos/index.ts +0 -1
  130. package/src/domain/model/email/index.ts +0 -1
  131. package/src/domain/model/entity/Entity.ts +0 -15
  132. package/src/domain/model/entity/index.ts +0 -1
  133. package/src/domain/model/index.ts +0 -21
  134. package/src/domain/model/link-features/dtos/index.ts +0 -1
  135. package/src/domain/model/link-features/dtos/linkFeaturesDto.ts +0 -39
  136. package/src/domain/model/link-features/entities/LinkFeatures.ts +0 -7
  137. package/src/domain/model/link-features/entities/index.ts +0 -1
  138. package/src/domain/model/link-features/index.ts +0 -2
  139. package/src/domain/model/paylink/dtos/createPaylinkDto.ts +0 -81
  140. package/src/domain/model/paylink/dtos/index.ts +0 -2
  141. package/src/domain/model/paylink/dtos/updatePaylinkDto.ts +0 -80
  142. package/src/domain/model/paylink/entities/BasePaylink.ts +0 -9
  143. package/src/domain/model/paylink/entities/OnlyContentPaylink.ts +0 -6
  144. package/src/domain/model/paylink/entities/Paylink.ts +0 -9
  145. package/src/domain/model/paylink/entities/ShallowEnrichedPaylink.ts +0 -9
  146. package/src/domain/model/paylink/entities/index.ts +0 -4
  147. package/src/domain/model/paylink/index.ts +0 -2
  148. package/src/domain/model/paylink-tx/dtos/createPaylinkTxDto.ts +0 -24
  149. package/src/domain/model/paylink-tx/dtos/index.ts +0 -2
  150. package/src/domain/model/paylink-tx/dtos/updatePaylinkTxDto.ts +0 -7
  151. package/src/domain/model/paylink-tx/entities/BasePaylinkTx.ts +0 -9
  152. package/src/domain/model/paylink-tx/entities/PaylinkTx.ts +0 -9
  153. package/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.ts +0 -15
  154. package/src/domain/model/paylink-tx/entities/ShallowEnrichedPaylinkTx.ts +0 -9
  155. package/src/domain/model/paylink-tx/entities/index.ts +0 -4
  156. package/src/domain/model/paylink-tx/index.ts +0 -2
  157. package/src/domain/model/payment-request/entities/BasePaymentRequest.ts +0 -21
  158. package/src/domain/model/payment-request/entities/PaymentRequest.ts +0 -15
  159. package/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.ts +0 -15
  160. package/src/domain/model/payment-request/entities/index.ts +0 -3
  161. package/src/domain/model/payment-request/index.ts +0 -1
  162. package/src/domain/model/payment-request-features/entities/PaymentRequestFeatures.ts +0 -17
  163. package/src/domain/model/payment-request-features/entities/index.ts +0 -1
  164. package/src/domain/model/payment-request-features/index.ts +0 -1
  165. package/src/domain/model/role/dtos/createRoleDto.ts +0 -20
  166. package/src/domain/model/role/dtos/index.ts +0 -2
  167. package/src/domain/model/role/dtos/updateRoleDto.ts +0 -10
  168. package/src/domain/model/role/entities/BaseRole.ts +0 -8
  169. package/src/domain/model/role/entities/Role.ts +0 -9
  170. package/src/domain/model/role/entities/RoleType.ts +0 -5
  171. package/src/domain/model/role/entities/ShallowEnrichedRole.ts +0 -9
  172. package/src/domain/model/role/entities/index.ts +0 -4
  173. package/src/domain/model/role/index.ts +0 -2
  174. package/src/domain/model/slug/dtos/index.ts +0 -1
  175. package/src/domain/model/slug/dtos/slug.ts +0 -20
  176. package/src/domain/model/slug/entities/Slug.ts +0 -15
  177. package/src/domain/model/slug/entities/SlugObjectType.ts +0 -5
  178. package/src/domain/model/slug/entities/index.ts +0 -2
  179. package/src/domain/model/slug/index.ts +0 -2
  180. package/src/domain/model/transaction-meta/dtos/CreateTransactionMetaDto.ts +0 -34
  181. package/src/domain/model/transaction-meta/dtos/index.ts +0 -1
  182. package/src/domain/model/transaction-meta/entities/BaseTransactionMeta.ts +0 -16
  183. package/src/domain/model/transaction-meta/entities/ShallowEnrichedTransactionMeta.ts +0 -6
  184. package/src/domain/model/transaction-meta/entities/TransactionMeta.ts +0 -6
  185. package/src/domain/model/transaction-meta/entities/index.ts +0 -3
  186. package/src/domain/model/transaction-meta/index.ts +0 -2
  187. package/src/domain/model/user/dtos/CreateUserDto.ts +0 -19
  188. package/src/domain/model/user/dtos/UpdateUserDto.ts +0 -24
  189. package/src/domain/model/user/dtos/index.ts +0 -2
  190. package/src/domain/model/user/entities/BaseUser.ts +0 -13
  191. package/src/domain/model/user/entities/ShallowEnrichedUser.ts +0 -9
  192. package/src/domain/model/user/entities/User.ts +0 -9
  193. package/src/domain/model/user/entities/index.ts +0 -3
  194. package/src/domain/model/user/index.ts +0 -2
  195. package/src/domain/model/wallet/dtos/UpdateWalletDto.ts +0 -8
  196. package/src/domain/model/wallet/dtos/index.ts +0 -1
  197. package/src/domain/model/wallet/entities/BaseWallet.ts +0 -7
  198. package/src/domain/model/wallet/entities/Wallet.ts +0 -6
  199. package/src/domain/model/wallet/entities/index.ts +0 -2
  200. package/src/domain/model/wallet/index.ts +0 -2
  201. package/src/domain/services/EmailService.ts +0 -6
  202. package/src/domain/services/index.ts +0 -1
  203. package/src/index.ts +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/common",
3
3
  "private": false,
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "description": "Common package",
6
6
  "main": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "class-validator": "^0.13.2",
17
17
  "moment": "^2.29.4"
18
18
  },
19
- "gitHead": "9eae10ae05d5c5c04aa816079f28ef5e4dee94f8"
19
+ "gitHead": "8af8cd9cca97c3a780096372bbc123383499ee6a"
20
20
  }
@@ -1,5 +0,0 @@
1
- describe('test', () => {
2
- it('should test', () => {
3
- expect(true).toBe(true);
4
- });
5
- });
@@ -1,2 +0,0 @@
1
- export const emailValidationRegExp =
2
- /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/;
@@ -1,3 +0,0 @@
1
- export * from './model';
2
- export * from './constants';
3
- export * from './services';
@@ -1,15 +0,0 @@
1
- import { IsString, IsNumber, IsOptional, IsNotEmpty } from 'class-validator';
2
-
3
- export class CreateApiKeyDto {
4
- @IsString()
5
- @IsNotEmpty()
6
- secretHash: string;
7
-
8
- @IsNumber()
9
- @IsNotEmpty()
10
- expiration: number;
11
-
12
- @IsOptional()
13
- @IsString()
14
- publicKey?: string;
15
- }
@@ -1,2 +0,0 @@
1
- export * from './createApiKeyDto';
2
- export * from './updateApiKeyDto';
@@ -1,11 +0,0 @@
1
- import { IsString, IsNumber, IsOptional } from 'class-validator';
2
-
3
- export class UpdateApiKeyDto {
4
- @IsOptional()
5
- @IsNumber()
6
- expiration?: number;
7
-
8
- @IsOptional()
9
- @IsString()
10
- publicKey?: string;
11
- }
@@ -1,11 +0,0 @@
1
- import { Entity } from '../../entity';
2
-
3
- export class ApiKey extends Entity {
4
- id: string;
5
-
6
- secretHash?: string;
7
-
8
- expiration: number;
9
-
10
- publicKey?: string;
11
- }
@@ -1 +0,0 @@
1
- export * from './ApiKey';
@@ -1,2 +0,0 @@
1
- export * from './dtos';
2
- export * from './entities';
@@ -1,62 +0,0 @@
1
- import {
2
- IsEmail,
3
- IsNotEmpty,
4
- IsNotEmptyObject,
5
- IsNumber,
6
- IsString,
7
- ValidateNested,
8
- } from 'class-validator';
9
- import { ApiProperty } from '@nestjs/swagger';
10
- import { Type } from 'class-transformer';
11
- import { CustomerDetailsDto } from '../../customer-details';
12
-
13
- export class ApproveTransactionDto {
14
- @ApiProperty()
15
- @IsString()
16
- @IsNotEmpty()
17
- transactionSignature: string;
18
-
19
- @ApiProperty()
20
- @IsString()
21
- @IsNotEmpty()
22
- paymentRequestId: string;
23
-
24
- @ApiProperty()
25
- @IsEmail()
26
- @IsNotEmpty()
27
- sender: string;
28
-
29
- @ApiProperty()
30
- @IsEmail()
31
- @IsNotEmpty()
32
- recipient: string;
33
-
34
- @ApiProperty()
35
- @IsNotEmpty()
36
- amount: bigint;
37
-
38
- @ApiProperty()
39
- @IsNumber()
40
- @IsNotEmpty()
41
- quantity: number;
42
-
43
- @ApiProperty()
44
- @IsString()
45
- @IsNotEmpty()
46
- product: string;
47
-
48
- @ApiProperty()
49
- @IsString()
50
- @IsNotEmpty()
51
- currency: string;
52
-
53
- @ApiProperty()
54
- @IsString()
55
- @IsNotEmpty()
56
- time: string;
57
-
58
- @IsNotEmptyObject()
59
- @Type(() => CustomerDetailsDto)
60
- @ValidateNested()
61
- customerDetails: CustomerDetailsDto;
62
- }
@@ -1 +0,0 @@
1
- export { ApproveTransactionDto } from './approveTransactionDto';
@@ -1 +0,0 @@
1
- export * from './dtos';
@@ -1,22 +0,0 @@
1
- import { IsString, IsNotEmpty, IsOptional } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class CreateAttachmentDto {
5
- @ApiProperty()
6
- @IsString()
7
- @IsNotEmpty()
8
- name: string;
9
-
10
- @ApiProperty({ type: 'string', format: 'binary' })
11
- file: Express.Multer.File;
12
-
13
- @ApiProperty()
14
- @IsString()
15
- @IsOptional()
16
- attachableType: string;
17
-
18
- @ApiProperty()
19
- @IsString()
20
- @IsOptional()
21
- attachableId: string;
22
- }
@@ -1 +0,0 @@
1
- export * from './createAttachmentDto';
@@ -1,6 +0,0 @@
1
- import type { User } from '../../user';
2
- import { BaseAttachment } from './BaseAttachment';
3
-
4
- export class Attachment extends BaseAttachment {
5
- creator: User;
6
- }
@@ -1,3 +0,0 @@
1
- export enum AttachmentType {
2
- IMAGE = 'IMAGE',
3
- }
@@ -1,11 +0,0 @@
1
- import { Entity } from '../../entity';
2
-
3
- export class BaseAttachment extends Entity {
4
- id: string;
5
-
6
- name: string;
7
-
8
- url: string;
9
-
10
- type: string;
11
- }
@@ -1,6 +0,0 @@
1
- import { BaseAttachment } from './BaseAttachment';
2
- import type { BaseUser } from '../../user';
3
-
4
- export class ShallowEnrichedAttachment extends BaseAttachment {
5
- creator: BaseUser;
6
- }
@@ -1,4 +0,0 @@
1
- export * from './Attachment';
2
- export * from './BaseAttachment';
3
- export * from './ShallowEnrichedAttachment';
4
- export * from './AttachmentType.enum';
@@ -1 +0,0 @@
1
- export * from './signOnDto';
@@ -1,14 +0,0 @@
1
- import { IsNotEmpty, IsString } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class SignOnDto {
5
- @ApiProperty()
6
- @IsString()
7
- @IsNotEmpty()
8
- publicKey: string;
9
-
10
- @ApiProperty()
11
- @IsString()
12
- @IsNotEmpty()
13
- signature: string;
14
- }
@@ -1,9 +0,0 @@
1
- export class AuthResponse {
2
- id: string;
3
-
4
- token: string;
5
-
6
- email?: string;
7
-
8
- name?: string;
9
- }
@@ -1,13 +0,0 @@
1
- import { RoleType } from '../../role';
2
-
3
- export interface JwtUserRole {
4
- id: string;
5
- company: string;
6
- type: RoleType;
7
- }
8
-
9
- export interface AuthUser {
10
- id: string;
11
- roles: JwtUserRole[];
12
- email?: string;
13
- }
@@ -1,2 +0,0 @@
1
- export * from './AuthResponse';
2
- export * from './AuthUser';
@@ -1,2 +0,0 @@
1
- export * from './dtos';
2
- export * from './entities';
@@ -1,5 +0,0 @@
1
- export enum Cluster {
2
- DEV_NET = 'DEV_NET',
3
- TEST_NET = 'TEST_NET',
4
- MAIN_NET = 'MAIN_NET',
5
- }
@@ -1 +0,0 @@
1
- export * from './Cluster';
@@ -1,11 +0,0 @@
1
- import { IsNotEmpty, IsString } from 'class-validator';
2
-
3
- export class BlockchainDto {
4
- @IsString()
5
- @IsNotEmpty()
6
- name: string;
7
-
8
- @IsString()
9
- @IsNotEmpty()
10
- symbol: string;
11
- }
@@ -1 +0,0 @@
1
- export * from './blockchainDto';
@@ -1,9 +0,0 @@
1
- import { Entity } from '../../entity';
2
-
3
- export class Blockchain extends Entity {
4
- id: string;
5
-
6
- name: string;
7
-
8
- symbol: string;
9
- }
@@ -1 +0,0 @@
1
- export * from './Blockchain';
@@ -1,3 +0,0 @@
1
- export * from './dtos';
2
- export * from './entities';
3
- export * from './constants';
@@ -1,29 +0,0 @@
1
- import { IsString, IsOptional, IsNotEmpty } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class CreateCompanyDto {
5
- @ApiProperty()
6
- @IsString()
7
- @IsNotEmpty()
8
- name: string;
9
-
10
- @ApiProperty()
11
- @IsOptional()
12
- @IsString()
13
- logoId?: string;
14
-
15
- @ApiProperty()
16
- @IsOptional()
17
- @IsString()
18
- websiteUrl?: string;
19
-
20
- @ApiProperty()
21
- @IsOptional()
22
- @IsString()
23
- twitterUsername?: string;
24
-
25
- @ApiProperty()
26
- @IsOptional()
27
- @IsString()
28
- discordUsername?: string;
29
- }
@@ -1,2 +0,0 @@
1
- export * from './createCompanyDto';
2
- export * from './updateCompanyDto';
@@ -1,29 +0,0 @@
1
- import { IsOptional, IsString } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class UpdateCompanyDto {
5
- @ApiProperty()
6
- @IsOptional()
7
- @IsString()
8
- name?: string;
9
-
10
- @ApiProperty()
11
- @IsOptional()
12
- @IsString()
13
- logoId?: string;
14
-
15
- @ApiProperty()
16
- @IsOptional()
17
- @IsString()
18
- websiteUrl?: string;
19
-
20
- @ApiProperty()
21
- @IsOptional()
22
- @IsString()
23
- twitterUsername?: string;
24
-
25
- @ApiProperty()
26
- @IsOptional()
27
- @IsString()
28
- discordUsername?: string;
29
- }
@@ -1,18 +0,0 @@
1
- import { ApiKey } from '../../apiKey';
2
- import { Entity } from '../../entity';
3
-
4
- export class Company extends Entity {
5
- id: string;
6
-
7
- name: string;
8
-
9
- logoId?: string;
10
-
11
- websiteUrl?: string;
12
-
13
- twitterUsername?: string;
14
-
15
- discordUsername?: string;
16
-
17
- apiKeys?: ApiKey[];
18
- }
@@ -1 +0,0 @@
1
- export * from './Company';
@@ -1,2 +0,0 @@
1
- export * from './dtos';
2
- export * from './entities';
@@ -1,11 +0,0 @@
1
- import { IsOptional, IsString } from 'class-validator';
2
-
3
- export class ContentDto {
4
- @IsString()
5
- @IsOptional()
6
- text?: string;
7
-
8
- @IsString()
9
- @IsOptional()
10
- imageUrl?: string;
11
- }
@@ -1 +0,0 @@
1
- export * from './contentDto';
@@ -1,7 +0,0 @@
1
- import { Entity } from '../../entity';
2
-
3
- export class Content extends Entity {
4
- text: string;
5
-
6
- imageUrl: string;
7
- }
@@ -1 +0,0 @@
1
- export * from './Content';
@@ -1,2 +0,0 @@
1
- export * from './dtos';
2
- export * from './entities';
@@ -1,33 +0,0 @@
1
- import { IsOptional, IsString, IsNumber } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class CreateCurrencyDto {
5
- @ApiProperty()
6
- @IsString()
7
- symbol: string;
8
-
9
- @ApiProperty()
10
- @IsString()
11
- name: string;
12
-
13
- @ApiProperty()
14
- @IsString()
15
- mintAddress: string;
16
-
17
- @ApiProperty()
18
- @IsString()
19
- blockchain: string;
20
-
21
- @ApiProperty()
22
- @IsNumber()
23
- decimals: number;
24
-
25
- @ApiProperty()
26
- @IsOptional()
27
- @IsString()
28
- symbolPrefix?: string;
29
-
30
- @ApiProperty()
31
- @IsNumber()
32
- order: number;
33
- }
@@ -1,2 +0,0 @@
1
- export * from './createCurrency';
2
- export * from './updateCurrency';
@@ -1,39 +0,0 @@
1
- import { IsOptional, IsString, IsNumber } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class UpdateCurrencyDto {
5
- @ApiProperty()
6
- @IsOptional()
7
- @IsString()
8
- symbol?: string;
9
-
10
- @ApiProperty()
11
- @IsOptional()
12
- @IsString()
13
- name?: string;
14
-
15
- @ApiProperty()
16
- @IsOptional()
17
- @IsString()
18
- mintAddress?: string;
19
-
20
- @ApiProperty()
21
- @IsOptional()
22
- @IsString()
23
- blockchain?: string;
24
-
25
- @ApiProperty()
26
- @IsOptional()
27
- @IsNumber()
28
- decimals?: number;
29
-
30
- @ApiProperty()
31
- @IsOptional()
32
- @IsString()
33
- symbolPrefix?: string;
34
-
35
- @ApiProperty()
36
- @IsOptional()
37
- @IsNumber()
38
- order?: number;
39
- }
@@ -1,17 +0,0 @@
1
- import { Entity } from '../../entity';
2
-
3
- export class BaseCurrency extends Entity {
4
- id: string;
5
-
6
- symbol: string;
7
-
8
- name: string;
9
-
10
- mintAddress: string;
11
-
12
- decimals: number;
13
-
14
- symbolPrefix?: string;
15
-
16
- order: number;
17
- }
@@ -1,6 +0,0 @@
1
- import { Blockchain } from '../../blockchain';
2
- import { BaseCurrency } from './BaseCurrency';
3
-
4
- export class Currency extends BaseCurrency {
5
- blockchain: Blockchain;
6
- }
@@ -1,2 +0,0 @@
1
- export * from './Currency';
2
- export * from './BaseCurrency';
@@ -1,2 +0,0 @@
1
- export * from './dtos';
2
- export * from './entities';
@@ -1,32 +0,0 @@
1
- import { IsEmail, IsOptional, IsString } from 'class-validator';
2
-
3
- export class CustomerDetailsDto {
4
- @IsString()
5
- @IsOptional()
6
- @IsEmail()
7
- email?: string;
8
-
9
- @IsString()
10
- @IsOptional()
11
- discordUsername?: string;
12
-
13
- @IsString()
14
- @IsOptional()
15
- twitterUsername?: string;
16
-
17
- @IsString()
18
- @IsOptional()
19
- fullName?: string;
20
-
21
- @IsString()
22
- @IsOptional()
23
- country?: string;
24
-
25
- @IsString()
26
- @IsOptional()
27
- deliveryAddress?: string;
28
-
29
- @IsString()
30
- @IsOptional()
31
- phoneNumber?: string;
32
- }
@@ -1 +0,0 @@
1
- export * from './CustomerDetailsDto';
@@ -1,17 +0,0 @@
1
- import { Entity } from '../../entity';
2
-
3
- export class CustomerDetails extends Entity {
4
- email?: string;
5
-
6
- discordUsername?: string;
7
-
8
- twitterUsername?: string;
9
-
10
- fullName?: string;
11
-
12
- country?: string;
13
-
14
- deliveryAddress?: string;
15
-
16
- phoneNumber?: string;
17
- }
@@ -1 +0,0 @@
1
- export * from './CustomerDetails';
@@ -1,21 +0,0 @@
1
- import { IsOptional, IsString, IsBoolean } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class CreateDiscordDetailsDto {
5
- @ApiProperty()
6
- @IsString()
7
- serverId: string;
8
-
9
- @ApiProperty()
10
- @IsString()
11
- roleId: string;
12
-
13
- @ApiProperty()
14
- @IsBoolean()
15
- @IsOptional()
16
- active?: boolean;
17
-
18
- @ApiProperty()
19
- @IsString()
20
- company?: string;
21
- }
@@ -1,2 +0,0 @@
1
- export * from './createDiscordDetails';
2
- export * from './updateDiscordDetails';
@@ -1,19 +0,0 @@
1
- import { IsOptional, IsString, IsBoolean } from 'class-validator';
2
- import { ApiProperty } from '@nestjs/swagger';
3
-
4
- export class UpdateDiscordDetailsDto {
5
- @ApiProperty()
6
- @IsString()
7
- @IsOptional()
8
- serverId?: string;
9
-
10
- @ApiProperty()
11
- @IsString()
12
- @IsOptional()
13
- roleId?: string;
14
-
15
- @ApiProperty()
16
- @IsBoolean()
17
- @IsOptional()
18
- active?: boolean;
19
- }