@zauru-sdk/utils 6.2.0 → 6.3.0
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.
|
@@ -60,6 +60,21 @@ export const associatePurchaseOrderToProgramacion = (headers, session, id, purch
|
|
|
60
60
|
return response;
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Associate a WorkOrder to an existing programacion.
|
|
65
|
+
* @param headers Request headers.
|
|
66
|
+
* @param session Session object.
|
|
67
|
+
* @param id ID of the programacion (webapp row) to associate to.
|
|
68
|
+
* @param work_order_id ID of the WorkOrder to associate.
|
|
69
|
+
* @returns A Promise of AxiosUtilsResponse<WebAppRowAssociateResponse>.
|
|
70
|
+
*/
|
|
71
|
+
export const associateWorkOrderToProgramacion = (headers, session, id, work_order_id) => {
|
|
72
|
+
return handlePossibleAxiosErrors(async () => {
|
|
73
|
+
const { programaciones_webapp_table_id } = await getVariablesByName(headers, session, ["programaciones_webapp_table_id"]);
|
|
74
|
+
const response = await associateWebAppTableRegister(headers, programaciones_webapp_table_id, Number(id), { temp_work_order_id: work_order_id });
|
|
75
|
+
return response;
|
|
76
|
+
});
|
|
77
|
+
};
|
|
63
78
|
/**
|
|
64
79
|
* Update a programacion in the web app table.
|
|
65
80
|
* @param headers Request headers.
|
|
@@ -32,6 +32,15 @@ export declare const deleteProgramacion: (headers: any, session: Session, id: st
|
|
|
32
32
|
* @returns A Promise of AxiosUtilsResponse<WebAppRowAssociateResponse>.
|
|
33
33
|
*/
|
|
34
34
|
export declare const associatePurchaseOrderToProgramacion: (headers: any, session: Session, id: string, purchase_order_id: number | string) => Promise<AxiosUtilsResponse<WebAppRowAssociateResponse>>;
|
|
35
|
+
/**
|
|
36
|
+
* Associate a WorkOrder to an existing programacion.
|
|
37
|
+
* @param headers Request headers.
|
|
38
|
+
* @param session Session object.
|
|
39
|
+
* @param id ID of the programacion (webapp row) to associate to.
|
|
40
|
+
* @param work_order_id ID of the WorkOrder to associate.
|
|
41
|
+
* @returns A Promise of AxiosUtilsResponse<WebAppRowAssociateResponse>.
|
|
42
|
+
*/
|
|
43
|
+
export declare const associateWorkOrderToProgramacion: (headers: any, session: Session, id: string, work_order_id: number | string) => Promise<AxiosUtilsResponse<WebAppRowAssociateResponse>>;
|
|
35
44
|
/**
|
|
36
45
|
* Update a programacion in the web app table.
|
|
37
46
|
* @param headers Request headers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@remix-run/node": "^2.8.1",
|
|
28
|
-
"@zauru-sdk/common": "^6.2.
|
|
28
|
+
"@zauru-sdk/common": "^6.2.2",
|
|
29
29
|
"@zauru-sdk/config": "^6.0.0",
|
|
30
30
|
"@zauru-sdk/graphql": "^6.0.0",
|
|
31
|
-
"@zauru-sdk/services": "^6.2.
|
|
32
|
-
"@zauru-sdk/types": "^6.
|
|
31
|
+
"@zauru-sdk/services": "^6.2.2",
|
|
32
|
+
"@zauru-sdk/types": "^6.5.0",
|
|
33
33
|
"moment": "^2.30.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "599bf296dfa33a3bc0cbcf3cb319b5f5063a1120"
|
|
36
36
|
}
|