@saritasa/renewaire-frontend-sdk 0.132.0 → 0.134.0

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.132.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.134.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.132.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.134.0 --save
5
5
  ```
@@ -2186,6 +2186,180 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImpor
2186
2186
  type: Optional
2187
2187
  }] }] });
2188
2188
 
2189
+ /**
2190
+ * RenewAire CORES API
2191
+ *
2192
+ * Contact: renewaire@saritasa.com
2193
+ *
2194
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2195
+ * https://openapi-generator.tech
2196
+ * Do not edit the class manually.
2197
+ */
2198
+ /* tslint:disable:no-unused-variable member-ordering */
2199
+ class ProjectBidStatusesApiService extends BaseService {
2200
+ httpClient;
2201
+ constructor(httpClient, basePath, configuration) {
2202
+ super(basePath, configuration);
2203
+ this.httpClient = httpClient;
2204
+ }
2205
+ projectBidStatusCreateBidStatus(requestParameters, observe = "body", reportProgress = false, options) {
2206
+ const saveBidStatusDto = requestParameters?.saveBidStatusDto;
2207
+ let localVarHeaders = this.defaultHeaders;
2208
+ // authentication (Bearer) required
2209
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2210
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
2211
+ this.configuration.selectHeaderAccept([
2212
+ "text/plain",
2213
+ "application/json",
2214
+ "text/json",
2215
+ ]);
2216
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2217
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2218
+ }
2219
+ const localVarHttpContext = options?.context ?? new HttpContext();
2220
+ const localVarTransferCache = options?.transferCache ?? true;
2221
+ // to determine the Content-Type header
2222
+ const consumes = [
2223
+ "application/json-patch+json",
2224
+ "application/json",
2225
+ "text/json",
2226
+ "application/*+json",
2227
+ ];
2228
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2229
+ if (httpContentTypeSelected !== undefined) {
2230
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
2231
+ }
2232
+ let responseType_ = "json";
2233
+ if (localVarHttpHeaderAcceptSelected) {
2234
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2235
+ responseType_ = "text";
2236
+ }
2237
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2238
+ responseType_ = "json";
2239
+ }
2240
+ else {
2241
+ responseType_ = "blob";
2242
+ }
2243
+ }
2244
+ let localVarPath = `/api/project-bid-statuses`;
2245
+ const { basePath, withCredentials } = this.configuration;
2246
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2247
+ context: localVarHttpContext,
2248
+ body: saveBidStatusDto,
2249
+ responseType: responseType_,
2250
+ ...(withCredentials ? { withCredentials } : {}),
2251
+ headers: localVarHeaders,
2252
+ observe: observe,
2253
+ transferCache: localVarTransferCache,
2254
+ reportProgress: reportProgress,
2255
+ });
2256
+ }
2257
+ projectBidStatusRemoveBidStatus(requestParameters, observe = "body", reportProgress = false, options) {
2258
+ const id = requestParameters?.id;
2259
+ if (id === null || id === undefined) {
2260
+ throw new Error("Required parameter id was null or undefined when calling projectBidStatusRemoveBidStatus.");
2261
+ }
2262
+ let localVarHeaders = this.defaultHeaders;
2263
+ // authentication (Bearer) required
2264
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2265
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2266
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2267
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2268
+ }
2269
+ const localVarHttpContext = options?.context ?? new HttpContext();
2270
+ const localVarTransferCache = options?.transferCache ?? true;
2271
+ let responseType_ = "json";
2272
+ if (localVarHttpHeaderAcceptSelected) {
2273
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2274
+ responseType_ = "text";
2275
+ }
2276
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2277
+ responseType_ = "json";
2278
+ }
2279
+ else {
2280
+ responseType_ = "blob";
2281
+ }
2282
+ }
2283
+ let localVarPath = `/api/project-bid-statuses/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2284
+ const { basePath, withCredentials } = this.configuration;
2285
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
2286
+ context: localVarHttpContext,
2287
+ responseType: responseType_,
2288
+ ...(withCredentials ? { withCredentials } : {}),
2289
+ headers: localVarHeaders,
2290
+ observe: observe,
2291
+ transferCache: localVarTransferCache,
2292
+ reportProgress: reportProgress,
2293
+ });
2294
+ }
2295
+ projectBidStatusUpdateBidStatus(requestParameters, observe = "body", reportProgress = false, options) {
2296
+ const id = requestParameters?.id;
2297
+ if (id === null || id === undefined) {
2298
+ throw new Error("Required parameter id was null or undefined when calling projectBidStatusUpdateBidStatus.");
2299
+ }
2300
+ const saveBidStatusDto = requestParameters?.saveBidStatusDto;
2301
+ let localVarHeaders = this.defaultHeaders;
2302
+ // authentication (Bearer) required
2303
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2304
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2305
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2306
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2307
+ }
2308
+ const localVarHttpContext = options?.context ?? new HttpContext();
2309
+ const localVarTransferCache = options?.transferCache ?? true;
2310
+ // to determine the Content-Type header
2311
+ const consumes = [
2312
+ "application/json-patch+json",
2313
+ "application/json",
2314
+ "text/json",
2315
+ "application/*+json",
2316
+ ];
2317
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2318
+ if (httpContentTypeSelected !== undefined) {
2319
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
2320
+ }
2321
+ let responseType_ = "json";
2322
+ if (localVarHttpHeaderAcceptSelected) {
2323
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2324
+ responseType_ = "text";
2325
+ }
2326
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2327
+ responseType_ = "json";
2328
+ }
2329
+ else {
2330
+ responseType_ = "blob";
2331
+ }
2332
+ }
2333
+ let localVarPath = `/api/project-bid-statuses/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2334
+ const { basePath, withCredentials } = this.configuration;
2335
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
2336
+ context: localVarHttpContext,
2337
+ body: saveBidStatusDto,
2338
+ responseType: responseType_,
2339
+ ...(withCredentials ? { withCredentials } : {}),
2340
+ headers: localVarHeaders,
2341
+ observe: observe,
2342
+ transferCache: localVarTransferCache,
2343
+ reportProgress: reportProgress,
2344
+ });
2345
+ }
2346
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectBidStatusesApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2347
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectBidStatusesApiService, providedIn: "root" });
2348
+ }
2349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ProjectBidStatusesApiService, decorators: [{
2350
+ type: Injectable,
2351
+ args: [{
2352
+ providedIn: "root",
2353
+ }]
2354
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2355
+ type: Optional
2356
+ }, {
2357
+ type: Inject,
2358
+ args: [BASE_PATH]
2359
+ }] }, { type: Configuration, decorators: [{
2360
+ type: Optional
2361
+ }] }] });
2362
+
2189
2363
  /**
2190
2364
  * RenewAire CORES API
2191
2365
  *
@@ -2903,11 +3077,101 @@ class ProjectSharingApiService extends BaseService {
2903
3077
  super(basePath, configuration);
2904
3078
  this.httpClient = httpClient;
2905
3079
  }
3080
+ projectSharingRemoveProjectShare(requestParameters, observe = "body", reportProgress = false, options) {
3081
+ const projectSharingId = requestParameters?.projectSharingId;
3082
+ if (projectSharingId === null || projectSharingId === undefined) {
3083
+ throw new Error("Required parameter projectSharingId was null or undefined when calling projectSharingRemoveProjectShare.");
3084
+ }
3085
+ let localVarHeaders = this.defaultHeaders;
3086
+ // authentication (Bearer) required
3087
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
3088
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3089
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3090
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
3091
+ }
3092
+ const localVarHttpContext = options?.context ?? new HttpContext();
3093
+ const localVarTransferCache = options?.transferCache ?? true;
3094
+ let responseType_ = "json";
3095
+ if (localVarHttpHeaderAcceptSelected) {
3096
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
3097
+ responseType_ = "text";
3098
+ }
3099
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3100
+ responseType_ = "json";
3101
+ }
3102
+ else {
3103
+ responseType_ = "blob";
3104
+ }
3105
+ }
3106
+ let localVarPath = `/api/project-sharing/${this.configuration.encodeParam({ name: "projectSharingId", value: projectSharingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3107
+ const { basePath, withCredentials } = this.configuration;
3108
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
3109
+ context: localVarHttpContext,
3110
+ responseType: responseType_,
3111
+ ...(withCredentials ? { withCredentials } : {}),
3112
+ headers: localVarHeaders,
3113
+ observe: observe,
3114
+ transferCache: localVarTransferCache,
3115
+ reportProgress: reportProgress,
3116
+ });
3117
+ }
2906
3118
  projectSharingShareProject(requestParameters, observe = "body", reportProgress = false, options) {
2907
3119
  const shareProjectCommand = requestParameters?.shareProjectCommand;
2908
3120
  let localVarHeaders = this.defaultHeaders;
2909
3121
  // authentication (Bearer) required
2910
3122
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
3123
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
3124
+ this.configuration.selectHeaderAccept([
3125
+ "text/plain",
3126
+ "application/json",
3127
+ "text/json",
3128
+ ]);
3129
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3130
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
3131
+ }
3132
+ const localVarHttpContext = options?.context ?? new HttpContext();
3133
+ const localVarTransferCache = options?.transferCache ?? true;
3134
+ // to determine the Content-Type header
3135
+ const consumes = [
3136
+ "application/json-patch+json",
3137
+ "application/json",
3138
+ "text/json",
3139
+ "application/*+json",
3140
+ ];
3141
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3142
+ if (httpContentTypeSelected !== undefined) {
3143
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
3144
+ }
3145
+ let responseType_ = "json";
3146
+ if (localVarHttpHeaderAcceptSelected) {
3147
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
3148
+ responseType_ = "text";
3149
+ }
3150
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3151
+ responseType_ = "json";
3152
+ }
3153
+ else {
3154
+ responseType_ = "blob";
3155
+ }
3156
+ }
3157
+ let localVarPath = `/api/project-sharing/invite`;
3158
+ const { basePath, withCredentials } = this.configuration;
3159
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3160
+ context: localVarHttpContext,
3161
+ body: shareProjectCommand,
3162
+ responseType: responseType_,
3163
+ ...(withCredentials ? { withCredentials } : {}),
3164
+ headers: localVarHeaders,
3165
+ observe: observe,
3166
+ transferCache: localVarTransferCache,
3167
+ reportProgress: reportProgress,
3168
+ });
3169
+ }
3170
+ projectSharingUpdateProjectShare(requestParameters, observe = "body", reportProgress = false, options) {
3171
+ const updateProjectShareCommand = requestParameters?.updateProjectShareCommand;
3172
+ let localVarHeaders = this.defaultHeaders;
3173
+ // authentication (Bearer) required
3174
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2911
3175
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2912
3176
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2913
3177
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
@@ -2941,7 +3205,7 @@ class ProjectSharingApiService extends BaseService {
2941
3205
  const { basePath, withCredentials } = this.configuration;
2942
3206
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2943
3207
  context: localVarHttpContext,
2944
- body: shareProjectCommand,
3208
+ body: updateProjectShareCommand,
2945
3209
  responseType: responseType_,
2946
3210
  ...(withCredentials ? { withCredentials } : {}),
2947
3211
  headers: localVarHeaders,
@@ -8266,6 +8530,7 @@ const APIS = [
8266
8530
  MaintenanceApiService,
8267
8531
  PermissionBundlesApiService,
8268
8532
  PermissionsApiService,
8533
+ ProjectBidStatusesApiService,
8269
8534
  ProjectLinksApiService,
8270
8535
  ProjectNotesApiService,
8271
8536
  ProjectRevisionsApiService,
@@ -8651,7 +8916,7 @@ var FeedbackType;
8651
8916
  * Do not edit the class manually.
8652
8917
  */
8653
8918
  /**
8654
- * File type.<br />FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport<br />3 = ProjectNoteAttachment
8919
+ * File type.<br />FileType<br />0 = RsdRegionDocument<br />1 = ControllerProgram<br />2 = RepSalesReport<br />3 = ProjectNoteAttachment<br />4 = BidStatusAttachment
8655
8920
  */
8656
8921
  var FileType;
8657
8922
  (function (FileType) {
@@ -8659,6 +8924,7 @@ var FileType;
8659
8924
  FileType["ControllerProgram"] = "ControllerProgram";
8660
8925
  FileType["RepSalesReport"] = "RepSalesReport";
8661
8926
  FileType["ProjectNoteAttachment"] = "ProjectNoteAttachment";
8927
+ FileType["BidStatusAttachment"] = "BidStatusAttachment";
8662
8928
  })(FileType || (FileType = {}));
8663
8929
 
8664
8930
  /**
@@ -8953,6 +9219,36 @@ var Permission;
8953
9219
  * Do not edit the class manually.
8954
9220
  */
8955
9221
 
9222
+ /**
9223
+ * RenewAire CORES API
9224
+ *
9225
+ * Contact: renewaire@saritasa.com
9226
+ *
9227
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9228
+ * https://openapi-generator.tech
9229
+ * Do not edit the class manually.
9230
+ */
9231
+
9232
+ /**
9233
+ * RenewAire CORES API
9234
+ *
9235
+ * Contact: renewaire@saritasa.com
9236
+ *
9237
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9238
+ * https://openapi-generator.tech
9239
+ * Do not edit the class manually.
9240
+ */
9241
+ /**
9242
+ * Project revision bid status.<br />ProjectBidStatusType<br />0 = InSubmittal<br />1 = Pending<br />2 = Won<br />3 = Lost
9243
+ */
9244
+ var ProjectBidStatusType;
9245
+ (function (ProjectBidStatusType) {
9246
+ ProjectBidStatusType["InSubmittal"] = "InSubmittal";
9247
+ ProjectBidStatusType["Pending"] = "Pending";
9248
+ ProjectBidStatusType["Won"] = "Won";
9249
+ ProjectBidStatusType["Lost"] = "Lost";
9250
+ })(ProjectBidStatusType || (ProjectBidStatusType = {}));
9251
+
8956
9252
  /**
8957
9253
  * RenewAire CORES API
8958
9254
  *
@@ -9506,5 +9802,5 @@ function provideApi(configOrBasePath) {
9506
9802
  * Generated bundle index. Do not edit.
9507
9803
  */
9508
9804
 
9509
- export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectLinksApiService, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
9805
+ export { APIS, AddressCountry, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, BuildingCategory, BuildingType, COLLECTION_FORMATS, Configuration, ConstructionOrderType, ControllerProgramReleaseType, ControllerProgramType, ControllerProgramsApiService, CoolingDesignBasis, DesignWeatherMode, FeedbackType, FeedbacksApiService, FileType, GroupCustomerType, GroupType, GroupsApiService, KnownContactsApiService, Language, LeadTimeType, LeadTimesApiService, MaintenanceApiService, OperationType, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectBidStatusType, ProjectBidStatusesApiService, ProjectLinksApiService, ProjectNoteType, ProjectNotesApiService, ProjectRevisionsApiService, ProjectSharingAccessLevel, ProjectSharingApiService, ProjectStatus, ProjectStatusesApiService, ProjectsApiService, QualifiedSpecificationStatus, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepSalesReportsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, S3ApiService, StaticFilesApiService, UnitSystem, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
9510
9806
  //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map