@erp-galoper/types 1.0.1547 → 1.0.1549
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 +50 -11
- 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}
|
|
@@ -49943,8 +49953,7 @@ export interface components {
|
|
|
49943
49953
|
*/
|
|
49944
49954
|
id: string;
|
|
49945
49955
|
appliesOn: components["schemas"]["PurchaseCreditNoteAppliesOn"];
|
|
49946
|
-
|
|
49947
|
-
purchaseInvoiceItem: string | null;
|
|
49956
|
+
purchaseInvoiceItem: components["schemas"]["PurchaseInvoiceItem"] | null;
|
|
49948
49957
|
/** Unitprice */
|
|
49949
49958
|
unitPrice: number | null;
|
|
49950
49959
|
/** Discount */
|
|
@@ -50013,6 +50022,15 @@ export interface components {
|
|
|
50013
50022
|
*/
|
|
50014
50023
|
entries: components["schemas"]["PostEntryDetailsSchema"][];
|
|
50015
50024
|
};
|
|
50025
|
+
/** PurchaseInvoiceItem */
|
|
50026
|
+
PurchaseInvoiceItem: {
|
|
50027
|
+
/**
|
|
50028
|
+
* Id
|
|
50029
|
+
* Format: uuid
|
|
50030
|
+
*/
|
|
50031
|
+
id: string;
|
|
50032
|
+
item: components["schemas"]["ItemMinimalSchema"] | null;
|
|
50033
|
+
};
|
|
50016
50034
|
/** PurchaseCreditNoteCreateSchema */
|
|
50017
50035
|
PurchaseCreditNoteCreateSchema: {
|
|
50018
50036
|
/** Password */
|
|
@@ -53958,8 +53976,7 @@ export interface components {
|
|
|
53958
53976
|
*/
|
|
53959
53977
|
id: string;
|
|
53960
53978
|
appliesOn: components["schemas"]["SalesCreditNoteAppliesOn"];
|
|
53961
|
-
|
|
53962
|
-
salesInvoiceItem: string | null;
|
|
53979
|
+
salesInvoiceItem: components["schemas"]["SalesInvoiceItem"] | null;
|
|
53963
53980
|
/** Unitprice */
|
|
53964
53981
|
unitPrice: number | null;
|
|
53965
53982
|
/** Discount */
|
|
@@ -54027,6 +54044,15 @@ export interface components {
|
|
|
54027
54044
|
*/
|
|
54028
54045
|
entries: components["schemas"]["PostEntryDetailsSchema"][];
|
|
54029
54046
|
};
|
|
54047
|
+
/** SalesInvoiceItem */
|
|
54048
|
+
SalesInvoiceItem: {
|
|
54049
|
+
/**
|
|
54050
|
+
* Id
|
|
54051
|
+
* Format: uuid
|
|
54052
|
+
*/
|
|
54053
|
+
id: string;
|
|
54054
|
+
item: components["schemas"]["ItemMinimalSchema"] | null;
|
|
54055
|
+
};
|
|
54030
54056
|
/** SalesCreditNoteCreateSchema */
|
|
54031
54057
|
SalesCreditNoteCreateSchema: {
|
|
54032
54058
|
/** Password */
|
|
@@ -59654,6 +59680,10 @@ export interface operations {
|
|
|
59654
59680
|
sortBy?: "name" | "shortName" | "skuCode" | "type" | "usage" | "active" | "dateCreated" | "dateModified" | "family" | "brand" | "categories" | "tags" | "";
|
|
59655
59681
|
/** @description Sort order: ascending or descending */
|
|
59656
59682
|
order?: "asc" | "desc";
|
|
59683
|
+
/** @description Document model name from LogModelName enum (e.g., "salesOrder", "salesInvoice", "purchaseOrder", "openingQuantity") */
|
|
59684
|
+
documentModel?: components["schemas"]["LogModelName"] | null;
|
|
59685
|
+
/** @description Document ID to get items from (required if documentModel is provided) */
|
|
59686
|
+
documentId?: string | null;
|
|
59657
59687
|
};
|
|
59658
59688
|
header?: never;
|
|
59659
59689
|
path?: never;
|
|
@@ -59688,6 +59718,15 @@ export interface operations {
|
|
|
59688
59718
|
"application/json": components["schemas"]["MessageWithCode"];
|
|
59689
59719
|
};
|
|
59690
59720
|
};
|
|
59721
|
+
/** @description Not Found */
|
|
59722
|
+
404: {
|
|
59723
|
+
headers: {
|
|
59724
|
+
[name: string]: unknown;
|
|
59725
|
+
};
|
|
59726
|
+
content: {
|
|
59727
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
59728
|
+
};
|
|
59729
|
+
};
|
|
59691
59730
|
/** @description Internal Server Error */
|
|
59692
59731
|
500: {
|
|
59693
59732
|
headers: {
|