@zauru-sdk/graphql 2.0.175 → 2.0.178
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.
|
@@ -104,6 +104,9 @@ export declare const getInvoiceFormSubmissionsByAgencyIdStringQuery: (agency_id:
|
|
|
104
104
|
export declare const getLastInvoiceFormSubmissionStringQuery: (filters?: {
|
|
105
105
|
formZid?: number;
|
|
106
106
|
}) => string;
|
|
107
|
+
export declare const getCaseFormSubmissionsByCaseIdStringQuery: (case_id: number, filters?: {
|
|
108
|
+
formZid?: number;
|
|
109
|
+
}) => string;
|
|
107
110
|
export declare const getInvoiceFormSubmissionsByInvoiceIdStringQuery: (invoice_id: number, filters?: {
|
|
108
111
|
formZid?: number;
|
|
109
112
|
}) => 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.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.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
|
query getLast100Receptions {
|
|
6
6
|
purchase_orders(limit: 100, order_by: {created_at: desc}, where: {voided: {_eq: false}, agency_id: {_eq: ${agency_id}}}) {
|
|
@@ -1213,6 +1213,61 @@ query getLastInvoiceFormSubmission {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
`;
|
|
1215
1215
|
exports.getLastInvoiceFormSubmissionStringQuery = getLastInvoiceFormSubmissionStringQuery;
|
|
1216
|
+
const getCaseFormSubmissionsByCaseIdStringQuery = (case_id, filters = {}) => `
|
|
1217
|
+
query getCaseFormSubmissionsByCaseId {
|
|
1218
|
+
submission_cases(
|
|
1219
|
+
where: {
|
|
1220
|
+
case_id: {_eq: ${case_id}},
|
|
1221
|
+
settings_form_submission: {
|
|
1222
|
+
${filters?.formZid
|
|
1223
|
+
? `settings_form: {zid: {_eq: ${filters?.formZid}}},`
|
|
1224
|
+
: ""}
|
|
1225
|
+
voided: {_eq: false}
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
order_by: {id: desc}
|
|
1229
|
+
) {
|
|
1230
|
+
id
|
|
1231
|
+
case_id
|
|
1232
|
+
form_submission_id
|
|
1233
|
+
created_at
|
|
1234
|
+
settings_form_submission {
|
|
1235
|
+
id
|
|
1236
|
+
zid
|
|
1237
|
+
reference
|
|
1238
|
+
created_at
|
|
1239
|
+
version
|
|
1240
|
+
id_number
|
|
1241
|
+
settings_form_submission_values {
|
|
1242
|
+
id
|
|
1243
|
+
form_field_id
|
|
1244
|
+
value
|
|
1245
|
+
settings_form_field {
|
|
1246
|
+
id
|
|
1247
|
+
name
|
|
1248
|
+
print_var_name
|
|
1249
|
+
field_type
|
|
1250
|
+
settings_form_field_options {
|
|
1251
|
+
id
|
|
1252
|
+
label
|
|
1253
|
+
position
|
|
1254
|
+
value
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
settings_form {
|
|
1259
|
+
id
|
|
1260
|
+
name
|
|
1261
|
+
zid
|
|
1262
|
+
description
|
|
1263
|
+
created_at
|
|
1264
|
+
version
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
`;
|
|
1270
|
+
exports.getCaseFormSubmissionsByCaseIdStringQuery = getCaseFormSubmissionsByCaseIdStringQuery;
|
|
1216
1271
|
const getInvoiceFormSubmissionsByInvoiceIdStringQuery = (invoice_id, filters = {}) => `
|
|
1217
1272
|
query getInvoiceFormSubmissionsByInvoiceId {
|
|
1218
1273
|
submission_invoices(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.178",
|
|
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": "de1597493fe293d152d099f9e687208df163c938"
|
|
25
25
|
}
|