@erp-galoper/types 1.0.183 → 1.0.185

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 +63 -232
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -11071,37 +11071,6 @@ export interface paths {
11071
11071
  patch?: never;
11072
11072
  trace?: never;
11073
11073
  };
11074
- "/api/v1/purchase/payment-vouchers/not-paid-partially-paid-invoices/": {
11075
- parameters: {
11076
- query?: never;
11077
- header?: never;
11078
- path?: never;
11079
- cookie?: never;
11080
- };
11081
- /**
11082
- * Get Not Paid And Partially Paid Invoices
11083
- * @description Endpoint for get partially paid and un paid purchase invoices
11084
- * Possible Responses:
11085
- * - 200:
11086
- * - success
11087
- * - 500:
11088
- * - internalServerError
11089
- * - 400:
11090
- * - branchDoesNotExist
11091
- * - supplierDoesNotExist
11092
- * - Permission key:
11093
- * - purchaseinvoice : [ view ]
11094
- * - Get un paid and partially paid purchase invoices each with its remaining amounts
11095
- */
11096
- get: operations["purchase_payment_voucher_views_get_not_paid_and_partially_paid_invoices"];
11097
- put?: never;
11098
- post?: never;
11099
- delete?: never;
11100
- options?: never;
11101
- head?: never;
11102
- patch?: never;
11103
- trace?: never;
11104
- };
11105
11074
  "/api/v1/purchase/payment-vouchers/": {
11106
11075
  parameters: {
11107
11076
  query?: never;
@@ -15798,37 +15767,6 @@ export interface paths {
15798
15767
  patch?: never;
15799
15768
  trace?: never;
15800
15769
  };
15801
- "/api/v1/sales/receipt-vouchers/not-paid-partially-paid-invoices/": {
15802
- parameters: {
15803
- query?: never;
15804
- header?: never;
15805
- path?: never;
15806
- cookie?: never;
15807
- };
15808
- /**
15809
- * Get Not Paid And Partially Paid Invoices
15810
- * @description Endpoint for get partially paid and un paid sales invoices
15811
- * Possible Responses:
15812
- * - 200:
15813
- * - success
15814
- * - 500:
15815
- * - internalServerError
15816
- * - 400:
15817
- * - branchDoesNotExist
15818
- * - customerDoesNotExist
15819
- *
15820
- * - Permission key:
15821
- * - salesinvoice : [ view ]
15822
- */
15823
- get: operations["sales_receipt_voucher_views_get_not_paid_and_partially_paid_invoices"];
15824
- put?: never;
15825
- post?: never;
15826
- delete?: never;
15827
- options?: never;
15828
- head?: never;
15829
- patch?: never;
15830
- trace?: never;
15831
- };
15832
15770
  "/api/v1/sales/receipt-vouchers/": {
15833
15771
  parameters: {
15834
15772
  query?: never;
@@ -26562,7 +26500,7 @@ export interface components {
26562
26500
  /**
26563
26501
  * Id
26564
26502
  * Format: uuid
26565
- * @example b0e142e2-bffa-4ba7-8be4-a6845d1ee367
26503
+ * @example cdb8067a-28c1-4b35-b01e-5f3c371b8d2b
26566
26504
  */
26567
26505
  id: string;
26568
26506
  /**
@@ -32228,7 +32166,7 @@ export interface components {
32228
32166
  * TypeSchema
32229
32167
  * @enum {string}
32230
32168
  */
32231
- TypeSchema: "default" | "creditNote";
32169
+ TypeSchema: "default" | "creditNote" | "paymentVoucher";
32232
32170
  /** AdvancedPaymentSharedSchema */
32233
32171
  AdvancedPaymentSharedSchema: {
32234
32172
  /**
@@ -32442,6 +32380,11 @@ export interface components {
32442
32380
  warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
32443
32381
  /** @description visible when supplier is not resident */
32444
32382
  tax: components["schemas"]["TaxSharedSchema"] | null;
32383
+ /**
32384
+ * Remaining
32385
+ * @description this field is number
32386
+ */
32387
+ remaining: string;
32445
32388
  /** Linkeddocuments */
32446
32389
  linkedDocuments?: {
32447
32390
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -32796,30 +32739,45 @@ export interface components {
32796
32739
  */
32797
32740
  branch: number;
32798
32741
  /** Payments */
32799
- payments: components["schemas"]["PaymentsSchema"][];
32742
+ payments: components["schemas"]["PaymentVoucherPaymentsSchema"][];
32800
32743
  };
32801
- /** ListPaidPartiallyPaidInvoicesResponseSchema */
32802
- ListPaidPartiallyPaidInvoicesResponseSchema: {
32744
+ /** PaymentVoucherPaymentsSchema */
32745
+ PaymentVoucherPaymentsSchema: {
32803
32746
  /**
32804
- * Id
32747
+ * Purchaseinvoice
32805
32748
  * Format: uuid
32749
+ * @description
32750
+ * API Endpoints for Purchase Invoice Retrieval:
32751
+ * - Use the API: /api/v1/purchase/invoices/?branchId={branch-id}&type=paymentVoucher&supplier={supplier-id}
32752
+ *
32806
32753
  */
32807
- id: string;
32808
- /** Serialnumber */
32809
- serialNumber: string;
32810
- /** Total */
32811
- total: string;
32812
- /** Usdtotal */
32813
- usdTotal: string;
32814
- /** Companytotal */
32815
- companyTotal: string;
32816
- /** Remaining */
32817
- remaining: string;
32818
- };
32819
- /** PaidPartiallyPaidResponseSchema */
32820
- PaidPartiallyPaidResponseSchema: {
32821
- /** Closingcommissions */
32822
- closingCommissions: components["schemas"]["ListPaidPartiallyPaidClosedCommissionResponseSchema"][];
32754
+ purchaseInvoice?: string;
32755
+ /**
32756
+ * Amount
32757
+ * @description field is number
32758
+ */
32759
+ amount?: string;
32760
+ /**
32761
+ * Companyamount
32762
+ * @description field is number
32763
+ */
32764
+ companyAmount?: string | null;
32765
+ /**
32766
+ * Usdamount
32767
+ * @description field is number
32768
+ */
32769
+ usdAmount?: string | null;
32770
+ /**
32771
+ * Companyrate
32772
+ * @description field is number
32773
+ */
32774
+ companyRate?: string;
32775
+ /**
32776
+ * Secondaryrate
32777
+ * @description field is number
32778
+ */
32779
+ secondaryRate?: string;
32780
+ changedField: components["schemas"]["ChangedFields"] | null;
32823
32781
  };
32824
32782
  /** DocumentCommonSchema */
32825
32783
  DocumentCommonSchema: {
@@ -33057,7 +33015,7 @@ export interface components {
33057
33015
  * Format: uuid
33058
33016
  * @description
33059
33017
  * API Endpoints for Purchase Invoice Retrieval:
33060
- * - Use the API: /api/v1/purchase/payment-vouchers/not-paid-partially-paid-invoices/?supplier={supplier-id}&branch={branch-id}
33018
+ * - Use the API: /api/v1/purchase/invoices/?branchId={branch-id}&type=paymentVoucher&supplier={supplier-id}
33061
33019
  *
33062
33020
  */
33063
33021
  purchaseInvoice?: string;
@@ -33220,7 +33178,7 @@ export interface components {
33220
33178
  * Format: uuid
33221
33179
  * @description
33222
33180
  * API Endpoints for Purchase Invoice Retrieval:
33223
- * - Use the API: /api/v1/purchase/payment-vouchers/not-paid-partially-paid-invoices/?supplier={supplier-id}&branch={branch-id}
33181
+ * - Use the API: /api/v1/purchase/invoices/?branchId={branch-id}&type=paymentVoucher&supplier={supplier-id}
33224
33182
  *
33225
33183
  */
33226
33184
  purchaseInvoice?: string;
@@ -34913,6 +34871,11 @@ export interface components {
34913
34871
  */
34914
34872
  remaining: string;
34915
34873
  };
34874
+ /** PaidPartiallyPaidResponseSchema */
34875
+ PaidPartiallyPaidResponseSchema: {
34876
+ /** Closingcommissions */
34877
+ closingCommissions: components["schemas"]["ListPaidPartiallyPaidClosedCommissionResponseSchema"][];
34878
+ };
34916
34879
  /** ClosingCommissionDateRangeResponse */
34917
34880
  ClosingCommissionDateRangeResponse: {
34918
34881
  /** Startdate */
@@ -40077,7 +40040,7 @@ export interface components {
40077
40040
  * Visibility and Requirement:
40078
40041
  * - Required and visible if payment method is Bank Transfer
40079
40042
  * API Endpoints for Sales Invoice Retrieval:
40080
- * - Use the API: /v1/sales/receipt-vouchers/unpaid-partial-invoices-with-remaining/?customer={customer-id}
40043
+ * - Use the API: /api/v1/sales/invoices/?type=receiptVoucher&customer={customer-id}
40081
40044
  */
40082
40045
  salesInvoice?: string;
40083
40046
  /**
@@ -40117,41 +40080,6 @@ export interface components {
40117
40080
  /** Payments */
40118
40081
  payments: components["schemas"]["AmountWithEquivalentSchema"][];
40119
40082
  };
40120
- /** UnPaidAndPartiallyPaidInvoicesResponseSchema */
40121
- UnPaidAndPartiallyPaidInvoicesResponseSchema: {
40122
- /**
40123
- * Id
40124
- * Format: uuid
40125
- */
40126
- id: string;
40127
- /** Serialnumber */
40128
- serialNumber: string;
40129
- /**
40130
- * Total
40131
- * @description field is number
40132
- */
40133
- total: string;
40134
- /**
40135
- * Secondarytotal
40136
- * @description field is number
40137
- */
40138
- secondaryTotal: string;
40139
- /**
40140
- * Companytotal
40141
- * @description field is number
40142
- */
40143
- companyTotal: string;
40144
- /**
40145
- * Remaining
40146
- * @description field is number
40147
- */
40148
- remaining: string;
40149
- };
40150
- /** UnPaidAndPartiallyPaidResponseSchema */
40151
- UnPaidAndPartiallyPaidResponseSchema: {
40152
- /** Salesinvoices */
40153
- salesInvoices: components["schemas"]["UnPaidAndPartiallyPaidInvoicesResponseSchema"][];
40154
- };
40155
40083
  /** ReceiptVoucherItemDetailSchema */
40156
40084
  ReceiptVoucherItemDetailSchema: {
40157
40085
  /**
@@ -40391,7 +40319,7 @@ export interface components {
40391
40319
  * Visibility and Requirement:
40392
40320
  * - Required and visible if payment method is Bank Transfer
40393
40321
  * API Endpoints for Sales Invoice Retrieval:
40394
- * - Use the API: /v1/sales/receipt-vouchers/unpaid-partial-invoices-with-remaining/?customer={customer-id}
40322
+ * - Use the API: /api/v1/sales/invoices/?type=receiptVoucher&customer={customer-id}
40395
40323
  */
40396
40324
  salesInvoice?: string;
40397
40325
  };
@@ -40547,7 +40475,7 @@ export interface components {
40547
40475
  * Visibility and Requirement:
40548
40476
  * - Required and visible if payment method is Bank Transfer
40549
40477
  * API Endpoints for Sales Invoice Retrieval:
40550
- * - Use the API: /v1/sales/receipt-vouchers/unpaid-partial-invoices-with-remaining/?customer={customer-id}
40478
+ * - Use the API: /api/v1/sales/invoices/?type=receiptVoucher&customer={customer-id}
40551
40479
  */
40552
40480
  salesInvoice?: string;
40553
40481
  /**
@@ -40922,6 +40850,11 @@ export interface components {
40922
40850
  /** Canedit */
40923
40851
  canEdit: boolean;
40924
40852
  salesPerson: components["schemas"]["SalesPersonSharedSchema"] | null;
40853
+ /**
40854
+ * Remaining
40855
+ * @description this field is number
40856
+ */
40857
+ remaining?: string;
40925
40858
  /**
40926
40859
  * Items
40927
40860
  * @default []
@@ -41180,7 +41113,7 @@ export interface components {
41180
41113
  * SalesDocumentTypeSchema
41181
41114
  * @enum {string}
41182
41115
  */
41183
- SalesDocumentTypeSchema: "default" | "salesCreditNote";
41116
+ SalesDocumentTypeSchema: "default" | "salesCreditNote" | "receiptVoucher";
41184
41117
  /** SalesInvoiceListSchema */
41185
41118
  SalesInvoiceListSchema: {
41186
41119
  info: components["schemas"]["PageInfoSchema"];
@@ -66261,8 +66194,8 @@ export interface operations {
66261
66194
  search?: string | null;
66262
66195
  /** @description Filter by branch id */
66263
66196
  branchId: number;
66264
- type?: "default" | "creditNote";
66265
- /** @description supplier id */
66197
+ type?: "default" | "creditNote" | "paymentVoucher";
66198
+ /** @description supplier id, required when type is creditNote or paymentVoucher */
66266
66199
  supplier?: number;
66267
66200
  };
66268
66201
  header?: never;
@@ -66363,7 +66296,7 @@ export interface operations {
66363
66296
  purchase_purchase_invoice_views_get_purchase_invoice: {
66364
66297
  parameters: {
66365
66298
  query?: {
66366
- type?: "default" | "creditNote";
66299
+ type?: "default" | "creditNote" | "paymentVoucher";
66367
66300
  };
66368
66301
  header?: never;
66369
66302
  path: {
@@ -66955,58 +66888,6 @@ export interface operations {
66955
66888
  };
66956
66889
  };
66957
66890
  };
66958
- purchase_payment_voucher_views_get_not_paid_and_partially_paid_invoices: {
66959
- parameters: {
66960
- query: {
66961
- /** @description supplier id */
66962
- supplier: number;
66963
- /** @description branch id */
66964
- branch: number;
66965
- };
66966
- header?: never;
66967
- path?: never;
66968
- cookie?: never;
66969
- };
66970
- requestBody?: never;
66971
- responses: {
66972
- /** @description OK */
66973
- 200: {
66974
- headers: {
66975
- [name: string]: unknown;
66976
- };
66977
- content: {
66978
- "application/json": components["schemas"]["PaidPartiallyPaidResponseSchema"];
66979
- };
66980
- };
66981
- /** @description Bad Request */
66982
- 400: {
66983
- headers: {
66984
- [name: string]: unknown;
66985
- };
66986
- content: {
66987
- "application/json": components["schemas"]["ErrorMessages"];
66988
- };
66989
- };
66990
- /** @description Forbidden */
66991
- 403: {
66992
- headers: {
66993
- [name: string]: unknown;
66994
- };
66995
- content: {
66996
- "application/json": components["schemas"]["MessageResponse"];
66997
- };
66998
- };
66999
- /** @description Internal Server Error */
67000
- 500: {
67001
- headers: {
67002
- [name: string]: unknown;
67003
- };
67004
- content: {
67005
- "application/json": components["schemas"]["MessageResponse"];
67006
- };
67007
- };
67008
- };
67009
- };
67010
66891
  purchase_payment_voucher_views_list_payment_vouchers: {
67011
66892
  parameters: {
67012
66893
  query: {
@@ -76149,56 +76030,6 @@ export interface operations {
76149
76030
  };
76150
76031
  };
76151
76032
  };
76152
- sales_receipt_voucher_views_get_not_paid_and_partially_paid_invoices: {
76153
- parameters: {
76154
- query: {
76155
- /** @description customer id */
76156
- customer: number;
76157
- };
76158
- header?: never;
76159
- path?: never;
76160
- cookie?: never;
76161
- };
76162
- requestBody?: never;
76163
- responses: {
76164
- /** @description OK */
76165
- 200: {
76166
- headers: {
76167
- [name: string]: unknown;
76168
- };
76169
- content: {
76170
- "application/json": components["schemas"]["UnPaidAndPartiallyPaidResponseSchema"];
76171
- };
76172
- };
76173
- /** @description Bad Request */
76174
- 400: {
76175
- headers: {
76176
- [name: string]: unknown;
76177
- };
76178
- content: {
76179
- "application/json": components["schemas"]["ErrorMessages"];
76180
- };
76181
- };
76182
- /** @description Forbidden */
76183
- 403: {
76184
- headers: {
76185
- [name: string]: unknown;
76186
- };
76187
- content: {
76188
- "application/json": components["schemas"]["MessageResponse"];
76189
- };
76190
- };
76191
- /** @description Internal Server Error */
76192
- 500: {
76193
- headers: {
76194
- [name: string]: unknown;
76195
- };
76196
- content: {
76197
- "application/json": components["schemas"]["MessageResponse"];
76198
- };
76199
- };
76200
- };
76201
- };
76202
76033
  sales_receipt_voucher_views_list_receipt_vouchers: {
76203
76034
  parameters: {
76204
76035
  query?: {
@@ -76787,8 +76618,8 @@ export interface operations {
76787
76618
  startDate?: string | null;
76788
76619
  /** @description End date for custom range (YYYY-MM-DD) */
76789
76620
  endDate?: string | null;
76790
- type?: "default" | "salesCreditNote";
76791
- /** @description customer id, required when type is salesCreditNote */
76621
+ type?: "default" | "salesCreditNote" | "receiptVoucher";
76622
+ /** @description customer id, required when type is salesCreditNote or receiptVoucher */
76792
76623
  customer?: number;
76793
76624
  };
76794
76625
  header?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.183",
3
+ "version": "1.0.185",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],