@zauru-sdk/graphql 1.0.71 → 1.0.77
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.
|
@@ -34,8 +34,8 @@ export declare const getItemsByCategoryStringQuery = "\nquery getItemsByCategory
|
|
|
34
34
|
export declare const getItemsStringQuery = "\nquery getItems {\n items (where: {active: {_eq: true }}) {\n id,\n name,\n code\n }\n}\n";
|
|
35
35
|
export declare const getItemsBySuperCategoryStringQuery = "\nquery getItemsBySuperCategory ($id: Int, $agency_id: Int) {\n item_super_categories (where: {id: {_eq: $id }}, order_by: {id: desc}) {\n item_categories {\n items (where: {active: {_eq: true }}) {\n id,\n name,\n stocks_only_integer,\n code,\n item_category_id,\n measurement_unit,\n description\n product_type\n stocks(where: {agency_id: {_eq: $agency_id}}, order_by: {id: desc}) {\n available\n id\n incoming\n outgoing\n }\n }\n }\n }\n}\n";
|
|
36
36
|
export declare const getConsolidatesBetweenDatesStringQuery = "\nquery getConsolidatesBetweenDates ($startDate: timestamp, $endDate: timestamp) {\n consolidates (order_by: {id: desc}, where: {created_at: {_gte: $startDate, _lte: $endDate}}) {\n id\n id_number\n created_at\n name\n purchase_orders {\n id\n due\n }\n }\n}\n";
|
|
37
|
-
export declare const getEmployeeProfileStringQuery = "\nquery getEmployeeProfile ($id: Int) {\n employees(where: {id: {_eq: $id}}) {\n agency_id\n email\n entity_id\n id\n name\n user_id\n }\n}\n";
|
|
38
|
-
export declare const getEmployeesByAgencyIdStringQuery = "\nquery getEmployeesByAgencyId ($id: Int) {\n employees(where: {agency_id: {_eq: $id}}) {\n name\n id\n user_id\n }\n}\n";
|
|
37
|
+
export declare const getEmployeeProfileStringQuery = "\nquery getEmployeeProfile ($id: Int) {\n employees(where: {id: {_eq: $id}}) {\n agency_id\n email\n entity_id\n id\n name\n user_id\n seller\n active\n accountant\n inventory_controller\n buyer\n support_agent\n }\n}\n";
|
|
38
|
+
export declare const getEmployeesByAgencyIdStringQuery = "\nquery getEmployeesByAgencyId ($id: Int) {\n employees(where: {agency_id: {_eq: $id}}) {\n name\n id\n user_id\n email\n seller\n active\n accountant\n inventory_controller\n buyer\n support_agent\n }\n}\n";
|
|
39
39
|
export declare const getBundlesByItemCategoryIdStringQuery = "\nquery getBundlesByItemCategoryId ($id: Int) {\n bundles(where: {active: {_eq: true}, item_category_id: {_eq: $id}}) {\n id\n code\n description\n name\n updated_at\n image5\n bundle_details_count\n bundle_details {\n id\n item_id\n quantity\n }\n }\n}\n";
|
|
40
40
|
export declare const getBundleByNameStringQuery = "\nquery getBundleByName ($name: String) {\n bundles (where: {name: {_eq: $name }}) {\n id\n }\n}\n";
|
|
41
41
|
export declare const getItemByNameStringQuery = "\nquery getItemByName ($name: String) {\n items (where: {active: {_eq: true }, name: {_eq: $name }}) {\n id\n name\n stocks_only_integer\n code\n product_type\n }\n}\n";
|
|
@@ -80,3 +80,4 @@ export declare const getPaymentTermsStringQuery = "\nquery getPaymentTerms {\n
|
|
|
80
80
|
export declare const getPaymentTermByIdStringQuery = "\nquery getPaymentTermById ($id: Int) {\n payment_terms (where: {id: {_eq: $id }}) {\n active\n id\n memo\n name\n account_from_id\n account_to_id\n allowed_payment_terms {\n payee_category_id\n }\n }\n}\n";
|
|
81
81
|
export declare const getInvoicesByAgencyIdStringQuery = "\nquery getInvoicesByAgencyId($id: Int) {\n invoices(limit: 1000, where: {agency_id: {_eq: $id}, voided: {_eq: false}}, order_by: {id: desc}) {\n id\n zid\n id_number\n currency_id\n date\n payee_id\n total\n subtotal\n seller_id\n order_number\n memo\n issued\n invoice_number\n id_number\n payment_term_id\n reference\n submission_invoices {\n id\n settings_form_submission {\n zid\n voided\n settings_form {\n id\n zid\n }\n }\n }\n invoice_details {\n bundle_id\n id\n item_bundle_name\n item_bundle_description\n item_id\n price\n quantity\n unit_price\n }\n payee {\n name\n payee_category_id\n }\n }\n}\n";
|
|
82
82
|
export declare const getCasesByResponsibleIdStringQuery: (wheres?: string[]) => string;
|
|
83
|
+
export declare const getPrintTemplatesStringQuery = "\nquery getPrintTemplates {\n print_templates {\n id\n name\n }\n}\n";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCasesByResponsibleIdStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentTermsStringQuery = exports.getSuggestedPricesStringQuery = exports.getCurrenciesStringQuery = exports.getInvoiceFormSubmissionsByInvoiceIdStringQuery = exports.getLastInvoiceFormSubmissionStringQuery = exports.getInvoiceFormSubmissionsByAgencyIdStringQuery = exports.getFormSubmissionByIdStringQuery = exports.getMyCaseFormSubmissionsStringQuery = exports.getFormsByDocumentTypeStringQuery = exports.getFormsStringQuery = exports.getFormByNameStringQuery = exports.getAllFormsStringQuery = exports.getShipmentsStringQuery = exports.getItemByNameStringQuery = exports.getBundleByNameStringQuery = exports.getBundlesByItemCategoryIdStringQuery = exports.getEmployeesByAgencyIdStringQuery = 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.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsByToAgencyLast100StringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
3
|
+
exports.getPrintTemplatesStringQuery = exports.getCasesByResponsibleIdStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentTermsStringQuery = exports.getSuggestedPricesStringQuery = exports.getCurrenciesStringQuery = exports.getInvoiceFormSubmissionsByInvoiceIdStringQuery = exports.getLastInvoiceFormSubmissionStringQuery = exports.getInvoiceFormSubmissionsByAgencyIdStringQuery = exports.getFormSubmissionByIdStringQuery = exports.getMyCaseFormSubmissionsStringQuery = exports.getFormsByDocumentTypeStringQuery = exports.getFormsStringQuery = exports.getFormByNameStringQuery = exports.getAllFormsStringQuery = exports.getShipmentsStringQuery = exports.getItemByNameStringQuery = exports.getBundleByNameStringQuery = exports.getBundlesByItemCategoryIdStringQuery = exports.getEmployeesByAgencyIdStringQuery = 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.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsByToAgencyLast100StringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
4
4
|
exports.getLast100ReceptionsStringQuery = `
|
|
5
5
|
query getLast100Receptions($agencyId: Int) @cached {
|
|
6
6
|
purchase_orders(limit: 100, order_by: {created_at: desc}, where: {voided: {_eq: false}, agency_id: {_eq: $agencyId}}) {
|
|
@@ -541,6 +541,12 @@ query getEmployeeProfile ($id: Int) {
|
|
|
541
541
|
id
|
|
542
542
|
name
|
|
543
543
|
user_id
|
|
544
|
+
seller
|
|
545
|
+
active
|
|
546
|
+
accountant
|
|
547
|
+
inventory_controller
|
|
548
|
+
buyer
|
|
549
|
+
support_agent
|
|
544
550
|
}
|
|
545
551
|
}
|
|
546
552
|
`;
|
|
@@ -550,6 +556,13 @@ query getEmployeesByAgencyId ($id: Int) {
|
|
|
550
556
|
name
|
|
551
557
|
id
|
|
552
558
|
user_id
|
|
559
|
+
email
|
|
560
|
+
seller
|
|
561
|
+
active
|
|
562
|
+
accountant
|
|
563
|
+
inventory_controller
|
|
564
|
+
buyer
|
|
565
|
+
support_agent
|
|
553
566
|
}
|
|
554
567
|
}
|
|
555
568
|
`;
|
|
@@ -1234,3 +1247,11 @@ const getCasesByResponsibleIdStringQuery = (wheres = []) => {
|
|
|
1234
1247
|
`;
|
|
1235
1248
|
};
|
|
1236
1249
|
exports.getCasesByResponsibleIdStringQuery = getCasesByResponsibleIdStringQuery;
|
|
1250
|
+
exports.getPrintTemplatesStringQuery = `
|
|
1251
|
+
query getPrintTemplates {
|
|
1252
|
+
print_templates {
|
|
1253
|
+
id
|
|
1254
|
+
name
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCasesByResponsibleIdStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentTermsStringQuery = exports.getSuggestedPricesStringQuery = exports.getCurrenciesStringQuery = exports.getInvoiceFormSubmissionsByInvoiceIdStringQuery = exports.getLastInvoiceFormSubmissionStringQuery = exports.getInvoiceFormSubmissionsByAgencyIdStringQuery = exports.getFormSubmissionByIdStringQuery = exports.getMyCaseFormSubmissionsStringQuery = exports.getFormsByDocumentTypeStringQuery = exports.getFormsStringQuery = exports.getFormByNameStringQuery = exports.getAllFormsStringQuery = exports.getShipmentsStringQuery = exports.getItemByNameStringQuery = exports.getBundleByNameStringQuery = exports.getBundlesByItemCategoryIdStringQuery = exports.getEmployeesByAgencyIdStringQuery = 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.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsByToAgencyLast100StringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
3
|
+
exports.getPrintTemplatesStringQuery = exports.getCasesByResponsibleIdStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentTermsStringQuery = exports.getSuggestedPricesStringQuery = exports.getCurrenciesStringQuery = exports.getInvoiceFormSubmissionsByInvoiceIdStringQuery = exports.getLastInvoiceFormSubmissionStringQuery = exports.getInvoiceFormSubmissionsByAgencyIdStringQuery = exports.getFormSubmissionByIdStringQuery = exports.getMyCaseFormSubmissionsStringQuery = exports.getFormsByDocumentTypeStringQuery = exports.getFormsStringQuery = exports.getFormByNameStringQuery = exports.getAllFormsStringQuery = exports.getShipmentsStringQuery = exports.getItemByNameStringQuery = exports.getBundleByNameStringQuery = exports.getBundlesByItemCategoryIdStringQuery = exports.getEmployeesByAgencyIdStringQuery = 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.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsByToAgencyLast100StringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
4
4
|
exports.getLast100ReceptionsStringQuery = `
|
|
5
5
|
query getLast100Receptions($agencyId: Int) @cached {
|
|
6
6
|
purchase_orders(limit: 100, order_by: {created_at: desc}, where: {voided: {_eq: false}, agency_id: {_eq: $agencyId}}) {
|
|
@@ -541,6 +541,12 @@ query getEmployeeProfile ($id: Int) {
|
|
|
541
541
|
id
|
|
542
542
|
name
|
|
543
543
|
user_id
|
|
544
|
+
seller
|
|
545
|
+
active
|
|
546
|
+
accountant
|
|
547
|
+
inventory_controller
|
|
548
|
+
buyer
|
|
549
|
+
support_agent
|
|
544
550
|
}
|
|
545
551
|
}
|
|
546
552
|
`;
|
|
@@ -550,6 +556,13 @@ query getEmployeesByAgencyId ($id: Int) {
|
|
|
550
556
|
name
|
|
551
557
|
id
|
|
552
558
|
user_id
|
|
559
|
+
email
|
|
560
|
+
seller
|
|
561
|
+
active
|
|
562
|
+
accountant
|
|
563
|
+
inventory_controller
|
|
564
|
+
buyer
|
|
565
|
+
support_agent
|
|
553
566
|
}
|
|
554
567
|
}
|
|
555
568
|
`;
|
|
@@ -1234,3 +1247,11 @@ const getCasesByResponsibleIdStringQuery = (wheres = []) => {
|
|
|
1234
1247
|
`;
|
|
1235
1248
|
};
|
|
1236
1249
|
exports.getCasesByResponsibleIdStringQuery = getCasesByResponsibleIdStringQuery;
|
|
1250
|
+
exports.getPrintTemplatesStringQuery = `
|
|
1251
|
+
query getPrintTemplates {
|
|
1252
|
+
print_templates {
|
|
1253
|
+
id
|
|
1254
|
+
name
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.77",
|
|
4
4
|
"description": "Queries de uso común para las aplicación de Zauru.",
|
|
5
5
|
"main": "./dist/cjs/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": "8d3fd81081748d39a8570e865acd27ae6d15ea5c"
|
|
26
26
|
}
|