@erp-galoper/types 1.0.586 → 1.0.588

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 +162 -63
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -7973,34 +7973,49 @@ export interface paths {
7973
7973
  };
7974
7974
  /**
7975
7975
  * Get Pos Settings
7976
- * @description Get POS settings
7977
- * possible responses:
7978
- * - 200:
7979
- * - data
7980
- * - 403:
7981
- * - permissionDenied
7982
- * - 404:
7983
- * - posSettingsDoesNotExists
7976
+ * @description Endpoint for retrieving POS settings
7977
+ * Response:
7978
+ * - 200: RetrievePosSettings
7979
+ * - 403: permissionDenied
7980
+ * - 404: posSettingsDoNotExist
7981
+ * - 500: serverError
7982
+ *
7983
+ * This endpoint is used in standalone mode to retrieve POS settings
7984
+ *
7985
+ * permissions: pos_settings : [view]
7984
7986
  */
7985
7987
  get: operations["erp_settings_pos_settings_views_get_pos_settings"];
7986
- put?: never;
7988
+ /**
7989
+ * Update Pos Settings
7990
+ * @description Endpoint for updating POS settings
7991
+ * Response:
7992
+ * - 200: RetrievePosSettings
7993
+ * - 400: ErrorMessages
7994
+ * - 403: permissionDenied
7995
+ * - 404: posSettingsDoNotExist
7996
+ * - 500: serverError
7997
+ *
7998
+ * permissions: pos_settings : [change]
7999
+ */
8000
+ put: operations["erp_settings_pos_settings_views_update_pos_settings"];
7987
8001
  /**
7988
8002
  * Create Pos Settings
7989
- * @description Create POS settings
7990
- * possible responses:
7991
- * - 200:
7992
- * - posSettingsCreated , id
7993
- * - 403:
7994
- * - permissionDenied
7995
- * - 400:
7996
- * - posSettingsDoesNotExists
8003
+ * @description Endpoint for creating POS settings
8004
+ * Response:
8005
+ * - 201: RetrievePosSettings
8006
+ * - 400: defaultCurrencyDoesNotExist
8007
+ * - 403: permissionDenied
8008
+ * - 500: serverError
8009
+ *
8010
+ * This endpoint is used in standalone mode to create POS settings
8011
+ *
8012
+ * permissions: pos_settings : [add]
7997
8013
  */
7998
8014
  post: operations["erp_settings_pos_settings_views_create_pos_settings"];
7999
8015
  delete?: never;
8000
8016
  options?: never;
8001
8017
  head?: never;
8002
- /** Update Pos Settings */
8003
- patch: operations["erp_settings_pos_settings_views_update_pos_settings"];
8018
+ patch?: never;
8004
8019
  trace?: never;
8005
8020
  };
8006
8021
  "/api/v1/settings/appointment/": {
@@ -20422,6 +20437,11 @@ export interface components {
20422
20437
  * @enum {string}
20423
20438
  */
20424
20439
  FullPermissionAction: "view" | "add" | "change" | "delete";
20440
+ /**
20441
+ * FullPermissionActionWithoutDelete
20442
+ * @enum {string}
20443
+ */
20444
+ FullPermissionActionWithoutDelete: "view" | "add" | "change";
20425
20445
  /**
20426
20446
  * InvoicePermissionAction
20427
20447
  * @enum {string}
@@ -20494,17 +20514,17 @@ export interface components {
20494
20514
  * Possettings
20495
20515
  * @default []
20496
20516
  */
20497
- posSettings: components["schemas"]["FullPermissionAction"][];
20517
+ posSettings: components["schemas"]["FullPermissionActionWithoutDelete"][];
20498
20518
  /**
20499
20519
  * Financialperiod
20500
20520
  * @default []
20501
20521
  */
20502
- financialPeriod: components["schemas"]["FullPermissionAction"][];
20522
+ financialPeriod: components["schemas"]["FullPermissionActionWithoutDelete"][];
20503
20523
  /**
20504
20524
  * Systemsettings
20505
20525
  * @default []
20506
20526
  */
20507
- systemSettings: components["schemas"]["FullPermissionAction"][];
20527
+ systemSettings: components["schemas"]["FullPermissionActionWithoutDelete"][];
20508
20528
  /**
20509
20529
  * Zreport
20510
20530
  * @default []
@@ -27501,7 +27521,7 @@ export interface components {
27501
27521
  /**
27502
27522
  * Id
27503
27523
  * Format: uuid
27504
- * @example 58fdb5f5-fc3d-4b19-aa2e-a4d6441d0b15
27524
+ * @example e785f8aa-2f8e-423d-bff7-8696178527d4
27505
27525
  */
27506
27526
  id: string;
27507
27527
  /**
@@ -30675,21 +30695,82 @@ export interface components {
30675
30695
  */
30676
30696
  paymentInAdvanceAccountNonResident?: number;
30677
30697
  };
30678
- /** PosSettingsResponse */
30679
- PosSettingsResponse: {
30698
+ /** CurrencySummarySchema */
30699
+ CurrencySummarySchema: {
30700
+ /** Id */
30701
+ id: number;
30702
+ /** Code */
30703
+ code: string;
30704
+ /** Name */
30705
+ name: string;
30706
+ };
30707
+ /**
30708
+ * ReportGroupBy
30709
+ * @enum {string}
30710
+ */
30711
+ ReportGroupBy: "category" | "item";
30712
+ /** RetrievePosSettings */
30713
+ RetrievePosSettings: {
30680
30714
  /**
30681
- * Dailyrate
30682
- * @description Daily rate for POS
30715
+ * Datecreated
30716
+ * Format: date-time
30683
30717
  */
30684
- dailyRate: number;
30685
- };
30686
- /** PosSettingsPayload */
30687
- PosSettingsPayload: {
30718
+ dateCreated: string;
30719
+ /** Datemodified */
30720
+ dateModified: string | null;
30721
+ createdBy: components["schemas"]["RecordUserSchema"];
30722
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
30723
+ /** Id */
30724
+ id: number;
30725
+ /** Dailyrate */
30726
+ dailyRate: number | string;
30727
+ defaultCurrency: components["schemas"]["CurrencySummarySchema"];
30728
+ /** Allowlowerexchangevalue */
30729
+ allowLowerExchangeValue: boolean;
30730
+ /** Paymentdifferencethreshold */
30731
+ paymentDifferenceThreshold: number;
30732
+ /** Invoiceheader */
30733
+ invoiceHeader: string | null;
30734
+ /** Invoicefooter */
30735
+ invoiceFooter: string | null;
30736
+ reportGroupBy: components["schemas"]["ReportGroupBy"] | null;
30737
+ /** Printcount */
30738
+ printCount: number | null;
30739
+ /** Printonhold */
30740
+ printOnHold: boolean | null;
30741
+ /** Currenciesoninvoice */
30742
+ currenciesOnInvoice: components["schemas"]["CurrencySummarySchema"][];
30743
+ };
30744
+ /** CreateUpdatePosSettings */
30745
+ CreateUpdatePosSettings: {
30746
+ /** Dailyrate */
30747
+ dailyRate: number | string;
30748
+ /** Defaultcurrency */
30749
+ defaultCurrency: number;
30688
30750
  /**
30689
- * Dailyrate
30690
- * @description Daily rate for POS
30751
+ * Allowlowerexchangevalue
30752
+ * @default false
30753
+ */
30754
+ allowLowerExchangeValue: boolean | null;
30755
+ /**
30756
+ * Paymentdifferencethreshold
30757
+ * @default 0.01
30691
30758
  */
30692
- dailyRate: number;
30759
+ paymentDifferenceThreshold: number | null;
30760
+ /** Invoiceheader */
30761
+ invoiceHeader: string | null;
30762
+ /** Invoicefooter */
30763
+ invoiceFooter: string | null;
30764
+ reportGroupBy: components["schemas"]["ReportGroupBy"] | null;
30765
+ /** Printcount */
30766
+ printCount: number | null;
30767
+ /** Printonhold */
30768
+ printOnHold: boolean | null;
30769
+ /**
30770
+ * Currenciesoninvoice
30771
+ * @default []
30772
+ */
30773
+ currenciesOnInvoice: number[] | null;
30693
30774
  };
30694
30775
  /** RetrieveAppointmentSettingSchema */
30695
30776
  RetrieveAppointmentSettingSchema: {
@@ -38277,15 +38358,6 @@ export interface components {
38277
38358
  /** Commissionlevels */
38278
38359
  commissionLevels?: components["schemas"]["UpdateCommissionLevels"][];
38279
38360
  };
38280
- /** CurrencySummarySchema */
38281
- CurrencySummarySchema: {
38282
- /** Id */
38283
- id: number;
38284
- /** Code */
38285
- code: string;
38286
- /** Name */
38287
- name: string;
38288
- };
38289
38361
  /**
38290
38362
  * PRICE_LIST_TYPE_CHOICES
38291
38363
  * @enum {string}
@@ -46640,17 +46712,17 @@ export interface components {
46640
46712
  * Possettings
46641
46713
  * @default []
46642
46714
  */
46643
- posSettings: components["schemas"]["FullPermissionAction"][];
46715
+ posSettings: components["schemas"]["FullPermissionActionWithoutDelete"][];
46644
46716
  /**
46645
46717
  * Financialperiod
46646
46718
  * @default []
46647
46719
  */
46648
- financialPeriod: components["schemas"]["FullPermissionAction"][];
46720
+ financialPeriod: components["schemas"]["FullPermissionActionWithoutDelete"][];
46649
46721
  /**
46650
46722
  * Systemsettings
46651
46723
  * @default []
46652
46724
  */
46653
- systemSettings: components["schemas"]["FullPermissionAction"][];
46725
+ systemSettings: components["schemas"]["FullPermissionActionWithoutDelete"][];
46654
46726
  /**
46655
46727
  * Zreport
46656
46728
  * @default []
@@ -63307,7 +63379,16 @@ export interface operations {
63307
63379
  [name: string]: unknown;
63308
63380
  };
63309
63381
  content: {
63310
- "application/json": components["schemas"]["PosSettingsResponse"];
63382
+ "application/json": components["schemas"]["RetrievePosSettings"];
63383
+ };
63384
+ };
63385
+ /** @description Bad Request */
63386
+ 400: {
63387
+ headers: {
63388
+ [name: string]: unknown;
63389
+ };
63390
+ content: {
63391
+ "application/json": components["schemas"]["ErrorMessages"];
63311
63392
  };
63312
63393
  };
63313
63394
  /** @description Forbidden */
@@ -63316,7 +63397,7 @@ export interface operations {
63316
63397
  [name: string]: unknown;
63317
63398
  };
63318
63399
  content: {
63319
- "application/json": components["schemas"]["MessageWithCode"];
63400
+ "application/json": components["schemas"]["MessageResponse"];
63320
63401
  };
63321
63402
  };
63322
63403
  /** @description Not Found */
@@ -63325,12 +63406,21 @@ export interface operations {
63325
63406
  [name: string]: unknown;
63326
63407
  };
63327
63408
  content: {
63328
- "application/json": components["schemas"]["MessageWithCode"];
63409
+ "application/json": components["schemas"]["MessageResponse"];
63410
+ };
63411
+ };
63412
+ /** @description Internal Server Error */
63413
+ 500: {
63414
+ headers: {
63415
+ [name: string]: unknown;
63416
+ };
63417
+ content: {
63418
+ "application/json": components["schemas"]["MessageResponse"];
63329
63419
  };
63330
63420
  };
63331
63421
  };
63332
63422
  };
63333
- erp_settings_pos_settings_views_create_pos_settings: {
63423
+ erp_settings_pos_settings_views_update_pos_settings: {
63334
63424
  parameters: {
63335
63425
  query?: never;
63336
63426
  header?: never;
@@ -63339,7 +63429,7 @@ export interface operations {
63339
63429
  };
63340
63430
  requestBody: {
63341
63431
  content: {
63342
- "application/json": components["schemas"]["PosSettingsPayload"];
63432
+ "application/json": components["schemas"]["CreateUpdatePosSettings"];
63343
63433
  };
63344
63434
  };
63345
63435
  responses: {
@@ -63349,7 +63439,7 @@ export interface operations {
63349
63439
  [name: string]: unknown;
63350
63440
  };
63351
63441
  content: {
63352
- "application/json": components["schemas"]["MessageWithCode"];
63442
+ "application/json": components["schemas"]["RetrievePosSettings"];
63353
63443
  };
63354
63444
  };
63355
63445
  /** @description Bad Request */
@@ -63367,7 +63457,7 @@ export interface operations {
63367
63457
  [name: string]: unknown;
63368
63458
  };
63369
63459
  content: {
63370
- "application/json": components["schemas"]["MessageWithCode"];
63460
+ "application/json": components["schemas"]["MessageResponse"];
63371
63461
  };
63372
63462
  };
63373
63463
  /** @description Not Found */
@@ -63376,12 +63466,21 @@ export interface operations {
63376
63466
  [name: string]: unknown;
63377
63467
  };
63378
63468
  content: {
63379
- "application/json": components["schemas"]["MessageWithCode"];
63469
+ "application/json": components["schemas"]["MessageResponse"];
63470
+ };
63471
+ };
63472
+ /** @description Internal Server Error */
63473
+ 500: {
63474
+ headers: {
63475
+ [name: string]: unknown;
63476
+ };
63477
+ content: {
63478
+ "application/json": components["schemas"]["MessageResponse"];
63380
63479
  };
63381
63480
  };
63382
63481
  };
63383
63482
  };
63384
- erp_settings_pos_settings_views_update_pos_settings: {
63483
+ erp_settings_pos_settings_views_create_pos_settings: {
63385
63484
  parameters: {
63386
63485
  query?: never;
63387
63486
  header?: never;
@@ -63390,17 +63489,17 @@ export interface operations {
63390
63489
  };
63391
63490
  requestBody: {
63392
63491
  content: {
63393
- "application/json": components["schemas"]["PosSettingsPayload"];
63492
+ "application/json": components["schemas"]["CreateUpdatePosSettings"];
63394
63493
  };
63395
63494
  };
63396
63495
  responses: {
63397
- /** @description OK */
63398
- 200: {
63496
+ /** @description Created */
63497
+ 201: {
63399
63498
  headers: {
63400
63499
  [name: string]: unknown;
63401
63500
  };
63402
63501
  content: {
63403
- "application/json": components["schemas"]["MessageWithCode"];
63502
+ "application/json": components["schemas"]["RetrievePosSettings"];
63404
63503
  };
63405
63504
  };
63406
63505
  /** @description Bad Request */
@@ -63418,16 +63517,16 @@ export interface operations {
63418
63517
  [name: string]: unknown;
63419
63518
  };
63420
63519
  content: {
63421
- "application/json": components["schemas"]["MessageWithCode"];
63520
+ "application/json": components["schemas"]["MessageResponse"];
63422
63521
  };
63423
63522
  };
63424
- /** @description Not Found */
63425
- 404: {
63523
+ /** @description Internal Server Error */
63524
+ 500: {
63426
63525
  headers: {
63427
63526
  [name: string]: unknown;
63428
63527
  };
63429
63528
  content: {
63430
- "application/json": components["schemas"]["MessageWithCode"];
63529
+ "application/json": components["schemas"]["MessageResponse"];
63431
63530
  };
63432
63531
  };
63433
63532
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.586",
3
+ "version": "1.0.588",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],