@saritasa/renewaire-frontend-sdk 0.1.0-dev.323 → 0.1.0-dev.341

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
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.1.0-dev.323
1
+ # @@saritasa/renewaire-frontend-sdk@0.1.0-dev.341
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.1.0-dev.323 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.1.0-dev.341 --save
5
5
  ```
@@ -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,61 @@ class RepTerritoriesApiService extends BaseService {
912
1079
  reportProgress: reportProgress,
913
1080
  });
914
1081
  }
1082
+ repTerritoriesCreateRepTerritoryRepContact(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 repTerritoriesCreateRepTerritoryRepContact.");
1086
+ }
1087
+ const saveRepTerritoryRepContactDto = requestParameters?.saveRepTerritoryRepContactDto;
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" })}/rep-contacts`;
1125
+ const { basePath, withCredentials } = this.configuration;
1126
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1127
+ context: localVarHttpContext,
1128
+ body: saveRepTerritoryRepContactDto,
1129
+ responseType: responseType_,
1130
+ ...(withCredentials ? { withCredentials } : {}),
1131
+ headers: localVarHeaders,
1132
+ observe: observe,
1133
+ transferCache: localVarTransferCache,
1134
+ reportProgress: reportProgress,
1135
+ });
1136
+ }
915
1137
  repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
916
1138
  const repTerritoryId = requestParameters?.repTerritoryId;
917
1139
  if (repTerritoryId === null || repTerritoryId === undefined) {
@@ -1732,6 +1954,7 @@ const APIS = [
1732
1954
  PermissionBundlesApiService,
1733
1955
  PermissionsApiService,
1734
1956
  RegionsApiService,
1957
+ RepContactsApiService,
1735
1958
  RepTerritoriesApiService,
1736
1959
  RsdRegionsApiService,
1737
1960
  UsersApiService,
@@ -2089,5 +2312,5 @@ function provideApi(configOrBasePath) {
2089
2312
  * Generated bundle index. Do not edit.
2090
2313
  */
2091
2314
 
2092
- export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, Permission, PermissionBundlesApiService, PermissionsApiService, RegionLevel, RegionsApiService, RepTerritoriesApiService, RsdRegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
2315
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, Permission, PermissionBundlesApiService, PermissionsApiService, RegionLevel, RegionsApiService, RepContactsApiService, RepTerritoriesApiService, RsdRegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
2093
2316
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map