@erp-galoper/main-package 1.0.142 → 1.0.144

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 +227 -20
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -574,6 +574,36 @@ export interface paths {
574
574
  patch?: never;
575
575
  trace?: never;
576
576
  };
577
+ "/api/v1/common/regions/": {
578
+ parameters: {
579
+ query?: never;
580
+ header?: never;
581
+ path?: never;
582
+ cookie?: never;
583
+ };
584
+ /**
585
+ * List Regions
586
+ * @description Endpoint for list regions
587
+ * possible responses:
588
+ * - 200:
589
+ * - success
590
+ * - 403:
591
+ * - permissionDenied
592
+ * - 400:
593
+ * - branchesWithIds{missing_branch_ids}NotFound
594
+ * - paginationError
595
+ * - Permission Key:
596
+ * - region : [ view ]
597
+ */
598
+ get: operations["common_views_list_regions"];
599
+ put?: never;
600
+ post?: never;
601
+ delete?: never;
602
+ options?: never;
603
+ head?: never;
604
+ patch?: never;
605
+ trace?: never;
606
+ };
577
607
  "/api/v1/common/transaction_types/": {
578
608
  parameters: {
579
609
  query?: never;
@@ -1364,6 +1394,40 @@ export interface paths {
1364
1394
  patch?: never;
1365
1395
  trace?: never;
1366
1396
  };
1397
+ "/api/v1/customers/export/": {
1398
+ parameters: {
1399
+ query?: never;
1400
+ header?: never;
1401
+ path?: never;
1402
+ cookie?: never;
1403
+ };
1404
+ /**
1405
+ * Export Customers
1406
+ * @description Endpoint for export customers
1407
+ * Possible Responses:
1408
+ * - 200:
1409
+ * - success
1410
+ * - 403:
1411
+ * - permissionDenied
1412
+ * - noBranchAccess
1413
+ * - 400:
1414
+ * - branchesWithIds{missing_branch_ids}NotFound
1415
+ * - regionsWithIds{missing_region_ids}NotFound
1416
+ * - 500:
1417
+ * - internalServerError
1418
+ * - This function is responsible for export all customers within the selected region(s)
1419
+ * - Permission key :
1420
+ * - customer : [ export ]
1421
+ */
1422
+ get: operations["customer_views_export_customers"];
1423
+ put?: never;
1424
+ post?: never;
1425
+ delete?: never;
1426
+ options?: never;
1427
+ head?: never;
1428
+ patch?: never;
1429
+ trace?: never;
1430
+ };
1367
1431
  "/api/v1/accounting/journal_vouchers/": {
1368
1432
  parameters: {
1369
1433
  query?: never;
@@ -1870,6 +1934,42 @@ export interface components {
1870
1934
  /** Depth */
1871
1935
  depth: number;
1872
1936
  };
1937
+ /** ListRegions */
1938
+ ListRegions: {
1939
+ info: components["schemas"]["PageInfoSchema"];
1940
+ /** Results */
1941
+ results: components["schemas"]["RetrieveRegion"][];
1942
+ };
1943
+ /** RetrieveRegion */
1944
+ RetrieveRegion: {
1945
+ /** Id */
1946
+ id: number;
1947
+ /** Name */
1948
+ name: string;
1949
+ /** Country */
1950
+ country: string;
1951
+ /** Branchnumber */
1952
+ branchNumber: number;
1953
+ };
1954
+ /** ErrorMessageSchema */
1955
+ ErrorMessageSchema: {
1956
+ /** Message */
1957
+ message?: string | null;
1958
+ /** Code */
1959
+ code: string;
1960
+ /**
1961
+ * Fields
1962
+ * @default []
1963
+ */
1964
+ fields: string[] | null;
1965
+ /** Index */
1966
+ index?: number | null;
1967
+ };
1968
+ /** ErrorMessages */
1969
+ ErrorMessages: {
1970
+ /** Errors */
1971
+ errors: components["schemas"]["ErrorMessageSchema"][];
1972
+ };
1873
1973
  /** TransactionTypeOptionSchema */
1874
1974
  TransactionTypeOptionSchema: {
1875
1975
  option: components["schemas"]["TransactionTypesSchema"];
@@ -2019,25 +2119,6 @@ export interface components {
2019
2119
  /** Results */
2020
2120
  results: components["schemas"]["AccountInfoInDropDown"][];
2021
2121
  };
2022
- /** ErrorMessageSchema */
2023
- ErrorMessageSchema: {
2024
- /** Message */
2025
- message?: string | null;
2026
- /** Code */
2027
- code: string;
2028
- /**
2029
- * Fields
2030
- * @default []
2031
- */
2032
- fields: string[] | null;
2033
- /** Index */
2034
- index?: number | null;
2035
- };
2036
- /** ErrorMessages */
2037
- ErrorMessages: {
2038
- /** Errors */
2039
- errors: components["schemas"]["ErrorMessageSchema"][];
2040
- };
2041
2122
  /** BranchDetails */
2042
2123
  BranchDetails: {
2043
2124
  /** Id */
@@ -2589,7 +2670,7 @@ export interface components {
2589
2670
  /**
2590
2671
  * Id
2591
2672
  * Format: uuid
2592
- * @example 4638280e-f087-459b-8c97-6438ff5ab504
2673
+ * @example 17ac0842-1e4e-4e45-9a9b-e0d24234b9d9
2593
2674
  */
2594
2675
  id: string;
2595
2676
  /**
@@ -2806,6 +2887,13 @@ export interface components {
2806
2887
  /** Invoicerefunds */
2807
2888
  invoiceRefunds: components["schemas"]["PosRefundSchema"][];
2808
2889
  };
2890
+ /** ExportSchema */
2891
+ ExportSchema: {
2892
+ /** Pdf */
2893
+ pdf: string;
2894
+ /** Excel */
2895
+ excel: string;
2896
+ };
2809
2897
  /** AccountInfo */
2810
2898
  AccountInfo: {
2811
2899
  /** Name */
@@ -4019,6 +4107,64 @@ export interface operations {
4019
4107
  };
4020
4108
  };
4021
4109
  };
4110
+ common_views_list_regions: {
4111
+ parameters: {
4112
+ query: {
4113
+ branchIds: number[];
4114
+ };
4115
+ header?: never;
4116
+ path?: never;
4117
+ cookie?: never;
4118
+ };
4119
+ requestBody?: never;
4120
+ responses: {
4121
+ /** @description OK */
4122
+ 200: {
4123
+ headers: {
4124
+ [name: string]: unknown;
4125
+ };
4126
+ content: {
4127
+ "application/json": components["schemas"]["ListRegions"];
4128
+ };
4129
+ };
4130
+ /** @description Bad Request */
4131
+ 400: {
4132
+ headers: {
4133
+ [name: string]: unknown;
4134
+ };
4135
+ content: {
4136
+ "application/json": components["schemas"]["ErrorMessages"];
4137
+ };
4138
+ };
4139
+ /** @description Forbidden */
4140
+ 403: {
4141
+ headers: {
4142
+ [name: string]: unknown;
4143
+ };
4144
+ content: {
4145
+ "application/json": components["schemas"]["MessageResponse"];
4146
+ };
4147
+ };
4148
+ /** @description Not Found */
4149
+ 404: {
4150
+ headers: {
4151
+ [name: string]: unknown;
4152
+ };
4153
+ content: {
4154
+ "application/json": components["schemas"]["MessageResponse"];
4155
+ };
4156
+ };
4157
+ /** @description Internal Server Error */
4158
+ 500: {
4159
+ headers: {
4160
+ [name: string]: unknown;
4161
+ };
4162
+ content: {
4163
+ "application/json": components["schemas"]["MessageResponse"];
4164
+ };
4165
+ };
4166
+ };
4167
+ };
4022
4168
  common_views_get_transaction_types: {
4023
4169
  parameters: {
4024
4170
  query?: never;
@@ -5440,6 +5586,67 @@ export interface operations {
5440
5586
  };
5441
5587
  };
5442
5588
  };
5589
+ customer_views_export_customers: {
5590
+ parameters: {
5591
+ query: {
5592
+ /** @description to get regions use route /common/regions/ where branch ids same as selected branch ids in export route */
5593
+ regionIds: number[];
5594
+ /** @description get branches from /auth/user/me */
5595
+ branchIds: number[];
5596
+ };
5597
+ header?: never;
5598
+ path?: never;
5599
+ cookie?: never;
5600
+ };
5601
+ requestBody?: never;
5602
+ responses: {
5603
+ /** @description OK */
5604
+ 200: {
5605
+ headers: {
5606
+ [name: string]: unknown;
5607
+ };
5608
+ content: {
5609
+ "application/json": components["schemas"]["ExportSchema"];
5610
+ };
5611
+ };
5612
+ /** @description Bad Request */
5613
+ 400: {
5614
+ headers: {
5615
+ [name: string]: unknown;
5616
+ };
5617
+ content: {
5618
+ "application/json": components["schemas"]["ErrorMessages"];
5619
+ };
5620
+ };
5621
+ /** @description Forbidden */
5622
+ 403: {
5623
+ headers: {
5624
+ [name: string]: unknown;
5625
+ };
5626
+ content: {
5627
+ "application/json": components["schemas"]["MessageResponse"];
5628
+ };
5629
+ };
5630
+ /** @description Not Found */
5631
+ 404: {
5632
+ headers: {
5633
+ [name: string]: unknown;
5634
+ };
5635
+ content: {
5636
+ "application/json": components["schemas"]["MessageResponse"];
5637
+ };
5638
+ };
5639
+ /** @description Internal Server Error */
5640
+ 500: {
5641
+ headers: {
5642
+ [name: string]: unknown;
5643
+ };
5644
+ content: {
5645
+ "application/json": components["schemas"]["MessageResponse"];
5646
+ };
5647
+ };
5648
+ };
5649
+ };
5443
5650
  accounting_generalvoucher_views_list_journal_vouchers_in_export: {
5444
5651
  parameters: {
5445
5652
  query: {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.142",
3
+ "version": "1.0.144",
4
4
  "main": "openapi.ts"
5
5
  }