@silexpert/core 1.1.290 → 1.1.292

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 (148) hide show
  1. package/dist/cjs/api/resources/Revision.d.ts +5 -3
  2. package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Revision.js +10 -4
  4. package/dist/cjs/api/resources/Revision.js.map +1 -1
  5. package/dist/cjs/api/resources/User.d.ts +3 -1
  6. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/User.js +9 -0
  8. package/dist/cjs/api/resources/User.js.map +1 -1
  9. package/dist/cjs/types/Interface/api/revision/Query.d.ts +20 -3
  10. package/dist/cjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  11. package/dist/cjs/types/Interface/api/revision/Query.js +86 -13
  12. package/dist/cjs/types/Interface/api/revision/Query.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/revision/Read.d.ts +19 -7
  14. package/dist/cjs/types/Interface/api/revision/Read.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/api/revision/Read.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/user/Query.d.ts +44 -0
  17. package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -0
  18. package/dist/cjs/types/Interface/api/user/Query.js +191 -0
  19. package/dist/cjs/types/Interface/api/user/Query.js.map +1 -0
  20. package/dist/cjs/types/Interface/models/IAccountDetail.d.ts +2 -1
  21. package/dist/cjs/types/Interface/models/IAccountDetail.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/models/IAccountDetail.js.map +1 -1
  23. package/dist/cjs/types/Interface/models/ICommercialOffer.d.ts +1 -1
  24. package/dist/cjs/types/Interface/models/ICommercialOffer.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/models/ICommercialOffer.js.map +1 -1
  26. package/dist/cjs/types/index.d.ts +1 -9
  27. package/dist/cjs/types/index.d.ts.map +1 -1
  28. package/dist/cjs/types/index.js +1 -9
  29. package/dist/cjs/types/index.js.map +1 -1
  30. package/dist/mjs/api/resources/Revision.d.ts +5 -3
  31. package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
  32. package/dist/mjs/api/resources/Revision.js +22 -4
  33. package/dist/mjs/api/resources/Revision.js.map +1 -1
  34. package/dist/mjs/api/resources/User.d.ts +3 -1
  35. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  36. package/dist/mjs/api/resources/User.js +9 -0
  37. package/dist/mjs/api/resources/User.js.map +1 -1
  38. package/dist/mjs/types/Interface/api/revision/Query.d.ts +20 -3
  39. package/dist/mjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  40. package/dist/mjs/types/Interface/api/revision/Query.js +92 -9
  41. package/dist/mjs/types/Interface/api/revision/Query.js.map +1 -1
  42. package/dist/mjs/types/Interface/api/revision/Read.d.ts +19 -7
  43. package/dist/mjs/types/Interface/api/revision/Read.d.ts.map +1 -1
  44. package/dist/mjs/types/Interface/api/revision/Read.js.map +1 -1
  45. package/dist/mjs/types/Interface/api/user/Query.d.ts +44 -0
  46. package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -0
  47. package/dist/mjs/types/Interface/api/user/Query.js +200 -0
  48. package/dist/mjs/types/Interface/api/user/Query.js.map +1 -0
  49. package/dist/mjs/types/Interface/models/IAccountDetail.d.ts +2 -1
  50. package/dist/mjs/types/Interface/models/IAccountDetail.d.ts.map +1 -1
  51. package/dist/mjs/types/Interface/models/IAccountDetail.js.map +1 -1
  52. package/dist/mjs/types/Interface/models/ICommercialOffer.d.ts +1 -1
  53. package/dist/mjs/types/Interface/models/ICommercialOffer.d.ts.map +1 -1
  54. package/dist/mjs/types/Interface/models/ICommercialOffer.js.map +1 -1
  55. package/dist/mjs/types/index.d.ts +1 -9
  56. package/dist/mjs/types/index.d.ts.map +1 -1
  57. package/dist/mjs/types/index.js +1 -9
  58. package/dist/mjs/types/index.js.map +1 -1
  59. package/package.json +1 -1
  60. package/ts/api/resources/Revision.ts +25 -5
  61. package/ts/api/resources/User.ts +10 -0
  62. package/ts/types/Interface/api/revision/Query.ts +66 -7
  63. package/ts/types/Interface/api/revision/Read.ts +21 -7
  64. package/ts/types/Interface/api/user/Query.ts +153 -0
  65. package/ts/types/Interface/models/IAccountDetail.ts +2 -1
  66. package/ts/types/Interface/models/ICommercialOffer.ts +1 -1
  67. package/ts/types/index.ts +1 -9
  68. package/dist/cjs/types/Interface/api/user/QueryConfirm.d.ts +0 -5
  69. package/dist/cjs/types/Interface/api/user/QueryConfirm.d.ts.map +0 -1
  70. package/dist/cjs/types/Interface/api/user/QueryConfirm.js +0 -25
  71. package/dist/cjs/types/Interface/api/user/QueryConfirm.js.map +0 -1
  72. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -5
  73. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +0 -1
  74. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.js +0 -36
  75. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.js.map +0 -1
  76. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -5
  77. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +0 -1
  78. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +0 -33
  79. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +0 -1
  80. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts +0 -6
  81. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +0 -1
  82. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.js +0 -44
  83. package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.js.map +0 -1
  84. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts +0 -4
  85. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts.map +0 -1
  86. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.js +0 -26
  87. package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.js.map +0 -1
  88. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts +0 -4
  89. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts.map +0 -1
  90. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.js +0 -21
  91. package/dist/cjs/types/Interface/api/user/QueryResendConfirmationLink.js.map +0 -1
  92. package/dist/cjs/types/Interface/api/user/QuerySocieties.d.ts +0 -5
  93. package/dist/cjs/types/Interface/api/user/QuerySocieties.d.ts.map +0 -1
  94. package/dist/cjs/types/Interface/api/user/QuerySocieties.js +0 -25
  95. package/dist/cjs/types/Interface/api/user/QuerySocieties.js.map +0 -1
  96. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.d.ts +0 -6
  97. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.d.ts.map +0 -1
  98. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.js +0 -36
  99. package/dist/cjs/types/Interface/api/user/QueryUpdatePassword.js.map +0 -1
  100. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +0 -4
  101. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +0 -1
  102. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.js +0 -21
  103. package/dist/cjs/types/Interface/api/user/QueryUserSmsConfirmation.js.map +0 -1
  104. package/dist/mjs/types/Interface/api/user/QueryConfirm.d.ts +0 -5
  105. package/dist/mjs/types/Interface/api/user/QueryConfirm.d.ts.map +0 -1
  106. package/dist/mjs/types/Interface/api/user/QueryConfirm.js +0 -23
  107. package/dist/mjs/types/Interface/api/user/QueryConfirm.js.map +0 -1
  108. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts +0 -5
  109. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +0 -1
  110. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.js +0 -34
  111. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.js.map +0 -1
  112. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +0 -5
  113. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +0 -1
  114. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +0 -31
  115. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +0 -1
  116. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts +0 -6
  117. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +0 -1
  118. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.js +0 -43
  119. package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.js.map +0 -1
  120. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts +0 -4
  121. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts.map +0 -1
  122. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.js +0 -23
  123. package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.js.map +0 -1
  124. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts +0 -4
  125. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.d.ts.map +0 -1
  126. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.js +0 -18
  127. package/dist/mjs/types/Interface/api/user/QueryResendConfirmationLink.js.map +0 -1
  128. package/dist/mjs/types/Interface/api/user/QuerySocieties.d.ts +0 -5
  129. package/dist/mjs/types/Interface/api/user/QuerySocieties.d.ts.map +0 -1
  130. package/dist/mjs/types/Interface/api/user/QuerySocieties.js +0 -22
  131. package/dist/mjs/types/Interface/api/user/QuerySocieties.js.map +0 -1
  132. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.d.ts +0 -6
  133. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.d.ts.map +0 -1
  134. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.js +0 -35
  135. package/dist/mjs/types/Interface/api/user/QueryUpdatePassword.js.map +0 -1
  136. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +0 -4
  137. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +0 -1
  138. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.js +0 -18
  139. package/dist/mjs/types/Interface/api/user/QueryUserSmsConfirmation.js.map +0 -1
  140. package/ts/types/Interface/api/user/QueryConfirm.ts +0 -9
  141. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +0 -22
  142. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +0 -17
  143. package/ts/types/Interface/api/user/QueryGetAllFromSociety.ts +0 -29
  144. package/ts/types/Interface/api/user/QueryGetAllWithoutBp.ts +0 -11
  145. package/ts/types/Interface/api/user/QueryResendConfirmationLink.ts +0 -6
  146. package/ts/types/Interface/api/user/QuerySocieties.ts +0 -11
  147. package/ts/types/Interface/api/user/QueryUpdatePassword.ts +0 -21
  148. package/ts/types/Interface/api/user/QueryUserSmsConfirmation.ts +0 -6
@@ -8,9 +8,10 @@ import {
8
8
  IsArray,
9
9
  } from 'class-validator';
10
10
  import { ApiProperty, ApiPropertyOptional, QueryPaginate } from '../../../..';
11
+ import { RequiredQueryPaginate } from '../BasePaginate';
11
12
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
12
13
 
13
- export class QueryRevision {
14
+ export class QueryRevision extends RequiredQueryPaginate {
14
15
  @ApiProperty()
15
16
  @IsDate()
16
17
  startDate: Date;
@@ -33,15 +34,35 @@ export class QueryRevision {
33
34
  @ToBoolean()
34
35
  @IsOptional()
35
36
  descending?: boolean;
37
+ }
36
38
 
37
- // Interface paginate
38
- @ApiProperty({ default: 25 })
39
- @IsNumber()
40
- limit?: number = 25;
39
+ export class QueryRevisionThirdParty extends RequiredQueryPaginate {
40
+ @ApiProperty()
41
+ @IsDate()
42
+ startDate: Date;
41
43
 
42
- @ApiProperty({ default: 1 })
44
+ @ApiProperty()
45
+ @IsDate()
46
+ endDate: Date;
47
+
48
+ @ApiProperty()
49
+ @IsInt()
50
+ idSociety: number;
51
+
52
+ @ApiProperty()
43
53
  @IsNumber()
44
- page?: number = 1;
54
+ idThirdPartyType: number;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsString()
58
+ @IsOptional()
59
+ orderBy?: 'designation' | 'amount' | 'number';
60
+
61
+ @ApiPropertyOptional()
62
+ @IsBoolean()
63
+ @ToBoolean()
64
+ @IsOptional()
65
+ descending?: boolean;
45
66
  }
46
67
 
47
68
  export class QueryRevisionAccount implements QueryPaginate {
@@ -217,6 +238,44 @@ export class QueryRevisionPaginate {
217
238
  page?: number = 1;
218
239
  }
219
240
 
241
+ export class QueryRevisionThirdPartyPaginate {
242
+ @ApiProperty()
243
+ @IsNumber()
244
+ idThirdPartyType: number;
245
+
246
+ @ApiProperty()
247
+ @IsDate()
248
+ startDate: Date;
249
+
250
+ @ApiProperty()
251
+ @IsDate()
252
+ endDate: Date;
253
+
254
+ @ApiProperty()
255
+ @IsInt()
256
+ idSociety: number;
257
+
258
+ @ApiPropertyOptional()
259
+ @IsString()
260
+ @IsOptional()
261
+ orderBy?: 'designation' | 'amount' | 'number';
262
+
263
+ @ApiPropertyOptional()
264
+ @IsBoolean()
265
+ @ToBoolean()
266
+ @IsOptional()
267
+ descending?: boolean;
268
+
269
+ // Interface paginate
270
+ @ApiProperty({ default: 25 })
271
+ @IsNumber()
272
+ limit?: number = 25;
273
+
274
+ @ApiProperty({ default: 1 })
275
+ @IsNumber()
276
+ page?: number = 1;
277
+ }
278
+
220
279
  export class QueryRevisionSearchEntries {
221
280
  // Mandatory
222
281
  @ApiProperty()
@@ -1,25 +1,39 @@
1
1
  import {
2
2
  IAccountDetail,
3
- IAccountingFile, IAccountingJournal, ILettering, IUser,
3
+ IAccountingFile, IAccountingJournal, ILettering, IUser, ThirdPartyType,
4
4
  } from '../../..';
5
5
  import { IFile } from '../../..';
6
6
  import { ThirdParty } from '../../../../api/resources/ThirdParty';
7
7
 
8
- export interface ReadRevision {
8
+
9
+ interface Revision {
9
10
  balance: number;
10
11
  balanceDebit: number;
11
12
  balanceCredit: number;
13
+ unlocked: number | null;
14
+ locked: number | null;
15
+ previousBalance: number;
16
+ nextBalance: number;
17
+ }
18
+
19
+ export type ReadRevision = Revision & {
12
20
  account: {
13
21
  id: number,
14
22
  name: string | null,
15
23
  number: number | null,
16
24
  accountDetails: Array<IAccountDetail>
17
25
  },
18
- unlocked: number | null;
19
- locked: number | null;
20
- previousBalance: number;
21
- nextBalance: number;
22
- }
26
+ };
27
+
28
+ export type ReadAccrualRevision = Revision & {
29
+ thirdParty: {
30
+ id: number,
31
+ name: string | null,
32
+ accountancyName: string | null,
33
+ idThirdPartyType: ThirdPartyType,
34
+ accountDetails: Array<IAccountDetail>
35
+ },
36
+ };
23
37
 
24
38
  export interface ReadRevisionAccount {
25
39
  id: number;
@@ -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
+
@@ -14,7 +14,8 @@ export interface IAccountDetail {
14
14
  dateCheckAccountant: Date | null;
15
15
  checkByIdSupervisor: number | null;
16
16
  dateCheckSupervisor: Date | null;
17
- idAccount: number;
17
+ idAccount: number | null;
18
+ idThirdParty: number | null;
18
19
  idFile?: number;
19
20
  idExercice?: number;
20
21
  idSociety: number;
@@ -9,7 +9,7 @@ export interface ICommercialOffer {
9
9
  amount?: number,
10
10
  turnoverMax?: number,
11
11
  idComptaType?: number,
12
- legalForm: any,
12
+ legalForm?: any,
13
13
  startDate: Date,
14
14
  endDate: Date,
15
15
  cumulative: boolean,
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';
@@ -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,25 +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.QueryConfirm = void 0;
13
- const utils_1 = require("../../../../utils");
14
- class QueryConfirm {
15
- }
16
- __decorate([
17
- (0, utils_1.ApiProperty)(),
18
- __metadata("design:type", String)
19
- ], QueryConfirm.prototype, "tokenConfirmedAt", void 0);
20
- __decorate([
21
- (0, utils_1.ApiProperty)(),
22
- __metadata("design:type", String)
23
- ], QueryConfirm.prototype, "email", void 0);
24
- exports.QueryConfirm = QueryConfirm;
25
- //# sourceMappingURL=QueryConfirm.js.map
@@ -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,33 +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.QueryGetAllCollaboratorsByRoles = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const utils_1 = require("../../../../utils");
15
- class QueryGetAllCollaboratorsByRoles {
16
- }
17
- __decorate([
18
- (0, utils_1.ApiPropertyOptional)(),
19
- (0, class_validator_1.IsOptional)(),
20
- (0, class_validator_1.IsInt)(),
21
- __metadata("design:type", Number)
22
- ], QueryGetAllCollaboratorsByRoles.prototype, "idTimeCounterType", void 0);
23
- __decorate([
24
- (0, utils_1.ApiProperty)({
25
- description: 'roles used for group users',
26
- required: true,
27
- type: [Number],
28
- example: [1, 13],
29
- }),
30
- __metadata("design:type", Array)
31
- ], QueryGetAllCollaboratorsByRoles.prototype, "idRoles", void 0);
32
- exports.QueryGetAllCollaboratorsByRoles = QueryGetAllCollaboratorsByRoles;
33
- //# sourceMappingURL=QueryGetAllCollaboratorsByRoles.js.map
@@ -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,44 +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.QueryGetAllFromSociety = void 0;
13
- const utils_1 = require("../../../../utils");
14
- const class_validator_1 = require("class-validator");
15
- const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
16
- class QueryGetAllFromSociety {
17
- }
18
- __decorate([
19
- (0, utils_1.ApiProperty)({
20
- description: 'id of the specified society',
21
- required: true,
22
- type: Number,
23
- example: 100,
24
- }),
25
- __metadata("design:type", Number)
26
- ], QueryGetAllFromSociety.prototype, "idSociety", void 0);
27
- __decorate([
28
- (0, utils_1.ApiProperty)({
29
- description: 'array of roles id needed to return list of users',
30
- required: true,
31
- type: [Number],
32
- example: [1, 13],
33
- }),
34
- __metadata("design:type", Array)
35
- ], QueryGetAllFromSociety.prototype, "roles", void 0);
36
- __decorate([
37
- (0, utils_1.ApiPropertyOptional)(),
38
- (0, class_validator_1.IsOptional)(),
39
- (0, class_validator_1.IsBoolean)(),
40
- (0, boolean_transform_1.ToBoolean)(),
41
- __metadata("design:type", Boolean)
42
- ], QueryGetAllFromSociety.prototype, "usersNotInBusinessPartner", void 0);
43
- exports.QueryGetAllFromSociety = QueryGetAllFromSociety;
44
- //# sourceMappingURL=QueryGetAllFromSociety.js.map
@@ -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"}