@zauru-sdk/graphql 6.0.0 → 6.1.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.
|
@@ -158,3 +158,8 @@ export declare const getCasesStringQuery: (filters?: {
|
|
|
158
158
|
includeSeller?: boolean;
|
|
159
159
|
}) => string;
|
|
160
160
|
export declare const getPrintTemplatesStringQuery = "\nquery getPrintTemplates {\n print_templates {\n id\n name\n }\n}\n";
|
|
161
|
+
export declare const getProductionWorkOrderStringQuery: (config: {
|
|
162
|
+
id: number | string;
|
|
163
|
+
closed?: boolean;
|
|
164
|
+
voided?: boolean;
|
|
165
|
+
}) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPrintTemplatesStringQuery = exports.getCasesStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentMethodsStringQuery = exports.getPaymentTermsStringQuery = exports.getSuggestedPricesStringQuery = exports.getCurrenciesStringQuery = exports.getInvoiceFormSubmissionsByInvoiceIdStringQuery = exports.getCaseFormSubmissionsByCaseIdStringQuery = exports.getLastInvoiceFormSubmissionStringQuery = exports.getInvoiceFormSubmissionsByAgencyIdStringQuery = exports.getFormSubmissionByIdStringQuery = exports.getMyCaseFormSubmissionsStringQuery = exports.getFormsByDocumentTypeStringQuery = exports.getFormsStringQuery = exports.getFormByNameStringQuery = exports.getAllFormsStringQuery = exports.getItemByNameStringQuery = exports.getBundleByNameStringQuery = exports.getBundlesByItemCategoryIdStringQuery = exports.getEmployeesByAgencyIdStringQuery = exports.getEmployeesStringQuery = exports.getEmployeeProfileStringQuery = exports.getConsolidatesBetweenDatesStringQuery = exports.getItemsBySuperCategoryStringQuery = exports.getItemsStringQuery = exports.getItemsByCategoryStringQuery = exports.getItemCategoryByIdStringQuery = exports.getSuperCategoryByIdStringQuery = exports.getPayeeByIdStringQuery = exports.getClientCategoriesStringQuery = exports.getProviderCategoriesStringQuery = exports.getPayeeCategoriesStringQuery = exports.getPayeeCategoriesByNotesMatchStringQuery = exports.getPayeeCategoryByIdStringQuery = exports.getWebAppRowsByWebAppTableIdStringQuery = exports.getWebAppRowStringQuery = exports.getAgenciesStringQuery = exports.getProvidersStringQuery = exports.getPayeesStringQuery = exports.getPurchaseOrdersBetweenDatesStringQuery = exports.getSerialsStringQuery = exports.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsStringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
3
|
+
exports.getProductionWorkOrderStringQuery = exports.getPrintTemplatesStringQuery = exports.getCasesStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentMethodsStringQuery = exports.getPaymentTermsStringQuery = exports.getSuggestedPricesStringQuery = exports.getCurrenciesStringQuery = exports.getInvoiceFormSubmissionsByInvoiceIdStringQuery = exports.getCaseFormSubmissionsByCaseIdStringQuery = exports.getLastInvoiceFormSubmissionStringQuery = exports.getInvoiceFormSubmissionsByAgencyIdStringQuery = exports.getFormSubmissionByIdStringQuery = exports.getMyCaseFormSubmissionsStringQuery = exports.getFormsByDocumentTypeStringQuery = exports.getFormsStringQuery = exports.getFormByNameStringQuery = exports.getAllFormsStringQuery = exports.getItemByNameStringQuery = exports.getBundleByNameStringQuery = exports.getBundlesByItemCategoryIdStringQuery = exports.getEmployeesByAgencyIdStringQuery = exports.getEmployeesStringQuery = exports.getEmployeeProfileStringQuery = exports.getConsolidatesBetweenDatesStringQuery = exports.getItemsBySuperCategoryStringQuery = exports.getItemsStringQuery = exports.getItemsByCategoryStringQuery = exports.getItemCategoryByIdStringQuery = exports.getSuperCategoryByIdStringQuery = exports.getPayeeByIdStringQuery = exports.getClientCategoriesStringQuery = exports.getProviderCategoriesStringQuery = exports.getPayeeCategoriesStringQuery = exports.getPayeeCategoriesByNotesMatchStringQuery = exports.getPayeeCategoryByIdStringQuery = exports.getWebAppRowsByWebAppTableIdStringQuery = exports.getWebAppRowStringQuery = exports.getAgenciesStringQuery = exports.getProvidersStringQuery = exports.getPayeesStringQuery = exports.getPurchaseOrdersBetweenDatesStringQuery = exports.getSerialsStringQuery = exports.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsStringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
4
4
|
const getLast100ReceptionsStringQuery = (agency_id) => {
|
|
5
5
|
const conditions = ["voided: {_eq: false}"];
|
|
6
6
|
if (agency_id) {
|
|
@@ -1772,3 +1772,47 @@ query getPrintTemplates {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
1774
|
`;
|
|
1775
|
+
const getProductionWorkOrderStringQuery = (config) => {
|
|
1776
|
+
const conditions = [`id: { _eq: ${config.id} }`];
|
|
1777
|
+
if (config.closed !== undefined) {
|
|
1778
|
+
conditions.push(`closed: { _eq: ${config.closed} }`);
|
|
1779
|
+
}
|
|
1780
|
+
if (config.voided !== undefined) {
|
|
1781
|
+
conditions.push(`voided: { _eq: ${config.voided} }`);
|
|
1782
|
+
}
|
|
1783
|
+
return `query getProductionWorkOrder {
|
|
1784
|
+
production_work_orders(where: { ${conditions.join(", ")} }) {
|
|
1785
|
+
id
|
|
1786
|
+
zid
|
|
1787
|
+
id_number
|
|
1788
|
+
agency_id
|
|
1789
|
+
reference
|
|
1790
|
+
order_date
|
|
1791
|
+
needs_delivery
|
|
1792
|
+
closed
|
|
1793
|
+
voided
|
|
1794
|
+
closed_at
|
|
1795
|
+
assigned_invoice_id
|
|
1796
|
+
assigned_agency_id
|
|
1797
|
+
assigned_lot_id
|
|
1798
|
+
assigned_serial_id
|
|
1799
|
+
responsible_id
|
|
1800
|
+
tag_id
|
|
1801
|
+
memo
|
|
1802
|
+
production_work_order_details {
|
|
1803
|
+
id
|
|
1804
|
+
work_order_id
|
|
1805
|
+
item_id
|
|
1806
|
+
bundle_id
|
|
1807
|
+
lot_id
|
|
1808
|
+
serial_id
|
|
1809
|
+
cost_center_id
|
|
1810
|
+
booked_quantity
|
|
1811
|
+
delivered_quantity
|
|
1812
|
+
reference
|
|
1813
|
+
average_cost
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
}`;
|
|
1817
|
+
};
|
|
1818
|
+
exports.getProductionWorkOrderStringQuery = getProductionWorkOrderStringQuery;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Queries de uso común para las aplicación de Zauru.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "f07eda3ef08930a12aebb64c36f6183d26caf57b"
|
|
26
26
|
}
|