@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.
- package/openapi.ts +146 -162
- 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:
|
142
|
-
* -
|
143
|
-
*
|
144
|
-
*
|
145
|
-
*
|
146
|
-
*
|
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:
|
185
|
-
* -
|
186
|
-
*
|
187
|
-
*
|
188
|
-
*
|
189
|
-
*
|
190
|
-
*
|
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:
|
200
|
-
* -
|
201
|
-
* - 201:
|
202
|
-
* -
|
203
|
-
* - 403:
|
204
|
-
* -
|
205
|
-
* - 404:
|
206
|
-
* -
|
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:
|
216
|
-
* -
|
217
|
-
* - 404:
|
218
|
-
* -
|
219
|
-
* - 403:
|
220
|
-
* -
|
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:
|
244
|
-
* -
|
245
|
-
* - 404:
|
246
|
-
* -
|
247
|
-
* - 403:
|
248
|
-
* -
|
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:
|
272
|
-
* -
|
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:
|
294
|
-
* -
|
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:
|
318
|
-
* -
|
319
|
-
* - 404:
|
320
|
-
* -
|
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:
|
330
|
-
* -
|
331
|
-
* - 404:
|
332
|
-
* -
|
333
|
-
* - 403:
|
334
|
-
* -
|
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:
|
360
|
-
* -
|
355
|
+
* - 400: invalidParameters
|
356
|
+
* - Invalid parameters
|
361
357
|
* - 200: "Success"
|
362
|
-
* -
|
363
|
-
* - 201:
|
364
|
-
* -
|
365
|
-
* - 403:
|
366
|
-
* -
|
367
|
-
* - 404:
|
368
|
-
* -
|
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:
|
379
|
-
* -
|
380
|
-
* - 201:
|
381
|
-
* -
|
382
|
-
* - 403:
|
383
|
-
* -
|
384
|
-
* -404:
|
385
|
-
* -
|
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
|
-
|
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:
|
1284
|
-
* -
|
1285
|
-
*
|
1286
|
-
*
|
1287
|
-
*
|
1288
|
-
*
|
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"]["
|
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:
|
1412
|
-
* -
|
1413
|
-
*
|
1414
|
-
*
|
1415
|
-
*
|
1416
|
-
*
|
1417
|
-
*
|
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"]["
|
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:
|
1457
|
-
* -
|
1458
|
-
* - 201:
|
1459
|
-
* -
|
1460
|
-
* - 403:
|
1461
|
-
* -
|
1462
|
-
* - 404:
|
1463
|
-
* -
|
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"]["
|
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:
|
1503
|
-
* -
|
1504
|
-
* - 404:
|
1505
|
-
* -
|
1506
|
-
* - 403:
|
1507
|
-
* -
|
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:
|
1592
|
-
* -
|
1593
|
-
* - 404:
|
1594
|
-
* -
|
1595
|
-
* - 403:
|
1596
|
-
* -
|
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:
|
1681
|
-
* -
|
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:
|
1723
|
-
* -
|
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:
|
1786
|
-
* -
|
1787
|
-
* - 404:
|
1788
|
-
* -
|
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"]["
|
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:
|
1816
|
-
* -
|
1817
|
-
* - 404:
|
1818
|
-
* -
|
1819
|
-
* - 403:
|
1820
|
-
* -
|
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:
|
1900
|
-
* -
|
1876
|
+
* - 400: invalidParameters
|
1877
|
+
* - Invalid parameters
|
1901
1878
|
* - 200: "Success"
|
1902
|
-
* -
|
1903
|
-
* - 201:
|
1904
|
-
* -
|
1905
|
-
* - 403:
|
1906
|
-
* -
|
1907
|
-
* - 404:
|
1908
|
-
* -
|
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:
|
1955
|
-
* -
|
1956
|
-
* - 201:
|
1957
|
-
* -
|
1958
|
-
* - 403:
|
1959
|
-
* -
|
1960
|
-
* -404:
|
1961
|
-
* -
|
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"]["
|
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:
|
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