@erp-galoper/types 1.0.225 → 1.0.227

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.
Files changed (2) hide show
  1. package/openapi.ts +15 -4
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -11580,6 +11580,8 @@ export interface paths {
11580
11580
  * - cantMakeActionOnLockedDocument
11581
11581
  * - purchaseReturnInvoiceIsCanceled
11582
11582
  * - noDepartmentAccess
11583
+ * - returnPurchaseInvoiceCannotBeDeleted
11584
+ *
11583
11585
  * - 404: - purchaseReturnInvoiceDoesNotExist
11584
11586
  * - 500: serverError
11585
11587
  *
@@ -26581,7 +26583,7 @@ export interface components {
26581
26583
  /**
26582
26584
  * Id
26583
26585
  * Format: uuid
26584
- * @example 9dbfa39d-0193-4480-8792-7bcb6437cc69
26586
+ * @example 9f5c0799-5383-43f8-b5dc-5041e06d0b59
26585
26587
  */
26586
26588
  id: string;
26587
26589
  /**
@@ -31001,6 +31003,11 @@ export interface components {
31001
31003
  /** Payments */
31002
31004
  payments: components["schemas"]["NewAdvancePaymentItemsSchema"][];
31003
31005
  };
31006
+ /**
31007
+ * AdvancePaymentTypeSchema
31008
+ * @enum {string}
31009
+ */
31010
+ AdvancePaymentTypeSchema: "default" | "purchaseInvoice";
31004
31011
  /** ListAdvancePayments */
31005
31012
  ListAdvancePayments: {
31006
31013
  info: components["schemas"]["PageInfoSchema"];
@@ -32587,7 +32594,7 @@ export interface components {
32587
32594
  */
32588
32595
  purchaseOrder: components["schemas"]["PurchaseOrderSharedSchema"] | null;
32589
32596
  /**
32590
- * @description Advanced payment ID, hit the advance_payment endpoint to get the list of advanced payments, filtered by the supplier
32597
+ * @description Advanced payment ID, to get advance payments use route /v1/purchase/advance-payments/?branchId=1&type=purchaseInvoice&supplier={supplier-id}
32591
32598
  * @default []
32592
32599
  */
32593
32600
  advancePayment: components["schemas"]["AdvancedPaymentSharedSchema"] | null;
@@ -32714,7 +32721,7 @@ export interface components {
32714
32721
  purchaseOrder: string | null;
32715
32722
  /**
32716
32723
  * Advancepayment
32717
- * @description Advanced payment ID, hit the advance_payment endpoint to get the list of advanced payments, filtered by the supplier
32724
+ * @description Advanced payment ID,to get advance payments use route /v1/purchase/advance-payments/?branchId=1&type=purchaseInvoice&supplier={supplier-id}
32718
32725
  */
32719
32726
  advancePayment: string | null;
32720
32727
  /**
@@ -32886,7 +32893,7 @@ export interface components {
32886
32893
  purchaseOrder: string | null;
32887
32894
  /**
32888
32895
  * Advancepayment
32889
- * @description Advanced payment ID, hit the advance_payment endpoint to get the list of advanced payments
32896
+ * @description Advanced payment ID,to get advance payments use route /v1/purchase/advance-payments/?branchId=1&type=purchaseInvoice&supplier={supplier-id}
32890
32897
  */
32891
32898
  advancePayment: string | null;
32892
32899
  /** Attachments */
@@ -64089,6 +64096,10 @@ export interface operations {
64089
64096
  endDate?: string | null;
64090
64097
  /** @description search by advance payment number or description or supplier name */
64091
64098
  search?: string;
64099
+ /** @description used when fetch advance payments in purchase invoice */
64100
+ type?: "default" | "purchaseInvoice";
64101
+ /** @description supplier id, required when type = purchaseInvoice */
64102
+ supplier?: number;
64092
64103
  };
64093
64104
  header?: never;
64094
64105
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],