@erp-galoper/types 1.0.648 → 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.
Files changed (2) hide show
  1. package/openapi.ts +15 -111
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -10268,40 +10268,6 @@ export interface paths {
10268
10268
  patch?: never;
10269
10269
  trace?: never;
10270
10270
  };
10271
- "/api/v1/purchase/orders/{id}/submit/": {
10272
- parameters: {
10273
- query?: never;
10274
- header?: never;
10275
- path?: never;
10276
- cookie?: never;
10277
- };
10278
- get?: never;
10279
- put?: never;
10280
- /**
10281
- * Submit Purchase Order
10282
- * @description Endpoint for submitting a purchase order
10283
- * Responses:
10284
- * - 200: PurchaseOrderSchema
10285
- * - 403: "permissionDenied"
10286
- * - "noModuleAccess"
10287
- * - statusAlreadySubmitted
10288
- * - cantMakeActionOnLockedDocument
10289
- * - noBranchAccess
10290
- * - purchaseOrderIsCanceled
10291
- * - statusAlreadySubmitted
10292
- * - 400 - "cantMakeActionOnLockedDocument"
10293
- * - 404: "purchaseOrderDoesNotExist"
10294
- * - 500: "serverError"
10295
- *
10296
- * Permission key: purchaseorder = ['add']
10297
- */
10298
- post: operations["purchase_order_views_submit_purchase_order"];
10299
- delete?: never;
10300
- options?: never;
10301
- head?: never;
10302
- patch?: never;
10303
- trace?: never;
10304
- };
10305
10271
  "/api/v1/purchase/orders/{id}/cancel/": {
10306
10272
  parameters: {
10307
10273
  query?: never;
@@ -10909,7 +10875,7 @@ export interface paths {
10909
10875
  patch?: never;
10910
10876
  trace?: never;
10911
10877
  };
10912
- "/api/v1/purchase/invoices/{id}/submit/": {
10878
+ "/api/v1/purchase/invoices/{id}/cancel/": {
10913
10879
  parameters: {
10914
10880
  query?: never;
10915
10881
  header?: never;
@@ -10919,29 +10885,29 @@ export interface paths {
10919
10885
  get?: never;
10920
10886
  put?: never;
10921
10887
  /**
10922
- * Submit Purchase Invoice
10923
- * @description Submit a purchase invoice.
10888
+ * Cancel Purchase Invoice
10889
+ * @description Cancel a purchase invoice.
10924
10890
  *
10925
- * This endpoint allows users to submit a purchase invoice.
10891
+ * This endpoint allows users to cancel a purchase invoice.
10926
10892
  *
10927
10893
  * ### Responses:
10928
10894
  * - **200**: PurchaseInvoiceSchema.
10929
10895
  * - **400**: .
10930
- * - **403**: cantMakeActionOnLockedDocument, invoiceAlreadySubmitted, invoiceIsCancelled, permissionDenied, noModuleAccess, noBranchAccess.
10896
+ * - **403**: invoiceAlreadyCanceled,cantMakeActionOnLockedDocument, permissionDenied, noModuleAccess, noBranchAccess.
10931
10897
  * - **404**: purchaseInvoiceDoesNotExist.
10932
10898
  * - **500**: internalServerError.
10933
10899
  *
10934
10900
  * ### Permissions:
10935
- * - Requires `purchaseinvoice: [add]` permission
10901
+ * - Requires `purchaseinvoice: [cancel]` permission
10936
10902
  */
10937
- post: operations["purchase_purchase_invoice_views_submit_purchase_invoice"];
10903
+ post: operations["purchase_purchase_invoice_views_cancel_purchase_invoice"];
10938
10904
  delete?: never;
10939
10905
  options?: never;
10940
10906
  head?: never;
10941
10907
  patch?: never;
10942
10908
  trace?: never;
10943
10909
  };
10944
- "/api/v1/purchase/invoices/{id}/cancel/": {
10910
+ "/api/v1/purchase/invoices/{id}/submit/": {
10945
10911
  parameters: {
10946
10912
  query?: never;
10947
10913
  header?: never;
@@ -27632,7 +27598,7 @@ export interface components {
27632
27598
  /**
27633
27599
  * Id
27634
27600
  * Format: uuid
27635
- * @example 13b1828f-c9d1-4a4a-81a5-42c02a7c5ef8
27601
+ * @example 5a8cb4b2-6500-4955-8dca-2f895b040a40
27636
27602
  */
27637
27603
  id: string;
27638
27604
  /**
@@ -34699,12 +34665,12 @@ export interface components {
34699
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
34700
34666
  * @example 1
34701
34667
  */
34702
- item: number | null;
34668
+ item?: number | null;
34703
34669
  /**
34704
34670
  * Itemname
34705
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
34706
34672
  */
34707
- itemName: string | null;
34673
+ itemName?: string | null;
34708
34674
  /** @description This field is required and visible if inventory is off, else not visible and should not be sent */
34709
34675
  itemType?: components["schemas"]["NonInventoryItemType"];
34710
34676
  /**
@@ -34725,7 +34691,7 @@ export interface components {
34725
34691
  *
34726
34692
  * @example 1
34727
34693
  */
34728
- unitOfMeasurement: number | null;
34694
+ unitOfMeasurement?: number | null;
34729
34695
  /**
34730
34696
  * Unitprice
34731
34697
  * @description to get item cost if exist use route /supplier/price_list/item_prices/{item_id}/ with query param supplier_id
@@ -34759,12 +34725,12 @@ export interface components {
34759
34725
  * @description Item ID, this is required if inventory module is enabled, otherwise should be null and should replaced by itemName
34760
34726
  * @example 1
34761
34727
  */
34762
- item: number | null;
34728
+ item?: number | null;
34763
34729
  /**
34764
34730
  * Itemname
34765
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
34766
34732
  */
34767
- itemName: string | null;
34733
+ itemName?: string | null;
34768
34734
  /** @description This field is required and visible if inventory is off, else not visible and should not be sent */
34769
34735
  itemType?: components["schemas"]["NonInventoryItemType"];
34770
34736
  /**
@@ -68365,68 +68331,6 @@ export interface operations {
68365
68331
  };
68366
68332
  };
68367
68333
  };
68368
- purchase_order_views_submit_purchase_order: {
68369
- parameters: {
68370
- query?: never;
68371
- header?: never;
68372
- path: {
68373
- id: string;
68374
- };
68375
- cookie?: never;
68376
- };
68377
- requestBody: {
68378
- content: {
68379
- "application/json": components["schemas"]["ActionsPayloadSchemas"];
68380
- };
68381
- };
68382
- responses: {
68383
- /** @description OK */
68384
- 200: {
68385
- headers: {
68386
- [name: string]: unknown;
68387
- };
68388
- content: {
68389
- "application/json": components["schemas"]["PurchaseOrderSchema"];
68390
- };
68391
- };
68392
- /** @description Bad Request */
68393
- 400: {
68394
- headers: {
68395
- [name: string]: unknown;
68396
- };
68397
- content: {
68398
- "application/json": components["schemas"]["ErrorMessages"];
68399
- };
68400
- };
68401
- /** @description Forbidden */
68402
- 403: {
68403
- headers: {
68404
- [name: string]: unknown;
68405
- };
68406
- content: {
68407
- "application/json": components["schemas"]["MessageWithCode"];
68408
- };
68409
- };
68410
- /** @description Not Found */
68411
- 404: {
68412
- headers: {
68413
- [name: string]: unknown;
68414
- };
68415
- content: {
68416
- "application/json": components["schemas"]["MessageWithCode"];
68417
- };
68418
- };
68419
- /** @description Internal Server Error */
68420
- 500: {
68421
- headers: {
68422
- [name: string]: unknown;
68423
- };
68424
- content: {
68425
- "application/json": components["schemas"]["MessageWithCode"];
68426
- };
68427
- };
68428
- };
68429
- };
68430
68334
  purchase_order_views_cancel_purchase_order: {
68431
68335
  parameters: {
68432
68336
  query?: never;
@@ -69693,7 +69597,7 @@ export interface operations {
69693
69597
  };
69694
69598
  };
69695
69599
  };
69696
- purchase_purchase_invoice_views_submit_purchase_invoice: {
69600
+ purchase_purchase_invoice_views_cancel_purchase_invoice: {
69697
69601
  parameters: {
69698
69602
  query?: never;
69699
69603
  header?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.648",
3
+ "version": "1.0.649",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],