@erp-galoper/main-package 1.0.1 → 1.0.3

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 +1162 -14
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -148,20 +148,236 @@ export interface paths {
148
148
  */
149
149
  post: operations["inventory_warehouse_views_new_default_warehouse"];
150
150
  };
151
- "/api/v1/admin_panel/": {
151
+ "/api/v1/inventory/warehouse/{id}/": {
152
152
  /**
153
- * Get Galoper Setting
153
+ * Get Warehouse
154
+ * @description Endpoint for retrieve warehouse.
155
+ * Possible Responses:
156
+ * - 200: Success
157
+ * - Success
158
+ * - 404: warehouseNotfound
159
+ * - Warehouse not found
160
+ * - 403: Forbidden
161
+ * - You do not have permission to perform this action
162
+ */
163
+ get: operations["inventory_warehouse_views_get_warehouse"];
164
+ /**
165
+ * Update Warehouse
166
+ * @description Endpoint for edit warehouse.
167
+ * Possible Responses:
168
+ * - 400: invalidParameters
169
+ * - Invalid parameters
170
+ * - 404: warehouseNotFound
171
+ * - Warehouse not found
172
+ * - 200: warehouseUpdated
173
+ * - Warehouse updated successfully
174
+ * - 403: Forbidden
175
+ * - You do not have permission to perform this action
176
+ */
177
+ patch: operations["inventory_warehouse_views_update_warehouse"];
178
+ };
179
+ "/api/v1/company/branch/": {
180
+ /**
181
+ * New Branch
182
+ * @description Endpoint for create branch.
183
+ * 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"
191
+ */
192
+ post: operations["company_views_new_branch"];
193
+ };
194
+ "/api/v1/company/": {
195
+ /**
196
+ * New Company
154
197
  * @description Endpoint for create company.
155
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"
207
+ */
208
+ post: operations["company_views_new_company"];
209
+ };
210
+ "/api/v1/company/{id}/": {
211
+ /**
212
+ * Get Company
213
+ * @description Endpoint for retrieve company.
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"
221
+ */
222
+ get: operations["company_views_get_company"];
223
+ /**
224
+ * Update Company
225
+ * @description Endpoint for update company.
226
+ * Possible Responses:
227
+ * - 400: invalidParameters
228
+ * - Invalid parameters
229
+ * - 200: companyUpdated
230
+ * - Company updated successfully
231
+ * - 403: Forbidden
232
+ * - You do not have permission to perform this action
233
+ * -404: companynotFound / currencyNotFound / imageNotFound
234
+ * - Company not found / Currency not found / Image path not found
235
+ */
236
+ patch: operations["company_views_update_company"];
237
+ };
238
+ "/api/v1/company/branch/{id}/": {
239
+ /**
240
+ * Get Branch
241
+ * @description Endpoint for retrieve branch.
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"
249
+ */
250
+ get: operations["company_views_get_branch"];
251
+ /**
252
+ * Update Branch
253
+ * @description Endpoint for update branch.
254
+ * Possible Responses:
255
+ * - 400: invalidParameters
256
+ * - Invalid parameters
257
+ * - 200: branchCreated
258
+ * - Branch created successfully
259
+ * - 403: Forbidden
260
+ * - "You do not have permission to perform this action"
261
+ * -404: branchNotFound
262
+ * - Branch not found
263
+ */
264
+ patch: operations["company_views_update_branch"];
265
+ };
266
+ "/api/v1/company/find_steps/": {
267
+ /**
268
+ * Company Setup Steps
269
+ * @description Endpoint for get onboarding steps.
270
+ * Possible Responses:
271
+ * - 200: "Success"
272
+ * - "Success"
273
+ * - 405: "Method not allowed"
274
+ * - "Method not allowed"
275
+ */
276
+ get: operations["company_views_company_setup_steps"];
277
+ };
278
+ "/api/v1/chartofaccount/chart_of_account_options/": {
279
+ /**
280
+ * Get Chart Of Account Options
281
+ * @description Endpoint for load Chart of Account Options.
282
+ * Possible Responses:
283
+ * - 200: "Success"
284
+ * - "Success"
285
+ */
286
+ get: operations["accounting_chartofaccount_views_get_chart_of_account_options"];
287
+ };
288
+ "/api/v1/common/get_fiscal_year_end_date/": {
289
+ /**
290
+ * Get Fiscal Year End Date
291
+ * @description Endpoint for fetching fiscal year month end and fiscal year end day.
292
+ * Possible Responses:
293
+ * - 200: "Success"
294
+ * - "Success"
295
+ * - 422: "Error"
296
+ * - "Unprocessable Entity"
297
+ */
298
+ get: operations["common_views_get_fiscal_year_end_date"];
299
+ };
300
+ "/api/v1/common/upload": {
301
+ /** Upload Image */
302
+ post: operations["common_views_upload_image"];
303
+ };
304
+ "/api/v1/common/get_currency_code/": {
305
+ /**
306
+ * Get Currency Code
307
+ * @description Endpoint for to get currency code.
308
+ * Possible Responses:
156
309
  * - 200: "Success"
157
310
  * - "Success"
158
311
  * - 404: "Not Found"
159
312
  * - "Not Found"
313
+ */
314
+ get: operations["common_views_get_currency_code"];
315
+ };
316
+ "/api/v1/admin_panel/": {
317
+ /**
318
+ * Get Galoper Setting
319
+ * @description Endpoint for retreive galoper setting.
320
+ * Possible Responses:
321
+ * - 200: "Success"
322
+ * - "Success"
323
+ * - 404: "Not found"
324
+ * - "Not found"
160
325
  * - 403: "Forbidden"
161
326
  * - "You do not have permission to perform this action"
162
327
  */
163
328
  get: operations["admin_panel_views_get_galoper_setting"];
164
329
  };
330
+ "/api/v1/admin_panel/edit_chart_of_account/{id}/": {
331
+ /**
332
+ * Update Load Chart Of Account
333
+ * @description Endpoint for edit load chart of account.
334
+ * Possible Responses:
335
+ * - 400: invalidParameters
336
+ * - Invalid parameters
337
+ * - 404: galoperSettingNotFound / companyNotFound
338
+ * - Galoper Setting not found / Company not found
339
+ * - 200: Success
340
+ * - Success
341
+ * - 403: Forbidden
342
+ * - You do not have permission to perform this action
343
+ */
344
+ patch: operations["admin_panel_views_update_load_chart_of_account"];
345
+ };
346
+ "/api/v1/admin_panel/load_chart_of_account/": {
347
+ /**
348
+ * Load Chart Of Account
349
+ * @description Endpoint for create Chart of Account.
350
+ * Possible Responses:
351
+ * - 400: "Bad Request"
352
+ * - "Invalid parameters"
353
+ * - 200: "Success"
354
+ * - "Success"
355
+ * - 201: "Created"
356
+ * - "Chart of Account Created Successfully"
357
+ * - 403: "Forbidden"
358
+ * - "You do not have permission to perform this action"
359
+ * - 404: "Not Found"
360
+ * - "Company Not Found"
361
+ * - "Galoper Settings Not Found"
362
+ */
363
+ post: operations["admin_panel_views_load_chart_of_account"];
364
+ };
365
+ "/api/v1/settings/load": {
366
+ /**
367
+ * Load Settings
368
+ * @description Endpoint for load settings.
369
+ * Possible Responses:
370
+ * - 400: "Bad Request"
371
+ * - "Invalid parameters"
372
+ * - 201: "Created"
373
+ * - "Settings Loaded Successfully"
374
+ * - 403: "Forbidden"
375
+ * - "You do not have permission to perform this action"
376
+ * -404: "Not Found"
377
+ * - "message" : "Incompatible Country""
378
+ */
379
+ post: operations["erp_settings_views_load_settings"];
380
+ };
165
381
  "/api/v1/settings/get_settings/": {
166
382
  /** Get Settings Options */
167
383
  get: operations["erp_settings_views_get_settings_options"];
@@ -343,8 +559,275 @@ export interface components {
343
559
  address: string;
344
560
  [key: string]: unknown;
345
561
  };
346
- /** GaloperSettingSchemaList */
347
- GaloperSettingSchemaList: {
562
+ /** UpdateWarehouse */
563
+ UpdateWarehouse: {
564
+ /** Name */
565
+ name?: string | null;
566
+ /** Country */
567
+ country?: string | null;
568
+ /** City */
569
+ city?: string | null;
570
+ /** Address */
571
+ address?: string | null;
572
+ [key: string]: unknown;
573
+ };
574
+ /** RetrieveWarehouse */
575
+ RetrieveWarehouse: {
576
+ /** Id */
577
+ id: number;
578
+ /** Name */
579
+ name: string;
580
+ /** Country */
581
+ country: string;
582
+ /** City */
583
+ city: string;
584
+ /** Address */
585
+ address: string;
586
+ [key: string]: unknown;
587
+ };
588
+ /** BranchSchema */
589
+ BranchSchema: {
590
+ /** Name */
591
+ name: string;
592
+ /** Code */
593
+ code?: string | null;
594
+ /**
595
+ * Startdate
596
+ * Format: date
597
+ */
598
+ startDate: string;
599
+ /** Phone1 */
600
+ phone1: string;
601
+ /** Phone2 */
602
+ phone2?: string | null;
603
+ /** City */
604
+ city: string;
605
+ /** Address */
606
+ address: string;
607
+ [key: string]: unknown;
608
+ };
609
+ /** CompanySchema */
610
+ CompanySchema: {
611
+ /** Name */
612
+ name: string;
613
+ /** Currency */
614
+ currency: string;
615
+ /** Vat */
616
+ vat: boolean;
617
+ /**
618
+ * Startdate
619
+ * Format: date
620
+ */
621
+ startDate: string;
622
+ /** Vatdate */
623
+ vatDate: string | null;
624
+ /** Mof */
625
+ mof: string;
626
+ /**
627
+ * Email
628
+ * Format: email
629
+ */
630
+ email: string;
631
+ /** Fiscalyeardaystart */
632
+ fiscalYearDayStart: number;
633
+ /** Fiscalyeardayend */
634
+ fiscalYearDayEnd: number;
635
+ /** Fiscalyearmonthstart */
636
+ fiscalYearMonthStart: number;
637
+ /** Fiscalyearmonthend */
638
+ fiscalYearMonthEnd: number;
639
+ /** Phone1 */
640
+ phone1: string;
641
+ /** Phone2 */
642
+ phone2?: string | null;
643
+ /** Fax */
644
+ fax?: string | null;
645
+ /** Country */
646
+ country: string;
647
+ /** Postalcode */
648
+ postalcode?: string | null;
649
+ /** City */
650
+ city: string;
651
+ /** Address */
652
+ address: string;
653
+ /** Website */
654
+ website?: string | null;
655
+ /** Image */
656
+ image: string;
657
+ [key: string]: unknown;
658
+ };
659
+ /** UpdateCompany */
660
+ UpdateCompany: {
661
+ /** Name */
662
+ name?: string | null;
663
+ /** Vat */
664
+ vat?: boolean | null;
665
+ /** Startdate */
666
+ startDate?: string | null;
667
+ /** Vatdate */
668
+ vatDate?: string | null;
669
+ /** Mof */
670
+ mof?: string | null;
671
+ /** Email */
672
+ email?: string | null;
673
+ /** Phone1 */
674
+ phone1?: string | null;
675
+ /** Phone2 */
676
+ phone2?: string | null;
677
+ /** Fax */
678
+ fax?: string | null;
679
+ /** Postalcode */
680
+ postalcode?: string | null;
681
+ /** City */
682
+ city?: string | null;
683
+ /** Address */
684
+ address?: string | null;
685
+ /** Website */
686
+ website?: string | null;
687
+ /** Image */
688
+ image?: string | null;
689
+ /** Currency */
690
+ currency?: string | null;
691
+ /** Country */
692
+ country?: string | null;
693
+ [key: string]: unknown;
694
+ };
695
+ /** CurrencyName */
696
+ CurrencyName: {
697
+ /** Name */
698
+ name: string;
699
+ [key: string]: unknown;
700
+ };
701
+ /** RetrieveCompany */
702
+ RetrieveCompany: {
703
+ /** Id */
704
+ id: number;
705
+ /** Name */
706
+ name: string;
707
+ currency: components["schemas"]["CurrencyName"];
708
+ /** Vat */
709
+ vat: boolean;
710
+ /**
711
+ * Startdate
712
+ * Format: date
713
+ */
714
+ startDate: string;
715
+ /**
716
+ * Vatdate
717
+ * Format: date
718
+ */
719
+ vatDate?: string;
720
+ /** Mof */
721
+ mof: string;
722
+ /** Email */
723
+ email: string;
724
+ /** Fiscalyeardaystart */
725
+ fiscalYearDayStart: number;
726
+ /** Fiscalyeardayend */
727
+ fiscalYearDayEnd: number;
728
+ /** Fiscalyearmonthstart */
729
+ fiscalYearMonthStart: number;
730
+ /** Fiscalyearmonthend */
731
+ fiscalYearMonthEnd: number;
732
+ /** Phone1 */
733
+ phone1: string;
734
+ /** Phone2 */
735
+ phone2?: string | null;
736
+ /** Fax */
737
+ fax?: string | null;
738
+ /** Country */
739
+ country: string;
740
+ /** Postalcode */
741
+ postalcode?: string | null;
742
+ /** City */
743
+ city: string;
744
+ /** Address */
745
+ address: string;
746
+ /** Website */
747
+ website?: string | null;
748
+ /** Image */
749
+ image: string;
750
+ [key: string]: unknown;
751
+ };
752
+ /** UpdateBranch */
753
+ UpdateBranch: {
754
+ /** Name */
755
+ name?: string | null;
756
+ /** Code */
757
+ code?: string | null;
758
+ /** Startdate */
759
+ startDate?: string | null;
760
+ /** Phone1 */
761
+ phone1?: string | null;
762
+ /** Phone2 */
763
+ phone2?: string | null;
764
+ /** City */
765
+ city?: string | null;
766
+ /** Address */
767
+ address?: string | null;
768
+ [key: string]: unknown;
769
+ };
770
+ /** RetrieveBranch */
771
+ RetrieveBranch: {
772
+ /** Id */
773
+ id: number;
774
+ /** Name */
775
+ name: string;
776
+ /** Code */
777
+ code?: string | null;
778
+ /**
779
+ * Startdate
780
+ * Format: date
781
+ */
782
+ startDate: string;
783
+ /** Phone1 */
784
+ phone1: string;
785
+ /** Phone2 */
786
+ phone2?: string | null;
787
+ /** City */
788
+ city: string;
789
+ /** Address */
790
+ address: string;
791
+ [key: string]: unknown;
792
+ };
793
+ /** ChartOfAccountOptions */
794
+ ChartOfAccountOptions: {
795
+ /** Label */
796
+ label: string;
797
+ [key: string]: unknown;
798
+ };
799
+ /** FiscalYearCalculationOut */
800
+ FiscalYearCalculationOut: {
801
+ /** Fiscalyearmonthend */
802
+ fiscalYearMonthEnd: number;
803
+ /** Fiscalyeardayend */
804
+ fiscalYearDayEnd: number;
805
+ [key: string]: unknown;
806
+ };
807
+ /** ImageSchema */
808
+ ImageSchema: {
809
+ /** Type */
810
+ type: string;
811
+ [key: string]: unknown;
812
+ };
813
+ /** GeneralResponse */
814
+ GeneralResponse: {
815
+ /** Message */
816
+ message: string;
817
+ /** Code */
818
+ code: unknown[];
819
+ [key: string]: unknown;
820
+ };
821
+ /** currencyCodeOut */
822
+ currencyCodeOut: {
823
+ /** Currencycode */
824
+ currencyCode: string;
825
+ [key: string]: unknown;
826
+ };
827
+ /** RetrieveGaloperSetting */
828
+ RetrieveGaloperSetting: {
829
+ /** Id */
830
+ id: number;
348
831
  /** Accounting */
349
832
  accounting: boolean;
350
833
  /** Purchase */
@@ -367,6 +850,34 @@ export interface components {
367
850
  bank: boolean;
368
851
  [key: string]: unknown;
369
852
  };
853
+ /** GaloperSettingChart */
854
+ GaloperSettingChart: {
855
+ /** Value */
856
+ value: string;
857
+ /** Load Chart Of Account */
858
+ load_chart_of_account: string | null;
859
+ [key: string]: unknown;
860
+ };
861
+ /** LoadSettingsSchema */
862
+ LoadSettingsSchema: {
863
+ /** Companysetting */
864
+ companySetting: boolean;
865
+ /** Customersetting */
866
+ customerSetting: boolean;
867
+ /** Inventorysetting */
868
+ inventorySetting: boolean;
869
+ /** Accountingsetting */
870
+ accountingSetting: boolean;
871
+ /** Salessetting */
872
+ salesSetting: boolean;
873
+ /** Paymentmethod */
874
+ paymentMethod: boolean;
875
+ /** Appointmentsetting */
876
+ appointmentSetting: boolean;
877
+ /** Primarycurrency */
878
+ primaryCurrency: boolean;
879
+ [key: string]: unknown;
880
+ };
370
881
  };
371
882
  responses: never;
372
883
  parameters: never;
@@ -799,22 +1310,659 @@ export interface operations {
799
1310
  };
800
1311
  };
801
1312
  /**
802
- * Get Galoper Setting
803
- * @description Endpoint for create company.
1313
+ * Get Warehouse
1314
+ * @description Endpoint for retrieve warehouse.
804
1315
  * Possible Responses:
805
- * - 200: "Success"
806
- * - "Success"
807
- * - 404: "Not Found"
808
- * - "Not Found"
809
- * - 403: "Forbidden"
810
- * - "You do not have permission to perform this action"
1316
+ * - 200: Success
1317
+ * - Success
1318
+ * - 404: warehouseNotfound
1319
+ * - Warehouse not found
1320
+ * - 403: Forbidden
1321
+ * - You do not have permission to perform this action
811
1322
  */
812
- admin_panel_views_get_galoper_setting: {
1323
+ inventory_warehouse_views_get_warehouse: {
1324
+ parameters: {
1325
+ path: {
1326
+ id: number;
1327
+ };
1328
+ };
1329
+ responses: {
1330
+ /** @description OK */
1331
+ 200: {
1332
+ content: {
1333
+ "application/json": components["schemas"]["RetrieveWarehouse"];
1334
+ };
1335
+ };
1336
+ /** @description Forbidden */
1337
+ 403: {
1338
+ content: {
1339
+ "application/json": components["schemas"]["MessageResponse"];
1340
+ };
1341
+ };
1342
+ /** @description Not Found */
1343
+ 404: {
1344
+ content: {
1345
+ "application/json": components["schemas"]["MessageResponse"];
1346
+ };
1347
+ };
1348
+ };
1349
+ };
1350
+ /**
1351
+ * Update Warehouse
1352
+ * @description Endpoint for edit warehouse.
1353
+ * Possible Responses:
1354
+ * - 400: invalidParameters
1355
+ * - Invalid parameters
1356
+ * - 404: warehouseNotFound
1357
+ * - Warehouse not found
1358
+ * - 200: warehouseUpdated
1359
+ * - Warehouse updated successfully
1360
+ * - 403: Forbidden
1361
+ * - You do not have permission to perform this action
1362
+ */
1363
+ inventory_warehouse_views_update_warehouse: {
1364
+ parameters: {
1365
+ path: {
1366
+ id: number;
1367
+ };
1368
+ };
1369
+ requestBody: {
1370
+ content: {
1371
+ "application/json": components["schemas"]["UpdateWarehouse"];
1372
+ };
1373
+ };
813
1374
  responses: {
814
1375
  /** @description OK */
815
1376
  200: {
816
1377
  content: {
817
- "application/json": components["schemas"]["GaloperSettingSchemaList"];
1378
+ "application/json": components["schemas"]["MessageResponse"];
1379
+ };
1380
+ };
1381
+ /** @description Bad Request */
1382
+ 400: {
1383
+ content: {
1384
+ "application/json": components["schemas"]["MessageResponse"];
1385
+ };
1386
+ };
1387
+ /** @description Forbidden */
1388
+ 403: {
1389
+ content: {
1390
+ "application/json": components["schemas"]["MessageResponse"];
1391
+ };
1392
+ };
1393
+ /** @description Not Found */
1394
+ 404: {
1395
+ content: {
1396
+ "application/json": components["schemas"]["MessageResponse"];
1397
+ };
1398
+ };
1399
+ };
1400
+ };
1401
+ /**
1402
+ * New Branch
1403
+ * @description Endpoint for create branch.
1404
+ * Possible Responses:
1405
+ * - 400: "Bad Request"
1406
+ * - "Invalid parameters"
1407
+ *
1408
+ * - 201: "Created"
1409
+ * - "Branch Created Successfully"
1410
+ * - 403: "Forbidden"
1411
+ * - "You do not have permission to perform this action"
1412
+ */
1413
+ company_views_new_branch: {
1414
+ requestBody: {
1415
+ content: {
1416
+ "application/json": components["schemas"]["BranchSchema"];
1417
+ };
1418
+ };
1419
+ responses: {
1420
+ /** @description Created */
1421
+ 201: {
1422
+ content: {
1423
+ "application/json": components["schemas"]["MessageResponse"];
1424
+ };
1425
+ };
1426
+ /** @description Bad Request */
1427
+ 400: {
1428
+ content: {
1429
+ "application/json": components["schemas"]["ObjectResponse"];
1430
+ };
1431
+ };
1432
+ /** @description Forbidden */
1433
+ 403: {
1434
+ content: {
1435
+ "application/json": components["schemas"]["MessageResponse"];
1436
+ };
1437
+ };
1438
+ /** @description Not Found */
1439
+ 404: {
1440
+ content: {
1441
+ "application/json": components["schemas"]["MessageResponse"];
1442
+ };
1443
+ };
1444
+ };
1445
+ };
1446
+ /**
1447
+ * New Company
1448
+ * @description Endpoint for create company.
1449
+ * Possible Responses:
1450
+ * - 400: "Bad Request"
1451
+ * - "Invalid parameters"
1452
+ * - 201: "Created"
1453
+ * - "Company Created Successfully"
1454
+ * - 403: "Forbidden"
1455
+ * - "You do not have permission to perform this action"
1456
+ * - 404: "Not Found"
1457
+ * - "Image Path Not Found"
1458
+ */
1459
+ company_views_new_company: {
1460
+ requestBody: {
1461
+ content: {
1462
+ "application/json": components["schemas"]["CompanySchema"];
1463
+ };
1464
+ };
1465
+ responses: {
1466
+ /** @description Created */
1467
+ 201: {
1468
+ content: {
1469
+ "application/json": components["schemas"]["MessageResponse"];
1470
+ };
1471
+ };
1472
+ /** @description Bad Request */
1473
+ 400: {
1474
+ content: {
1475
+ "application/json": components["schemas"]["ObjectResponse"];
1476
+ };
1477
+ };
1478
+ /** @description Forbidden */
1479
+ 403: {
1480
+ content: {
1481
+ "application/json": components["schemas"]["MessageResponse"];
1482
+ };
1483
+ };
1484
+ /** @description Not Found */
1485
+ 404: {
1486
+ content: {
1487
+ "application/json": components["schemas"]["MessageResponse"];
1488
+ };
1489
+ };
1490
+ };
1491
+ };
1492
+ /**
1493
+ * Get Company
1494
+ * @description Endpoint for retrieve company.
1495
+ * Possible Responses:
1496
+ * - 200: "Success"
1497
+ * - "Success"
1498
+ * - 404: "Not found"
1499
+ * - "Company not found"
1500
+ * - 403: "Forbidden"
1501
+ * - "You do not have permission to perform this action"
1502
+ */
1503
+ company_views_get_company: {
1504
+ parameters: {
1505
+ path: {
1506
+ id: number;
1507
+ };
1508
+ };
1509
+ responses: {
1510
+ /** @description OK */
1511
+ 200: {
1512
+ content: {
1513
+ "application/json": components["schemas"]["RetrieveCompany"];
1514
+ };
1515
+ };
1516
+ /** @description Forbidden */
1517
+ 403: {
1518
+ content: {
1519
+ "application/json": components["schemas"]["MessageResponse"];
1520
+ };
1521
+ };
1522
+ /** @description Not Found */
1523
+ 404: {
1524
+ content: {
1525
+ "application/json": components["schemas"]["MessageResponse"];
1526
+ };
1527
+ };
1528
+ };
1529
+ };
1530
+ /**
1531
+ * Update Company
1532
+ * @description Endpoint for update company.
1533
+ * Possible Responses:
1534
+ * - 400: invalidParameters
1535
+ * - Invalid parameters
1536
+ * - 200: companyUpdated
1537
+ * - Company updated successfully
1538
+ * - 403: Forbidden
1539
+ * - You do not have permission to perform this action
1540
+ * -404: companynotFound / currencyNotFound / imageNotFound
1541
+ * - Company not found / Currency not found / Image path not found
1542
+ */
1543
+ company_views_update_company: {
1544
+ parameters: {
1545
+ path: {
1546
+ id: number;
1547
+ };
1548
+ };
1549
+ requestBody: {
1550
+ content: {
1551
+ "application/json": components["schemas"]["UpdateCompany"];
1552
+ };
1553
+ };
1554
+ responses: {
1555
+ /** @description OK */
1556
+ 200: {
1557
+ content: {
1558
+ "application/json": components["schemas"]["MessageResponse"];
1559
+ };
1560
+ };
1561
+ /** @description Bad Request */
1562
+ 400: {
1563
+ content: {
1564
+ "application/json": components["schemas"]["MessageResponse"];
1565
+ };
1566
+ };
1567
+ /** @description Forbidden */
1568
+ 403: {
1569
+ content: {
1570
+ "application/json": components["schemas"]["MessageResponse"];
1571
+ };
1572
+ };
1573
+ /** @description Not Found */
1574
+ 404: {
1575
+ content: {
1576
+ "application/json": components["schemas"]["MessageResponse"];
1577
+ };
1578
+ };
1579
+ };
1580
+ };
1581
+ /**
1582
+ * Get Branch
1583
+ * @description Endpoint for retrieve branch.
1584
+ * Possible Responses:
1585
+ * - 200: "Success"
1586
+ * - "Success"
1587
+ * - 404: "Not found"
1588
+ * - "Branch not found"
1589
+ * - 403: "Forbidden"
1590
+ * - "You do not have permission to perform this action"
1591
+ */
1592
+ company_views_get_branch: {
1593
+ parameters: {
1594
+ path: {
1595
+ id: number;
1596
+ };
1597
+ };
1598
+ responses: {
1599
+ /** @description OK */
1600
+ 200: {
1601
+ content: {
1602
+ "application/json": components["schemas"]["RetrieveBranch"];
1603
+ };
1604
+ };
1605
+ /** @description Forbidden */
1606
+ 403: {
1607
+ content: {
1608
+ "application/json": components["schemas"]["MessageResponse"];
1609
+ };
1610
+ };
1611
+ /** @description Not Found */
1612
+ 404: {
1613
+ content: {
1614
+ "application/json": components["schemas"]["MessageResponse"];
1615
+ };
1616
+ };
1617
+ };
1618
+ };
1619
+ /**
1620
+ * Update Branch
1621
+ * @description Endpoint for update branch.
1622
+ * Possible Responses:
1623
+ * - 400: invalidParameters
1624
+ * - Invalid parameters
1625
+ * - 200: branchCreated
1626
+ * - Branch created successfully
1627
+ * - 403: Forbidden
1628
+ * - "You do not have permission to perform this action"
1629
+ * -404: branchNotFound
1630
+ * - Branch not found
1631
+ */
1632
+ company_views_update_branch: {
1633
+ parameters: {
1634
+ path: {
1635
+ id: number;
1636
+ };
1637
+ };
1638
+ requestBody: {
1639
+ content: {
1640
+ "application/json": components["schemas"]["UpdateBranch"];
1641
+ };
1642
+ };
1643
+ responses: {
1644
+ /** @description OK */
1645
+ 200: {
1646
+ content: {
1647
+ "application/json": components["schemas"]["MessageResponse"];
1648
+ };
1649
+ };
1650
+ /** @description Bad Request */
1651
+ 400: {
1652
+ content: {
1653
+ "application/json": components["schemas"]["MessageResponse"];
1654
+ };
1655
+ };
1656
+ /** @description Forbidden */
1657
+ 403: {
1658
+ content: {
1659
+ "application/json": components["schemas"]["MessageResponse"];
1660
+ };
1661
+ };
1662
+ /** @description Not Found */
1663
+ 404: {
1664
+ content: {
1665
+ "application/json": components["schemas"]["MessageResponse"];
1666
+ };
1667
+ };
1668
+ };
1669
+ };
1670
+ /**
1671
+ * Company Setup Steps
1672
+ * @description Endpoint for get onboarding steps.
1673
+ * Possible Responses:
1674
+ * - 200: "Success"
1675
+ * - "Success"
1676
+ * - 405: "Method not allowed"
1677
+ * - "Method not allowed"
1678
+ */
1679
+ company_views_company_setup_steps: {
1680
+ responses: {
1681
+ /** @description OK */
1682
+ 200: {
1683
+ content: {
1684
+ "application/json": Record<string, never>;
1685
+ };
1686
+ };
1687
+ /** @description Method Not Allowed */
1688
+ 405: {
1689
+ content: {
1690
+ "application/json": components["schemas"]["MessageResponse"];
1691
+ };
1692
+ };
1693
+ };
1694
+ };
1695
+ /**
1696
+ * Get Chart Of Account Options
1697
+ * @description Endpoint for load Chart of Account Options.
1698
+ * Possible Responses:
1699
+ * - 200: "Success"
1700
+ * - "Success"
1701
+ */
1702
+ accounting_chartofaccount_views_get_chart_of_account_options: {
1703
+ responses: {
1704
+ /** @description OK */
1705
+ 200: {
1706
+ content: {
1707
+ "application/json": components["schemas"]["ChartOfAccountOptions"][];
1708
+ };
1709
+ };
1710
+ };
1711
+ };
1712
+ /**
1713
+ * Get Fiscal Year End Date
1714
+ * @description Endpoint for fetching fiscal year month end and fiscal year end day.
1715
+ * Possible Responses:
1716
+ * - 200: "Success"
1717
+ * - "Success"
1718
+ * - 422: "Error"
1719
+ * - "Unprocessable Entity"
1720
+ */
1721
+ common_views_get_fiscal_year_end_date: {
1722
+ parameters: {
1723
+ query: {
1724
+ fiscalYearMonthStart: number;
1725
+ fiscalYearStartDay: number;
1726
+ };
1727
+ };
1728
+ responses: {
1729
+ /** @description OK */
1730
+ 200: {
1731
+ content: {
1732
+ "application/json": components["schemas"]["FiscalYearCalculationOut"];
1733
+ };
1734
+ };
1735
+ };
1736
+ };
1737
+ /** Upload Image */
1738
+ common_views_upload_image: {
1739
+ requestBody: {
1740
+ content: {
1741
+ "multipart/form-data": {
1742
+ /**
1743
+ * Image
1744
+ * Format: binary
1745
+ */
1746
+ image: string;
1747
+ payload: components["schemas"]["ImageSchema"];
1748
+ [key: string]: unknown;
1749
+ };
1750
+ };
1751
+ };
1752
+ responses: {
1753
+ /** @description Created */
1754
+ 201: {
1755
+ content: {
1756
+ "application/json": components["schemas"]["MessageResponse"];
1757
+ };
1758
+ };
1759
+ /** @description Bad Request */
1760
+ 400: {
1761
+ content: {
1762
+ "application/json": components["schemas"]["MessageResponse"];
1763
+ };
1764
+ };
1765
+ };
1766
+ };
1767
+ /**
1768
+ * Get Currency Code
1769
+ * @description Endpoint for to get currency code.
1770
+ * Possible Responses:
1771
+ * - 200: "Success"
1772
+ * - "Success"
1773
+ * - 404: "Not Found"
1774
+ * - "Not Found"
1775
+ */
1776
+ common_views_get_currency_code: {
1777
+ parameters: {
1778
+ query: {
1779
+ country: string;
1780
+ };
1781
+ };
1782
+ responses: {
1783
+ /** @description OK */
1784
+ 200: {
1785
+ content: {
1786
+ "application/json": components["schemas"]["currencyCodeOut"];
1787
+ };
1788
+ };
1789
+ /** @description Not Found */
1790
+ 404: {
1791
+ content: {
1792
+ "application/json": components["schemas"]["GeneralResponse"];
1793
+ };
1794
+ };
1795
+ };
1796
+ };
1797
+ /**
1798
+ * Get Galoper Setting
1799
+ * @description Endpoint for retreive galoper setting.
1800
+ * Possible Responses:
1801
+ * - 200: "Success"
1802
+ * - "Success"
1803
+ * - 404: "Not found"
1804
+ * - "Not found"
1805
+ * - 403: "Forbidden"
1806
+ * - "You do not have permission to perform this action"
1807
+ */
1808
+ admin_panel_views_get_galoper_setting: {
1809
+ responses: {
1810
+ /** @description OK */
1811
+ 200: {
1812
+ content: {
1813
+ "application/json": components["schemas"]["RetrieveGaloperSetting"];
1814
+ };
1815
+ };
1816
+ /** @description Forbidden */
1817
+ 403: {
1818
+ content: {
1819
+ "application/json": components["schemas"]["MessageResponse"];
1820
+ };
1821
+ };
1822
+ /** @description Not Found */
1823
+ 404: {
1824
+ content: {
1825
+ "application/json": components["schemas"]["MessageResponse"];
1826
+ };
1827
+ };
1828
+ };
1829
+ };
1830
+ /**
1831
+ * Update Load Chart Of Account
1832
+ * @description Endpoint for edit load chart of account.
1833
+ * Possible Responses:
1834
+ * - 400: invalidParameters
1835
+ * - Invalid parameters
1836
+ * - 404: galoperSettingNotFound / companyNotFound
1837
+ * - Galoper Setting not found / Company not found
1838
+ * - 200: Success
1839
+ * - Success
1840
+ * - 403: Forbidden
1841
+ * - You do not have permission to perform this action
1842
+ */
1843
+ admin_panel_views_update_load_chart_of_account: {
1844
+ parameters: {
1845
+ path: {
1846
+ id: number;
1847
+ };
1848
+ };
1849
+ requestBody: {
1850
+ content: {
1851
+ "application/json": components["schemas"]["GaloperSettingChart"];
1852
+ };
1853
+ };
1854
+ responses: {
1855
+ /** @description OK */
1856
+ 200: {
1857
+ content: {
1858
+ "application/json": components["schemas"]["MessageResponse"];
1859
+ };
1860
+ };
1861
+ /** @description Bad Request */
1862
+ 400: {
1863
+ content: {
1864
+ "application/json": components["schemas"]["MessageResponse"];
1865
+ };
1866
+ };
1867
+ /** @description Forbidden */
1868
+ 403: {
1869
+ content: {
1870
+ "application/json": components["schemas"]["MessageResponse"];
1871
+ };
1872
+ };
1873
+ /** @description Not Found */
1874
+ 404: {
1875
+ content: {
1876
+ "application/json": components["schemas"]["MessageResponse"];
1877
+ };
1878
+ };
1879
+ };
1880
+ };
1881
+ /**
1882
+ * Load Chart Of Account
1883
+ * @description Endpoint for create Chart of Account.
1884
+ * Possible Responses:
1885
+ * - 400: "Bad Request"
1886
+ * - "Invalid parameters"
1887
+ * - 200: "Success"
1888
+ * - "Success"
1889
+ * - 201: "Created"
1890
+ * - "Chart of Account Created Successfully"
1891
+ * - 403: "Forbidden"
1892
+ * - "You do not have permission to perform this action"
1893
+ * - 404: "Not Found"
1894
+ * - "Company Not Found"
1895
+ * - "Galoper Settings Not Found"
1896
+ */
1897
+ admin_panel_views_load_chart_of_account: {
1898
+ requestBody: {
1899
+ content: {
1900
+ "application/json": components["schemas"]["GaloperSettingChart"];
1901
+ };
1902
+ };
1903
+ responses: {
1904
+ /** @description OK */
1905
+ 200: {
1906
+ content: {
1907
+ "application/json": components["schemas"]["MessageResponse"];
1908
+ };
1909
+ };
1910
+ /** @description Created */
1911
+ 201: {
1912
+ content: {
1913
+ "application/json": components["schemas"]["MessageResponse"];
1914
+ };
1915
+ };
1916
+ /** @description Bad Request */
1917
+ 400: {
1918
+ content: {
1919
+ "application/json": components["schemas"]["MessageResponse"];
1920
+ };
1921
+ };
1922
+ /** @description Forbidden */
1923
+ 403: {
1924
+ content: {
1925
+ "application/json": components["schemas"]["MessageResponse"];
1926
+ };
1927
+ };
1928
+ /** @description Not Found */
1929
+ 404: {
1930
+ content: {
1931
+ "application/json": components["schemas"]["MessageResponse"];
1932
+ };
1933
+ };
1934
+ };
1935
+ };
1936
+ /**
1937
+ * Load Settings
1938
+ * @description Endpoint for load settings.
1939
+ * Possible Responses:
1940
+ * - 400: "Bad Request"
1941
+ * - "Invalid parameters"
1942
+ * - 201: "Created"
1943
+ * - "Settings Loaded Successfully"
1944
+ * - 403: "Forbidden"
1945
+ * - "You do not have permission to perform this action"
1946
+ * -404: "Not Found"
1947
+ * - "message" : "Incompatible Country""
1948
+ */
1949
+ erp_settings_views_load_settings: {
1950
+ requestBody: {
1951
+ content: {
1952
+ "application/json": components["schemas"]["LoadSettingsSchema"];
1953
+ };
1954
+ };
1955
+ responses: {
1956
+ /** @description Created */
1957
+ 201: {
1958
+ content: {
1959
+ "application/json": components["schemas"]["MessageResponse"];
1960
+ };
1961
+ };
1962
+ /** @description Bad Request */
1963
+ 400: {
1964
+ content: {
1965
+ "application/json": components["schemas"]["ObjectResponse"];
818
1966
  };
819
1967
  };
820
1968
  /** @description Forbidden */
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "openapi.ts"
5
5
  }