@zauru-sdk/graphql 2.0.4 → 2.0.23
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.
|
@@ -44,6 +44,7 @@ export declare const getItemsStringQuery = "\nquery getItems {\n items (where:
|
|
|
44
44
|
export declare const getItemsBySuperCategoryStringQuery: (id: number, agency_id: number) => string;
|
|
45
45
|
export declare const getConsolidatesBetweenDatesStringQuery: (startDate: string, endDate: string) => string;
|
|
46
46
|
export declare const getEmployeeProfileStringQuery: (id: number) => string;
|
|
47
|
+
export declare const getEmployeesStringQuery = "\nquery getEmployees {\n employees {\n name\n id\n user_id\n email\n seller\n active\n position\n }\n}\n";
|
|
47
48
|
export declare const getEmployeesByAgencyIdStringQuery: (id: number) => string;
|
|
48
49
|
export declare const getBundlesByItemCategoryIdStringQuery: (id: number) => string;
|
|
49
50
|
export declare const getBundleByNameStringQuery: (name: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPrintTemplatesStringQuery = exports.getCasesByResponsibleIdStringQuery = exports.getInvoicesByAgencyIdStringQuery = exports.getPaymentTermByIdStringQuery = exports.getPaymentMethodsStringQuery = 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.getPaymentMethodsStringQuery = 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.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.getLotStocksByAgencyIdStringQuery = exports.getLotsByNameStringQuery = exports.getShipmentsByToAgencyLast100StringQuery = exports.getPurchaseOrderStringQuery = exports.getPurchaseOrderByIdNumberStringQuery = exports.getLast100ReceptionsStringQuery = void 0;
|
|
4
4
|
const getLast100ReceptionsStringQuery = (agency_id) => `
|
|
5
5
|
query getLast100Receptions {
|
|
6
6
|
purchase_orders(limit: 100, order_by: {created_at: desc}, where: {voided: {_eq: false}, agency_id: {_eq: ${agency_id}}}) {
|
|
@@ -154,7 +154,15 @@ query getPurchaseOrder($id: bigint) @cached {
|
|
|
154
154
|
exports.getPurchaseOrderStringQuery = getPurchaseOrderStringQuery;
|
|
155
155
|
const getShipmentsByToAgencyLast100StringQuery = (agency_to_id) => `
|
|
156
156
|
query getShipmentsByToAgencyLast100 {
|
|
157
|
-
|
|
157
|
+
shipments(
|
|
158
|
+
limit: 100,
|
|
159
|
+
order_by: {id: desc},
|
|
160
|
+
where: {
|
|
161
|
+
voided: {_eq: false},
|
|
162
|
+
shipped: {_eq: false},
|
|
163
|
+
delivered: {_eq: false},
|
|
164
|
+
agency_to_id: {_eq: ${agency_to_id}}
|
|
165
|
+
}) {
|
|
158
166
|
id
|
|
159
167
|
zid
|
|
160
168
|
id_number
|
|
@@ -594,10 +602,24 @@ query getEmployeeProfile {
|
|
|
594
602
|
inventory_controller
|
|
595
603
|
buyer
|
|
596
604
|
support_agent
|
|
605
|
+
position
|
|
597
606
|
}
|
|
598
607
|
}
|
|
599
608
|
`;
|
|
600
609
|
exports.getEmployeeProfileStringQuery = getEmployeeProfileStringQuery;
|
|
610
|
+
exports.getEmployeesStringQuery = `
|
|
611
|
+
query getEmployees {
|
|
612
|
+
employees {
|
|
613
|
+
name
|
|
614
|
+
id
|
|
615
|
+
user_id
|
|
616
|
+
email
|
|
617
|
+
seller
|
|
618
|
+
active
|
|
619
|
+
position
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
`;
|
|
601
623
|
const getEmployeesByAgencyIdStringQuery = (id) => `
|
|
602
624
|
query getEmployeesByAgencyId {
|
|
603
625
|
employees(where: {agency_id: {_eq: ${id}}}) {
|
|
@@ -611,6 +633,7 @@ query getEmployeesByAgencyId {
|
|
|
611
633
|
inventory_controller
|
|
612
634
|
buyer
|
|
613
635
|
support_agent
|
|
636
|
+
position
|
|
614
637
|
}
|
|
615
638
|
}
|
|
616
639
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.23",
|
|
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",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"typescript": "^5.1.6"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "a4ebb4e580b61954c0bb6f7bf626074fb6bf6f31"
|
|
25
25
|
}
|