shared-ritm 1.2.83 → 1.2.85

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.
@@ -16,6 +16,7 @@ export type ConfigResponse = any;
16
16
  declare class AuthService extends ApiService {
17
17
  login(email: string, password: string): Promise<any>;
18
18
  loginPhoto(photo: any): Promise<any>;
19
+ loginVideo(data: any): Promise<any>;
19
20
  logout(): Promise<any>;
20
21
  userInfo(): Promise<any>;
21
22
  configs(): Promise<any>;
@@ -1,53 +1,40 @@
1
- import * as faceapi from 'face-api.js'
1
+ import * as faceapi from 'face-api.js';
2
2
  declare class PhotoService {
3
- getVideoStreamConfig(
4
- width: number,
5
- height: number,
6
- ): {
7
- audio: boolean
8
- video: {
9
- width: {
10
- min: number
11
- ideal: number
12
- }
13
- height: {
14
- min: number
15
- ideal: number
16
- }
17
- facingMode: string
18
- }
19
- }
20
- getContourCoordinate(
21
- width: number,
22
- height: number,
23
- ): {
24
- x: number
25
- y: number
26
- width: number
27
- height: number
28
- }
29
- getBoxData(box: any): {
30
- x: any
31
- y: any
32
- width: any
33
- height: any
34
- } | null
35
- setStylesForCanvas(canvasContainer: any): void
36
- checkFaceInclusion(frame: any, face: any): boolean
37
- getFaceDetections(videoRef: any): Promise<
38
- faceapi.WithFaceExpressions<
39
- faceapi.WithFaceLandmarks<
40
- {
41
- detection: faceapi.FaceDetection
42
- },
43
- faceapi.FaceLandmarks68
44
- >
45
- >[]
46
- >
47
- getCanvas(videoRef: any): HTMLCanvasElement
48
- getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void
49
- getFaceSnapshot(inputImage: any, box: any): Promise<string | null>
50
- initModels(): Promise<void>
3
+ getVideoStreamConfig(width: number, height: number): {
4
+ audio: boolean;
5
+ video: {
6
+ width: {
7
+ min: number;
8
+ ideal: number;
9
+ };
10
+ height: {
11
+ min: number;
12
+ ideal: number;
13
+ };
14
+ facingMode: string;
15
+ };
16
+ };
17
+ getContourCoordinate(width: number, height: number): {
18
+ x: number;
19
+ y: number;
20
+ width: number;
21
+ height: number;
22
+ };
23
+ getBoxData(box: any): {
24
+ x: any;
25
+ y: any;
26
+ width: any;
27
+ height: any;
28
+ } | null;
29
+ setStylesForCanvas(canvasContainer: any): void;
30
+ checkFaceInclusion(frame: any, face: any): boolean;
31
+ getFaceDetections(videoRef: any): Promise<faceapi.WithFaceExpressions<faceapi.WithFaceLandmarks<{
32
+ detection: faceapi.FaceDetection;
33
+ }, faceapi.FaceLandmarks68>>[]>;
34
+ getCanvas(videoRef: any): HTMLCanvasElement;
35
+ getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void;
36
+ getFaceSnapshot(inputImage: any, box: any): Promise<string | null>;
37
+ initModels(): Promise<void>;
51
38
  }
52
- export default function usePhotoService(): PhotoService
53
- export {}
39
+ export default function usePhotoService(): PhotoService;
40
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.83",
3
+ "version": "1.2.85",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -30,6 +30,12 @@ class AuthService extends ApiService {
30
30
  return this.post<any, LoginResponse>(`/login/from_photo`, { photo })
31
31
  }
32
32
 
33
+ public loginVideo(data: any) {
34
+ return this.post<any, LoginResponse>(`/login/video`, data, {
35
+ transformRequest: d => d,
36
+ })
37
+ }
38
+
33
39
  public logout() {
34
40
  return this.post<null, LoginResponse>(`/logout`, null)
35
41
  }
@@ -20,7 +20,7 @@
20
20
  filled
21
21
  map-options
22
22
  stack-label
23
- :use-input="!selected?.length && typeof selected !== 'number'"
23
+ use-input
24
24
  :use-chips="!simple"
25
25
  :hide-bottom-space="hideBottomSpace"
26
26
  input-debounce="100"
@@ -1,12 +1,12 @@
1
- $primary : #1976D2
2
- $secondary : #C4C4C4
3
- $accent : #665BA6
4
- $positive : #3B9F69
5
- $negative : #C10015
6
- $info : #31CCEC
7
- $warning : #F2C037
8
-
9
- $dark : #1D1D1D
10
- $dark-page : #121212
11
-
12
- $secondary: #1D1D1D
1
+ $primary : #1976D2
2
+ $secondary : #C4C4C4
3
+ $accent : #665BA6
4
+ $positive : #3B9F69
5
+ $negative : #C10015
6
+ $info : #31CCEC
7
+ $warning : #F2C037
8
+
9
+ $dark : #1D1D1D
10
+ $dark-page : #121212
11
+
12
+ $secondary: #1D1D1D
@@ -1,10 +0,0 @@
1
- import ApiService from '@/api/settings/ApiService'
2
- import { Api_Comment_Request_Dto } from '@/api/types/Api_Comment'
3
- import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
4
- declare class CommentsService extends ApiService {
5
- uploadComment(payload: Api_Comment_Request_Dto): Promise<Api_Tasks_Task_Dto>
6
- deleteComment(commentId: string): Promise<unknown>
7
- editComment(payload: { commentId: string; data: unknown }): Promise<unknown>
8
- }
9
- export default function useCommentsService(): CommentsService
10
- export {}
@@ -1,43 +0,0 @@
1
- export type Api_Search_User_Passes = {
2
- id: string
3
- type: string
4
- uuid: string
5
- }
6
- export type Api_Search_User_Positions = {
7
- id: string
8
- name: string
9
- display_name: string
10
- description: string
11
- }
12
- export type Api_Search_User_Roles = {
13
- id: string
14
- name: string
15
- display_name: string
16
- }
17
- export type Api_Search_User_Teams = {
18
- id: string
19
- name: string
20
- display_name: string
21
- roles: Api_Search_User_Roles[]
22
- }
23
- export type Api_Search_User_Photos = {
24
- id: string
25
- name: string
26
- path: string
27
- type: string
28
- }
29
- export type Api_Search_User = {
30
- id: string
31
- full_name: string
32
- last_name: string
33
- first_name: string
34
- patronymic: string
35
- email: string
36
- phone: string
37
- divisions: string
38
- personnel_number: string
39
- passes: Api_Search_User_Passes[]
40
- positions: Api_Search_User_Positions[]
41
- teams: Api_Search_User_Teams[]
42
- photos: Api_Search_User_Photos[]
43
- }