@saritasa/renewaire-frontend-sdk 0.1.0-dev.341 → 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
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.1.0-dev.341
1
+ # @@saritasa/renewaire-frontend-sdk@0.1.0-dev.367
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.1.0-dev.341 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.1.0-dev.367 --save
5
5
  ```
@@ -1079,6 +1079,61 @@ class RepTerritoriesApiService extends BaseService {
1079
1079
  reportProgress: reportProgress,
1080
1080
  });
1081
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
+ }
1082
1137
  repTerritoriesCreateRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
1083
1138
  const repTerritoryId = requestParameters?.repTerritoryId;
1084
1139
  if (repTerritoryId === null || repTerritoryId === undefined) {
@@ -1335,6 +1390,228 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
1335
1390
  type: Optional
1336
1391
  }] }] });
1337
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
+
1338
1615
  /**
1339
1616
  * RenewAire CORES API
1340
1617
  *
@@ -1713,7 +1990,7 @@ class UsersApiService extends BaseService {
1713
1990
  reportProgress: reportProgress,
1714
1991
  });
1715
1992
  }
1716
- usersGetRepContacts(observe = "body", reportProgress = false, options) {
1993
+ usersGetCurrentRepContacts(observe = "body", reportProgress = false, options) {
1717
1994
  let localVarHeaders = this.defaultHeaders;
1718
1995
  // authentication (Bearer) required
1719
1996
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
@@ -1752,10 +2029,10 @@ class UsersApiService extends BaseService {
1752
2029
  reportProgress: reportProgress,
1753
2030
  });
1754
2031
  }
1755
- usersGetRepContacts_1(requestParameters, observe = "body", reportProgress = false, options) {
2032
+ usersGetRepContacts(requestParameters, observe = "body", reportProgress = false, options) {
1756
2033
  const userId = requestParameters?.userId;
1757
2034
  if (userId === null || userId === undefined) {
1758
- throw new Error("Required parameter userId was null or undefined when calling usersGetRepContacts_1.");
2035
+ throw new Error("Required parameter userId was null or undefined when calling usersGetRepContacts.");
1759
2036
  }
1760
2037
  let localVarHeaders = this.defaultHeaders;
1761
2038
  // authentication (Bearer) required
@@ -1956,6 +2233,7 @@ const APIS = [
1956
2233
  RegionsApiService,
1957
2234
  RepContactsApiService,
1958
2235
  RepTerritoriesApiService,
2236
+ RepTerritoryLocationsApiService,
1959
2237
  RsdRegionsApiService,
1960
2238
  UsersApiService,
1961
2239
  ];
@@ -2115,6 +2393,22 @@ var Permission;
2115
2393
  * Do not edit the class manually.
2116
2394
  */
2117
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
+
2118
2412
  /**
2119
2413
  * RenewAire CORES API
2120
2414
  *
@@ -2184,6 +2478,16 @@ var RegionLevel;
2184
2478
  * Do not edit the class manually.
2185
2479
  */
2186
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
+
2187
2491
  /**
2188
2492
  * RenewAire CORES API
2189
2493
  *
@@ -2312,5 +2616,5 @@ function provideApi(configOrBasePath) {
2312
2616
  * Generated bundle index. Do not edit.
2313
2617
  */
2314
2618
 
2315
- export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, Permission, PermissionBundlesApiService, PermissionsApiService, RegionLevel, RegionsApiService, RepContactsApiService, 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 };
2316
2620
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map