@erp-galoper/types 1.0.1964 → 1.0.1966

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 +23 -98
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -15587,6 +15587,7 @@ export interface paths {
15587
15587
  * - recognitionFrequencyIsRequired
15588
15588
  * - recognitionStartDateIsRequired
15589
15589
  * - depositChargeChangeNotAllowed
15590
+ * - packageDepositChargeRequired
15590
15591
  * - unitPackageIsRequired
15591
15592
  * - salesPersonIsNotActive
15592
15593
  *
@@ -15653,6 +15654,7 @@ export interface paths {
15653
15654
  * - recognitionFrequencyIsRequired
15654
15655
  * - recognitionStartDateIsRequired
15655
15656
  * - depositChargeChangeNotAllowed
15657
+ * - packageDepositChargeRequired
15656
15658
  * - unitPackageIsRequired
15657
15659
  * - customerChangeNotAllowed
15658
15660
  * - salesPersonIsNotActive
@@ -16869,6 +16871,7 @@ export interface paths {
16869
16871
  * - recognitionFrequencyIsRequired
16870
16872
  * - recognitionStartDateIsRequired
16871
16873
  * - depositChargeChangeNotAllowed
16874
+ * - packageDepositChargeRequired
16872
16875
  * - unitPackageIsRequired
16873
16876
  * - salesQuotationDoesNotExist
16874
16877
  * - salesQuotationCustomerDoesNotMatchWithSalesOrderCustomer
@@ -16937,6 +16940,7 @@ export interface paths {
16937
16940
  * - recognitionFrequencyIsRequired
16938
16941
  * - recognitionStartDateIsRequired
16939
16942
  * - depositChargeChangeNotAllowed
16943
+ * - packageDepositChargeRequired
16940
16944
  * - unitPackageIsRequired
16941
16945
  * - salesQuotationDoesNotExist
16942
16946
  * - customerChangeNotAllowed
@@ -17869,6 +17873,7 @@ export interface paths {
17869
17873
  * - recognitionFrequencyIsRequired
17870
17874
  * - recognitionStartDateIsRequired
17871
17875
  * - depositChargeChangeNotAllowed
17876
+ * - packageDepositChargeRequired
17872
17877
  * - unitPackageIsRequired
17873
17878
  * - salesOrderDoesNotExist
17874
17879
  * - customerShouldBeSameAsDownPaymentCustomer
@@ -17940,6 +17945,7 @@ export interface paths {
17940
17945
  * - recognitionFrequencyIsRequired
17941
17946
  * - recognitionStartDateIsRequired
17942
17947
  * - depositChargeChangeNotAllowed
17948
+ * - packageDepositChargeRequired
17943
17949
  * - unitPackageIsRequired
17944
17950
  * - salesOrderDoesNotExist
17945
17951
  * - customerChangeNotAllowed
@@ -22685,7 +22691,7 @@ export interface paths {
22685
22691
  * Possible Responses:
22686
22692
  * - 200: RepairOrderDetailSchema
22687
22693
  * - 400: validation errors
22688
- * - 403: permissionDenied, noModuleAccess, noBranchAccess, repairOrderShouldBeDraft
22694
+ * - 403: permissionDenied, noModuleAccess, noBranchAccess
22689
22695
  * - 404: repairOrderDoesNotExist
22690
22696
  * - 500: serverError
22691
22697
  *
@@ -22718,7 +22724,7 @@ export interface paths {
22718
22724
  * Possible Responses:
22719
22725
  * - 200: RepairOrderDetailSchema
22720
22726
  * - 400: validation errors, noChangesDetected
22721
- * - 403: permissionDenied, noModuleAccess, noBranchAccess, repairOrderShouldBeDraft
22727
+ * - 403: permissionDenied, noModuleAccess, noBranchAccess
22722
22728
  * - 404: repairOrderDoesNotExist
22723
22729
  * - 500: serverError
22724
22730
  *
@@ -22727,35 +22733,6 @@ export interface paths {
22727
22733
  patch: operations["maintenance_views_partial_update_repair_order"];
22728
22734
  trace?: never;
22729
22735
  };
22730
- "/api/v1/maintenance/repair-orders/{id}/reset-to-draft/": {
22731
- parameters: {
22732
- query?: never;
22733
- header?: never;
22734
- path?: never;
22735
- cookie?: never;
22736
- };
22737
- get?: never;
22738
- put?: never;
22739
- /**
22740
- * Reset Repair Order To Draft
22741
- * @description Endpoint for resetting a repair order to draft.
22742
- *
22743
- * Possible Responses:
22744
- * - 200: RepairOrderDetailSchema
22745
- * - 400: cannotResetPaidRepairOrderToDraft
22746
- * - 403: permissionDenied, noModuleAccess, noBranchAccess, repairOrderIsCanceled, repairOrderIsAlreadyDraft
22747
- * - 404: repairOrderDoesNotExist
22748
- * - 500: serverError
22749
- *
22750
- * Permission key: `repairorder = ['resettodraft']`
22751
- */
22752
- post: operations["maintenance_views_reset_repair_order_to_draft"];
22753
- delete?: never;
22754
- options?: never;
22755
- head?: never;
22756
- patch?: never;
22757
- trace?: never;
22758
- };
22759
22736
  "/api/v1/maintenance/repair-orders/{id}/cancel/": {
22760
22737
  parameters: {
22761
22738
  query?: never;
@@ -51121,6 +51098,12 @@ export interface components {
51121
51098
  * @default false
51122
51099
  */
51123
51100
  returnable: boolean;
51101
+ /**
51102
+ * Hasdeposit
51103
+ * @description Whether the package has a deposit charge collected on sale
51104
+ * @default false
51105
+ */
51106
+ hasDeposit: boolean;
51124
51107
  /**
51125
51108
  * Depositcharge
51126
51109
  * @description Deposit charge of the package
@@ -51200,9 +51183,15 @@ export interface components {
51200
51183
  * @default false
51201
51184
  */
51202
51185
  returnable: boolean;
51186
+ /**
51187
+ * Hasdeposit
51188
+ * @description Whether the package has a deposit charge collected on sale
51189
+ * @default false
51190
+ */
51191
+ hasDeposit: boolean;
51203
51192
  /**
51204
51193
  * Depositcharge
51205
- * @description - Visible when returnable is true and field isReturnablePackagePaid is enabled in sales settings
51194
+ * @description - Visible when returnable is true and hasDeposit is true
51206
51195
  * - If provided, depositChargeCurrency must also be provided, they are co-dependent
51207
51196
  * - If conditions are not met, this value is automatically set to null even if sent in payload
51208
51197
  * - Optional not required
@@ -51212,7 +51201,7 @@ export interface components {
51212
51201
  * Depositchargecurrency
51213
51202
  * Format: uuid
51214
51203
  * @description - Currency of the deposit charge, only company currency or USD
51215
- * - Visible when returnable is true and field isReturnablePackagePaid is enabled in sales settings
51204
+ * - Visible when returnable is true and hasDeposit is true
51216
51205
  * - If provided, depositCharge must also be provided, they are co-dependent
51217
51206
  * - If conditions are not met, this value is automatically set to null even if sent in payload
51218
51207
  * - Optional not required
@@ -51290,8 +51279,6 @@ export interface components {
51290
51279
  id: number;
51291
51280
  /** Usepricelist */
51292
51281
  usePriceList: boolean;
51293
- /** Isreturnablepackagepaid */
51294
- isReturnablePackagePaid: boolean;
51295
51282
  /** Allowsalesorderforexpiredquotation */
51296
51283
  allowSalesOrderForExpiredQuotation: boolean;
51297
51284
  /** Reserveonorder */
@@ -51304,8 +51291,6 @@ export interface components {
51304
51291
  CreateSalesSettingsSchema: {
51305
51292
  /** Usepricelist */
51306
51293
  usePriceList: boolean;
51307
- /** Isreturnablepackagepaid */
51308
- isReturnablePackagePaid: boolean;
51309
51294
  /** Allowsalesorderforexpiredquotation */
51310
51295
  allowSalesOrderForExpiredQuotation: boolean;
51311
51296
  /** Reserveonorder */
@@ -51319,8 +51304,6 @@ export interface components {
51319
51304
  UpdateSalesSettingsSchema: {
51320
51305
  /** Usepricelist */
51321
51306
  usePriceList?: boolean;
51322
- /** Isreturnablepackagepaid */
51323
- isReturnablePackagePaid?: boolean;
51324
51307
  /** Allowsalesorderforexpiredquotation */
51325
51308
  allowSalesOrderForExpiredQuotation?: boolean;
51326
51309
  /** Reserveonorder */
@@ -56574,7 +56557,7 @@ export interface components {
56574
56557
  /**
56575
56558
  * Packagedepositcharge
56576
56559
  * @description - This field is a number.
56577
- * - It is required when the package is selected and has a deposit charge and is_returnable_package_paid is true from sales_settings.
56560
+ * - It is required when the package is selected, has a deposit charge, and hasDeposit is true on that package.
56578
56561
  */
56579
56562
  packageDepositCharge?: number;
56580
56563
  /**
@@ -110276,64 +110259,6 @@ export interface operations {
110276
110259
  };
110277
110260
  };
110278
110261
  };
110279
- maintenance_views_reset_repair_order_to_draft: {
110280
- parameters: {
110281
- query?: never;
110282
- header?: never;
110283
- path: {
110284
- id: string;
110285
- };
110286
- cookie?: never;
110287
- };
110288
- requestBody?: never;
110289
- responses: {
110290
- /** @description OK */
110291
- 200: {
110292
- headers: {
110293
- [name: string]: unknown;
110294
- };
110295
- content: {
110296
- "application/json": components["schemas"]["RepairOrderDetailSchema"];
110297
- };
110298
- };
110299
- /** @description Bad Request */
110300
- 400: {
110301
- headers: {
110302
- [name: string]: unknown;
110303
- };
110304
- content: {
110305
- "application/json": components["schemas"]["ErrorMessages"];
110306
- };
110307
- };
110308
- /** @description Forbidden */
110309
- 403: {
110310
- headers: {
110311
- [name: string]: unknown;
110312
- };
110313
- content: {
110314
- "application/json": components["schemas"]["MessageResponse"];
110315
- };
110316
- };
110317
- /** @description Not Found */
110318
- 404: {
110319
- headers: {
110320
- [name: string]: unknown;
110321
- };
110322
- content: {
110323
- "application/json": components["schemas"]["MessageResponse"];
110324
- };
110325
- };
110326
- /** @description Internal Server Error */
110327
- 500: {
110328
- headers: {
110329
- [name: string]: unknown;
110330
- };
110331
- content: {
110332
- "application/json": components["schemas"]["MessageResponse"];
110333
- };
110334
- };
110335
- };
110336
- };
110337
110262
  maintenance_views_cancel_repair_order: {
110338
110263
  parameters: {
110339
110264
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1964",
3
+ "version": "1.0.1966",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],