@erp-galoper/types 1.0.647 → 1.0.649
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 +15 -206
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -9981,39 +9981,6 @@ export interface paths {
|
|
|
9981
9981
|
patch?: never;
|
|
9982
9982
|
trace?: never;
|
|
9983
9983
|
};
|
|
9984
|
-
"/api/v1/purchase/quotations/{id}/submit/": {
|
|
9985
|
-
parameters: {
|
|
9986
|
-
query?: never;
|
|
9987
|
-
header?: never;
|
|
9988
|
-
path?: never;
|
|
9989
|
-
cookie?: never;
|
|
9990
|
-
};
|
|
9991
|
-
get?: never;
|
|
9992
|
-
put?: never;
|
|
9993
|
-
/**
|
|
9994
|
-
* Submit Purchase Quotation
|
|
9995
|
-
* @description Endpoint for submitting a purchase quotation
|
|
9996
|
-
* Responses:
|
|
9997
|
-
* - 200: PurchaseQuotationSchema
|
|
9998
|
-
* - 403: "permissionDenied"
|
|
9999
|
-
* - "noModuleAccess"
|
|
10000
|
-
* - statusAlreadySubmitted
|
|
10001
|
-
* - cantMakeActionOnLockedDocument
|
|
10002
|
-
* - noBranchAccess
|
|
10003
|
-
* - noDepartmentAccess
|
|
10004
|
-
* - purchaseQuotationIsCanceled
|
|
10005
|
-
* - 404: "purchaseQuotationDoesNotExist"
|
|
10006
|
-
* - 500: "serverError"
|
|
10007
|
-
*
|
|
10008
|
-
* Permission keys: purchasequotation: ["add"]
|
|
10009
|
-
*/
|
|
10010
|
-
post: operations["purchase_quotation_views_submit_purchase_quotation"];
|
|
10011
|
-
delete?: never;
|
|
10012
|
-
options?: never;
|
|
10013
|
-
head?: never;
|
|
10014
|
-
patch?: never;
|
|
10015
|
-
trace?: never;
|
|
10016
|
-
};
|
|
10017
9984
|
"/api/v1/purchase/quotations/{id}/cancel/": {
|
|
10018
9985
|
parameters: {
|
|
10019
9986
|
query?: never;
|
|
@@ -10301,40 +10268,6 @@ export interface paths {
|
|
|
10301
10268
|
patch?: never;
|
|
10302
10269
|
trace?: never;
|
|
10303
10270
|
};
|
|
10304
|
-
"/api/v1/purchase/orders/{id}/submit/": {
|
|
10305
|
-
parameters: {
|
|
10306
|
-
query?: never;
|
|
10307
|
-
header?: never;
|
|
10308
|
-
path?: never;
|
|
10309
|
-
cookie?: never;
|
|
10310
|
-
};
|
|
10311
|
-
get?: never;
|
|
10312
|
-
put?: never;
|
|
10313
|
-
/**
|
|
10314
|
-
* Submit Purchase Order
|
|
10315
|
-
* @description Endpoint for submitting a purchase order
|
|
10316
|
-
* Responses:
|
|
10317
|
-
* - 200: PurchaseOrderSchema
|
|
10318
|
-
* - 403: "permissionDenied"
|
|
10319
|
-
* - "noModuleAccess"
|
|
10320
|
-
* - statusAlreadySubmitted
|
|
10321
|
-
* - cantMakeActionOnLockedDocument
|
|
10322
|
-
* - noBranchAccess
|
|
10323
|
-
* - purchaseOrderIsCanceled
|
|
10324
|
-
* - statusAlreadySubmitted
|
|
10325
|
-
* - 400 - "cantMakeActionOnLockedDocument"
|
|
10326
|
-
* - 404: "purchaseOrderDoesNotExist"
|
|
10327
|
-
* - 500: "serverError"
|
|
10328
|
-
*
|
|
10329
|
-
* Permission key: purchaseorder = ['add']
|
|
10330
|
-
*/
|
|
10331
|
-
post: operations["purchase_order_views_submit_purchase_order"];
|
|
10332
|
-
delete?: never;
|
|
10333
|
-
options?: never;
|
|
10334
|
-
head?: never;
|
|
10335
|
-
patch?: never;
|
|
10336
|
-
trace?: never;
|
|
10337
|
-
};
|
|
10338
10271
|
"/api/v1/purchase/orders/{id}/cancel/": {
|
|
10339
10272
|
parameters: {
|
|
10340
10273
|
query?: never;
|
|
@@ -10942,7 +10875,7 @@ export interface paths {
|
|
|
10942
10875
|
patch?: never;
|
|
10943
10876
|
trace?: never;
|
|
10944
10877
|
};
|
|
10945
|
-
"/api/v1/purchase/invoices/{id}/
|
|
10878
|
+
"/api/v1/purchase/invoices/{id}/cancel/": {
|
|
10946
10879
|
parameters: {
|
|
10947
10880
|
query?: never;
|
|
10948
10881
|
header?: never;
|
|
@@ -10952,29 +10885,29 @@ export interface paths {
|
|
|
10952
10885
|
get?: never;
|
|
10953
10886
|
put?: never;
|
|
10954
10887
|
/**
|
|
10955
|
-
*
|
|
10956
|
-
* @description
|
|
10888
|
+
* Cancel Purchase Invoice
|
|
10889
|
+
* @description Cancel a purchase invoice.
|
|
10957
10890
|
*
|
|
10958
|
-
* This endpoint allows users to
|
|
10891
|
+
* This endpoint allows users to cancel a purchase invoice.
|
|
10959
10892
|
*
|
|
10960
10893
|
* ### Responses:
|
|
10961
10894
|
* - **200**: PurchaseInvoiceSchema.
|
|
10962
10895
|
* - **400**: .
|
|
10963
|
-
* - **403**: cantMakeActionOnLockedDocument,
|
|
10896
|
+
* - **403**: invoiceAlreadyCanceled,cantMakeActionOnLockedDocument, permissionDenied, noModuleAccess, noBranchAccess.
|
|
10964
10897
|
* - **404**: purchaseInvoiceDoesNotExist.
|
|
10965
10898
|
* - **500**: internalServerError.
|
|
10966
10899
|
*
|
|
10967
10900
|
* ### Permissions:
|
|
10968
|
-
* - Requires `purchaseinvoice: [
|
|
10901
|
+
* - Requires `purchaseinvoice: [cancel]` permission
|
|
10969
10902
|
*/
|
|
10970
|
-
post: operations["
|
|
10903
|
+
post: operations["purchase_purchase_invoice_views_cancel_purchase_invoice"];
|
|
10971
10904
|
delete?: never;
|
|
10972
10905
|
options?: never;
|
|
10973
10906
|
head?: never;
|
|
10974
10907
|
patch?: never;
|
|
10975
10908
|
trace?: never;
|
|
10976
10909
|
};
|
|
10977
|
-
"/api/v1/purchase/invoices/{id}/
|
|
10910
|
+
"/api/v1/purchase/invoices/{id}/submit/": {
|
|
10978
10911
|
parameters: {
|
|
10979
10912
|
query?: never;
|
|
10980
10913
|
header?: never;
|
|
@@ -27665,7 +27598,7 @@ export interface components {
|
|
|
27665
27598
|
/**
|
|
27666
27599
|
* Id
|
|
27667
27600
|
* Format: uuid
|
|
27668
|
-
* @example
|
|
27601
|
+
* @example 5a8cb4b2-6500-4955-8dca-2f895b040a40
|
|
27669
27602
|
*/
|
|
27670
27603
|
id: string;
|
|
27671
27604
|
/**
|
|
@@ -34732,12 +34665,12 @@ export interface components {
|
|
|
34732
34665
|
* @description Item ID, this is required if inventory module is enabled, otherwise should be null and should replaced by itemName, to get items use route /inventory/items/ , where search is searched query and filter by active equals to true and role not equals to template
|
|
34733
34666
|
* @example 1
|
|
34734
34667
|
*/
|
|
34735
|
-
item
|
|
34668
|
+
item?: number | null;
|
|
34736
34669
|
/**
|
|
34737
34670
|
* Itemname
|
|
34738
34671
|
* @description Item name, this is required if inventory module is not enabled, otherwise should be null and should replaced by item, the label should be item only not itemName
|
|
34739
34672
|
*/
|
|
34740
|
-
itemName
|
|
34673
|
+
itemName?: string | null;
|
|
34741
34674
|
/** @description This field is required and visible if inventory is off, else not visible and should not be sent */
|
|
34742
34675
|
itemType?: components["schemas"]["NonInventoryItemType"];
|
|
34743
34676
|
/**
|
|
@@ -34758,7 +34691,7 @@ export interface components {
|
|
|
34758
34691
|
*
|
|
34759
34692
|
* @example 1
|
|
34760
34693
|
*/
|
|
34761
|
-
unitOfMeasurement
|
|
34694
|
+
unitOfMeasurement?: number | null;
|
|
34762
34695
|
/**
|
|
34763
34696
|
* Unitprice
|
|
34764
34697
|
* @description to get item cost if exist use route /supplier/price_list/item_prices/{item_id}/ with query param supplier_id
|
|
@@ -34792,12 +34725,12 @@ export interface components {
|
|
|
34792
34725
|
* @description Item ID, this is required if inventory module is enabled, otherwise should be null and should replaced by itemName
|
|
34793
34726
|
* @example 1
|
|
34794
34727
|
*/
|
|
34795
|
-
item
|
|
34728
|
+
item?: number | null;
|
|
34796
34729
|
/**
|
|
34797
34730
|
* Itemname
|
|
34798
34731
|
* @description Item name, this is required if inventory module is not enabled, otherwise should be null and should replaced by item, the label should be item only not itemName
|
|
34799
34732
|
*/
|
|
34800
|
-
itemName
|
|
34733
|
+
itemName?: string | null;
|
|
34801
34734
|
/** @description This field is required and visible if inventory is off, else not visible and should not be sent */
|
|
34802
34735
|
itemType?: components["schemas"]["NonInventoryItemType"];
|
|
34803
34736
|
/**
|
|
@@ -67830,68 +67763,6 @@ export interface operations {
|
|
|
67830
67763
|
};
|
|
67831
67764
|
};
|
|
67832
67765
|
};
|
|
67833
|
-
purchase_quotation_views_submit_purchase_quotation: {
|
|
67834
|
-
parameters: {
|
|
67835
|
-
query?: never;
|
|
67836
|
-
header?: never;
|
|
67837
|
-
path: {
|
|
67838
|
-
id: string;
|
|
67839
|
-
};
|
|
67840
|
-
cookie?: never;
|
|
67841
|
-
};
|
|
67842
|
-
requestBody: {
|
|
67843
|
-
content: {
|
|
67844
|
-
"application/json": components["schemas"]["ActionsPayloadSchemas"];
|
|
67845
|
-
};
|
|
67846
|
-
};
|
|
67847
|
-
responses: {
|
|
67848
|
-
/** @description OK */
|
|
67849
|
-
200: {
|
|
67850
|
-
headers: {
|
|
67851
|
-
[name: string]: unknown;
|
|
67852
|
-
};
|
|
67853
|
-
content: {
|
|
67854
|
-
"application/json": components["schemas"]["PurchaseQuotationSchema"];
|
|
67855
|
-
};
|
|
67856
|
-
};
|
|
67857
|
-
/** @description Bad Request */
|
|
67858
|
-
400: {
|
|
67859
|
-
headers: {
|
|
67860
|
-
[name: string]: unknown;
|
|
67861
|
-
};
|
|
67862
|
-
content: {
|
|
67863
|
-
"application/json": components["schemas"]["ErrorMessages"];
|
|
67864
|
-
};
|
|
67865
|
-
};
|
|
67866
|
-
/** @description Forbidden */
|
|
67867
|
-
403: {
|
|
67868
|
-
headers: {
|
|
67869
|
-
[name: string]: unknown;
|
|
67870
|
-
};
|
|
67871
|
-
content: {
|
|
67872
|
-
"application/json": components["schemas"]["MessageWithCode"];
|
|
67873
|
-
};
|
|
67874
|
-
};
|
|
67875
|
-
/** @description Not Found */
|
|
67876
|
-
404: {
|
|
67877
|
-
headers: {
|
|
67878
|
-
[name: string]: unknown;
|
|
67879
|
-
};
|
|
67880
|
-
content: {
|
|
67881
|
-
"application/json": components["schemas"]["MessageWithCode"];
|
|
67882
|
-
};
|
|
67883
|
-
};
|
|
67884
|
-
/** @description Internal Server Error */
|
|
67885
|
-
500: {
|
|
67886
|
-
headers: {
|
|
67887
|
-
[name: string]: unknown;
|
|
67888
|
-
};
|
|
67889
|
-
content: {
|
|
67890
|
-
"application/json": components["schemas"]["MessageWithCode"];
|
|
67891
|
-
};
|
|
67892
|
-
};
|
|
67893
|
-
};
|
|
67894
|
-
};
|
|
67895
67766
|
purchase_quotation_views_cancel_purchase_quotation: {
|
|
67896
67767
|
parameters: {
|
|
67897
67768
|
query?: never;
|
|
@@ -68460,68 +68331,6 @@ export interface operations {
|
|
|
68460
68331
|
};
|
|
68461
68332
|
};
|
|
68462
68333
|
};
|
|
68463
|
-
purchase_order_views_submit_purchase_order: {
|
|
68464
|
-
parameters: {
|
|
68465
|
-
query?: never;
|
|
68466
|
-
header?: never;
|
|
68467
|
-
path: {
|
|
68468
|
-
id: string;
|
|
68469
|
-
};
|
|
68470
|
-
cookie?: never;
|
|
68471
|
-
};
|
|
68472
|
-
requestBody: {
|
|
68473
|
-
content: {
|
|
68474
|
-
"application/json": components["schemas"]["ActionsPayloadSchemas"];
|
|
68475
|
-
};
|
|
68476
|
-
};
|
|
68477
|
-
responses: {
|
|
68478
|
-
/** @description OK */
|
|
68479
|
-
200: {
|
|
68480
|
-
headers: {
|
|
68481
|
-
[name: string]: unknown;
|
|
68482
|
-
};
|
|
68483
|
-
content: {
|
|
68484
|
-
"application/json": components["schemas"]["PurchaseOrderSchema"];
|
|
68485
|
-
};
|
|
68486
|
-
};
|
|
68487
|
-
/** @description Bad Request */
|
|
68488
|
-
400: {
|
|
68489
|
-
headers: {
|
|
68490
|
-
[name: string]: unknown;
|
|
68491
|
-
};
|
|
68492
|
-
content: {
|
|
68493
|
-
"application/json": components["schemas"]["ErrorMessages"];
|
|
68494
|
-
};
|
|
68495
|
-
};
|
|
68496
|
-
/** @description Forbidden */
|
|
68497
|
-
403: {
|
|
68498
|
-
headers: {
|
|
68499
|
-
[name: string]: unknown;
|
|
68500
|
-
};
|
|
68501
|
-
content: {
|
|
68502
|
-
"application/json": components["schemas"]["MessageWithCode"];
|
|
68503
|
-
};
|
|
68504
|
-
};
|
|
68505
|
-
/** @description Not Found */
|
|
68506
|
-
404: {
|
|
68507
|
-
headers: {
|
|
68508
|
-
[name: string]: unknown;
|
|
68509
|
-
};
|
|
68510
|
-
content: {
|
|
68511
|
-
"application/json": components["schemas"]["MessageWithCode"];
|
|
68512
|
-
};
|
|
68513
|
-
};
|
|
68514
|
-
/** @description Internal Server Error */
|
|
68515
|
-
500: {
|
|
68516
|
-
headers: {
|
|
68517
|
-
[name: string]: unknown;
|
|
68518
|
-
};
|
|
68519
|
-
content: {
|
|
68520
|
-
"application/json": components["schemas"]["MessageWithCode"];
|
|
68521
|
-
};
|
|
68522
|
-
};
|
|
68523
|
-
};
|
|
68524
|
-
};
|
|
68525
68334
|
purchase_order_views_cancel_purchase_order: {
|
|
68526
68335
|
parameters: {
|
|
68527
68336
|
query?: never;
|
|
@@ -69788,7 +69597,7 @@ export interface operations {
|
|
|
69788
69597
|
};
|
|
69789
69598
|
};
|
|
69790
69599
|
};
|
|
69791
|
-
|
|
69600
|
+
purchase_purchase_invoice_views_cancel_purchase_invoice: {
|
|
69792
69601
|
parameters: {
|
|
69793
69602
|
query?: never;
|
|
69794
69603
|
header?: never;
|