@otr-app/shared-backend-generated-client 2.5.102 → 2.5.103

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.
@@ -125,6 +125,7 @@ encoder.ts
125
125
  git_push.sh
126
126
  index.ts
127
127
  model/acceptCaseCounterRequest.ts
128
+ model/acceptParticipantInviteRequest.ts
128
129
  model/accountLevelFee.ts
129
130
  model/accountLevelFeeRequest.ts
130
131
  model/accountLevelFeeResponse.ts
@@ -18,6 +18,8 @@ import { HttpClient, HttpHeaders, HttpParams,
18
18
  import { CustomHttpParameterCodec } from '../encoder';
19
19
  import { Observable } from 'rxjs';
20
20
 
21
+ // @ts-ignore
22
+ import { AcceptParticipantInviteRequest } from '../model/acceptParticipantInviteRequest';
21
23
  // @ts-ignore
22
24
  import { GetCaseUsersResponse } from '../model/getCaseUsersResponse';
23
25
  // @ts-ignore
@@ -97,6 +99,73 @@ export class CaseUserControllerService {
97
99
  return httpParams;
98
100
  }
99
101
 
102
+ /**
103
+ * acceptParticipantInvite
104
+ * @param request request
105
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
106
+ * @param reportProgress flag to report request and response progress.
107
+ */
108
+ public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
109
+ public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
110
+ public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
111
+ public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
112
+ if (request === null || request === undefined) {
113
+ throw new Error('Required parameter request was null or undefined when calling acceptParticipantInviteUsingPUT.');
114
+ }
115
+
116
+ let localVarHeaders = this.defaultHeaders;
117
+
118
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
119
+ if (localVarHttpHeaderAcceptSelected === undefined) {
120
+ // to determine the Accept header
121
+ const httpHeaderAccepts: string[] = [
122
+ ];
123
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
124
+ }
125
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
126
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
127
+ }
128
+
129
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
130
+ if (localVarHttpContext === undefined) {
131
+ localVarHttpContext = new HttpContext();
132
+ }
133
+
134
+
135
+ // to determine the Content-Type header
136
+ const consumes: string[] = [
137
+ 'application/json'
138
+ ];
139
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
140
+ if (httpContentTypeSelected !== undefined) {
141
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
142
+ }
143
+
144
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
145
+ if (localVarHttpHeaderAcceptSelected) {
146
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
147
+ responseType_ = 'text';
148
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
149
+ responseType_ = 'json';
150
+ } else {
151
+ responseType_ = 'blob';
152
+ }
153
+ }
154
+
155
+ let localVarPath = `/api/v1/cases/participants/accept-invite`;
156
+ return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
157
+ {
158
+ context: localVarHttpContext,
159
+ body: request,
160
+ responseType: <any>responseType_,
161
+ withCredentials: this.configuration.withCredentials,
162
+ headers: localVarHeaders,
163
+ observe: observe,
164
+ reportProgress: reportProgress
165
+ }
166
+ );
167
+ }
168
+
100
169
  /**
101
170
  * deleteCaseUser
102
171
  * @param caseId caseId
@@ -0,0 +1,17 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export interface AcceptParticipantInviteRequest {
15
+ token: string;
16
+ }
17
+
@@ -1,4 +1,5 @@
1
1
  export * from './acceptCaseCounterRequest';
2
+ export * from './acceptParticipantInviteRequest';
2
3
  export * from './accountLevelFee';
3
4
  export * from './accountLevelFeeRequest';
4
5
  export * from './accountLevelFeeResponse';
@@ -1418,6 +1418,43 @@ angular.module('otrBackendService', [])
1418
1418
 
1419
1419
  return deferred.promise;
1420
1420
  };
1421
+ /**
1422
+ * acceptParticipantInvite
1423
+ * @method
1424
+ * @name OtrService#acceptParticipantInviteUsingPUT
1425
+ * @param {object} parameters - method options and parameters
1426
+ * @param {} parameters.request - request
1427
+ */
1428
+ OtrService.prototype.acceptParticipantInviteUsingPUT = function(parameters) {
1429
+ if (parameters === undefined) {
1430
+ parameters = {};
1431
+ }
1432
+ var deferred = $q.defer();
1433
+ var domain = this.domain,
1434
+ path = '/api/v1/cases/participants/accept-invite';
1435
+ var body = {},
1436
+ queryParameters = {},
1437
+ headers = {},
1438
+ form = {};
1439
+
1440
+ headers['Accept'] = ['*/*'];
1441
+ headers['Content-Type'] = ['application/json'];
1442
+
1443
+ if (parameters['request'] !== undefined) {
1444
+ body = parameters['request'];
1445
+ }
1446
+
1447
+ if (parameters['request'] === undefined) {
1448
+ deferred.reject(new Error('Missing required parameter: request'));
1449
+ return deferred.promise;
1450
+ }
1451
+
1452
+ queryParameters = mergeQueryParams(parameters, queryParameters);
1453
+
1454
+ this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
1455
+
1456
+ return deferred.promise;
1457
+ };
1421
1458
  /**
1422
1459
  * getPendingCases
1423
1460
  * @method