@silexpert/core 1.1.291 → 1.1.293

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 (187) hide show
  1. package/dist/cjs/api/resources/User.d.ts +3 -1
  2. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/User.js +9 -0
  4. package/dist/cjs/api/resources/User.js.map +1 -1
  5. package/dist/cjs/api/resources/UserSocietyPermission.d.ts +11 -0
  6. package/dist/cjs/api/resources/UserSocietyPermission.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/UserSocietyPermission.js +26 -0
  8. package/dist/cjs/api/resources/UserSocietyPermission.js.map +1 -0
  9. package/dist/cjs/api/resources.d.ts +2 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +2 -0
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/society/UpdateUserToSocietyWithPermission.d.ts +6 -7
  14. package/dist/cjs/types/Interface/api/society/UpdateUserToSocietyWithPermission.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/api/society/UpdateUserToSocietyWithPermission.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/user/CreateUser.d.ts +3 -0
  17. package/dist/cjs/types/Interface/api/user/CreateUser.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/user/CreateUser.js +22 -0
  19. package/dist/cjs/types/Interface/api/user/CreateUser.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/user/Query.d.ts +44 -0
  21. package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -0
  22. package/dist/cjs/types/Interface/api/user/Query.js +191 -0
  23. package/dist/cjs/types/Interface/api/user/Query.js.map +1 -0
  24. package/dist/cjs/types/Interface/api/userSocietyPermission/CreateSocietyPermission.d.ts +8 -0
  25. package/dist/cjs/types/Interface/api/userSocietyPermission/CreateSocietyPermission.d.ts.map +1 -0
  26. package/dist/cjs/types/Interface/api/{user/QueryGetAllFromSociety.js → userSocietyPermission/CreateSocietyPermission.js} +18 -22
  27. package/dist/cjs/types/Interface/api/userSocietyPermission/CreateSocietyPermission.js.map +1 -0
  28. package/dist/cjs/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.d.ts +10 -0
  29. package/dist/cjs/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.d.ts.map +1 -0
  30. package/dist/cjs/types/Interface/api/{user/QueryGetAllCollaboratorsByRoles.js → userSocietyPermission/CreateSocietyPermissionForExistingUser.js} +23 -15
  31. package/dist/cjs/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.js.map +1 -0
  32. package/dist/cjs/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.d.ts +6 -0
  33. package/dist/cjs/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.d.ts.map +1 -0
  34. package/dist/cjs/types/Interface/api/{user/QuerySocieties.js → userSocietyPermission/GetAllSocietyPermission.js} +11 -8
  35. package/dist/cjs/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.js.map +1 -0
  36. package/dist/cjs/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.d.ts +6 -0
  37. package/dist/cjs/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.d.ts.map +1 -0
  38. package/dist/cjs/types/Interface/api/{user/QueryUpdatePassword.js → userSocietyPermission/GetPaginatedUserSocietyPermission.js} +11 -16
  39. package/dist/cjs/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.js.map +1 -0
  40. package/dist/cjs/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.d.ts +5 -0
  41. package/dist/cjs/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.d.ts.map +1 -0
  42. package/dist/cjs/types/Interface/api/{user/QueryConfirm.js → userSocietyPermission/QueryDeleteSocietyPermission.js} +11 -8
  43. package/dist/cjs/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.js.map +1 -0
  44. package/dist/cjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.d.ts +12 -0
  45. package/dist/cjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.d.ts.map +1 -0
  46. package/dist/cjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.js +66 -0
  47. package/dist/cjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.js.map +1 -0
  48. package/dist/cjs/types/index.d.ts +7 -9
  49. package/dist/cjs/types/index.d.ts.map +1 -1
  50. package/dist/cjs/types/index.js +7 -9
  51. package/dist/cjs/types/index.js.map +1 -1
  52. package/dist/mjs/api/resources/User.d.ts +3 -1
  53. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  54. package/dist/mjs/api/resources/User.js +9 -0
  55. package/dist/mjs/api/resources/User.js.map +1 -1
  56. package/dist/mjs/api/resources/UserSocietyPermission.d.ts +11 -0
  57. package/dist/mjs/api/resources/UserSocietyPermission.d.ts.map +1 -0
  58. package/dist/mjs/api/resources/UserSocietyPermission.js +22 -0
  59. package/dist/mjs/api/resources/UserSocietyPermission.js.map +1 -0
  60. package/dist/mjs/api/resources.d.ts +2 -0
  61. package/dist/mjs/api/resources.d.ts.map +1 -1
  62. package/dist/mjs/api/resources.js +2 -0
  63. package/dist/mjs/api/resources.js.map +1 -1
  64. package/dist/mjs/types/Interface/api/society/UpdateUserToSocietyWithPermission.d.ts +6 -7
  65. package/dist/mjs/types/Interface/api/society/UpdateUserToSocietyWithPermission.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/api/society/UpdateUserToSocietyWithPermission.js.map +1 -1
  67. package/dist/mjs/types/Interface/api/user/CreateUser.d.ts +3 -0
  68. package/dist/mjs/types/Interface/api/user/CreateUser.d.ts.map +1 -1
  69. package/dist/mjs/types/Interface/api/user/CreateUser.js +25 -0
  70. package/dist/mjs/types/Interface/api/user/CreateUser.js.map +1 -1
  71. package/dist/mjs/types/Interface/api/user/Query.d.ts +44 -0
  72. package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -0
  73. package/dist/mjs/types/Interface/api/user/Query.js +200 -0
  74. package/dist/mjs/types/Interface/api/user/Query.js.map +1 -0
  75. package/dist/mjs/types/Interface/api/userSocietyPermission/CreateSocietyPermission.d.ts +8 -0
  76. package/dist/mjs/types/Interface/api/userSocietyPermission/CreateSocietyPermission.d.ts.map +1 -0
  77. package/dist/mjs/types/Interface/api/{user/QueryUpdatePassword.js → userSocietyPermission/CreateSocietyPermission.js} +21 -16
  78. package/dist/mjs/types/Interface/api/userSocietyPermission/CreateSocietyPermission.js.map +1 -0
  79. package/dist/mjs/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.d.ts +10 -0
  80. package/dist/mjs/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.d.ts.map +1 -0
  81. package/dist/mjs/types/Interface/api/{user/QueryGetAllFromSociety.js → userSocietyPermission/CreateSocietyPermissionForExistingUser.js} +20 -22
  82. package/dist/mjs/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.js.map +1 -0
  83. package/dist/mjs/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.d.ts +6 -0
  84. package/dist/mjs/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.d.ts.map +1 -0
  85. package/dist/mjs/types/Interface/api/{user/QuerySocieties.js → userSocietyPermission/GetAllSocietyPermission.js} +12 -8
  86. package/dist/mjs/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.js.map +1 -0
  87. package/dist/mjs/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.d.ts +6 -0
  88. package/dist/mjs/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.d.ts.map +1 -0
  89. package/dist/mjs/types/Interface/api/{user/QueryGetAllCollaborators.js → userSocietyPermission/GetPaginatedUserSocietyPermission.js} +12 -17
  90. package/dist/mjs/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.js.map +1 -0
  91. package/dist/mjs/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.d.ts +5 -0
  92. package/dist/mjs/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.d.ts.map +1 -0
  93. package/dist/mjs/types/Interface/api/{user/QueryResendConfirmationLink.js → userSocietyPermission/QueryDeleteSocietyPermission.js} +11 -3
  94. package/dist/mjs/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.js.map +1 -0
  95. package/dist/mjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.d.ts +12 -0
  96. package/dist/mjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.d.ts.map +1 -0
  97. package/dist/mjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.js +70 -0
  98. package/dist/mjs/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.js.map +1 -0
  99. package/dist/mjs/types/index.d.ts +7 -9
  100. package/dist/mjs/types/index.d.ts.map +1 -1
  101. package/dist/mjs/types/index.js +7 -9
  102. package/dist/mjs/types/index.js.map +1 -1
  103. package/package.json +1 -1
  104. package/ts/api/resources/User.ts +10 -0
  105. package/ts/api/resources/UserSocietyPermission.ts +28 -0
  106. package/ts/api/resources.ts +3 -1
  107. package/ts/types/Interface/api/society/UpdateUserToSocietyWithPermission.ts +6 -7
  108. package/ts/types/Interface/api/user/CreateUser.ts +17 -0
  109. package/ts/types/Interface/api/user/Query.ts +153 -0
  110. package/ts/types/Interface/api/userSocietyPermission/CreateSocietyPermission.ts +25 -0
  111. package/ts/types/Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser.ts +26 -0
  112. package/ts/types/Interface/api/userSocietyPermission/GetAllSocietyPermission.ts +13 -0
  113. package/ts/types/Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission.ts +15 -0
  114. package/ts/types/Interface/api/userSocietyPermission/QueryDeleteSocietyPermission.ts +13 -0
  115. package/ts/types/Interface/api/userSocietyPermission/UpdateSocietyPermission.ts +47 -0
  116. package/ts/types/index.ts +8 -9
  117. package/dist/cjs/types/Interface/api/user/QueryConfirm.d.ts +0 -5
  118. package/dist/cjs/types/Interface/api/user/QueryConfirm.d.ts.map +0 -1
  119. package/dist/cjs/types/Interface/api/user/QueryConfirm.js.map +0 -1
  120. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -5
  121. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +0 -1
  122. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.js +0 -36
  123. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.js.map +0 -1
  124. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -5
  125. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +0 -1
  126. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +0 -1
  127. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts +0 -6
  128. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +0 -1
  129. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.js.map +0 -1
  130. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts +0 -4
  131. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts.map +0 -1
  132. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.js +0 -26
  133. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.js.map +0 -1
  134. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts +0 -4
  135. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts.map +0 -1
  136. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.js +0 -21
  137. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.js.map +0 -1
  138. package/dist/cjs/types/Interface/api/user/QuerySocieties.d.ts +0 -5
  139. package/dist/cjs/types/Interface/api/user/QuerySocieties.d.ts.map +0 -1
  140. package/dist/cjs/types/Interface/api/user/QuerySocieties.js.map +0 -1
  141. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.d.ts +0 -6
  142. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.d.ts.map +0 -1
  143. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.js.map +0 -1
  144. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +0 -4
  145. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +0 -1
  146. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.js +0 -21
  147. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.js.map +0 -1
  148. package/dist/mjs/types/Interface/api/user/QueryConfirm.d.ts +0 -5
  149. package/dist/mjs/types/Interface/api/user/QueryConfirm.d.ts.map +0 -1
  150. package/dist/mjs/types/Interface/api/user/QueryConfirm.js +0 -23
  151. package/dist/mjs/types/Interface/api/user/QueryConfirm.js.map +0 -1
  152. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -5
  153. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +0 -1
  154. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.js.map +0 -1
  155. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -5
  156. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +0 -1
  157. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +0 -31
  158. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +0 -1
  159. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts +0 -6
  160. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +0 -1
  161. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.js.map +0 -1
  162. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts +0 -4
  163. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts.map +0 -1
  164. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.js +0 -23
  165. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.js.map +0 -1
  166. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts +0 -4
  167. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts.map +0 -1
  168. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.js.map +0 -1
  169. package/dist/mjs/types/Interface/api/user/QuerySocieties.d.ts +0 -5
  170. package/dist/mjs/types/Interface/api/user/QuerySocieties.d.ts.map +0 -1
  171. package/dist/mjs/types/Interface/api/user/QuerySocieties.js.map +0 -1
  172. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.d.ts +0 -6
  173. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.d.ts.map +0 -1
  174. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.js.map +0 -1
  175. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +0 -4
  176. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +0 -1
  177. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.js +0 -18
  178. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.js.map +0 -1
  179. package/ts/types/Interface/api/user/QueryConfirm.ts +0 -9
  180. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +0 -22
  181. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +0 -17
  182. package/ts/types/Interface/api/user/QueryGetAllFromSociety.ts +0 -29
  183. package/ts/types/Interface/api/user/QueryGetAllWithoutBp.ts +0 -11
  184. package/ts/types/Interface/api/user/QueryResendConfirmationLink.ts +0 -6
  185. package/ts/types/Interface/api/user/QuerySocieties.ts +0 -11
  186. package/ts/types/Interface/api/user/QueryUpdatePassword.ts +0 -21
  187. package/ts/types/Interface/api/user/QueryUserSmsConfirmation.ts +0 -6
@@ -1,21 +1,20 @@
1
1
  import { IsEmail, IsObject, IsOptional, IsString, IsStrongPassword } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
- import { Permissions } from '../user/Permissions';
4
3
  import { IPermission } from '../../models/IPermission';
5
4
 
6
5
  export class UpdateUserToSocietyWithPermission {
7
6
  @ApiPropertyOptional()
8
- email: string;
7
+ email?: string;
9
8
  @ApiPropertyOptional()
10
- phone: string;
9
+ phone?: string;
11
10
  @ApiPropertyOptional()
12
- password: string;
11
+ password?: string;
13
12
  @ApiPropertyOptional()
14
- firstname: string;
13
+ firstname?: string;
15
14
  @ApiPropertyOptional()
16
- lastname: string;
15
+ lastname?: string;
17
16
  @ApiPropertyOptional()
18
- permissions: Partial<Permissions>;
17
+ permissions?: Partial<IPermission>;
19
18
  }
20
19
 
21
20
  export class UpdateUserSociety {
@@ -1,6 +1,11 @@
1
+ import { IsBoolean, IsOptional } from 'class-validator';
1
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
2
4
 
3
5
  export class CreateUser {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ username?: string;
4
9
  @ApiProperty()
5
10
  email: string;
6
11
  @ApiProperty()
@@ -14,11 +19,23 @@ export class CreateUser {
14
19
  @ApiProperty()
15
20
  acceptCgv?: boolean; // not sure if needed (maybe more a front notion)
16
21
  @ApiPropertyOptional()
22
+ @IsOptional()
17
23
  acceptNewsletter?: boolean;
24
+ @ApiPropertyOptional()
25
+ @IsOptional()
26
+ isNewProspect?: boolean;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsOptional()
30
+ @IsBoolean()
31
+ @ToBoolean()
32
+ active?: boolean;
18
33
 
19
34
  @ApiPropertyOptional()
35
+ @IsOptional()
20
36
  prefix?: string;
21
37
 
22
38
  @ApiPropertyOptional()
39
+ @IsOptional()
23
40
  affiliateTrackingId?: number;
24
41
  }
@@ -0,0 +1,153 @@
1
+ import {
2
+ IsArray,
3
+ IsBoolean,
4
+ IsIn, IsInt, IsNumber, IsOptional, IsString,
5
+ Min,
6
+ } from 'class-validator';
7
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
8
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
9
+ import { SubscriptionType } from '../../../Enum/SubscriptionType';
10
+
11
+ export class QueryConfirm {
12
+ @ApiProperty()
13
+ tokenConfirmedAt: string;
14
+
15
+ @ApiProperty()
16
+ email: string;
17
+ }
18
+
19
+
20
+ export class QueryGetAllCollaborators {
21
+ @ApiProperty({
22
+ description: 'filtering users id',
23
+ required: false,
24
+ type: [Number],
25
+ example: [1, 13],
26
+ })
27
+ idUser?: number[];
28
+
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ @IsString({
32
+ each: true,
33
+ })
34
+ @IsIn(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true })
35
+ include?: string[];
36
+ }
37
+
38
+ export class QueryGetAllCollaboratorsByRoles {
39
+ @ApiPropertyOptional()
40
+ @IsOptional()
41
+ @IsInt()
42
+ idTimeCounterType?: number;
43
+
44
+ @ApiProperty({
45
+ description: 'roles used for group users',
46
+ required: true,
47
+ type: [Number],
48
+ example: [1, 13],
49
+ })
50
+ idRoles: number[];
51
+ }
52
+
53
+ export class QueryGetAllFromSociety {
54
+ @ApiProperty({
55
+ description: 'id of the specified society',
56
+ required: true,
57
+ type: Number,
58
+ example: 100,
59
+ })
60
+ idSociety: number;
61
+
62
+ @ApiProperty({
63
+ description: 'array of roles id needed to return list of users',
64
+ required: true,
65
+ type: [Number],
66
+ example: [1, 13],
67
+ })
68
+ roles: number[];
69
+
70
+ @ApiPropertyOptional()
71
+ @IsOptional()
72
+ @IsBoolean()
73
+ @ToBoolean()
74
+ usersNotInBusinessPartner?: boolean;
75
+ }
76
+
77
+ export class QueryGetAllWithoutBp {
78
+ @ApiProperty({
79
+ description: 'id of the specified society',
80
+ required: true,
81
+ type: Number,
82
+ example: 100,
83
+ })
84
+ idSociety: number;
85
+ }
86
+
87
+ export class QueryResendConfirmationLink {
88
+ @ApiProperty()
89
+ id: number;
90
+ }
91
+
92
+ export class QueryUserSociety {
93
+ @ApiPropertyOptional()
94
+ @IsNumber()
95
+ @IsOptional()
96
+ idSubscriptionType?: SubscriptionType;
97
+ }
98
+
99
+ export class QueryUpdatePassword {
100
+ @ApiProperty()
101
+ @IsString()
102
+ password: string;
103
+
104
+ @ApiPropertyOptional()
105
+ @IsOptional()
106
+ @IsInt()
107
+ @Min(1)
108
+ id?: number | null;
109
+
110
+ @ApiPropertyOptional()
111
+ @IsOptional()
112
+ @IsString()
113
+ token?: string | null;
114
+ }
115
+
116
+ export class QueryUserSmsConfirmation {
117
+ @ApiProperty()
118
+ code: string;
119
+ }
120
+
121
+ export class QueryUserExport {
122
+ @ApiPropertyOptional()
123
+ @IsOptional()
124
+ @IsString()
125
+ dateStart?: string;
126
+
127
+ @ApiPropertyOptional()
128
+ @IsOptional()
129
+ @IsString()
130
+ dateEnd?: string;
131
+
132
+ @ApiPropertyOptional()
133
+ @IsOptional()
134
+ @IsBoolean()
135
+ @ToBoolean()
136
+ archive?: boolean;
137
+
138
+ @ApiPropertyOptional()
139
+ @IsOptional()
140
+ @IsNumber()
141
+ week?: number;
142
+
143
+ @ApiPropertyOptional()
144
+ @IsOptional()
145
+ @IsNumber()
146
+ idTypeSubscription?: number;
147
+
148
+ @ApiPropertyOptional()
149
+ @IsOptional()
150
+ @IsArray()
151
+ reason?: number[];
152
+ }
153
+
@@ -0,0 +1,25 @@
1
+ import {
2
+ IsBoolean, IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+ import { IPermission } from '../../../index';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+
8
+ export class CreateSocietyPermission {
9
+ @ApiProperty()
10
+ @IsInt()
11
+ idSociety: number;
12
+
13
+ @ApiProperty()
14
+ @IsInt()
15
+ idUser: number;
16
+
17
+ @ApiProperty()
18
+ permissions: Partial<IPermission>;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsBoolean()
22
+ @ToBoolean()
23
+ @IsOptional()
24
+ isOwner?: boolean;
25
+ }
@@ -0,0 +1,26 @@
1
+ import {
2
+ IsArray, IsBoolean, IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+ import { IPermission } from '../../../index';
7
+
8
+ export class CreateSocietyPermissionForExistingUser {
9
+ @ApiProperty()
10
+ @IsInt()
11
+ id: number;
12
+
13
+ @ApiProperty()
14
+ @IsArray()
15
+ @IsInt({ each: true })
16
+ idSociety: number | number[];
17
+
18
+ @ApiProperty()
19
+ permissions: Partial<IPermission> | { [key: number]: Partial<IPermission> };
20
+
21
+ @ApiPropertyOptional()
22
+ @IsBoolean()
23
+ @ToBoolean()
24
+ @IsOptional()
25
+ isOwner?: boolean;
26
+ }
@@ -0,0 +1,13 @@
1
+ import { IsOptional } from 'class-validator';
2
+ import { Includeable } from 'sequelize';
3
+ import { ApiPropertyOptional } from '../../../../utils';
4
+
5
+ export class GetAllSocietyPermission {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ include?: Includeable[];
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ order?: [string, 'ASC' | 'DESC'];
13
+ }
@@ -0,0 +1,15 @@
1
+ import { IsOptional, IsString, IsArray } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { OptionalQueryPaginate } from '../BasePaginate';
4
+
5
+ export class GetPaginatedUserSocietyPermission extends OptionalQueryPaginate {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsArray()
9
+ @IsString({ each: true })
10
+ include?: string[];
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ order?: [string, 'ASC' | 'DESC'];
15
+ }
@@ -0,0 +1,13 @@
1
+
2
+ import { IsInt } from 'class-validator';
3
+ import { ApiProperty } from '../../../../utils';
4
+
5
+ export class QueryDeleteSocietyPermission {
6
+ @ApiProperty()
7
+ @IsInt()
8
+ id: number;
9
+
10
+ @ApiProperty()
11
+ @IsInt()
12
+ idSociety: number;
13
+ }
@@ -0,0 +1,47 @@
1
+ import {
2
+ IsArray, IsBoolean, IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../../utils';
5
+ import { IUser, IUserSocietyPermission, IPermission } from '../../../index';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+
8
+ export class UpdateSocietyPermission {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsInt()
12
+ idSociety?: number;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsInt()
17
+ idUser?: number;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsOptional()
21
+ permissions?: Partial<IPermission>;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsBoolean()
25
+ @ToBoolean()
26
+ @IsOptional()
27
+ isOwner?: boolean;
28
+
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ user?: IUser;
32
+
33
+ @ApiPropertyOptional()
34
+ @IsOptional()
35
+ @IsArray()
36
+ @IsInt({ each: true })
37
+ roles?: number[];
38
+
39
+ @ApiPropertyOptional()
40
+ @IsOptional()
41
+ newOwner?: Partial<IUserSocietyPermission>;
42
+
43
+ @ApiPropertyOptional()
44
+ @IsOptional()
45
+ @IsInt()
46
+ idPermission?: number;
47
+ }
package/ts/types/index.ts CHANGED
@@ -581,20 +581,12 @@ export * from './Interface/api/accountingTransaction/QueryTransaction';
581
581
  export * from './Interface/api/accountingTransaction/DeleteInvoices';
582
582
  export * from './Interface/api/accountingTransaction/GetTransactionsBetweenDates';
583
583
  export * from './Interface/api/accountingTransaction/QueryBankAccountSum';
584
- export * from './Interface/api/user/QueryConfirm';
585
- export * from './Interface/api/user/QuerySocieties';
586
- export * from './Interface/api/user/QueryGetAllFromSociety';
587
- export * from './Interface/api/user/QueryGetAllWithoutBp';
588
- export * from './Interface/api/user/QueryGetAllCollaborators';
589
- export * from './Interface/api/user/QueryGetAllCollaboratorsByRoles';
590
- export * from './Interface/api/user/QueryResendConfirmationLink';
591
- export * from './Interface/api/user/QueryUpdatePassword';
584
+ export * from './Interface/api/user/Query';
592
585
  export * from './Interface/api/user/CreateUser';
593
586
  export * from './Interface/api/user/ParamsGetAll';
594
587
  export * from './Interface/api/user/ParamsGetAllUserWithRoles';
595
588
  export * from './Interface/api/user/ParamsGetAllCollaborators';
596
589
  export * from './Interface/api/user/CreateCoworker';
597
- export * from './Interface/api/user/QueryUserSmsConfirmation';
598
590
  export * from './Interface/api/user/Permissions';
599
591
  export * from './Interface/api/user/CollaboratorsByRoles';
600
592
  export * from './Interface/api/account/Read';
@@ -1061,6 +1053,13 @@ export * from './Interface/api/regulation/Query';
1061
1053
  export * from './Interface/api/terminationList/Read';
1062
1054
  export * from './Interface/api/letter/Query';
1063
1055
  export * from './Interface/api/letter/Read';
1056
+ export * from './Interface/api/userSocietyPermission/CreateSocietyPermission';
1057
+ export * from './Interface/api/userSocietyPermission/UpdateSocietyPermission';
1058
+ export * from './Interface/api/userSocietyPermission/CreateSocietyPermissionForExistingUser';
1059
+ export * from './Interface/api/userSocietyPermission/GetAllSocietyPermission';
1060
+ export * from './Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission';
1061
+ export * from './Interface/api/userSocietyPermission/QueryDeleteSocietyPermission';
1062
+
1064
1063
 
1065
1064
  // Enums types
1066
1065
  export * from './Interface/enum/Util';
@@ -1,5 +0,0 @@
1
- export declare class QueryConfirm {
2
- tokenConfirmedAt: string;
3
- email: string;
4
- }
5
- //# sourceMappingURL=QueryConfirm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryConfirm.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryConfirm.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAErB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryConfirm.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryConfirm.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAEhD,MAAa,YAAY;CAMxB;AALC;IAAC,IAAA,mBAAW,GAAE;;sDACa;AAE3B;IAAC,IAAA,mBAAW,GAAE;;2CACE;AALlB,oCAMC","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare class QueryGetAllCollaborators {
2
- idUser?: number[];
3
- include?: string[];
4
- }
5
- //# sourceMappingURL=QueryGetAllCollaborators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllCollaborators.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllCollaborators.ts"],"names":[],"mappings":"AAKA,qBAAa,wBAAwB;IAOjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAQlB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB"}
@@ -1,36 +0,0 @@
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.QueryGetAllCollaborators = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const utils_1 = require("../../../../utils");
15
- class QueryGetAllCollaborators {
16
- }
17
- __decorate([
18
- (0, utils_1.ApiProperty)({
19
- description: 'filtering users id',
20
- required: false,
21
- type: [Number],
22
- example: [1, 13],
23
- }),
24
- __metadata("design:type", Array)
25
- ], QueryGetAllCollaborators.prototype, "idUser", void 0);
26
- __decorate([
27
- (0, utils_1.ApiPropertyOptional)(),
28
- (0, class_validator_1.IsOptional)(),
29
- (0, class_validator_1.IsString)({
30
- each: true,
31
- }),
32
- (0, class_validator_1.IsIn)(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true }),
33
- __metadata("design:type", Array)
34
- ], QueryGetAllCollaborators.prototype, "include", void 0);
35
- exports.QueryGetAllCollaborators = QueryGetAllCollaborators;
36
- //# sourceMappingURL=QueryGetAllCollaborators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllCollaborators.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllCollaborators.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAEyB;AACzB,6CAAqE;AAErE,MAAa,wBAAwB;CAgBpC;AAfC;IAAC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;wDACkB;AAEpB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,sBAAI,EAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,qBAAqB,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDAC7D;AAfvB,4DAgBC","sourcesContent":["import {\n IsIn, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryGetAllCollaborators {\n @ApiProperty({\n description: 'filtering users id',\n required: false,\n type: [Number],\n example: [1, 13],\n })\n idUser?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true })\n include?: string[];\n}"]}
@@ -1,5 +0,0 @@
1
- export declare class QueryGetAllCollaboratorsByRoles {
2
- idTimeCounterType?: number;
3
- idRoles: number[];
4
- }
5
- //# sourceMappingURL=QueryGetAllCollaboratorsByRoles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllCollaboratorsByRoles.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts"],"names":[],"mappings":"AAGA,qBAAa,+BAA+B;IAIxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAQ3B,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllCollaboratorsByRoles.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AACpD,6CAAqE;AAErE,MAAa,+BAA+B;CAa3C;AAZC;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0EACqB;AAE7B;IAAC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;gEACkB;AAZtB,0EAaC","sourcesContent":["import { IsInt, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryGetAllCollaboratorsByRoles {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTimeCounterType?: number;\n\n @ApiProperty({\n description: 'roles used for group users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n idRoles: number[];\n}"]}
@@ -1,6 +0,0 @@
1
- export declare class QueryGetAllFromSociety {
2
- idSociety: number;
3
- roles: number[];
4
- usersNotInBusinessPartner?: boolean;
5
- }
6
- //# sourceMappingURL=QueryGetAllFromSociety.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllFromSociety.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllFromSociety.ts"],"names":[],"mappings":"AAMA,qBAAa,sBAAsB;IAO/B,SAAS,EAAE,MAAM,CAAC;IAQlB,KAAK,EAAE,MAAM,EAAE,CAAC;IAMhB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllFromSociety.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllFromSociety.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,qDAEyB;AACzB,sFAA2E;AAE3E,MAAa,sBAAsB;CAsBlC;AArBC;IAAC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG;KACb,CAAC;;yDACkB;AAEpB;IAAC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,kDAAkD;QAC/D,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;qDACgB;AAElB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;yEAC0B;AArBxC,wDAsBC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport {\n IsBoolean, IsOptional, \n} from 'class-validator';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryGetAllFromSociety {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n\n @ApiProperty({\n description: 'array of roles id needed to return list of users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}"]}
@@ -1,4 +0,0 @@
1
- export declare class QueryGetAllWithoutBp {
2
- idSociety: number;
3
- }
4
- //# sourceMappingURL=QueryGetAllWithoutBp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllWithoutBp.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllWithoutBp.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;IAO7B,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -1,26 +0,0 @@
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.QueryGetAllWithoutBp = void 0;
13
- const utils_1 = require("../../../../utils");
14
- class QueryGetAllWithoutBp {
15
- }
16
- __decorate([
17
- (0, utils_1.ApiProperty)({
18
- description: 'id of the specified society',
19
- required: true,
20
- type: Number,
21
- example: 100,
22
- }),
23
- __metadata("design:type", Number)
24
- ], QueryGetAllWithoutBp.prototype, "idSociety", void 0);
25
- exports.QueryGetAllWithoutBp = QueryGetAllWithoutBp;
26
- //# sourceMappingURL=QueryGetAllWithoutBp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryGetAllWithoutBp.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryGetAllWithoutBp.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAEhD,MAAa,oBAAoB;CAQhC;AAPC;IAAC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG;KACb,CAAC;;uDACkB;AAPtB,oDAQC","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryGetAllWithoutBp {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n}"]}
@@ -1,4 +0,0 @@
1
- export declare class QueryResendConfirmationLink {
2
- id: number;
3
- }
4
- //# sourceMappingURL=QueryResendConfirmationLink.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryResendConfirmationLink.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryResendConfirmationLink.ts"],"names":[],"mappings":"AAEA,qBAAa,2BAA2B;IAEpC,EAAE,EAAE,MAAM,CAAC;CACd"}
@@ -1,21 +0,0 @@
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.QueryResendConfirmationLink = void 0;
13
- const utils_1 = require("../../../../utils");
14
- class QueryResendConfirmationLink {
15
- }
16
- __decorate([
17
- (0, utils_1.ApiProperty)(),
18
- __metadata("design:type", Number)
19
- ], QueryResendConfirmationLink.prototype, "id", void 0);
20
- exports.QueryResendConfirmationLink = QueryResendConfirmationLink;
21
- //# sourceMappingURL=QueryResendConfirmationLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryResendConfirmationLink.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryResendConfirmationLink.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAEhD,MAAa,2BAA2B;CAGvC;AAFC;IAAC,IAAA,mBAAW,GAAE;;uDACD;AAFf,kEAGC","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n"]}
@@ -1,5 +0,0 @@
1
- import { SubscriptionType } from '../../../Enum/SubscriptionType';
2
- export declare class QueryUserSociety {
3
- idSubscriptionType?: SubscriptionType;
4
- }
5
- //# sourceMappingURL=QuerySocieties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuerySocieties.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QuerySocieties.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE,qBAAa,gBAAgB;IAIzB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;CACzC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuerySocieties.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QuerySocieties.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6CAAwD;AACxD,qEAAkE;AAGlE,MAAa,gBAAgB;CAK5B;AAJC;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DAC2B;AAJ1C,4CAKC","sourcesContent":["import { IsNumber, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\n\n\nexport class QueryUserSociety {\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSubscriptionType?: SubscriptionType;\n}"]}
@@ -1,6 +0,0 @@
1
- export declare class QueryUpdatePassword {
2
- password: string;
3
- id?: number | null;
4
- token?: string | null;
5
- }
6
- //# sourceMappingURL=QueryUpdatePassword.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryUpdatePassword.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryUpdatePassword.ts"],"names":[],"mappings":"AAKA,qBAAa,mBAAmB;IAG5B,QAAQ,EAAE,MAAM,CAAC;IAMjB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryUpdatePassword.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryUpdatePassword.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAEyB;AACzB,6CAAqE;AAErE,MAAa,mBAAmB;CAe/B;AAdC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;qDACQ;AAEnB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;+CACc;AAErB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACa;AAd1B,kDAeC","sourcesContent":["import {\n IsInt, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryUpdatePassword {\n @ApiProperty()\n @IsString()\n password: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n id?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string | null;\n}\n"]}
@@ -1,4 +0,0 @@
1
- export declare class QueryUserSmsConfirmation {
2
- code: string;
3
- }
4
- //# sourceMappingURL=QueryUserSmsConfirmation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryUserSmsConfirmation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/QueryUserSmsConfirmation.ts"],"names":[],"mappings":"AAEA,qBAAa,wBAAwB;IAEjC,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -1,21 +0,0 @@
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.QueryUserSmsConfirmation = void 0;
13
- const utils_1 = require("../../../../utils");
14
- class QueryUserSmsConfirmation {
15
- }
16
- __decorate([
17
- (0, utils_1.ApiProperty)(),
18
- __metadata("design:type", String)
19
- ], QueryUserSmsConfirmation.prototype, "code", void 0);
20
- exports.QueryUserSmsConfirmation = QueryUserSmsConfirmation;
21
- //# sourceMappingURL=QueryUserSmsConfirmation.js.map