@zauru-sdk/graphql 6.14.0 → 6.16.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.
|
@@ -120,6 +120,7 @@ export type GetInvoicesOptions = {
|
|
|
120
120
|
lastId?: number;
|
|
121
121
|
limit?: number;
|
|
122
122
|
};
|
|
123
|
+
export declare const getWebAppTableByIdStringQuery: (id: number) => string;
|
|
123
124
|
export declare const getWebAppRowsByWebAppTableIdStringQuery: (webapp_table_id: number, options?: GetWebAppRowsByTableIdOptions) => string;
|
|
124
125
|
export declare const getPayeeCategoryByIdStringQuery: (id: number) => string;
|
|
125
126
|
export declare const getPayeeCategoriesByNotesMatchStringQuery: (match: string) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.getProductionWorkOrderStringQuery = exports.getPrintTemplatesStringQuery = exports.getCasesStringQuery = void 0;
|
|
3
|
+
exports.getInvoicesStringQuery = exports.getPaymentByIdStringQuery = 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.getWebAppTableByIdStringQuery = exports.getWebAppRowStringQuery = exports.getAgenciesStringQuery = exports.getProvidersStringQuery = exports.getPayeesStringQuery = exports.getPurchaseOrdersBetweenDatesStringQuery = exports.getSerialsStringQuery = exports.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getBookingByPurchaseOrderAndReferenceStringQuery = exports.getShipmentsStringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
4
|
+
exports.getProductionWorkOrderStringQuery = exports.getPrintTemplatesStringQuery = exports.getCasesStringQuery = exports.getInvoicesByAgencyIdStringQuery = void 0;
|
|
5
5
|
const getLast100ReceptionsStringQuery = (agency_id) => {
|
|
6
6
|
const conditions = ["voided: {_eq: false}"];
|
|
7
7
|
if (agency_id) {
|
|
@@ -168,6 +168,7 @@ query getPurchaseOrder($id: bigint) @cached {
|
|
|
168
168
|
delivery_date
|
|
169
169
|
other_charges
|
|
170
170
|
shipment_reference
|
|
171
|
+
consolidate_id
|
|
171
172
|
${payee}
|
|
172
173
|
${receptions}
|
|
173
174
|
webapp_table_rowables {
|
|
@@ -814,6 +815,25 @@ const requirePositiveInt = (value, label) => {
|
|
|
814
815
|
}
|
|
815
816
|
return n;
|
|
816
817
|
};
|
|
818
|
+
const getWebAppTableByIdStringQuery = (id) => {
|
|
819
|
+
const tableId = requirePositiveInt(id, "webapp table id");
|
|
820
|
+
return `
|
|
821
|
+
query getWebAppTableById {
|
|
822
|
+
webapp_tables(where: {id: {_eq: ${tableId}}}) {
|
|
823
|
+
id
|
|
824
|
+
zid
|
|
825
|
+
entity_id
|
|
826
|
+
name
|
|
827
|
+
structure
|
|
828
|
+
creator_id
|
|
829
|
+
updater_id
|
|
830
|
+
created_at
|
|
831
|
+
updated_at
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
`;
|
|
835
|
+
};
|
|
836
|
+
exports.getWebAppTableByIdStringQuery = getWebAppTableByIdStringQuery;
|
|
817
837
|
const getWebAppRowsByWebAppTableIdStringQuery = (webapp_table_id, options) => {
|
|
818
838
|
const { limit, data, createdAt, idLt } = options ?? {};
|
|
819
839
|
const tableId = Number(webapp_table_id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.16.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",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"tsx": "^4.23.15",
|
|
24
24
|
"typescript": "^5.1.6"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "26d8a2e0b72cf05c390c74d0afa529718020cf46"
|
|
27
27
|
}
|