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

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.
@@ -559,6 +559,7 @@ model/intercomPages.ts
559
559
  model/intercomSearchConversationsResponse.ts
560
560
  model/intercomSearchTicketsResponse.ts
561
561
  model/intercomTicketAttributes.ts
562
+ model/inviteCaseParticipantRequest.ts
562
563
  model/inviteHouseholdMateRequest.ts
563
564
  model/inviteLawyerToLawfirmRequest.ts
564
565
  model/invoiceLineItemModel.ts
@@ -21,6 +21,8 @@ import { Observable } from 'rxjs';
21
21
  // @ts-ignore
22
22
  import { GetCaseUsersResponse } from '../model/getCaseUsersResponse';
23
23
  // @ts-ignore
24
+ import { InviteCaseParticipantRequest } from '../model/inviteCaseParticipantRequest';
25
+ // @ts-ignore
24
26
  import { ListDashboardCaseUsersResponse } from '../model/listDashboardCaseUsersResponse';
25
27
  // @ts-ignore
26
28
  import { SaveCaseUserRequest } from '../model/saveCaseUserRequest';
@@ -222,6 +224,77 @@ export class CaseUserControllerService {
222
224
  );
223
225
  }
224
226
 
227
+ /**
228
+ * inviteCaseParticipant
229
+ * @param caseId caseId
230
+ * @param request request
231
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
232
+ * @param reportProgress flag to report request and response progress.
233
+ */
234
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
235
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
236
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
237
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
238
+ if (caseId === null || caseId === undefined) {
239
+ throw new Error('Required parameter caseId was null or undefined when calling inviteCaseParticipantUsingPOST.');
240
+ }
241
+ if (request === null || request === undefined) {
242
+ throw new Error('Required parameter request was null or undefined when calling inviteCaseParticipantUsingPOST.');
243
+ }
244
+
245
+ let localVarHeaders = this.defaultHeaders;
246
+
247
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
248
+ if (localVarHttpHeaderAcceptSelected === undefined) {
249
+ // to determine the Accept header
250
+ const httpHeaderAccepts: string[] = [
251
+ ];
252
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
253
+ }
254
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
255
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
256
+ }
257
+
258
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
259
+ if (localVarHttpContext === undefined) {
260
+ localVarHttpContext = new HttpContext();
261
+ }
262
+
263
+
264
+ // to determine the Content-Type header
265
+ const consumes: string[] = [
266
+ 'application/json'
267
+ ];
268
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
269
+ if (httpContentTypeSelected !== undefined) {
270
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
271
+ }
272
+
273
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
274
+ if (localVarHttpHeaderAcceptSelected) {
275
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
276
+ responseType_ = 'text';
277
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
278
+ responseType_ = 'json';
279
+ } else {
280
+ responseType_ = 'blob';
281
+ }
282
+ }
283
+
284
+ let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/participants/invite`;
285
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
286
+ {
287
+ context: localVarHttpContext,
288
+ body: request,
289
+ responseType: <any>responseType_,
290
+ withCredentials: this.configuration.withCredentials,
291
+ headers: localVarHeaders,
292
+ observe: observe,
293
+ reportProgress: reportProgress
294
+ }
295
+ );
296
+ }
297
+
225
298
  /**
226
299
  * listDashboardCaseUsers
227
300
  * @param userId userId
@@ -0,0 +1,40 @@
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 InviteCaseParticipantRequest {
15
+ emailAddress: string;
16
+ firstName: string;
17
+ hasFinancialAccess: boolean;
18
+ isDefendant: boolean;
19
+ lastName: string;
20
+ relationshipToClient: InviteCaseParticipantRequest.RelationshipToClientEnum;
21
+ }
22
+ export namespace InviteCaseParticipantRequest {
23
+ export type RelationshipToClientEnum = 'CHILD' | 'COPILOT' | 'EMPLOYER' | 'FAMILY_MEMBER' | 'FRIEND' | 'LAWYER' | 'OTHER' | 'PARENT' | 'SELF' | 'SERVICE_PROVIDER' | 'SIGNIFICANT_OTHER' | 'UNKNOWN';
24
+ export const RelationshipToClientEnum = {
25
+ Child: 'CHILD' as RelationshipToClientEnum,
26
+ Copilot: 'COPILOT' as RelationshipToClientEnum,
27
+ Employer: 'EMPLOYER' as RelationshipToClientEnum,
28
+ FamilyMember: 'FAMILY_MEMBER' as RelationshipToClientEnum,
29
+ Friend: 'FRIEND' as RelationshipToClientEnum,
30
+ Lawyer: 'LAWYER' as RelationshipToClientEnum,
31
+ Other: 'OTHER' as RelationshipToClientEnum,
32
+ Parent: 'PARENT' as RelationshipToClientEnum,
33
+ Self: 'SELF' as RelationshipToClientEnum,
34
+ ServiceProvider: 'SERVICE_PROVIDER' as RelationshipToClientEnum,
35
+ SignificantOther: 'SIGNIFICANT_OTHER' as RelationshipToClientEnum,
36
+ Unknown: 'UNKNOWN' as RelationshipToClientEnum
37
+ };
38
+ }
39
+
40
+
@@ -433,6 +433,7 @@ export * from './intercomPages';
433
433
  export * from './intercomSearchConversationsResponse';
434
434
  export * from './intercomSearchTicketsResponse';
435
435
  export * from './intercomTicketAttributes';
436
+ export * from './inviteCaseParticipantRequest';
436
437
  export * from './inviteHouseholdMateRequest';
437
438
  export * from './inviteLawyerToLawfirmRequest';
438
439
  export * from './invoiceLineItemModel';
@@ -3173,6 +3173,51 @@ angular.module('otrBackendService', [])
3173
3173
 
3174
3174
  return deferred.promise;
3175
3175
  };
3176
+ /**
3177
+ * inviteCaseParticipant
3178
+ * @method
3179
+ * @name OtrService#inviteCaseParticipantUsingPOST
3180
+ * @param {object} parameters - method options and parameters
3181
+ * @param {string} parameters.caseId - caseId
3182
+ * @param {} parameters.request - request
3183
+ */
3184
+ OtrService.prototype.inviteCaseParticipantUsingPOST = function(parameters) {
3185
+ if (parameters === undefined) {
3186
+ parameters = {};
3187
+ }
3188
+ var deferred = $q.defer();
3189
+ var domain = this.domain,
3190
+ path = '/api/v1/cases/{caseId}/participants/invite';
3191
+ var body = {},
3192
+ queryParameters = {},
3193
+ headers = {},
3194
+ form = {};
3195
+
3196
+ headers['Accept'] = ['*/*'];
3197
+ headers['Content-Type'] = ['application/json'];
3198
+
3199
+ path = path.replace('{caseId}', parameters['caseId']);
3200
+
3201
+ if (parameters['caseId'] === undefined) {
3202
+ deferred.reject(new Error('Missing required parameter: caseId'));
3203
+ return deferred.promise;
3204
+ }
3205
+
3206
+ if (parameters['request'] !== undefined) {
3207
+ body = parameters['request'];
3208
+ }
3209
+
3210
+ if (parameters['request'] === undefined) {
3211
+ deferred.reject(new Error('Missing required parameter: request'));
3212
+ return deferred.promise;
3213
+ }
3214
+
3215
+ queryParameters = mergeQueryParams(parameters, queryParameters);
3216
+
3217
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
3218
+
3219
+ return deferred.promise;
3220
+ };
3176
3221
  /**
3177
3222
  * getPaymentPlanOptions
3178
3223
  * @method