itc-components-library20 0.0.5 → 0.0.7

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/index.d.ts CHANGED
@@ -256,45 +256,48 @@ declare class Message {
256
256
  }
257
257
 
258
258
  interface IDictionaryIconDTO {
259
- id: string | null;
260
- name: string | null;
261
- code: string | null;
262
- type: string | null;
259
+ id?: string | null;
260
+ name?: string | null;
261
+ code?: string | null;
262
+ type?: string | null;
263
263
  }
264
264
 
265
265
  interface IDictionaryTypeQuestionDTO {
266
- id: number | null;
267
- name: string | null;
266
+ id?: number | null;
267
+ name?: string | null;
268
268
  }
269
269
 
270
270
  interface IDictionaryTypeSurveyDTO {
271
271
  id?: number | null;
272
- name: string | null;
272
+ name?: string | null;
273
273
  }
274
274
 
275
275
  interface IDictionaryAnswerResponse {
276
276
  id: string;
277
- text: string | null;
278
- value: number;
277
+ text?: string | null;
278
+ value?: number;
279
+ secondType?: number;
279
280
  icon: IDictionaryIconDTO;
280
281
  }
281
282
 
282
283
  interface IDictionaryStepResponse {
283
284
  id: number;
284
- name: string | null;
285
+ name?: string | null;
285
286
  number: number;
286
287
  typeSurvey: IDictionaryTypeSurveyDTO;
287
288
  }
288
289
 
289
290
  interface IDictionaryQuestionResponse {
290
291
  id: string;
291
- text: string | null;
292
- position: string | null;
292
+ text?: string | null;
293
+ position?: string | null;
293
294
  step: IDictionaryStepResponse;
294
295
  typeSurvey: IDictionaryTypeSurveyDTO;
295
296
  typeQuestion: IDictionaryTypeQuestionDTO;
296
297
  icon: IDictionaryIconDTO;
297
- answers: IDictionaryAnswerResponse[];
298
+ fatherQuestion?: string;
299
+ valutationOrder?: number;
300
+ answers?: IDictionaryAnswerResponse[];
298
301
  }
299
302
 
300
303
  interface IQuestionAnswer {
@@ -318,7 +321,8 @@ declare class Survey {
318
321
  interface ISurveyResultResponse {
319
322
  question: IDictionaryQuestionResponse;
320
323
  answer: IDictionaryAnswerResponse;
321
- value: number | null;
324
+ value?: number | null;
325
+ textValue?: string;
322
326
  }
323
327
 
324
328
  interface IPatientSurveyResponse {
@@ -326,7 +330,7 @@ interface IPatientSurveyResponse {
326
330
  patientId: string;
327
331
  date: Date;
328
332
  typeSurvey: IDictionaryTypeSurveyDTO;
329
- results: ISurveyResultResponse[];
333
+ results?: ISurveyResultResponse[];
330
334
  }
331
335
 
332
336
  interface IPatientSurveyRequest {
@@ -335,6 +339,37 @@ interface IPatientSurveyRequest {
335
339
  answers: string[];
336
340
  }
337
341
 
342
+ interface ISurveyGroupResponse {
343
+ id: string;
344
+ patientId: string;
345
+ accountId: string;
346
+ date: Date;
347
+ surveys: IPatientSurveyResponse[];
348
+ }
349
+
350
+ interface ISurveyBodyPainAnswerResponse {
351
+ id: string;
352
+ surveyId: string;
353
+ painValue?: number;
354
+ bodyPartQuestionId: string;
355
+ questionText?: string;
356
+ }
357
+
358
+ interface IBodyPartQuestionResponse {
359
+ id: string;
360
+ bodyPartId: string;
361
+ questionId: string;
362
+ painScaleId: string;
363
+ }
364
+
365
+ interface IDictionaryBodyPartsResponse {
366
+ id: string;
367
+ name?: string;
368
+ side?: string;
369
+ position?: number;
370
+ isActive?: number;
371
+ }
372
+
338
373
  declare class ApiSurveyService {
339
374
  private gateway;
340
375
  endpoint: string;
@@ -349,6 +384,17 @@ declare class ApiSurveyService {
349
384
  getSurvey(patientId: string | "", surveyType: number | "", surveyId: string | "", lastSurvey: false): Observable<IPatientSurveyResponse[]>;
350
385
  getSurveyById(surveyId: string): Observable<IPatientSurveyResponse>;
351
386
  getLastSurvey(patientId: string, surveyType: number, lastSurvey: true): Observable<IPatientSurveyResponse[]>;
387
+ getSurveyGroupByParameters(id: string, patientId: string): Observable<ISurveyGroupResponse>;
388
+ getSurveyGroupById(id: string): Observable<ISurveyGroupResponse>;
389
+ getSurveyGroupByPatient(patientId: string): Observable<ISurveyGroupResponse[]>;
390
+ getSurveyBodyPainAnswer(): Observable<ISurveyBodyPainAnswerResponse[]>;
391
+ getSurveyBodyPainAnswerByParameters(id: string, surveyId: string): Observable<ISurveyBodyPainAnswerResponse>;
392
+ getSurveyBodyPainAnswerById(id: string): Observable<ISurveyBodyPainAnswerResponse>;
393
+ getSurveyBodyPainAnswerBySurveyId(surveyId: string): Observable<ISurveyBodyPainAnswerResponse[]>;
394
+ getBodyPartQuestion(): Observable<IBodyPartQuestionResponse[]>;
395
+ getBodyPartQuestionById(id: string): Observable<IBodyPartQuestionResponse>;
396
+ getBodyPart(): Observable<IDictionaryBodyPartsResponse[]>;
397
+ getBodyPartById(id: string): Observable<IDictionaryBodyPartsResponse>;
352
398
  postSurvey(patientSurveyRequest: IPatientSurveyRequest): Observable<boolean>;
353
399
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiSurveyService, never>;
354
400
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiSurveyService>;
@@ -366,7 +412,6 @@ declare class SurveyRadio {
366
412
  ngOnInit(): void;
367
413
  selectedValue(idQuestion: string | undefined, idAnswer: string | undefined): void;
368
414
  searchSurvey(surveyId: string): void;
369
- getMatchingAnswer(surveyId: string, answerId: string): boolean;
370
415
  static ɵfac: i0.ɵɵFactoryDeclaration<SurveyRadio, never>;
371
416
  static ɵcmp: i0.ɵɵComponentDeclaration<SurveyRadio, "lib-survey-radio", never, { "question": { "alias": "question"; "required": false; }; "typeSurvey": { "alias": "typeSurvey"; "required": false; }; "patientSurvey": { "alias": "patientSurvey"; "required": false; }; "patientId": { "alias": "patientId"; "required": false; }; }, { "questionAnswer": "questionAnswer"; }, never, never, true, never>;
372
417
  }
@@ -649,6 +694,8 @@ interface IDictionaryProfileRequest {
649
694
  interface IDictionaryLdap {
650
695
  id: number;
651
696
  name: string;
697
+ username?: string;
698
+ password?: string;
652
699
  }
653
700
 
654
701
  declare class ApiAccountDictionaryService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itc-components-library20",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Library of Angular components for ITC projects, compatible with Angular 20.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.2.0",