@zauru-sdk/services 2.0.88 → 2.0.89

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,5 +1,5 @@
1
1
  import type { Session } from "@remix-run/node";
2
- import { AxiosUtilsResponse, BasketSchema, CreateNewPurchaseOrderBody, DataTablesFilterBody, DeepPartial, HTMLPurchasesListSchema, NewPurchaseOrderResponse, PurchaseOrderGraphQL, PurchasesListResponseSchema, UpdatePurchaseOrderBody } from "@zauru-sdk/types";
2
+ import { AxiosUtilsResponse, BasketSchema, CreateNewPurchaseOrderBody, DataTablesFilterBody, HTMLPurchasesListSchema, NewPurchaseOrderResponse, PurchaseOrderDetailsGraphQL, PurchaseOrderGraphQL, PurchasesListResponseSchema, TaggingGraphQL, UpdatePurchaseOrderBody } from "@zauru-sdk/types";
3
3
  /**
4
4
  * markAsReceivePurchaseOrder
5
5
  * Esta función sólo se utiliza cuando se van a marcar como recibida toda la órden de compra, se recibe todo lo que se envío
@@ -17,7 +17,10 @@ export declare const markAsReceivePurchaseOrder: (headers: any, body: Partial<Pu
17
17
  * @param body
18
18
  * @returns
19
19
  */
20
- export declare const createNewPurchaseOrder: (headers: any, body: DeepPartial<PurchaseOrderGraphQL>) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL>>;
20
+ export declare const createNewPurchaseOrder: (headers: any, body: Partial<PurchaseOrderGraphQL> & {
21
+ purchase_order_details?: Partial<PurchaseOrderDetailsGraphQL>[];
22
+ taggings?: Partial<TaggingGraphQL>[];
23
+ }) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL>>;
21
24
  /**
22
25
  *
23
26
  * @param headers
@@ -1,5 +1,5 @@
1
1
  import type { Session } from "@remix-run/node";
2
- import { AxiosUtilsResponse, DeepPartial, PurchaseOrderGraphQL, ReceptionGraphQL } from "@zauru-sdk/types";
2
+ import { AxiosUtilsResponse, PurchaseOrderGraphQL, ReceptionDetailsGraphQL, ReceptionGraphQL } from "@zauru-sdk/types";
3
3
  /**
4
4
  * createNewReception
5
5
  * @param headers
@@ -7,7 +7,9 @@ import { AxiosUtilsResponse, DeepPartial, PurchaseOrderGraphQL, ReceptionGraphQL
7
7
  * @param purchase_order_id
8
8
  * @returns
9
9
  */
10
- export declare function createNewReception(headers: any, body: DeepPartial<ReceptionGraphQL>, purchase_order_id: number | string): Promise<AxiosUtilsResponse<any>>;
10
+ export declare function createNewReception(headers: any, body: Partial<ReceptionGraphQL> & {
11
+ reception_details?: Partial<ReceptionDetailsGraphQL>[];
12
+ }, purchase_order_id: number | string): Promise<AxiosUtilsResponse<any>>;
11
13
  /**
12
14
  * deleteReception
13
15
  * @param headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.88",
3
+ "version": "2.0.89",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@remix-run/node": "^2.8.1",
27
- "@zauru-sdk/common": "^2.0.88",
27
+ "@zauru-sdk/common": "^2.0.89",
28
28
  "@zauru-sdk/config": "^2.0.87",
29
29
  "@zauru-sdk/graphql": "^2.0.87",
30
- "@zauru-sdk/types": "^2.0.88",
30
+ "@zauru-sdk/types": "^2.0.89",
31
31
  "axios": "^1.6.7",
32
32
  "chalk": "5.3.0"
33
33
  },
34
- "gitHead": "5d51354420be9668478ef424dca056c3b45ea811"
34
+ "gitHead": "1ecbbcbbae1e5cfa2de448676a606c913fbd6a6a"
35
35
  }