karibu-layer 1.0.21 → 1.0.23
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/api/api.d.ts +1 -1
- package/api/boards.service.d.ts +21 -0
- package/api/stockMovements.service.d.ts +0 -114
- package/esm2022/api/boards.service.mjs +43 -6
- package/esm2022/api/categories.service.mjs +6 -6
- package/esm2022/api/establishments.service.mjs +6 -6
- package/esm2022/api/orders.service.mjs +10 -10
- package/esm2022/api/payments.service.mjs +6 -6
- package/esm2022/api/products.service.mjs +10 -10
- package/esm2022/api/stockMovements.service.mjs +2 -204
- package/esm2022/api/users.service.mjs +9 -9
- package/esm2022/model/models.mjs +1 -3
- package/fesm2022/karibu-layer.mjs +85 -277
- package/fesm2022/karibu-layer.mjs.map +1 -1
- package/model/models.d.ts +0 -2
- package/package.json +1 -1
- package/esm2022/model/createStockMovementDto.mjs +0 -17
- package/esm2022/model/updateStockMovementDto.mjs +0 -11
- package/model/createStockMovementDto.d.ts +0 -46
- package/model/updateStockMovementDto.d.ts +0 -15
|
@@ -622,7 +622,7 @@ class BoardsService extends BaseService {
|
|
|
622
622
|
responseType_ = 'blob';
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
let localVarPath = `/boards`;
|
|
625
|
+
let localVarPath = `/boards/create-board`;
|
|
626
626
|
const { basePath, withCredentials } = this.configuration;
|
|
627
627
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
628
628
|
context: localVarHttpContext,
|
|
@@ -657,7 +657,44 @@ class BoardsService extends BaseService {
|
|
|
657
657
|
responseType_ = 'blob';
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
let localVarPath = `/boards`;
|
|
660
|
+
let localVarPath = `/boards/all-boards`;
|
|
661
|
+
const { basePath, withCredentials } = this.configuration;
|
|
662
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
663
|
+
context: localVarHttpContext,
|
|
664
|
+
responseType: responseType_,
|
|
665
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
666
|
+
headers: localVarHeaders,
|
|
667
|
+
observe: observe,
|
|
668
|
+
transferCache: localVarTransferCache,
|
|
669
|
+
reportProgress: reportProgress
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
boardControllerFindByEstablishment(establishmentId, observe = 'body', reportProgress = false, options) {
|
|
673
|
+
if (establishmentId === null || establishmentId === undefined) {
|
|
674
|
+
throw new Error('Required parameter establishmentId was null or undefined when calling boardControllerFindByEstablishment.');
|
|
675
|
+
}
|
|
676
|
+
let localVarHeaders = this.defaultHeaders;
|
|
677
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
678
|
+
'application/json'
|
|
679
|
+
]);
|
|
680
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
681
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
682
|
+
}
|
|
683
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
684
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
685
|
+
let responseType_ = 'json';
|
|
686
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
687
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
688
|
+
responseType_ = 'text';
|
|
689
|
+
}
|
|
690
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
691
|
+
responseType_ = 'json';
|
|
692
|
+
}
|
|
693
|
+
else {
|
|
694
|
+
responseType_ = 'blob';
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/boards-by-establishment`;
|
|
661
698
|
const { basePath, withCredentials } = this.configuration;
|
|
662
699
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
663
700
|
context: localVarHttpContext,
|
|
@@ -694,7 +731,7 @@ class BoardsService extends BaseService {
|
|
|
694
731
|
responseType_ = 'blob';
|
|
695
732
|
}
|
|
696
733
|
}
|
|
697
|
-
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
734
|
+
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/retrieve-board`;
|
|
698
735
|
const { basePath, withCredentials } = this.configuration;
|
|
699
736
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
700
737
|
context: localVarHttpContext,
|
|
@@ -729,7 +766,7 @@ class BoardsService extends BaseService {
|
|
|
729
766
|
responseType_ = 'blob';
|
|
730
767
|
}
|
|
731
768
|
}
|
|
732
|
-
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
769
|
+
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/delete-board`;
|
|
733
770
|
const { basePath, withCredentials } = this.configuration;
|
|
734
771
|
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
735
772
|
context: localVarHttpContext,
|
|
@@ -777,7 +814,7 @@ class BoardsService extends BaseService {
|
|
|
777
814
|
responseType_ = 'blob';
|
|
778
815
|
}
|
|
779
816
|
}
|
|
780
|
-
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
817
|
+
let localVarPath = `/boards/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/update-board`;
|
|
781
818
|
const { basePath, withCredentials } = this.configuration;
|
|
782
819
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
783
820
|
context: localVarHttpContext,
|
|
@@ -856,7 +893,7 @@ class CategoriesService extends BaseService {
|
|
|
856
893
|
responseType_ = 'blob';
|
|
857
894
|
}
|
|
858
895
|
}
|
|
859
|
-
let localVarPath = `/categories`;
|
|
896
|
+
let localVarPath = `/categories/create-category`;
|
|
860
897
|
const { basePath, withCredentials } = this.configuration;
|
|
861
898
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
862
899
|
context: localVarHttpContext,
|
|
@@ -891,7 +928,7 @@ class CategoriesService extends BaseService {
|
|
|
891
928
|
responseType_ = 'blob';
|
|
892
929
|
}
|
|
893
930
|
}
|
|
894
|
-
let localVarPath = `/categories`;
|
|
931
|
+
let localVarPath = `/categories/all-categories`;
|
|
895
932
|
const { basePath, withCredentials } = this.configuration;
|
|
896
933
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
897
934
|
context: localVarHttpContext,
|
|
@@ -928,7 +965,7 @@ class CategoriesService extends BaseService {
|
|
|
928
965
|
responseType_ = 'blob';
|
|
929
966
|
}
|
|
930
967
|
}
|
|
931
|
-
let localVarPath = `/categories/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
968
|
+
let localVarPath = `/categories/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/retrieve-category`;
|
|
932
969
|
const { basePath, withCredentials } = this.configuration;
|
|
933
970
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
934
971
|
context: localVarHttpContext,
|
|
@@ -963,7 +1000,7 @@ class CategoriesService extends BaseService {
|
|
|
963
1000
|
responseType_ = 'blob';
|
|
964
1001
|
}
|
|
965
1002
|
}
|
|
966
|
-
let localVarPath = `/categories/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1003
|
+
let localVarPath = `/categories/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/delete-category`;
|
|
967
1004
|
const { basePath, withCredentials } = this.configuration;
|
|
968
1005
|
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
969
1006
|
context: localVarHttpContext,
|
|
@@ -1011,7 +1048,7 @@ class CategoriesService extends BaseService {
|
|
|
1011
1048
|
responseType_ = 'blob';
|
|
1012
1049
|
}
|
|
1013
1050
|
}
|
|
1014
|
-
let localVarPath = `/categories/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1051
|
+
let localVarPath = `/categories/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/update-category`;
|
|
1015
1052
|
const { basePath, withCredentials } = this.configuration;
|
|
1016
1053
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
1017
1054
|
context: localVarHttpContext,
|
|
@@ -1090,7 +1127,7 @@ class EstablishmentsService extends BaseService {
|
|
|
1090
1127
|
responseType_ = 'blob';
|
|
1091
1128
|
}
|
|
1092
1129
|
}
|
|
1093
|
-
let localVarPath = `/establishments`;
|
|
1130
|
+
let localVarPath = `/establishments/create-establishment`;
|
|
1094
1131
|
const { basePath, withCredentials } = this.configuration;
|
|
1095
1132
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1096
1133
|
context: localVarHttpContext,
|
|
@@ -1125,7 +1162,7 @@ class EstablishmentsService extends BaseService {
|
|
|
1125
1162
|
responseType_ = 'blob';
|
|
1126
1163
|
}
|
|
1127
1164
|
}
|
|
1128
|
-
let localVarPath = `/establishments`;
|
|
1165
|
+
let localVarPath = `/establishments/all-establishments`;
|
|
1129
1166
|
const { basePath, withCredentials } = this.configuration;
|
|
1130
1167
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1131
1168
|
context: localVarHttpContext,
|
|
@@ -1162,7 +1199,7 @@ class EstablishmentsService extends BaseService {
|
|
|
1162
1199
|
responseType_ = 'blob';
|
|
1163
1200
|
}
|
|
1164
1201
|
}
|
|
1165
|
-
let localVarPath = `/establishments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1202
|
+
let localVarPath = `/establishments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/retrieve-establishment`;
|
|
1166
1203
|
const { basePath, withCredentials } = this.configuration;
|
|
1167
1204
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1168
1205
|
context: localVarHttpContext,
|
|
@@ -1197,7 +1234,7 @@ class EstablishmentsService extends BaseService {
|
|
|
1197
1234
|
responseType_ = 'blob';
|
|
1198
1235
|
}
|
|
1199
1236
|
}
|
|
1200
|
-
let localVarPath = `/establishments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1237
|
+
let localVarPath = `/establishments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/delete-establishment`;
|
|
1201
1238
|
const { basePath, withCredentials } = this.configuration;
|
|
1202
1239
|
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
1203
1240
|
context: localVarHttpContext,
|
|
@@ -1245,7 +1282,7 @@ class EstablishmentsService extends BaseService {
|
|
|
1245
1282
|
responseType_ = 'blob';
|
|
1246
1283
|
}
|
|
1247
1284
|
}
|
|
1248
|
-
let localVarPath = `/establishments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1285
|
+
let localVarPath = `/establishments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/update-establishment`;
|
|
1249
1286
|
const { basePath, withCredentials } = this.configuration;
|
|
1250
1287
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
1251
1288
|
context: localVarHttpContext,
|
|
@@ -1644,7 +1681,7 @@ class OrdersService extends BaseService {
|
|
|
1644
1681
|
responseType_ = 'blob';
|
|
1645
1682
|
}
|
|
1646
1683
|
}
|
|
1647
|
-
let localVarPath = `/orders`;
|
|
1684
|
+
let localVarPath = `/orders/create-order`;
|
|
1648
1685
|
const { basePath, withCredentials } = this.configuration;
|
|
1649
1686
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1650
1687
|
context: localVarHttpContext,
|
|
@@ -1682,7 +1719,7 @@ class OrdersService extends BaseService {
|
|
|
1682
1719
|
responseType_ = 'blob';
|
|
1683
1720
|
}
|
|
1684
1721
|
}
|
|
1685
|
-
let localVarPath = `/orders/code/${this.configuration.encodeParam({ name: "code", value: code, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1722
|
+
let localVarPath = `/orders/code/${this.configuration.encodeParam({ name: "code", value: code, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/retrieve-order-by-code`;
|
|
1686
1723
|
const { basePath, withCredentials } = this.configuration;
|
|
1687
1724
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1688
1725
|
context: localVarHttpContext,
|
|
@@ -1719,7 +1756,7 @@ class OrdersService extends BaseService {
|
|
|
1719
1756
|
responseType_ = 'blob';
|
|
1720
1757
|
}
|
|
1721
1758
|
}
|
|
1722
|
-
let localVarPath = `/orders/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1759
|
+
let localVarPath = `/orders/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/orders-by-establishment`;
|
|
1723
1760
|
const { basePath, withCredentials } = this.configuration;
|
|
1724
1761
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1725
1762
|
context: localVarHttpContext,
|
|
@@ -1756,7 +1793,7 @@ class OrdersService extends BaseService {
|
|
|
1756
1793
|
responseType_ = 'blob';
|
|
1757
1794
|
}
|
|
1758
1795
|
}
|
|
1759
|
-
let localVarPath = `/orders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1796
|
+
let localVarPath = `/orders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/retrieve-order`;
|
|
1760
1797
|
const { basePath, withCredentials } = this.configuration;
|
|
1761
1798
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1762
1799
|
context: localVarHttpContext,
|
|
@@ -1794,7 +1831,7 @@ class OrdersService extends BaseService {
|
|
|
1794
1831
|
responseType_ = 'blob';
|
|
1795
1832
|
}
|
|
1796
1833
|
}
|
|
1797
|
-
let localVarPath = `/orders`;
|
|
1834
|
+
let localVarPath = `/orders/all-orders`;
|
|
1798
1835
|
const { basePath, withCredentials } = this.configuration;
|
|
1799
1836
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1800
1837
|
context: localVarHttpContext,
|
|
@@ -1832,7 +1869,7 @@ class OrdersService extends BaseService {
|
|
|
1832
1869
|
responseType_ = 'blob';
|
|
1833
1870
|
}
|
|
1834
1871
|
}
|
|
1835
|
-
let localVarPath = `/orders/board/${this.configuration.encodeParam({ name: "boardId", value: boardId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1872
|
+
let localVarPath = `/orders/board/${this.configuration.encodeParam({ name: "boardId", value: boardId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/orders-by-board`;
|
|
1836
1873
|
const { basePath, withCredentials } = this.configuration;
|
|
1837
1874
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1838
1875
|
context: localVarHttpContext,
|
|
@@ -1869,7 +1906,7 @@ class OrdersService extends BaseService {
|
|
|
1869
1906
|
responseType_ = 'blob';
|
|
1870
1907
|
}
|
|
1871
1908
|
}
|
|
1872
|
-
let localVarPath = `/orders/status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'PENDING' | 'CONFIRMED' | 'PREPARING' | 'READY' | 'DELIVERED' | 'CANCELLED' | 'PAID'", dataFormat: undefined })}`;
|
|
1909
|
+
let localVarPath = `/orders/status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'PENDING' | 'CONFIRMED' | 'PREPARING' | 'READY' | 'DELIVERED' | 'CANCELLED' | 'PAID'", dataFormat: undefined })}/orders-by-status`;
|
|
1873
1910
|
const { basePath, withCredentials } = this.configuration;
|
|
1874
1911
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1875
1912
|
context: localVarHttpContext,
|
|
@@ -1906,7 +1943,7 @@ class OrdersService extends BaseService {
|
|
|
1906
1943
|
responseType_ = 'blob';
|
|
1907
1944
|
}
|
|
1908
1945
|
}
|
|
1909
|
-
let localVarPath = `/orders/user/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1946
|
+
let localVarPath = `/orders/user/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/orders-by-user`;
|
|
1910
1947
|
const { basePath, withCredentials } = this.configuration;
|
|
1911
1948
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1912
1949
|
context: localVarHttpContext,
|
|
@@ -1954,7 +1991,7 @@ class OrdersService extends BaseService {
|
|
|
1954
1991
|
responseType_ = 'blob';
|
|
1955
1992
|
}
|
|
1956
1993
|
}
|
|
1957
|
-
let localVarPath = `/orders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1994
|
+
let localVarPath = `/orders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/update-order`;
|
|
1958
1995
|
const { basePath, withCredentials } = this.configuration;
|
|
1959
1996
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
1960
1997
|
context: localVarHttpContext,
|
|
@@ -2033,7 +2070,7 @@ class PaymentsService extends BaseService {
|
|
|
2033
2070
|
responseType_ = 'blob';
|
|
2034
2071
|
}
|
|
2035
2072
|
}
|
|
2036
|
-
let localVarPath = `/payments`;
|
|
2073
|
+
let localVarPath = `/payments/create-payment`;
|
|
2037
2074
|
const { basePath, withCredentials } = this.configuration;
|
|
2038
2075
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
2039
2076
|
context: localVarHttpContext,
|
|
@@ -2068,7 +2105,7 @@ class PaymentsService extends BaseService {
|
|
|
2068
2105
|
responseType_ = 'blob';
|
|
2069
2106
|
}
|
|
2070
2107
|
}
|
|
2071
|
-
let localVarPath = `/payments`;
|
|
2108
|
+
let localVarPath = `/payments/all-payments`;
|
|
2072
2109
|
const { basePath, withCredentials } = this.configuration;
|
|
2073
2110
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2074
2111
|
context: localVarHttpContext,
|
|
@@ -2105,7 +2142,7 @@ class PaymentsService extends BaseService {
|
|
|
2105
2142
|
responseType_ = 'blob';
|
|
2106
2143
|
}
|
|
2107
2144
|
}
|
|
2108
|
-
let localVarPath = `/payments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2145
|
+
let localVarPath = `/payments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/retrieve-payment`;
|
|
2109
2146
|
const { basePath, withCredentials } = this.configuration;
|
|
2110
2147
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2111
2148
|
context: localVarHttpContext,
|
|
@@ -2140,7 +2177,7 @@ class PaymentsService extends BaseService {
|
|
|
2140
2177
|
responseType_ = 'blob';
|
|
2141
2178
|
}
|
|
2142
2179
|
}
|
|
2143
|
-
let localVarPath = `/payments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2180
|
+
let localVarPath = `/payments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/delete-payment`;
|
|
2144
2181
|
const { basePath, withCredentials } = this.configuration;
|
|
2145
2182
|
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
2146
2183
|
context: localVarHttpContext,
|
|
@@ -2188,7 +2225,7 @@ class PaymentsService extends BaseService {
|
|
|
2188
2225
|
responseType_ = 'blob';
|
|
2189
2226
|
}
|
|
2190
2227
|
}
|
|
2191
|
-
let localVarPath = `/payments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2228
|
+
let localVarPath = `/payments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/update-payment`;
|
|
2192
2229
|
const { basePath, withCredentials } = this.configuration;
|
|
2193
2230
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
2194
2231
|
context: localVarHttpContext,
|
|
@@ -2267,7 +2304,7 @@ class ProductsService extends BaseService {
|
|
|
2267
2304
|
responseType_ = 'blob';
|
|
2268
2305
|
}
|
|
2269
2306
|
}
|
|
2270
|
-
let localVarPath = `/products`;
|
|
2307
|
+
let localVarPath = `/products/create-product`;
|
|
2271
2308
|
const { basePath, withCredentials } = this.configuration;
|
|
2272
2309
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
2273
2310
|
context: localVarHttpContext,
|
|
@@ -2303,7 +2340,7 @@ class ProductsService extends BaseService {
|
|
|
2303
2340
|
responseType_ = 'blob';
|
|
2304
2341
|
}
|
|
2305
2342
|
}
|
|
2306
|
-
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2343
|
+
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/delete-product`;
|
|
2307
2344
|
const { basePath, withCredentials } = this.configuration;
|
|
2308
2345
|
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
2309
2346
|
context: localVarHttpContext,
|
|
@@ -2340,7 +2377,7 @@ class ProductsService extends BaseService {
|
|
|
2340
2377
|
responseType_ = 'blob';
|
|
2341
2378
|
}
|
|
2342
2379
|
}
|
|
2343
|
-
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2380
|
+
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/retrieve-product`;
|
|
2344
2381
|
const { basePath, withCredentials } = this.configuration;
|
|
2345
2382
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2346
2383
|
context: localVarHttpContext,
|
|
@@ -2380,7 +2417,7 @@ class ProductsService extends BaseService {
|
|
|
2380
2417
|
responseType_ = 'blob';
|
|
2381
2418
|
}
|
|
2382
2419
|
}
|
|
2383
|
-
let localVarPath = `/products`;
|
|
2420
|
+
let localVarPath = `/products/all-products`;
|
|
2384
2421
|
const { basePath, withCredentials } = this.configuration;
|
|
2385
2422
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2386
2423
|
context: localVarHttpContext,
|
|
@@ -2455,7 +2492,7 @@ class ProductsService extends BaseService {
|
|
|
2455
2492
|
responseType_ = 'blob';
|
|
2456
2493
|
}
|
|
2457
2494
|
}
|
|
2458
|
-
let localVarPath = `/products/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2495
|
+
let localVarPath = `/products/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/products-by-establishment`;
|
|
2459
2496
|
const { basePath, withCredentials } = this.configuration;
|
|
2460
2497
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2461
2498
|
context: localVarHttpContext,
|
|
@@ -2492,7 +2529,7 @@ class ProductsService extends BaseService {
|
|
|
2492
2529
|
responseType_ = 'blob';
|
|
2493
2530
|
}
|
|
2494
2531
|
}
|
|
2495
|
-
let localVarPath = `/products/price-range/filter`;
|
|
2532
|
+
let localVarPath = `/products/price-range/filter/products-by-price-range`;
|
|
2496
2533
|
const { basePath, withCredentials } = this.configuration;
|
|
2497
2534
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2498
2535
|
context: localVarHttpContext,
|
|
@@ -2530,7 +2567,7 @@ class ProductsService extends BaseService {
|
|
|
2530
2567
|
responseType_ = 'blob';
|
|
2531
2568
|
}
|
|
2532
2569
|
}
|
|
2533
|
-
let localVarPath = `/products/search/${this.configuration.encodeParam({ name: "name", value: name, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2570
|
+
let localVarPath = `/products/search/${this.configuration.encodeParam({ name: "name", value: name, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/products-by-name`;
|
|
2534
2571
|
const { basePath, withCredentials } = this.configuration;
|
|
2535
2572
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2536
2573
|
context: localVarHttpContext,
|
|
@@ -2578,7 +2615,7 @@ class ProductsService extends BaseService {
|
|
|
2578
2615
|
responseType_ = 'blob';
|
|
2579
2616
|
}
|
|
2580
2617
|
}
|
|
2581
|
-
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2618
|
+
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/update-product`;
|
|
2582
2619
|
const { basePath, withCredentials } = this.configuration;
|
|
2583
2620
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
2584
2621
|
context: localVarHttpContext,
|
|
@@ -2619,7 +2656,7 @@ class ProductsService extends BaseService {
|
|
|
2619
2656
|
responseType_ = 'blob';
|
|
2620
2657
|
}
|
|
2621
2658
|
}
|
|
2622
|
-
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/stock/${this.configuration.encodeParam({ name: "quantity", value: quantity, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2659
|
+
let localVarPath = `/products/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/stock/${this.configuration.encodeParam({ name: "quantity", value: quantity, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/update-stock`;
|
|
2623
2660
|
const { basePath, withCredentials } = this.configuration;
|
|
2624
2661
|
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
2625
2662
|
context: localVarHttpContext,
|
|
@@ -2664,91 +2701,6 @@ class StockMovementsService extends BaseService {
|
|
|
2664
2701
|
super(basePath, configuration);
|
|
2665
2702
|
this.httpClient = httpClient;
|
|
2666
2703
|
}
|
|
2667
|
-
stockMovementControllerCreate(createStockMovementDto, observe = 'body', reportProgress = false, options) {
|
|
2668
|
-
if (createStockMovementDto === null || createStockMovementDto === undefined) {
|
|
2669
|
-
throw new Error('Required parameter createStockMovementDto was null or undefined when calling stockMovementControllerCreate.');
|
|
2670
|
-
}
|
|
2671
|
-
let localVarHeaders = this.defaultHeaders;
|
|
2672
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2673
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2674
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2675
|
-
}
|
|
2676
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2677
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
2678
|
-
// to determine the Content-Type header
|
|
2679
|
-
const consumes = [
|
|
2680
|
-
'application/json'
|
|
2681
|
-
];
|
|
2682
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2683
|
-
if (httpContentTypeSelected !== undefined) {
|
|
2684
|
-
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2685
|
-
}
|
|
2686
|
-
let responseType_ = 'json';
|
|
2687
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
2688
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2689
|
-
responseType_ = 'text';
|
|
2690
|
-
}
|
|
2691
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2692
|
-
responseType_ = 'json';
|
|
2693
|
-
}
|
|
2694
|
-
else {
|
|
2695
|
-
responseType_ = 'blob';
|
|
2696
|
-
}
|
|
2697
|
-
}
|
|
2698
|
-
let localVarPath = `/stock-movements`;
|
|
2699
|
-
const { basePath, withCredentials } = this.configuration;
|
|
2700
|
-
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
2701
|
-
context: localVarHttpContext,
|
|
2702
|
-
body: createStockMovementDto,
|
|
2703
|
-
responseType: responseType_,
|
|
2704
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
2705
|
-
headers: localVarHeaders,
|
|
2706
|
-
observe: observe,
|
|
2707
|
-
transferCache: localVarTransferCache,
|
|
2708
|
-
reportProgress: reportProgress
|
|
2709
|
-
});
|
|
2710
|
-
}
|
|
2711
|
-
stockMovementControllerFindAll(productId, establishmentId, movementType, dateFrom, dateTo, page, limit, observe = 'body', reportProgress = false, options) {
|
|
2712
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2713
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, productId, 'productId');
|
|
2714
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, establishmentId, 'establishmentId');
|
|
2715
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, movementType, 'movementType');
|
|
2716
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dateFrom, 'dateFrom');
|
|
2717
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dateTo, 'dateTo');
|
|
2718
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, 'page');
|
|
2719
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
|
|
2720
|
-
let localVarHeaders = this.defaultHeaders;
|
|
2721
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2722
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2723
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2724
|
-
}
|
|
2725
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2726
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
2727
|
-
let responseType_ = 'json';
|
|
2728
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
2729
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2730
|
-
responseType_ = 'text';
|
|
2731
|
-
}
|
|
2732
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2733
|
-
responseType_ = 'json';
|
|
2734
|
-
}
|
|
2735
|
-
else {
|
|
2736
|
-
responseType_ = 'blob';
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
let localVarPath = `/stock-movements`;
|
|
2740
|
-
const { basePath, withCredentials } = this.configuration;
|
|
2741
|
-
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2742
|
-
context: localVarHttpContext,
|
|
2743
|
-
params: localVarQueryParameters,
|
|
2744
|
-
responseType: responseType_,
|
|
2745
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
2746
|
-
headers: localVarHeaders,
|
|
2747
|
-
observe: observe,
|
|
2748
|
-
transferCache: localVarTransferCache,
|
|
2749
|
-
reportProgress: reportProgress
|
|
2750
|
-
});
|
|
2751
|
-
}
|
|
2752
2704
|
stockMovementControllerFindByEstablishment(establishmentId, movementType, dateFrom, dateTo, page, limit, observe = 'body', reportProgress = false, options) {
|
|
2753
2705
|
if (establishmentId === null || establishmentId === undefined) {
|
|
2754
2706
|
throw new Error('Required parameter establishmentId was null or undefined when calling stockMovementControllerFindByEstablishment.');
|
|
@@ -2778,7 +2730,7 @@ class StockMovementsService extends BaseService {
|
|
|
2778
2730
|
responseType_ = 'blob';
|
|
2779
2731
|
}
|
|
2780
2732
|
}
|
|
2781
|
-
let localVarPath = `/stock-movements/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2733
|
+
let localVarPath = `/stock-movements/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/stock-movements-by-establishment`;
|
|
2782
2734
|
const { basePath, withCredentials } = this.configuration;
|
|
2783
2735
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2784
2736
|
context: localVarHttpContext,
|
|
@@ -2791,123 +2743,6 @@ class StockMovementsService extends BaseService {
|
|
|
2791
2743
|
reportProgress: reportProgress
|
|
2792
2744
|
});
|
|
2793
2745
|
}
|
|
2794
|
-
stockMovementControllerFindOne(id, observe = 'body', reportProgress = false, options) {
|
|
2795
|
-
if (id === null || id === undefined) {
|
|
2796
|
-
throw new Error('Required parameter id was null or undefined when calling stockMovementControllerFindOne.');
|
|
2797
|
-
}
|
|
2798
|
-
let localVarHeaders = this.defaultHeaders;
|
|
2799
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2800
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2801
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2802
|
-
}
|
|
2803
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2804
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
2805
|
-
let responseType_ = 'json';
|
|
2806
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
2807
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2808
|
-
responseType_ = 'text';
|
|
2809
|
-
}
|
|
2810
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2811
|
-
responseType_ = 'json';
|
|
2812
|
-
}
|
|
2813
|
-
else {
|
|
2814
|
-
responseType_ = 'blob';
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
let localVarPath = `/stock-movements/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2818
|
-
const { basePath, withCredentials } = this.configuration;
|
|
2819
|
-
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2820
|
-
context: localVarHttpContext,
|
|
2821
|
-
responseType: responseType_,
|
|
2822
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
2823
|
-
headers: localVarHeaders,
|
|
2824
|
-
observe: observe,
|
|
2825
|
-
transferCache: localVarTransferCache,
|
|
2826
|
-
reportProgress: reportProgress
|
|
2827
|
-
});
|
|
2828
|
-
}
|
|
2829
|
-
stockMovementControllerRecalculateStock(productId, observe = 'body', reportProgress = false, options) {
|
|
2830
|
-
if (productId === null || productId === undefined) {
|
|
2831
|
-
throw new Error('Required parameter productId was null or undefined when calling stockMovementControllerRecalculateStock.');
|
|
2832
|
-
}
|
|
2833
|
-
let localVarHeaders = this.defaultHeaders;
|
|
2834
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2835
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2836
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2837
|
-
}
|
|
2838
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2839
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
2840
|
-
let responseType_ = 'json';
|
|
2841
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
2842
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2843
|
-
responseType_ = 'text';
|
|
2844
|
-
}
|
|
2845
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2846
|
-
responseType_ = 'json';
|
|
2847
|
-
}
|
|
2848
|
-
else {
|
|
2849
|
-
responseType_ = 'blob';
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
let localVarPath = `/stock-movements/${this.configuration.encodeParam({ name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/recalculate-stock`;
|
|
2853
|
-
const { basePath, withCredentials } = this.configuration;
|
|
2854
|
-
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
2855
|
-
context: localVarHttpContext,
|
|
2856
|
-
responseType: responseType_,
|
|
2857
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
2858
|
-
headers: localVarHeaders,
|
|
2859
|
-
observe: observe,
|
|
2860
|
-
transferCache: localVarTransferCache,
|
|
2861
|
-
reportProgress: reportProgress
|
|
2862
|
-
});
|
|
2863
|
-
}
|
|
2864
|
-
stockMovementControllerUpdate(id, updateStockMovementDto, observe = 'body', reportProgress = false, options) {
|
|
2865
|
-
if (id === null || id === undefined) {
|
|
2866
|
-
throw new Error('Required parameter id was null or undefined when calling stockMovementControllerUpdate.');
|
|
2867
|
-
}
|
|
2868
|
-
if (updateStockMovementDto === null || updateStockMovementDto === undefined) {
|
|
2869
|
-
throw new Error('Required parameter updateStockMovementDto was null or undefined when calling stockMovementControllerUpdate.');
|
|
2870
|
-
}
|
|
2871
|
-
let localVarHeaders = this.defaultHeaders;
|
|
2872
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2873
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2874
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2875
|
-
}
|
|
2876
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2877
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
2878
|
-
// to determine the Content-Type header
|
|
2879
|
-
const consumes = [
|
|
2880
|
-
'application/json'
|
|
2881
|
-
];
|
|
2882
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2883
|
-
if (httpContentTypeSelected !== undefined) {
|
|
2884
|
-
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2885
|
-
}
|
|
2886
|
-
let responseType_ = 'json';
|
|
2887
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
2888
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2889
|
-
responseType_ = 'text';
|
|
2890
|
-
}
|
|
2891
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2892
|
-
responseType_ = 'json';
|
|
2893
|
-
}
|
|
2894
|
-
else {
|
|
2895
|
-
responseType_ = 'blob';
|
|
2896
|
-
}
|
|
2897
|
-
}
|
|
2898
|
-
let localVarPath = `/stock-movements/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2899
|
-
const { basePath, withCredentials } = this.configuration;
|
|
2900
|
-
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
2901
|
-
context: localVarHttpContext,
|
|
2902
|
-
body: updateStockMovementDto,
|
|
2903
|
-
responseType: responseType_,
|
|
2904
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
2905
|
-
headers: localVarHeaders,
|
|
2906
|
-
observe: observe,
|
|
2907
|
-
transferCache: localVarTransferCache,
|
|
2908
|
-
reportProgress: reportProgress
|
|
2909
|
-
});
|
|
2910
|
-
}
|
|
2911
2746
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockMovementsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2912
2747
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StockMovementsService, providedIn: 'root' });
|
|
2913
2748
|
}
|
|
@@ -2966,7 +2801,7 @@ class UsersService extends BaseService {
|
|
|
2966
2801
|
responseType_ = 'blob';
|
|
2967
2802
|
}
|
|
2968
2803
|
}
|
|
2969
|
-
let localVarPath = `/users/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2804
|
+
let localVarPath = `/users/establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/users-by-establishment`;
|
|
2970
2805
|
const { basePath, withCredentials } = this.configuration;
|
|
2971
2806
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2972
2807
|
context: localVarHttpContext,
|
|
@@ -3003,7 +2838,7 @@ class UsersService extends BaseService {
|
|
|
3003
2838
|
responseType_ = 'blob';
|
|
3004
2839
|
}
|
|
3005
2840
|
}
|
|
3006
|
-
let localVarPath = `/users/email/${this.configuration.encodeParam({ name: "email", value: email, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2841
|
+
let localVarPath = `/users/email/${this.configuration.encodeParam({ name: "email", value: email, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/retrieve-user-by-email`;
|
|
3007
2842
|
const { basePath, withCredentials } = this.configuration;
|
|
3008
2843
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3009
2844
|
context: localVarHttpContext,
|
|
@@ -3040,7 +2875,7 @@ class UsersService extends BaseService {
|
|
|
3040
2875
|
responseType_ = 'blob';
|
|
3041
2876
|
}
|
|
3042
2877
|
}
|
|
3043
|
-
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
2878
|
+
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/retrieve-user`;
|
|
3044
2879
|
const { basePath, withCredentials } = this.configuration;
|
|
3045
2880
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3046
2881
|
context: localVarHttpContext,
|
|
@@ -3082,7 +2917,7 @@ class UsersService extends BaseService {
|
|
|
3082
2917
|
responseType_ = 'blob';
|
|
3083
2918
|
}
|
|
3084
2919
|
}
|
|
3085
|
-
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/email`;
|
|
2920
|
+
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/email/update-user-email`;
|
|
3086
2921
|
const { basePath, withCredentials } = this.configuration;
|
|
3087
2922
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3088
2923
|
context: localVarHttpContext,
|
|
@@ -3129,7 +2964,7 @@ class UsersService extends BaseService {
|
|
|
3129
2964
|
responseType_ = 'blob';
|
|
3130
2965
|
}
|
|
3131
2966
|
}
|
|
3132
|
-
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/login-info`;
|
|
2967
|
+
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/login-info/update-user-login-info`;
|
|
3133
2968
|
const { basePath, withCredentials } = this.configuration;
|
|
3134
2969
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3135
2970
|
context: localVarHttpContext,
|
|
@@ -3172,7 +3007,7 @@ class UsersService extends BaseService {
|
|
|
3172
3007
|
responseType_ = 'blob';
|
|
3173
3008
|
}
|
|
3174
3009
|
}
|
|
3175
|
-
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/password`;
|
|
3010
|
+
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/password/update-user-password`;
|
|
3176
3011
|
const { basePath, withCredentials } = this.configuration;
|
|
3177
3012
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3178
3013
|
context: localVarHttpContext,
|
|
@@ -3215,7 +3050,7 @@ class UsersService extends BaseService {
|
|
|
3215
3050
|
responseType_ = 'blob';
|
|
3216
3051
|
}
|
|
3217
3052
|
}
|
|
3218
|
-
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/phone`;
|
|
3053
|
+
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/phone/update-user-phone`;
|
|
3219
3054
|
const { basePath, withCredentials } = this.configuration;
|
|
3220
3055
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3221
3056
|
context: localVarHttpContext,
|
|
@@ -3256,7 +3091,7 @@ class UsersService extends BaseService {
|
|
|
3256
3091
|
responseType_ = 'blob';
|
|
3257
3092
|
}
|
|
3258
3093
|
}
|
|
3259
|
-
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
3094
|
+
let localVarPath = `/users/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}/status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/update-user-status`;
|
|
3260
3095
|
const { basePath, withCredentials } = this.configuration;
|
|
3261
3096
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3262
3097
|
context: localVarHttpContext,
|
|
@@ -3443,23 +3278,6 @@ var CreatePaymentDto;
|
|
|
3443
3278
|
* Do not edit the class manually.
|
|
3444
3279
|
*/
|
|
3445
3280
|
|
|
3446
|
-
/**
|
|
3447
|
-
* karibu
|
|
3448
|
-
*
|
|
3449
|
-
*
|
|
3450
|
-
*
|
|
3451
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3452
|
-
* https://openapi-generator.tech
|
|
3453
|
-
* Do not edit the class manually.
|
|
3454
|
-
*/
|
|
3455
|
-
var CreateStockMovementDto;
|
|
3456
|
-
(function (CreateStockMovementDto) {
|
|
3457
|
-
CreateStockMovementDto.MovementTypeEnum = {
|
|
3458
|
-
In: 'IN',
|
|
3459
|
-
Out: 'OUT'
|
|
3460
|
-
};
|
|
3461
|
-
})(CreateStockMovementDto || (CreateStockMovementDto = {}));
|
|
3462
|
-
|
|
3463
3281
|
/**
|
|
3464
3282
|
* karibu
|
|
3465
3283
|
*
|
|
@@ -3680,16 +3498,6 @@ var UpdatePaymentDto;
|
|
|
3680
3498
|
* Do not edit the class manually.
|
|
3681
3499
|
*/
|
|
3682
3500
|
|
|
3683
|
-
/**
|
|
3684
|
-
* karibu
|
|
3685
|
-
*
|
|
3686
|
-
*
|
|
3687
|
-
*
|
|
3688
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3689
|
-
* https://openapi-generator.tech
|
|
3690
|
-
* Do not edit the class manually.
|
|
3691
|
-
*/
|
|
3692
|
-
|
|
3693
3501
|
/**
|
|
3694
3502
|
* karibu
|
|
3695
3503
|
*
|
|
@@ -3762,5 +3570,5 @@ function provideApi(configOrBasePath) {
|
|
|
3762
3570
|
* Generated bundle index. Do not edit.
|
|
3763
3571
|
*/
|
|
3764
3572
|
|
|
3765
|
-
export { APIS, ApiModule, AppService, AuthenticationService, BASE_PATH, BoardResponseDto, BoardsService, COLLECTION_FORMATS, CategoriesService, CategoryResponseDto, Configuration, CreateCategoryDto, CreateEstablishmentDto, CreatePaymentDto,
|
|
3573
|
+
export { APIS, ApiModule, AppService, AuthenticationService, BASE_PATH, BoardResponseDto, BoardsService, COLLECTION_FORMATS, CategoriesService, CategoryResponseDto, Configuration, CreateCategoryDto, CreateEstablishmentDto, CreatePaymentDto, EstablishmentResponseDto, EstablishmentsService, InvoicesService, OrderResponseDto, OrdersService, PaymentResponseDto, PaymentsService, ProductsService, StockMovementsService, UpdateBoardDto, UpdateCategoryDto, UpdateEstablishmentDto, UpdatePaymentDto, UserResponseDto, UsersService, provideApi };
|
|
3766
3574
|
//# sourceMappingURL=karibu-layer.mjs.map
|