@saritasa/renewaire-frontend-sdk 0.1.0-dev.333 → 0.1.0-dev.367
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/README.md
CHANGED
|
@@ -845,6 +845,173 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
845
845
|
type: Optional
|
|
846
846
|
}] }] });
|
|
847
847
|
|
|
848
|
+
/**
|
|
849
|
+
* RenewAire CORES API
|
|
850
|
+
*
|
|
851
|
+
* Contact: renewaire@saritasa.com
|
|
852
|
+
*
|
|
853
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
854
|
+
* https://openapi-generator.tech
|
|
855
|
+
* Do not edit the class manually.
|
|
856
|
+
*/
|
|
857
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
858
|
+
class RepContactsApiService extends BaseService {
|
|
859
|
+
httpClient;
|
|
860
|
+
constructor(httpClient, basePath, configuration) {
|
|
861
|
+
super(basePath, configuration);
|
|
862
|
+
this.httpClient = httpClient;
|
|
863
|
+
}
|
|
864
|
+
repContactsGetRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
865
|
+
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
866
|
+
if (repTerritoryRepContactId === null ||
|
|
867
|
+
repTerritoryRepContactId === undefined) {
|
|
868
|
+
throw new Error("Required parameter repTerritoryRepContactId was null or undefined when calling repContactsGetRepTerritoryRepContact.");
|
|
869
|
+
}
|
|
870
|
+
let localVarHeaders = this.defaultHeaders;
|
|
871
|
+
// authentication (Bearer) required
|
|
872
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
873
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
874
|
+
this.configuration.selectHeaderAccept([
|
|
875
|
+
"text/plain",
|
|
876
|
+
"application/json",
|
|
877
|
+
"text/json",
|
|
878
|
+
]);
|
|
879
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
880
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
881
|
+
}
|
|
882
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
883
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
884
|
+
let responseType_ = "json";
|
|
885
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
886
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
887
|
+
responseType_ = "text";
|
|
888
|
+
}
|
|
889
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
890
|
+
responseType_ = "json";
|
|
891
|
+
}
|
|
892
|
+
else {
|
|
893
|
+
responseType_ = "blob";
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
let localVarPath = `/api/rep-contacts/${this.configuration.encodeParam({ name: "repTerritoryRepContactId", value: repTerritoryRepContactId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
897
|
+
const { basePath, withCredentials } = this.configuration;
|
|
898
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
899
|
+
context: localVarHttpContext,
|
|
900
|
+
responseType: responseType_,
|
|
901
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
902
|
+
headers: localVarHeaders,
|
|
903
|
+
observe: observe,
|
|
904
|
+
transferCache: localVarTransferCache,
|
|
905
|
+
reportProgress: reportProgress,
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
repContactsRemoveRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
909
|
+
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
910
|
+
if (repTerritoryRepContactId === null ||
|
|
911
|
+
repTerritoryRepContactId === undefined) {
|
|
912
|
+
throw new Error("Required parameter repTerritoryRepContactId was null or undefined when calling repContactsRemoveRepTerritoryRepContact.");
|
|
913
|
+
}
|
|
914
|
+
let localVarHeaders = this.defaultHeaders;
|
|
915
|
+
// authentication (Bearer) required
|
|
916
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
917
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
918
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
919
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
920
|
+
}
|
|
921
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
922
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
923
|
+
let responseType_ = "json";
|
|
924
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
925
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
926
|
+
responseType_ = "text";
|
|
927
|
+
}
|
|
928
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
929
|
+
responseType_ = "json";
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
responseType_ = "blob";
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
let localVarPath = `/api/rep-contacts/${this.configuration.encodeParam({ name: "repTerritoryRepContactId", value: repTerritoryRepContactId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
936
|
+
const { basePath, withCredentials } = this.configuration;
|
|
937
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
938
|
+
context: localVarHttpContext,
|
|
939
|
+
responseType: responseType_,
|
|
940
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
941
|
+
headers: localVarHeaders,
|
|
942
|
+
observe: observe,
|
|
943
|
+
transferCache: localVarTransferCache,
|
|
944
|
+
reportProgress: reportProgress,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
repContactsUpdateRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
948
|
+
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
949
|
+
if (repTerritoryRepContactId === null ||
|
|
950
|
+
repTerritoryRepContactId === undefined) {
|
|
951
|
+
throw new Error("Required parameter repTerritoryRepContactId was null or undefined when calling repContactsUpdateRepTerritoryRepContact.");
|
|
952
|
+
}
|
|
953
|
+
const saveRepTerritoryRepContactDto = requestParameters?.saveRepTerritoryRepContactDto;
|
|
954
|
+
let localVarHeaders = this.defaultHeaders;
|
|
955
|
+
// authentication (Bearer) required
|
|
956
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
957
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
958
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
959
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
960
|
+
}
|
|
961
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
962
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
963
|
+
// to determine the Content-Type header
|
|
964
|
+
const consumes = [
|
|
965
|
+
"application/json",
|
|
966
|
+
"text/json",
|
|
967
|
+
"application/*+json",
|
|
968
|
+
];
|
|
969
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
970
|
+
if (httpContentTypeSelected !== undefined) {
|
|
971
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
972
|
+
}
|
|
973
|
+
let responseType_ = "json";
|
|
974
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
975
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
976
|
+
responseType_ = "text";
|
|
977
|
+
}
|
|
978
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
979
|
+
responseType_ = "json";
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
responseType_ = "blob";
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
let localVarPath = `/api/rep-contacts/${this.configuration.encodeParam({ name: "repTerritoryRepContactId", value: repTerritoryRepContactId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
986
|
+
const { basePath, withCredentials } = this.configuration;
|
|
987
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
988
|
+
context: localVarHttpContext,
|
|
989
|
+
body: saveRepTerritoryRepContactDto,
|
|
990
|
+
responseType: responseType_,
|
|
991
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
992
|
+
headers: localVarHeaders,
|
|
993
|
+
observe: observe,
|
|
994
|
+
transferCache: localVarTransferCache,
|
|
995
|
+
reportProgress: reportProgress,
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepContactsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
999
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepContactsApiService, providedIn: "root" });
|
|
1000
|
+
}
|
|
1001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepContactsApiService, decorators: [{
|
|
1002
|
+
type: Injectable,
|
|
1003
|
+
args: [{
|
|
1004
|
+
providedIn: "root",
|
|
1005
|
+
}]
|
|
1006
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1007
|
+
type: Optional
|
|
1008
|
+
}, {
|
|
1009
|
+
type: Inject,
|
|
1010
|
+
args: [BASE_PATH]
|
|
1011
|
+
}] }, { type: Configuration, decorators: [{
|
|
1012
|
+
type: Optional
|
|
1013
|
+
}] }] });
|
|
1014
|
+
|
|
848
1015
|
/**
|
|
849
1016
|
* RenewAire CORES API
|
|
850
1017
|
*
|
|
@@ -912,6 +1079,116 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
912
1079
|
reportProgress: reportProgress,
|
|
913
1080
|
});
|
|
914
1081
|
}
|
|
1082
|
+
repTerritoriesCreateRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1083
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1084
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1085
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesCreateRepTerritoryLocation.");
|
|
1086
|
+
}
|
|
1087
|
+
const saveRepTerritoryLocationDto = requestParameters?.saveRepTerritoryLocationDto;
|
|
1088
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1089
|
+
// authentication (Bearer) required
|
|
1090
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1091
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1092
|
+
this.configuration.selectHeaderAccept([
|
|
1093
|
+
"text/plain",
|
|
1094
|
+
"application/json",
|
|
1095
|
+
"text/json",
|
|
1096
|
+
]);
|
|
1097
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1098
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1099
|
+
}
|
|
1100
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1101
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1102
|
+
// to determine the Content-Type header
|
|
1103
|
+
const consumes = [
|
|
1104
|
+
"application/json",
|
|
1105
|
+
"text/json",
|
|
1106
|
+
"application/*+json",
|
|
1107
|
+
];
|
|
1108
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1109
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1110
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1111
|
+
}
|
|
1112
|
+
let responseType_ = "json";
|
|
1113
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1114
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1115
|
+
responseType_ = "text";
|
|
1116
|
+
}
|
|
1117
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1118
|
+
responseType_ = "json";
|
|
1119
|
+
}
|
|
1120
|
+
else {
|
|
1121
|
+
responseType_ = "blob";
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/locations`;
|
|
1125
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1126
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1127
|
+
context: localVarHttpContext,
|
|
1128
|
+
body: saveRepTerritoryLocationDto,
|
|
1129
|
+
responseType: responseType_,
|
|
1130
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1131
|
+
headers: localVarHeaders,
|
|
1132
|
+
observe: observe,
|
|
1133
|
+
transferCache: localVarTransferCache,
|
|
1134
|
+
reportProgress: reportProgress,
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
repTerritoriesCreateRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1138
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1139
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1140
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesCreateRepTerritoryRepContact.");
|
|
1141
|
+
}
|
|
1142
|
+
const saveRepTerritoryRepContactDto = requestParameters?.saveRepTerritoryRepContactDto;
|
|
1143
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1144
|
+
// authentication (Bearer) required
|
|
1145
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1146
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1147
|
+
this.configuration.selectHeaderAccept([
|
|
1148
|
+
"text/plain",
|
|
1149
|
+
"application/json",
|
|
1150
|
+
"text/json",
|
|
1151
|
+
]);
|
|
1152
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1153
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1154
|
+
}
|
|
1155
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1156
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1157
|
+
// to determine the Content-Type header
|
|
1158
|
+
const consumes = [
|
|
1159
|
+
"application/json",
|
|
1160
|
+
"text/json",
|
|
1161
|
+
"application/*+json",
|
|
1162
|
+
];
|
|
1163
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1164
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1165
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1166
|
+
}
|
|
1167
|
+
let responseType_ = "json";
|
|
1168
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1169
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1170
|
+
responseType_ = "text";
|
|
1171
|
+
}
|
|
1172
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1173
|
+
responseType_ = "json";
|
|
1174
|
+
}
|
|
1175
|
+
else {
|
|
1176
|
+
responseType_ = "blob";
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/rep-contacts`;
|
|
1180
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1181
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1182
|
+
context: localVarHttpContext,
|
|
1183
|
+
body: saveRepTerritoryRepContactDto,
|
|
1184
|
+
responseType: responseType_,
|
|
1185
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1186
|
+
headers: localVarHeaders,
|
|
1187
|
+
observe: observe,
|
|
1188
|
+
transferCache: localVarTransferCache,
|
|
1189
|
+
reportProgress: reportProgress,
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
915
1192
|
repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
|
|
916
1193
|
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
917
1194
|
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
@@ -1113,6 +1390,228 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
1113
1390
|
type: Optional
|
|
1114
1391
|
}] }] });
|
|
1115
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* RenewAire CORES API
|
|
1395
|
+
*
|
|
1396
|
+
* Contact: renewaire@saritasa.com
|
|
1397
|
+
*
|
|
1398
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1399
|
+
* https://openapi-generator.tech
|
|
1400
|
+
* Do not edit the class manually.
|
|
1401
|
+
*/
|
|
1402
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1403
|
+
class RepTerritoryLocationsApiService extends BaseService {
|
|
1404
|
+
httpClient;
|
|
1405
|
+
constructor(httpClient, basePath, configuration) {
|
|
1406
|
+
super(basePath, configuration);
|
|
1407
|
+
this.httpClient = httpClient;
|
|
1408
|
+
}
|
|
1409
|
+
repTerritoryLocationsGetRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1410
|
+
const repTerritoryLocationId = requestParameters?.repTerritoryLocationId;
|
|
1411
|
+
if (repTerritoryLocationId === null ||
|
|
1412
|
+
repTerritoryLocationId === undefined) {
|
|
1413
|
+
throw new Error("Required parameter repTerritoryLocationId was null or undefined when calling repTerritoryLocationsGetRepTerritoryLocation.");
|
|
1414
|
+
}
|
|
1415
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1416
|
+
// authentication (Bearer) required
|
|
1417
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1418
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1419
|
+
this.configuration.selectHeaderAccept([
|
|
1420
|
+
"text/plain",
|
|
1421
|
+
"application/json",
|
|
1422
|
+
"text/json",
|
|
1423
|
+
]);
|
|
1424
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1425
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1426
|
+
}
|
|
1427
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1428
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1429
|
+
let responseType_ = "json";
|
|
1430
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1431
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1432
|
+
responseType_ = "text";
|
|
1433
|
+
}
|
|
1434
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1435
|
+
responseType_ = "json";
|
|
1436
|
+
}
|
|
1437
|
+
else {
|
|
1438
|
+
responseType_ = "blob";
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
let localVarPath = `/api/rep-territory-locations/${this.configuration.encodeParam({ name: "repTerritoryLocationId", value: repTerritoryLocationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1442
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1443
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1444
|
+
context: localVarHttpContext,
|
|
1445
|
+
responseType: responseType_,
|
|
1446
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1447
|
+
headers: localVarHeaders,
|
|
1448
|
+
observe: observe,
|
|
1449
|
+
transferCache: localVarTransferCache,
|
|
1450
|
+
reportProgress: reportProgress,
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
repTerritoryLocationsRemoveRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1454
|
+
const repTerritoryLocationId = requestParameters?.repTerritoryLocationId;
|
|
1455
|
+
if (repTerritoryLocationId === null ||
|
|
1456
|
+
repTerritoryLocationId === undefined) {
|
|
1457
|
+
throw new Error("Required parameter repTerritoryLocationId was null or undefined when calling repTerritoryLocationsRemoveRepTerritoryLocation.");
|
|
1458
|
+
}
|
|
1459
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1460
|
+
// authentication (Bearer) required
|
|
1461
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1462
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1463
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1464
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1465
|
+
}
|
|
1466
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1467
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1468
|
+
let responseType_ = "json";
|
|
1469
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1470
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1471
|
+
responseType_ = "text";
|
|
1472
|
+
}
|
|
1473
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1474
|
+
responseType_ = "json";
|
|
1475
|
+
}
|
|
1476
|
+
else {
|
|
1477
|
+
responseType_ = "blob";
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
let localVarPath = `/api/rep-territory-locations/${this.configuration.encodeParam({ name: "repTerritoryLocationId", value: repTerritoryLocationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1481
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1482
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1483
|
+
context: localVarHttpContext,
|
|
1484
|
+
responseType: responseType_,
|
|
1485
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1486
|
+
headers: localVarHeaders,
|
|
1487
|
+
observe: observe,
|
|
1488
|
+
transferCache: localVarTransferCache,
|
|
1489
|
+
reportProgress: reportProgress,
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
repTerritoryLocationsSearchRepTerritoryLocations(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1493
|
+
const name = requestParameters?.name;
|
|
1494
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1495
|
+
const repName = requestParameters?.repName;
|
|
1496
|
+
const allCounties = requestParameters?.allCounties;
|
|
1497
|
+
const orderBy = requestParameters?.orderBy;
|
|
1498
|
+
const page = requestParameters?.page;
|
|
1499
|
+
const pageSize = requestParameters?.pageSize;
|
|
1500
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1501
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
1502
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repTerritoryId, "RepTerritoryId");
|
|
1503
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repName, "RepName");
|
|
1504
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, allCounties, "AllCounties");
|
|
1505
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
1506
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
1507
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
1508
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1509
|
+
// authentication (Bearer) required
|
|
1510
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1511
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1512
|
+
this.configuration.selectHeaderAccept([
|
|
1513
|
+
"text/plain",
|
|
1514
|
+
"application/json",
|
|
1515
|
+
"text/json",
|
|
1516
|
+
]);
|
|
1517
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1518
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1519
|
+
}
|
|
1520
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1521
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1522
|
+
let responseType_ = "json";
|
|
1523
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1524
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1525
|
+
responseType_ = "text";
|
|
1526
|
+
}
|
|
1527
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1528
|
+
responseType_ = "json";
|
|
1529
|
+
}
|
|
1530
|
+
else {
|
|
1531
|
+
responseType_ = "blob";
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
let localVarPath = `/api/rep-territory-locations`;
|
|
1535
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1536
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1537
|
+
context: localVarHttpContext,
|
|
1538
|
+
params: localVarQueryParameters,
|
|
1539
|
+
responseType: responseType_,
|
|
1540
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1541
|
+
headers: localVarHeaders,
|
|
1542
|
+
observe: observe,
|
|
1543
|
+
transferCache: localVarTransferCache,
|
|
1544
|
+
reportProgress: reportProgress,
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
repTerritoryLocationsUpdateRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1548
|
+
const repTerritoryLocationId = requestParameters?.repTerritoryLocationId;
|
|
1549
|
+
if (repTerritoryLocationId === null ||
|
|
1550
|
+
repTerritoryLocationId === undefined) {
|
|
1551
|
+
throw new Error("Required parameter repTerritoryLocationId was null or undefined when calling repTerritoryLocationsUpdateRepTerritoryLocation.");
|
|
1552
|
+
}
|
|
1553
|
+
const saveRepTerritoryLocationDto = requestParameters?.saveRepTerritoryLocationDto;
|
|
1554
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1555
|
+
// authentication (Bearer) required
|
|
1556
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1557
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1558
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1559
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1560
|
+
}
|
|
1561
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1562
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1563
|
+
// to determine the Content-Type header
|
|
1564
|
+
const consumes = [
|
|
1565
|
+
"application/json",
|
|
1566
|
+
"text/json",
|
|
1567
|
+
"application/*+json",
|
|
1568
|
+
];
|
|
1569
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1570
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1571
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1572
|
+
}
|
|
1573
|
+
let responseType_ = "json";
|
|
1574
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1575
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1576
|
+
responseType_ = "text";
|
|
1577
|
+
}
|
|
1578
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1579
|
+
responseType_ = "json";
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
responseType_ = "blob";
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
let localVarPath = `/api/rep-territory-locations/${this.configuration.encodeParam({ name: "repTerritoryLocationId", value: repTerritoryLocationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1586
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1587
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
1588
|
+
context: localVarHttpContext,
|
|
1589
|
+
body: saveRepTerritoryLocationDto,
|
|
1590
|
+
responseType: responseType_,
|
|
1591
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1592
|
+
headers: localVarHeaders,
|
|
1593
|
+
observe: observe,
|
|
1594
|
+
transferCache: localVarTransferCache,
|
|
1595
|
+
reportProgress: reportProgress,
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepTerritoryLocationsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1599
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepTerritoryLocationsApiService, providedIn: "root" });
|
|
1600
|
+
}
|
|
1601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: RepTerritoryLocationsApiService, decorators: [{
|
|
1602
|
+
type: Injectable,
|
|
1603
|
+
args: [{
|
|
1604
|
+
providedIn: "root",
|
|
1605
|
+
}]
|
|
1606
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1607
|
+
type: Optional
|
|
1608
|
+
}, {
|
|
1609
|
+
type: Inject,
|
|
1610
|
+
args: [BASE_PATH]
|
|
1611
|
+
}] }, { type: Configuration, decorators: [{
|
|
1612
|
+
type: Optional
|
|
1613
|
+
}] }] });
|
|
1614
|
+
|
|
1116
1615
|
/**
|
|
1117
1616
|
* RenewAire CORES API
|
|
1118
1617
|
*
|
|
@@ -1491,7 +1990,7 @@ class UsersApiService extends BaseService {
|
|
|
1491
1990
|
reportProgress: reportProgress,
|
|
1492
1991
|
});
|
|
1493
1992
|
}
|
|
1494
|
-
|
|
1993
|
+
usersGetCurrentRepContacts(observe = "body", reportProgress = false, options) {
|
|
1495
1994
|
let localVarHeaders = this.defaultHeaders;
|
|
1496
1995
|
// authentication (Bearer) required
|
|
1497
1996
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -1530,10 +2029,10 @@ class UsersApiService extends BaseService {
|
|
|
1530
2029
|
reportProgress: reportProgress,
|
|
1531
2030
|
});
|
|
1532
2031
|
}
|
|
1533
|
-
|
|
2032
|
+
usersGetRepContacts(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1534
2033
|
const userId = requestParameters?.userId;
|
|
1535
2034
|
if (userId === null || userId === undefined) {
|
|
1536
|
-
throw new Error("Required parameter userId was null or undefined when calling
|
|
2035
|
+
throw new Error("Required parameter userId was null or undefined when calling usersGetRepContacts.");
|
|
1537
2036
|
}
|
|
1538
2037
|
let localVarHeaders = this.defaultHeaders;
|
|
1539
2038
|
// authentication (Bearer) required
|
|
@@ -1732,7 +2231,9 @@ const APIS = [
|
|
|
1732
2231
|
PermissionBundlesApiService,
|
|
1733
2232
|
PermissionsApiService,
|
|
1734
2233
|
RegionsApiService,
|
|
2234
|
+
RepContactsApiService,
|
|
1735
2235
|
RepTerritoriesApiService,
|
|
2236
|
+
RepTerritoryLocationsApiService,
|
|
1736
2237
|
RsdRegionsApiService,
|
|
1737
2238
|
UsersApiService,
|
|
1738
2239
|
];
|
|
@@ -1892,6 +2393,22 @@ var Permission;
|
|
|
1892
2393
|
* Do not edit the class manually.
|
|
1893
2394
|
*/
|
|
1894
2395
|
|
|
2396
|
+
/**
|
|
2397
|
+
* RenewAire CORES API
|
|
2398
|
+
*
|
|
2399
|
+
* Contact: renewaire@saritasa.com
|
|
2400
|
+
*
|
|
2401
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2402
|
+
* https://openapi-generator.tech
|
|
2403
|
+
* Do not edit the class manually.
|
|
2404
|
+
*/
|
|
2405
|
+
var RegionDtoLevelEnum;
|
|
2406
|
+
(function (RegionDtoLevelEnum) {
|
|
2407
|
+
RegionDtoLevelEnum["Country"] = "Country";
|
|
2408
|
+
RegionDtoLevelEnum["State"] = "State";
|
|
2409
|
+
RegionDtoLevelEnum["County"] = "County";
|
|
2410
|
+
})(RegionDtoLevelEnum || (RegionDtoLevelEnum = {}));
|
|
2411
|
+
|
|
1895
2412
|
/**
|
|
1896
2413
|
* RenewAire CORES API
|
|
1897
2414
|
*
|
|
@@ -1961,6 +2478,16 @@ var RegionLevel;
|
|
|
1961
2478
|
* Do not edit the class manually.
|
|
1962
2479
|
*/
|
|
1963
2480
|
|
|
2481
|
+
/**
|
|
2482
|
+
* RenewAire CORES API
|
|
2483
|
+
*
|
|
2484
|
+
* Contact: renewaire@saritasa.com
|
|
2485
|
+
*
|
|
2486
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2487
|
+
* https://openapi-generator.tech
|
|
2488
|
+
* Do not edit the class manually.
|
|
2489
|
+
*/
|
|
2490
|
+
|
|
1964
2491
|
/**
|
|
1965
2492
|
* RenewAire CORES API
|
|
1966
2493
|
*
|
|
@@ -2089,5 +2616,5 @@ function provideApi(configOrBasePath) {
|
|
|
2089
2616
|
* Generated bundle index. Do not edit.
|
|
2090
2617
|
*/
|
|
2091
2618
|
|
|
2092
|
-
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, Permission, PermissionBundlesApiService, PermissionsApiService, RegionLevel, RegionsApiService, RepTerritoriesApiService, RsdRegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
|
|
2619
|
+
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
|
|
2093
2620
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|