@silexpert/core 1.3.46-0 → 1.3.46
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.
- package/dist/cjs/api/resources/User.d.ts +2 -3
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js +2 -5
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.js +36 -3
- package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +2 -3
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js +2 -5
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.js +35 -2
- package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/User.ts +3 -5
- package/ts/types/Interface/api/user/Query.ts +36 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse } from '../../types';
|
|
2
|
+
import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse, QueryGet } from '../../types';
|
|
3
3
|
export declare class User extends Resource {
|
|
4
4
|
confirm(params: QueryConfirm): Promise<IUser>;
|
|
5
5
|
resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean>;
|
|
@@ -13,13 +13,12 @@ export declare class User extends Resource {
|
|
|
13
13
|
allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]>;
|
|
14
14
|
allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]>;
|
|
15
15
|
selectableTeammates(): Promise<IUser[]>;
|
|
16
|
-
selectableTeammatesV2(): Promise<IUser[]>;
|
|
17
16
|
calendarSelectableTeammates(): Promise<IUser[]>;
|
|
18
17
|
getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]>;
|
|
19
18
|
update(id: number, params: Partial<IUser> & {
|
|
20
19
|
lastMobileConnection?: Date;
|
|
21
20
|
}): Promise<IUser>;
|
|
22
|
-
getInfo(): Promise<IUser>;
|
|
21
|
+
getInfo(params: QueryGet): Promise<IUser>;
|
|
23
22
|
delete(id: number): Promise<number>;
|
|
24
23
|
getByRoles(params: {
|
|
25
24
|
roles: Role[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,YAAY,EACZ,2BAA2B,EAC3B,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,QAAQ,EACR,IAAI,EAEJ,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts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AAC;IAuB/F,mBAAmB,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAGvC,2BAA2B,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI/C,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI5E,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG;QAAE,oBAAoB,CAAC,EAAE,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,CAAC;IAG5F,OAAO,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC;IAGzC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAInC,UAAU,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAGvD,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhD,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAGhF"}
|
|
@@ -77,9 +77,6 @@ class User extends Resource_1.Resource {
|
|
|
77
77
|
selectableTeammates() {
|
|
78
78
|
return this.axios.$get('user/selectable-teammates');
|
|
79
79
|
}
|
|
80
|
-
selectableTeammatesV2() {
|
|
81
|
-
return this.axios.$get('user/selectable-teammates/v2');
|
|
82
|
-
}
|
|
83
80
|
calendarSelectableTeammates() {
|
|
84
81
|
return this.axios.$get('user/calendar-selectable-teammates');
|
|
85
82
|
}
|
|
@@ -89,8 +86,8 @@ class User extends Resource_1.Resource {
|
|
|
89
86
|
update(id, params) {
|
|
90
87
|
return this.axios.$put(`user/${id}`, params);
|
|
91
88
|
}
|
|
92
|
-
getInfo() {
|
|
93
|
-
return this.axios.$get('user');
|
|
89
|
+
getInfo(params) {
|
|
90
|
+
return this.axios.$get('user', { params });
|
|
94
91
|
}
|
|
95
92
|
delete(id) {
|
|
96
93
|
return this.axios.$delete(`users/${id}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,uCAqBqB;AAErB,MAAa,IAAK,SAAQ,mBAAQ;IAChC,OAAO,CAAC,MAAoB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IACD,2BAA2B,CAAC,MAAmC;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,EAAE,8BAA8B,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,CAAC,IAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,QAAQ,CAAC,IAAoB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IACD,cAAc,CAAC,MAAc,EAAE,MAAuB;QACpD,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC9C,IAAI,KAAK,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;oBACzB,KAAK,CAAC,OAAO,CAAC,CAA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QACzE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,CAAC,MAAgB;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,UAAU,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,IAA0B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACF;AA1GD,oBA0GC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IUser,\n QueryConfirm,\n QueryResendConfirmationLink,\n CreateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n QueryGet,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(params: QueryGet): Promise<IUser> {\n return this.axios.$get('user', { params });\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,qBAAa,YAAY;IAEvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,wBAAwB;IAOnC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAQlB,OAAO,CAAC,EAAE,MAAM,EA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AMhB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,qBAAa,oBAAoB;IAO/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,2BAA2B;IAEtC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,qBAAa,kBAAkB;IAI7B,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IAMtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAM1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAK1B,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC;IAoC/C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAInB,KAAK,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAChC;AAED,qBAAa,mBAAmB;IAG9B,QAAQ,EAAE,MAAM,CAAC;IAMjB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,wBAAwB;IAEnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,eAAe;IAI1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAKlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,QAAQ;IAKnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryUserExport = exports.QueryUserSmsConfirmation = exports.QueryUpdatePassword = exports.GetSocietyFromUser = exports.QueryResendConfirmationLink = exports.QueryGetAllWithoutBp = exports.QueryGetAllFromSociety = exports.QueryGetAllCollaboratorsByRoles = exports.QueryGetAllCollaborators = exports.QueryConfirm = void 0;
|
|
12
|
+
exports.QueryGet = exports.QueryUserExport = exports.QueryUserSmsConfirmation = exports.QueryUpdatePassword = exports.GetSocietyFromUser = exports.QueryResendConfirmationLink = exports.QueryGetAllWithoutBp = exports.QueryGetAllFromSociety = exports.QueryGetAllCollaboratorsByRoles = exports.QueryGetAllCollaborators = exports.QueryConfirm = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
@@ -143,13 +143,36 @@ __decorate([
|
|
|
143
143
|
], GetSocietyFromUser.prototype, "attributes", void 0);
|
|
144
144
|
__decorate([
|
|
145
145
|
(0, utils_1.ApiPropertyOptional)({
|
|
146
|
-
default: [
|
|
146
|
+
default: [
|
|
147
|
+
'societyConfig',
|
|
148
|
+
'brandType',
|
|
149
|
+
'societyGescom',
|
|
150
|
+
'oldExpertInfo',
|
|
151
|
+
'activity',
|
|
152
|
+
'follows',
|
|
153
|
+
'compta',
|
|
154
|
+
'subscriptionType',
|
|
155
|
+
'connector',
|
|
156
|
+
'permissions',
|
|
157
|
+
],
|
|
147
158
|
}),
|
|
148
159
|
(0, class_validator_1.IsOptional)(),
|
|
149
160
|
(0, class_validator_1.IsString)({
|
|
150
161
|
each: true,
|
|
151
162
|
}),
|
|
152
|
-
(0, class_validator_1.IsIn)([
|
|
163
|
+
(0, class_validator_1.IsIn)([
|
|
164
|
+
'societyConfig',
|
|
165
|
+
'brandType',
|
|
166
|
+
'societyGescom',
|
|
167
|
+
'oldExpertInfo',
|
|
168
|
+
'activity',
|
|
169
|
+
'follows',
|
|
170
|
+
'compta',
|
|
171
|
+
'subscriptionType',
|
|
172
|
+
'connector',
|
|
173
|
+
'permissions',
|
|
174
|
+
'societyDetails',
|
|
175
|
+
], { each: true }),
|
|
153
176
|
__metadata("design:type", Array)
|
|
154
177
|
], GetSocietyFromUser.prototype, "include", void 0);
|
|
155
178
|
__decorate([
|
|
@@ -225,4 +248,14 @@ __decorate([
|
|
|
225
248
|
(0, class_validator_1.IsArray)(),
|
|
226
249
|
__metadata("design:type", Array)
|
|
227
250
|
], QueryUserExport.prototype, "reason", void 0);
|
|
251
|
+
class QueryGet {
|
|
252
|
+
}
|
|
253
|
+
exports.QueryGet = QueryGet;
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
256
|
+
(0, class_validator_1.IsOptional)(),
|
|
257
|
+
(0, class_validator_1.IsBoolean)(),
|
|
258
|
+
(0, boolean_transform_1.ToBoolean)(),
|
|
259
|
+
__metadata("design:type", Boolean)
|
|
260
|
+
], QueryGet.prototype, "withNewToken", void 0);
|
|
228
261
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AACvG,6CAAqE;AACrE,sFAA2E;AAC3E,qEAAkE;AAIlE,MAAa,YAAY;CAMxB;AAND,oCAMC;AAJC;IADC,IAAA,mBAAW,GAAE;;sDACW;AAGzB;IADC,IAAA,mBAAW,GAAE;;2CACA;AAGhB,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AATC;IANC,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;;wDACgB;AAQlB;IANC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BA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AAHD,kEAGC;AADC;IADC,IAAA,mBAAW,GAAE;;uDACH;AAGb,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AACvG,6CAAqE;AACrE,sFAA2E;AAC3E,qEAAkE;AAIlE,MAAa,YAAY;CAMxB;AAND,oCAMC;AAJC;IADC,IAAA,mBAAW,GAAE;;sDACW;AAGzB;IADC,IAAA,mBAAW,GAAE;;2CACA;AAGhB,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AATC;IANC,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;;wDACgB;AAQlB;IANC,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;;yDAC/D;AAGrB,MAAa,+BAA+B;CAa3C;AAbD,0EAaC;AATC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0EACmB;AAQ3B;IANC,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;;gEACgB;AAGpB,MAAa,sBAAsB;CAuBlC;AAvBD,wDAuBC;AAhBC;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,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BAAS,GAAE;;gDACM;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACiB;AAK5B;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACQ;AAGpB,MAAa,QAAQ;CAMpB;AAND,4BAMC;AADC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;8CACW","sourcesContent":["import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\nimport { WhereOptions } from 'sequelize';\nimport { ISociety } from '../../models/ISociety';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\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}\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}\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 @IsArray()\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}\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}\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n\nexport class GetSocietyFromUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSubscriptionType?: SubscriptionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayArchived?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyLabAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n attributes?: Extract<keyof ISociety, string>[];\n\n @ApiPropertyOptional({\n default: [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n ],\n })\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(\n [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n 'societyDetails',\n ],\n { each: true },\n )\n include?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n where?: WhereOptions<ISociety>;\n}\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\nexport class QueryUserSmsConfirmation {\n @ApiProperty()\n code: string;\n}\n\nexport class QueryUserExport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateEnd?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n archive?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n week?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idTypeSubscription?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n reason?: number[];\n}\n\nexport class QueryGet {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withNewToken?: boolean;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse } from '../../types';
|
|
2
|
+
import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse, QueryGet } from '../../types';
|
|
3
3
|
export declare class User extends Resource {
|
|
4
4
|
confirm(params: QueryConfirm): Promise<IUser>;
|
|
5
5
|
resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean>;
|
|
@@ -13,13 +13,12 @@ export declare class User extends Resource {
|
|
|
13
13
|
allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]>;
|
|
14
14
|
allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]>;
|
|
15
15
|
selectableTeammates(): Promise<IUser[]>;
|
|
16
|
-
selectableTeammatesV2(): Promise<IUser[]>;
|
|
17
16
|
calendarSelectableTeammates(): Promise<IUser[]>;
|
|
18
17
|
getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]>;
|
|
19
18
|
update(id: number, params: Partial<IUser> & {
|
|
20
19
|
lastMobileConnection?: Date;
|
|
21
20
|
}): Promise<IUser>;
|
|
22
|
-
getInfo(): Promise<IUser>;
|
|
21
|
+
getInfo(params: QueryGet): Promise<IUser>;
|
|
23
22
|
delete(id: number): Promise<number>;
|
|
24
23
|
getByRoles(params: {
|
|
25
24
|
roles: Role[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,YAAY,EACZ,2BAA2B,EAC3B,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,QAAQ,EACR,IAAI,EAEJ,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,YAAY,EACZ,2BAA2B,EAC3B,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,QAAQ,EACR,IAAI,EAEJ,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,QAAQ,EACT,MAAM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AO,CAAC,KAAK,CAAC;IAG5F,OAAO,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC;IAGzC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAInC,UAAU,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAGvD,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhD,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAGhF"}
|
|
@@ -73,9 +73,6 @@ export class User extends Resource {
|
|
|
73
73
|
selectableTeammates() {
|
|
74
74
|
return this.axios.$get('user/selectable-teammates');
|
|
75
75
|
}
|
|
76
|
-
selectableTeammatesV2() {
|
|
77
|
-
return this.axios.$get('user/selectable-teammates/v2');
|
|
78
|
-
}
|
|
79
76
|
calendarSelectableTeammates() {
|
|
80
77
|
return this.axios.$get('user/calendar-selectable-teammates');
|
|
81
78
|
}
|
|
@@ -85,8 +82,8 @@ export class User extends Resource {
|
|
|
85
82
|
update(id, params) {
|
|
86
83
|
return this.axios.$put(`user/${id}`, params);
|
|
87
84
|
}
|
|
88
|
-
getInfo() {
|
|
89
|
-
return this.axios.$get('user');
|
|
85
|
+
getInfo(params) {
|
|
86
|
+
return this.axios.$get('user', { params });
|
|
90
87
|
}
|
|
91
88
|
delete(id) {
|
|
92
89
|
return this.axios.$delete(`users/${id}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EASL,IAAI,EACJ,eAAe,
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names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U;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,UAAU,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,IAA0B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IUser,\n QueryConfirm,\n QueryResendConfirmationLink,\n CreateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n QueryGet,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(params: QueryGet): Promise<IUser> {\n return this.axios.$get('user', { params });\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,qBAAa,YAAY;IAEvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,wBAAwB;IAOnC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAQlB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,qBAAa,+BAA+B;IAI1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAQ3B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,sBAAsB;IAOjC,SAAS,EAAE,MAAM,CAAC;IASlB,KAAK,EAAE,MAAM,EAAE,CAAC;IAMhB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,qBAAa,oB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AAe,CAAC,EAAE,OAAO,CAAC;IAK1B,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC;IAoC/C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAInB,KAAK,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAChC;AAED,qBAAa,mBAAmB;IAG9B,QAAQ,EAAE,MAAM,CAAC;IAMjB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,wBAAwB;IAEnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,eAAe;IAI1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAKlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,QAAQ;IAKnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -150,13 +150,36 @@ __decorate([
|
|
|
150
150
|
], GetSocietyFromUser.prototype, "attributes", void 0);
|
|
151
151
|
__decorate([
|
|
152
152
|
ApiPropertyOptional({
|
|
153
|
-
default: [
|
|
153
|
+
default: [
|
|
154
|
+
'societyConfig',
|
|
155
|
+
'brandType',
|
|
156
|
+
'societyGescom',
|
|
157
|
+
'oldExpertInfo',
|
|
158
|
+
'activity',
|
|
159
|
+
'follows',
|
|
160
|
+
'compta',
|
|
161
|
+
'subscriptionType',
|
|
162
|
+
'connector',
|
|
163
|
+
'permissions',
|
|
164
|
+
],
|
|
154
165
|
}),
|
|
155
166
|
IsOptional(),
|
|
156
167
|
IsString({
|
|
157
168
|
each: true,
|
|
158
169
|
}),
|
|
159
|
-
IsIn([
|
|
170
|
+
IsIn([
|
|
171
|
+
'societyConfig',
|
|
172
|
+
'brandType',
|
|
173
|
+
'societyGescom',
|
|
174
|
+
'oldExpertInfo',
|
|
175
|
+
'activity',
|
|
176
|
+
'follows',
|
|
177
|
+
'compta',
|
|
178
|
+
'subscriptionType',
|
|
179
|
+
'connector',
|
|
180
|
+
'permissions',
|
|
181
|
+
'societyDetails',
|
|
182
|
+
], { each: true }),
|
|
160
183
|
__metadata("design:type", Array)
|
|
161
184
|
], GetSocietyFromUser.prototype, "include", void 0);
|
|
162
185
|
__decorate([
|
|
@@ -239,4 +262,14 @@ __decorate([
|
|
|
239
262
|
IsArray(),
|
|
240
263
|
__metadata("design:type", Array)
|
|
241
264
|
], QueryUserExport.prototype, "reason", void 0);
|
|
265
|
+
export class QueryGet {
|
|
266
|
+
withNewToken;
|
|
267
|
+
}
|
|
268
|
+
__decorate([
|
|
269
|
+
ApiPropertyOptional(),
|
|
270
|
+
IsOptional(),
|
|
271
|
+
IsBoolean(),
|
|
272
|
+
ToBoolean(),
|
|
273
|
+
__metadata("design:type", Boolean)
|
|
274
|
+
], QueryGet.prototype, "withNewToken", void 0);
|
|
242
275
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIlE,MAAM,OAAO,YAAY;IAEvB,gBAAgB,CAAS;IAGzB,KA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AmB;IAG9B,QAAQ,CAAS;IAMjB,EAAE,CAAiB;IAKnB,KAAK,CAAiB;CACvB;AAZC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;+CACY;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACW;AAGxB,MAAM,OAAO,wBAAwB;IAEnC,IAAI,CAAS;CACd;AADC;IADC,WAAW,EAAE;;sDACD;AAGf,MAAM,OAAO,eAAe;IAI1B,SAAS,CAAU;IAKnB,OAAO,CAAU;IAMjB,OAAO,CAAW;IAKlB,IAAI,CAAU;IAKd,kBAAkB,CAAU;IAK5B,MAAM,CAAY;CACnB;AA3BC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACQ;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;gDACM;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACG;AAKd;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACiB;AAK5B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;+CACQ;AAGpB,MAAM,OAAO,QAAQ;IAKnB,YAAY,CAAW;CACxB;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;8CACW","sourcesContent":["import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\nimport { WhereOptions } from 'sequelize';\nimport { ISociety } from '../../models/ISociety';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\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}\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}\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 @IsArray()\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}\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}\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n\nexport class GetSocietyFromUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSubscriptionType?: SubscriptionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayArchived?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyLabAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n attributes?: Extract<keyof ISociety, string>[];\n\n @ApiPropertyOptional({\n default: [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n ],\n })\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(\n [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n 'societyDetails',\n ],\n { each: true },\n )\n include?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n where?: WhereOptions<ISociety>;\n}\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\nexport class QueryUserSmsConfirmation {\n @ApiProperty()\n code: string;\n}\n\nexport class QueryUserExport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateEnd?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n archive?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n week?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idTypeSubscription?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n reason?: number[];\n}\n\nexport class QueryGet {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withNewToken?: boolean;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.46
|
|
3
|
+
"version": "1.3.46",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
GetSocietyFromUser,
|
|
20
20
|
RegisterProspectBody,
|
|
21
21
|
RegisterProspectResponse,
|
|
22
|
+
QueryGet,
|
|
22
23
|
} from '../../types';
|
|
23
24
|
|
|
24
25
|
export class User extends Resource {
|
|
@@ -93,9 +94,6 @@ export class User extends Resource {
|
|
|
93
94
|
selectableTeammates(): Promise<IUser[]> {
|
|
94
95
|
return this.axios.$get('user/selectable-teammates');
|
|
95
96
|
}
|
|
96
|
-
selectableTeammatesV2(): Promise<IUser[]> {
|
|
97
|
-
return this.axios.$get('user/selectable-teammates/v2');
|
|
98
|
-
}
|
|
99
97
|
calendarSelectableTeammates(): Promise<IUser[]> {
|
|
100
98
|
return this.axios.$get('user/calendar-selectable-teammates');
|
|
101
99
|
}
|
|
@@ -107,8 +105,8 @@ export class User extends Resource {
|
|
|
107
105
|
update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {
|
|
108
106
|
return this.axios.$put(`user/${id}`, params);
|
|
109
107
|
}
|
|
110
|
-
getInfo(): Promise<IUser> {
|
|
111
|
-
return this.axios.$get('user');
|
|
108
|
+
getInfo(params: QueryGet): Promise<IUser> {
|
|
109
|
+
return this.axios.$get('user', { params });
|
|
112
110
|
}
|
|
113
111
|
delete(id: number): Promise<number> {
|
|
114
112
|
return this.axios.$delete(`users/${id}`);
|
|
@@ -110,13 +110,39 @@ export class GetSocietyFromUser {
|
|
|
110
110
|
attributes?: Extract<keyof ISociety, string>[];
|
|
111
111
|
|
|
112
112
|
@ApiPropertyOptional({
|
|
113
|
-
default: [
|
|
113
|
+
default: [
|
|
114
|
+
'societyConfig',
|
|
115
|
+
'brandType',
|
|
116
|
+
'societyGescom',
|
|
117
|
+
'oldExpertInfo',
|
|
118
|
+
'activity',
|
|
119
|
+
'follows',
|
|
120
|
+
'compta',
|
|
121
|
+
'subscriptionType',
|
|
122
|
+
'connector',
|
|
123
|
+
'permissions',
|
|
124
|
+
],
|
|
114
125
|
})
|
|
115
126
|
@IsOptional()
|
|
116
127
|
@IsString({
|
|
117
128
|
each: true,
|
|
118
129
|
})
|
|
119
|
-
@IsIn(
|
|
130
|
+
@IsIn(
|
|
131
|
+
[
|
|
132
|
+
'societyConfig',
|
|
133
|
+
'brandType',
|
|
134
|
+
'societyGescom',
|
|
135
|
+
'oldExpertInfo',
|
|
136
|
+
'activity',
|
|
137
|
+
'follows',
|
|
138
|
+
'compta',
|
|
139
|
+
'subscriptionType',
|
|
140
|
+
'connector',
|
|
141
|
+
'permissions',
|
|
142
|
+
'societyDetails',
|
|
143
|
+
],
|
|
144
|
+
{ each: true },
|
|
145
|
+
)
|
|
120
146
|
include?: string[];
|
|
121
147
|
|
|
122
148
|
@ApiPropertyOptional()
|
|
@@ -178,3 +204,11 @@ export class QueryUserExport {
|
|
|
178
204
|
@IsArray()
|
|
179
205
|
reason?: number[];
|
|
180
206
|
}
|
|
207
|
+
|
|
208
|
+
export class QueryGet {
|
|
209
|
+
@ApiPropertyOptional()
|
|
210
|
+
@IsOptional()
|
|
211
|
+
@IsBoolean()
|
|
212
|
+
@ToBoolean()
|
|
213
|
+
withNewToken?: boolean;
|
|
214
|
+
}
|