@erp-galoper/types 1.0.1547 → 1.0.1548
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.
- package/openapi.ts +30 -7
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -607,12 +607,22 @@ export interface paths {
|
|
|
607
607
|
/**
|
|
608
608
|
* List Items
|
|
609
609
|
* @description Endpoint for List items
|
|
610
|
+
*
|
|
611
|
+
* Supports filtering items by document:
|
|
612
|
+
* - Provide documentModel (e.g., 'salesorder', 'salesinvoice', 'purchaseorder') and documentId
|
|
613
|
+
* - The endpoint will automatically detect if the model has 'items' or 'details' relation
|
|
614
|
+
* - Returns only the items that are present in the specified document
|
|
615
|
+
*
|
|
610
616
|
* Responses:
|
|
611
617
|
* - 200: ItemListSchema
|
|
612
618
|
* - 400: {"message": "Error applying filter {error}", "code": "invalidFilterFormat"}
|
|
613
|
-
* - {"message": "
|
|
614
|
-
*
|
|
619
|
+
* - {"message": "documentId is required when documentModel is provided", "code": "documentIdRequired"}
|
|
620
|
+
* - {"message": "Invalid document model: {model}", "code": "invalidDocumentModel"}
|
|
621
|
+
* - {"message": "Model {model} does not have 'items' or 'details' relation", "code": "noItemsRelation"}
|
|
622
|
+
* - {"message": "{items/details} of {model} do not have 'item' field", "code": "noItemField"}
|
|
623
|
+
* - {"message": "Error applying pagination {error}", "code": "paginationError"}
|
|
615
624
|
* - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
|
|
625
|
+
* - 404: {"message": "Document not found", "code": "documentNotFound"}
|
|
616
626
|
* - 500: {"message": "An internal server error has occurred", "code": "serverError"}
|
|
617
627
|
*/
|
|
618
628
|
get: operations["inventory_item_views_list_items"];
|
|
@@ -25807,6 +25817,11 @@ export interface components {
|
|
|
25807
25817
|
* @enum {string}
|
|
25808
25818
|
*/
|
|
25809
25819
|
ItemSortBy: "name" | "shortName" | "skuCode" | "type" | "usage" | "active" | "dateCreated" | "dateModified" | "family" | "brand" | "categories" | "tags" | "";
|
|
25820
|
+
/**
|
|
25821
|
+
* LogModelName
|
|
25822
|
+
* @enum {string}
|
|
25823
|
+
*/
|
|
25824
|
+
LogModelName: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration";
|
|
25810
25825
|
/**
|
|
25811
25826
|
* SortOrder
|
|
25812
25827
|
* @enum {string}
|
|
@@ -29178,11 +29193,6 @@ export interface components {
|
|
|
29178
29193
|
*/
|
|
29179
29194
|
results: components["schemas"]["DocumentsToApprove"][];
|
|
29180
29195
|
};
|
|
29181
|
-
/**
|
|
29182
|
-
* LogModelName
|
|
29183
|
-
* @enum {string}
|
|
29184
|
-
*/
|
|
29185
|
-
LogModelName: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration";
|
|
29186
29196
|
/**
|
|
29187
29197
|
* LogType
|
|
29188
29198
|
* @enum {string}
|
|
@@ -59654,6 +59664,10 @@ export interface operations {
|
|
|
59654
59664
|
sortBy?: "name" | "shortName" | "skuCode" | "type" | "usage" | "active" | "dateCreated" | "dateModified" | "family" | "brand" | "categories" | "tags" | "";
|
|
59655
59665
|
/** @description Sort order: ascending or descending */
|
|
59656
59666
|
order?: "asc" | "desc";
|
|
59667
|
+
/** @description Document model name from LogModelName enum (e.g., "salesOrder", "salesInvoice", "purchaseOrder", "openingQuantity") */
|
|
59668
|
+
documentModel?: components["schemas"]["LogModelName"] | null;
|
|
59669
|
+
/** @description Document ID to get items from (required if documentModel is provided) */
|
|
59670
|
+
documentId?: string | null;
|
|
59657
59671
|
};
|
|
59658
59672
|
header?: never;
|
|
59659
59673
|
path?: never;
|
|
@@ -59688,6 +59702,15 @@ export interface operations {
|
|
|
59688
59702
|
"application/json": components["schemas"]["MessageWithCode"];
|
|
59689
59703
|
};
|
|
59690
59704
|
};
|
|
59705
|
+
/** @description Not Found */
|
|
59706
|
+
404: {
|
|
59707
|
+
headers: {
|
|
59708
|
+
[name: string]: unknown;
|
|
59709
|
+
};
|
|
59710
|
+
content: {
|
|
59711
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
59712
|
+
};
|
|
59713
|
+
};
|
|
59691
59714
|
/** @description Internal Server Error */
|
|
59692
59715
|
500: {
|
|
59693
59716
|
headers: {
|