@erp-galoper/main-package 1.0.6 → 1.0.8

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 +146 -162
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -138,13 +138,12 @@ export interface paths {
138
138
  * New Default Warehouse
139
139
  * @description Endpoint for create warehouse.
140
140
  * Possible Responses:
141
- * - 400: "Bad Request"
142
- * - "Invalid parameters"
143
- *
144
- * - 201: "Created"
145
- * - "Warehouse Created Successfully"
146
- * - 403: "Forbidden"
147
- * - "You do not have permission to perform this action"
141
+ * - 400: invalidParameters
142
+ * - Invalid parameters
143
+ * - 201: warehouseCreated
144
+ * - Warehouse Created Successfully
145
+ * - 403: Forbidden
146
+ * - You do not have permission to perform this action
148
147
  */
149
148
  post: operations["inventory_warehouse_views_new_default_warehouse"];
150
149
  };
@@ -181,13 +180,14 @@ export interface paths {
181
180
  * New Branch
182
181
  * @description Endpoint for create branch.
183
182
  * Possible Responses:
184
- * - 400: "Bad Request"
185
- * - "Invalid parameters"
186
- *
187
- * - 201: "Created"
188
- * - "Branch Created Successfully"
189
- * - 403: "Forbidden"
190
- * - "You do not have permission to perform this action"
183
+ * - 400: invalidParameters
184
+ * - Invalid parameters
185
+ * - 201: branchCreated
186
+ * - Branch Created Successfully
187
+ * - 403: Forbidden
188
+ * - You do not have permission to perform this action
189
+ * - 404: companyNotFound
190
+ * - Company not found
191
191
  */
192
192
  post: operations["company_views_new_branch"];
193
193
  };
@@ -196,14 +196,14 @@ export interface paths {
196
196
  * New Company
197
197
  * @description Endpoint for create company.
198
198
  * Possible Responses:
199
- * - 400: "Bad Request"
200
- * - "Invalid parameters"
201
- * - 201: "Created"
202
- * - "Company Created Successfully"
203
- * - 403: "Forbidden"
204
- * - "You do not have permission to perform this action"
205
- * - 404: "Not Found"
206
- * - "Image Path Not Found"
199
+ * - 400: invalidParameters
200
+ * - Invalid parameters
201
+ * - 201: companyCreated
202
+ * - Company Created Successfully
203
+ * - 403: Forbidden
204
+ * - You do not have permission to perform this action
205
+ * - 404: ImageNotFound
206
+ * - Image Path Not Found
207
207
  */
208
208
  post: operations["company_views_new_company"];
209
209
  };
@@ -212,12 +212,12 @@ export interface paths {
212
212
  * Get Company
213
213
  * @description Endpoint for retrieve company.
214
214
  * Possible Responses:
215
- * - 200: "Success"
216
- * - "Success"
217
- * - 404: "Not found"
218
- * - "Company not found"
219
- * - 403: "Forbidden"
220
- * - "You do not have permission to perform this action"
215
+ * - 200: Success
216
+ * - Success
217
+ * - 404: companyNotFound
218
+ * - Company not found
219
+ * - 403: Forbidden
220
+ * - You do not have permission to perform this action
221
221
  */
222
222
  get: operations["company_views_get_company"];
223
223
  /**
@@ -240,12 +240,12 @@ export interface paths {
240
240
  * Get Branch
241
241
  * @description Endpoint for retrieve branch.
242
242
  * Possible Responses:
243
- * - 200: "Success"
244
- * - "Success"
245
- * - 404: "Not found"
246
- * - "Branch not found"
247
- * - 403: "Forbidden"
248
- * - "You do not have permission to perform this action"
243
+ * - 200: Success
244
+ * - Success
245
+ * - 404: branchNotFound
246
+ * - Branch not found
247
+ * - 403: Forbidden
248
+ * - You do not have permission to perform this action
249
249
  */
250
250
  get: operations["company_views_get_branch"];
251
251
  /**
@@ -268,10 +268,8 @@ export interface paths {
268
268
  * Company Setup Steps
269
269
  * @description Endpoint for get onboarding steps.
270
270
  * Possible Responses:
271
- * - 200: "Success"
272
- * - "Success"
273
- * - 405: "Method not allowed"
274
- * - "Method not allowed"
271
+ * - 200: Success
272
+ * - Success
275
273
  */
276
274
  get: operations["company_views_company_setup_steps"];
277
275
  };
@@ -290,10 +288,8 @@ export interface paths {
290
288
  * Get Fiscal Year End Date
291
289
  * @description Endpoint for fetching fiscal year month end and fiscal year end day.
292
290
  * Possible Responses:
293
- * - 200: "Success"
294
- * - "Success"
295
- * - 422: "Error"
296
- * - "Unprocessable Entity"
291
+ * - 200: Success
292
+ * - Success"
297
293
  */
298
294
  get: operations["common_views_get_fiscal_year_end_date"];
299
295
  };
@@ -314,10 +310,10 @@ export interface paths {
314
310
  * Get Currency Code
315
311
  * @description Endpoint for to get currency code.
316
312
  * Possible Responses:
317
- * - 200: "Success"
318
- * - "Success"
319
- * - 404: "Not Found"
320
- * - "Not Found"
313
+ * - 200: Success
314
+ * - Success
315
+ * - 404: countryNotFound
316
+ * - Not Found
321
317
  */
322
318
  get: operations["common_views_get_currency_code"];
323
319
  };
@@ -326,12 +322,12 @@ export interface paths {
326
322
  * Get Galoper Setting
327
323
  * @description Endpoint for retreive galoper setting.
328
324
  * Possible Responses:
329
- * - 200: "Success"
330
- * - "Success"
331
- * - 404: "Not found"
332
- * - "Not found"
333
- * - 403: "Forbidden"
334
- * - "You do not have permission to perform this action"
325
+ * - 200: Success
326
+ * - Success
327
+ * - 404: galoperSettingNotFound
328
+ * - Galoper Settings not found
329
+ * - 403: Forbidden
330
+ * - You do not have permission to perform this action
335
331
  */
336
332
  get: operations["admin_panel_views_get_galoper_setting"];
337
333
  };
@@ -356,17 +352,16 @@ export interface paths {
356
352
  * Load Chart Of Account
357
353
  * @description Endpoint for create Chart of Account.
358
354
  * Possible Responses:
359
- * - 400: "Bad Request"
360
- * - "Invalid parameters"
355
+ * - 400: invalidParameters
356
+ * - Invalid parameters
361
357
  * - 200: "Success"
362
- * - "Success"
363
- * - 201: "Created"
364
- * - "Chart of Account Created Successfully"
365
- * - 403: "Forbidden"
366
- * - "You do not have permission to perform this action"
367
- * - 404: "Not Found"
368
- * - "Company Not Found"
369
- * - "Galoper Settings Not Found"
358
+ * - Success
359
+ * - 201: chartOfAccountCreatedSuccessfully
360
+ * - Chart of Account Created Successfully
361
+ * - 403: Forbidden
362
+ * - You do not have permission to perform this action
363
+ * - 404: galoperSettingNotFound / companyNotFound
364
+ * - Galoper Setting not found / Company not found
370
365
  */
371
366
  post: operations["admin_panel_views_load_chart_of_account"];
372
367
  };
@@ -375,14 +370,14 @@ export interface paths {
375
370
  * Load Settings
376
371
  * @description Endpoint for load settings.
377
372
  * Possible Responses:
378
- * - 400: "Bad Request"
379
- * - "Invalid parameters"
380
- * - 201: "Created"
381
- * - "Settings Loaded Successfully"
382
- * - 403: "Forbidden"
383
- * - "You do not have permission to perform this action"
384
- * -404: "Not Found"
385
- * - "message" : "Incompatible Country""
373
+ * - 400: invalidParameters
374
+ * - Invalid parameters
375
+ * - 201: settingsCraeted
376
+ * - Settings Created Successfully
377
+ * - 403: Forbidden
378
+ * - You do not have permission to perform this action
379
+ * - 404: companyNotFound
380
+ * - Company not Found
386
381
  */
387
382
  post: operations["erp_settings_views_load_settings"];
388
383
  };
@@ -545,14 +540,8 @@ export interface components {
545
540
  MessageResponse: {
546
541
  /** Message */
547
542
  message: string;
548
- [key: string]: unknown;
549
- };
550
- /** ObjectResponse */
551
- ObjectResponse: {
552
- /** Message */
553
- message: string;
554
- /** Error */
555
- error: string;
543
+ /** Code */
544
+ code: unknown[];
556
545
  [key: string]: unknown;
557
546
  };
558
547
  /** WarehouseSchema */
@@ -816,14 +805,6 @@ export interface components {
816
805
  type: string;
817
806
  [key: string]: unknown;
818
807
  };
819
- /** GeneralResponse */
820
- GeneralResponse: {
821
- /** Message */
822
- message: string;
823
- /** Code */
824
- code: unknown[];
825
- [key: string]: unknown;
826
- };
827
808
  /** currencyCodeOut */
828
809
  currencyCodeOut: {
829
810
  /** Currencycode */
@@ -1280,13 +1261,12 @@ export interface operations {
1280
1261
  * New Default Warehouse
1281
1262
  * @description Endpoint for create warehouse.
1282
1263
  * Possible Responses:
1283
- * - 400: "Bad Request"
1284
- * - "Invalid parameters"
1285
- *
1286
- * - 201: "Created"
1287
- * - "Warehouse Created Successfully"
1288
- * - 403: "Forbidden"
1289
- * - "You do not have permission to perform this action"
1264
+ * - 400: invalidParameters
1265
+ * - Invalid parameters
1266
+ * - 201: warehouseCreated
1267
+ * - Warehouse Created Successfully
1268
+ * - 403: Forbidden
1269
+ * - You do not have permission to perform this action
1290
1270
  */
1291
1271
  inventory_warehouse_views_new_default_warehouse: {
1292
1272
  requestBody: {
@@ -1304,7 +1284,7 @@ export interface operations {
1304
1284
  /** @description Bad Request */
1305
1285
  400: {
1306
1286
  content: {
1307
- "application/json": components["schemas"]["ObjectResponse"];
1287
+ "application/json": components["schemas"]["MessageResponse"];
1308
1288
  };
1309
1289
  };
1310
1290
  /** @description Forbidden */
@@ -1408,13 +1388,14 @@ export interface operations {
1408
1388
  * New Branch
1409
1389
  * @description Endpoint for create branch.
1410
1390
  * Possible Responses:
1411
- * - 400: "Bad Request"
1412
- * - "Invalid parameters"
1413
- *
1414
- * - 201: "Created"
1415
- * - "Branch Created Successfully"
1416
- * - 403: "Forbidden"
1417
- * - "You do not have permission to perform this action"
1391
+ * - 400: invalidParameters
1392
+ * - Invalid parameters
1393
+ * - 201: branchCreated
1394
+ * - Branch Created Successfully
1395
+ * - 403: Forbidden
1396
+ * - You do not have permission to perform this action
1397
+ * - 404: companyNotFound
1398
+ * - Company not found
1418
1399
  */
1419
1400
  company_views_new_branch: {
1420
1401
  requestBody: {
@@ -1432,7 +1413,7 @@ export interface operations {
1432
1413
  /** @description Bad Request */
1433
1414
  400: {
1434
1415
  content: {
1435
- "application/json": components["schemas"]["ObjectResponse"];
1416
+ "application/json": components["schemas"]["MessageResponse"];
1436
1417
  };
1437
1418
  };
1438
1419
  /** @description Forbidden */
@@ -1453,14 +1434,14 @@ export interface operations {
1453
1434
  * New Company
1454
1435
  * @description Endpoint for create company.
1455
1436
  * Possible Responses:
1456
- * - 400: "Bad Request"
1457
- * - "Invalid parameters"
1458
- * - 201: "Created"
1459
- * - "Company Created Successfully"
1460
- * - 403: "Forbidden"
1461
- * - "You do not have permission to perform this action"
1462
- * - 404: "Not Found"
1463
- * - "Image Path Not Found"
1437
+ * - 400: invalidParameters
1438
+ * - Invalid parameters
1439
+ * - 201: companyCreated
1440
+ * - Company Created Successfully
1441
+ * - 403: Forbidden
1442
+ * - You do not have permission to perform this action
1443
+ * - 404: ImageNotFound
1444
+ * - Image Path Not Found
1464
1445
  */
1465
1446
  company_views_new_company: {
1466
1447
  requestBody: {
@@ -1478,7 +1459,7 @@ export interface operations {
1478
1459
  /** @description Bad Request */
1479
1460
  400: {
1480
1461
  content: {
1481
- "application/json": components["schemas"]["ObjectResponse"];
1462
+ "application/json": components["schemas"]["MessageResponse"];
1482
1463
  };
1483
1464
  };
1484
1465
  /** @description Forbidden */
@@ -1499,12 +1480,12 @@ export interface operations {
1499
1480
  * Get Company
1500
1481
  * @description Endpoint for retrieve company.
1501
1482
  * Possible Responses:
1502
- * - 200: "Success"
1503
- * - "Success"
1504
- * - 404: "Not found"
1505
- * - "Company not found"
1506
- * - 403: "Forbidden"
1507
- * - "You do not have permission to perform this action"
1483
+ * - 200: Success
1484
+ * - Success
1485
+ * - 404: companyNotFound
1486
+ * - Company not found
1487
+ * - 403: Forbidden
1488
+ * - You do not have permission to perform this action
1508
1489
  */
1509
1490
  company_views_get_company: {
1510
1491
  parameters: {
@@ -1588,12 +1569,12 @@ export interface operations {
1588
1569
  * Get Branch
1589
1570
  * @description Endpoint for retrieve branch.
1590
1571
  * Possible Responses:
1591
- * - 200: "Success"
1592
- * - "Success"
1593
- * - 404: "Not found"
1594
- * - "Branch not found"
1595
- * - 403: "Forbidden"
1596
- * - "You do not have permission to perform this action"
1572
+ * - 200: Success
1573
+ * - Success
1574
+ * - 404: branchNotFound
1575
+ * - Branch not found
1576
+ * - 403: Forbidden
1577
+ * - You do not have permission to perform this action
1597
1578
  */
1598
1579
  company_views_get_branch: {
1599
1580
  parameters: {
@@ -1677,10 +1658,8 @@ export interface operations {
1677
1658
  * Company Setup Steps
1678
1659
  * @description Endpoint for get onboarding steps.
1679
1660
  * Possible Responses:
1680
- * - 200: "Success"
1681
- * - "Success"
1682
- * - 405: "Method not allowed"
1683
- * - "Method not allowed"
1661
+ * - 200: Success
1662
+ * - Success
1684
1663
  */
1685
1664
  company_views_company_setup_steps: {
1686
1665
  responses: {
@@ -1719,10 +1698,8 @@ export interface operations {
1719
1698
  * Get Fiscal Year End Date
1720
1699
  * @description Endpoint for fetching fiscal year month end and fiscal year end day.
1721
1700
  * Possible Responses:
1722
- * - 200: "Success"
1723
- * - "Success"
1724
- * - 422: "Error"
1725
- * - "Unprocessable Entity"
1701
+ * - 200: Success
1702
+ * - Success"
1726
1703
  */
1727
1704
  common_views_get_fiscal_year_end_date: {
1728
1705
  parameters: {
@@ -1782,10 +1759,10 @@ export interface operations {
1782
1759
  * Get Currency Code
1783
1760
  * @description Endpoint for to get currency code.
1784
1761
  * Possible Responses:
1785
- * - 200: "Success"
1786
- * - "Success"
1787
- * - 404: "Not Found"
1788
- * - "Not Found"
1762
+ * - 200: Success
1763
+ * - Success
1764
+ * - 404: countryNotFound
1765
+ * - Not Found
1789
1766
  */
1790
1767
  common_views_get_currency_code: {
1791
1768
  parameters: {
@@ -1803,7 +1780,7 @@ export interface operations {
1803
1780
  /** @description Not Found */
1804
1781
  404: {
1805
1782
  content: {
1806
- "application/json": components["schemas"]["GeneralResponse"];
1783
+ "application/json": components["schemas"]["MessageResponse"];
1807
1784
  };
1808
1785
  };
1809
1786
  };
@@ -1812,12 +1789,12 @@ export interface operations {
1812
1789
  * Get Galoper Setting
1813
1790
  * @description Endpoint for retreive galoper setting.
1814
1791
  * Possible Responses:
1815
- * - 200: "Success"
1816
- * - "Success"
1817
- * - 404: "Not found"
1818
- * - "Not found"
1819
- * - 403: "Forbidden"
1820
- * - "You do not have permission to perform this action"
1792
+ * - 200: Success
1793
+ * - Success
1794
+ * - 404: galoperSettingNotFound
1795
+ * - Galoper Settings not found
1796
+ * - 403: Forbidden
1797
+ * - You do not have permission to perform this action
1821
1798
  */
1822
1799
  admin_panel_views_get_galoper_setting: {
1823
1800
  responses: {
@@ -1896,17 +1873,16 @@ export interface operations {
1896
1873
  * Load Chart Of Account
1897
1874
  * @description Endpoint for create Chart of Account.
1898
1875
  * Possible Responses:
1899
- * - 400: "Bad Request"
1900
- * - "Invalid parameters"
1876
+ * - 400: invalidParameters
1877
+ * - Invalid parameters
1901
1878
  * - 200: "Success"
1902
- * - "Success"
1903
- * - 201: "Created"
1904
- * - "Chart of Account Created Successfully"
1905
- * - 403: "Forbidden"
1906
- * - "You do not have permission to perform this action"
1907
- * - 404: "Not Found"
1908
- * - "Company Not Found"
1909
- * - "Galoper Settings Not Found"
1879
+ * - Success
1880
+ * - 201: chartOfAccountCreatedSuccessfully
1881
+ * - Chart of Account Created Successfully
1882
+ * - 403: Forbidden
1883
+ * - You do not have permission to perform this action
1884
+ * - 404: galoperSettingNotFound / companyNotFound
1885
+ * - Galoper Setting not found / Company not found
1910
1886
  */
1911
1887
  admin_panel_views_load_chart_of_account: {
1912
1888
  requestBody: {
@@ -1951,14 +1927,14 @@ export interface operations {
1951
1927
  * Load Settings
1952
1928
  * @description Endpoint for load settings.
1953
1929
  * Possible Responses:
1954
- * - 400: "Bad Request"
1955
- * - "Invalid parameters"
1956
- * - 201: "Created"
1957
- * - "Settings Loaded Successfully"
1958
- * - 403: "Forbidden"
1959
- * - "You do not have permission to perform this action"
1960
- * -404: "Not Found"
1961
- * - "message" : "Incompatible Country""
1930
+ * - 400: invalidParameters
1931
+ * - Invalid parameters
1932
+ * - 201: settingsCraeted
1933
+ * - Settings Created Successfully
1934
+ * - 403: Forbidden
1935
+ * - You do not have permission to perform this action
1936
+ * - 404: companyNotFound
1937
+ * - Company not Found
1962
1938
  */
1963
1939
  erp_settings_views_load_settings: {
1964
1940
  requestBody: {
@@ -1976,7 +1952,7 @@ export interface operations {
1976
1952
  /** @description Bad Request */
1977
1953
  400: {
1978
1954
  content: {
1979
- "application/json": components["schemas"]["ObjectResponse"];
1955
+ "application/json": components["schemas"]["MessageResponse"];
1980
1956
  };
1981
1957
  };
1982
1958
  /** @description Forbidden */
@@ -1998,7 +1974,15 @@ export interface operations {
1998
1974
  responses: {
1999
1975
  /** @description OK */
2000
1976
  200: {
2001
- content: never;
1977
+ content: {
1978
+ "application/json": unknown[];
1979
+ };
1980
+ };
1981
+ /** @description Not Found */
1982
+ 404: {
1983
+ content: {
1984
+ "application/json": components["schemas"]["MessageResponse"];
1985
+ };
2002
1986
  };
2003
1987
  };
2004
1988
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "openapi.ts"
5
5
  }