shared-ritm 1.3.138 → 1.3.139

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.
@@ -1,8 +1,11 @@
1
1
  import ApiService from '../settings/ApiService';
2
2
  import { Api_Visitor_Dto } from '../types/Api_User';
3
3
  import { ResponseApi } from '../types/Api_Service';
4
+ import { Api_Payload_Create_Purchase_Dto } from '@/api/types/Api_Purchase';
4
5
  declare class PurchaseService extends ApiService {
5
6
  getPurchaseList(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
7
+ getPurchaseValue(params?: Record<string, any>): Promise<Api_Visitor_Dto>;
8
+ createPurchase(body: Api_Payload_Create_Purchase_Dto): Promise<Api_Visitor_Dto>;
6
9
  }
7
10
  export default function usePurchaseService(): PurchaseService;
8
11
  export {};
@@ -46,6 +46,8 @@ export type FiltersValue = {
46
46
  status: boolean;
47
47
  };
48
48
  divisions?: string[];
49
+ curator?: any[];
50
+ stage?: string[];
49
51
  };
50
52
  export type Api_Instrument_Dto = {
51
53
  id: string;
@@ -0,0 +1,6 @@
1
+ export type Api_Payload_Create_Purchase_Dto = {
2
+ number: string;
3
+ name: string;
4
+ type: any;
5
+ stages?: any[];
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.138",
3
+ "version": "1.3.139",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -2,15 +2,20 @@ import ApiService from '../settings/ApiService'
2
2
  import { Api_Visitor_Dto } from '../types/Api_User'
3
3
 
4
4
  import { ResponseApi } from '../types/Api_Service'
5
+ import { Api_Payload_Create_Purchase_Dto } from '@/api/types/Api_Purchase'
5
6
 
6
7
  class PurchaseService extends ApiService {
7
8
  public async getPurchaseList(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
8
9
  return await this.get(`purchase/list`, { params })
9
10
  }
10
11
 
11
- // public entryVisitorLog(body: { user_id: string; task_id?: string }): Promise<Api_Visitor_Dto> {
12
- // return this.post('entry_visitor_log', body)
13
- // }
12
+ public getPurchaseValue(params?: Record<string, any>): Promise<Api_Visitor_Dto> {
13
+ return this.get('purchase/value', { params })
14
+ }
15
+
16
+ public createPurchase(body: Api_Payload_Create_Purchase_Dto): Promise<Api_Visitor_Dto> {
17
+ return this.post('purchase/create', body)
18
+ }
14
19
  // public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
15
20
  // return await this.post(`exit_visitor_log/${id}`, {})
16
21
  // }
@@ -48,6 +48,8 @@ export type FiltersValue = {
48
48
  status: boolean
49
49
  }
50
50
  divisions?: string[]
51
+ curator?: any[]
52
+ stage?: string[]
51
53
  }
52
54
  export type Api_Instrument_Dto = {
53
55
  id: string
@@ -0,0 +1,6 @@
1
+ export type Api_Payload_Create_Purchase_Dto = {
2
+ number: string
3
+ name: string
4
+ type: any
5
+ stages?: any[]
6
+ }