@otr-app/shared-backend-generated-client 2.5.101 → 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.
Files changed (25) hide show
  1. package/dist/angular/.openapi-generator/FILES +2 -0
  2. package/dist/angular/api/caseUserController.service.ts +142 -0
  3. package/dist/angular/model/acceptParticipantInviteRequest.ts +17 -0
  4. package/dist/angular/model/inviteCaseParticipantRequest.ts +40 -0
  5. package/dist/angular/model/models.ts +2 -0
  6. package/dist/otrBackendService.js +82 -0
  7. package/dist/otrBackendService.min.js +7 -7
  8. package/dist/typescript/api/CaseUserControllerApi.d.ts +13 -0
  9. package/dist/typescript/api/CaseUserControllerApi.js +56 -0
  10. package/dist/typescript/model/AcceptParticipantInviteRequest.d.ts +14 -0
  11. package/dist/typescript/model/AcceptParticipantInviteRequest.js +12 -0
  12. package/dist/typescript/model/InviteCaseParticipantRequest.d.ts +35 -0
  13. package/dist/typescript/model/InviteCaseParticipantRequest.js +29 -0
  14. package/dist/typescript/model/models.d.ts +2 -0
  15. package/dist/typescript/model/models.js +2 -0
  16. package/dist/typescript-fetch/apis/CaseUserControllerApi.d.ts +24 -1
  17. package/dist/typescript-fetch/apis/CaseUserControllerApi.js +62 -1
  18. package/dist/typescript-fetch/models/AcceptParticipantInviteRequest.d.ts +27 -0
  19. package/dist/typescript-fetch/models/AcceptParticipantInviteRequest.js +35 -0
  20. package/dist/typescript-fetch/models/InviteCaseParticipantRequest.d.ts +75 -0
  21. package/dist/typescript-fetch/models/InviteCaseParticipantRequest.js +64 -0
  22. package/dist/typescript-fetch/models/index.d.ts +2 -0
  23. package/dist/typescript-fetch/models/index.js +2 -0
  24. package/dist/typescript-open-api/otr-backend.d.ts +151 -0
  25. package/package.json +1 -1
@@ -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
@@ -559,6 +560,7 @@ model/intercomPages.ts
559
560
  model/intercomSearchConversationsResponse.ts
560
561
  model/intercomSearchTicketsResponse.ts
561
562
  model/intercomTicketAttributes.ts
563
+ model/inviteCaseParticipantRequest.ts
562
564
  model/inviteHouseholdMateRequest.ts
563
565
  model/inviteLawyerToLawfirmRequest.ts
564
566
  model/invoiceLineItemModel.ts
@@ -18,9 +18,13 @@ 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
26
+ import { InviteCaseParticipantRequest } from '../model/inviteCaseParticipantRequest';
27
+ // @ts-ignore
24
28
  import { ListDashboardCaseUsersResponse } from '../model/listDashboardCaseUsersResponse';
25
29
  // @ts-ignore
26
30
  import { SaveCaseUserRequest } from '../model/saveCaseUserRequest';
@@ -95,6 +99,73 @@ export class CaseUserControllerService {
95
99
  return httpParams;
96
100
  }
97
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
+
98
169
  /**
99
170
  * deleteCaseUser
100
171
  * @param caseId caseId
@@ -222,6 +293,77 @@ export class CaseUserControllerService {
222
293
  );
223
294
  }
224
295
 
296
+ /**
297
+ * inviteCaseParticipant
298
+ * @param caseId caseId
299
+ * @param request request
300
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
301
+ * @param reportProgress flag to report request and response progress.
302
+ */
303
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
304
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
305
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
306
+ public inviteCaseParticipantUsingPOST(caseId: string, request: InviteCaseParticipantRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
307
+ if (caseId === null || caseId === undefined) {
308
+ throw new Error('Required parameter caseId was null or undefined when calling inviteCaseParticipantUsingPOST.');
309
+ }
310
+ if (request === null || request === undefined) {
311
+ throw new Error('Required parameter request was null or undefined when calling inviteCaseParticipantUsingPOST.');
312
+ }
313
+
314
+ let localVarHeaders = this.defaultHeaders;
315
+
316
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
317
+ if (localVarHttpHeaderAcceptSelected === undefined) {
318
+ // to determine the Accept header
319
+ const httpHeaderAccepts: string[] = [
320
+ ];
321
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
322
+ }
323
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
324
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
325
+ }
326
+
327
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
328
+ if (localVarHttpContext === undefined) {
329
+ localVarHttpContext = new HttpContext();
330
+ }
331
+
332
+
333
+ // to determine the Content-Type header
334
+ const consumes: string[] = [
335
+ 'application/json'
336
+ ];
337
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
338
+ if (httpContentTypeSelected !== undefined) {
339
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
340
+ }
341
+
342
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
343
+ if (localVarHttpHeaderAcceptSelected) {
344
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
345
+ responseType_ = 'text';
346
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
347
+ responseType_ = 'json';
348
+ } else {
349
+ responseType_ = 'blob';
350
+ }
351
+ }
352
+
353
+ let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/participants/invite`;
354
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
355
+ {
356
+ context: localVarHttpContext,
357
+ body: request,
358
+ responseType: <any>responseType_,
359
+ withCredentials: this.configuration.withCredentials,
360
+ headers: localVarHeaders,
361
+ observe: observe,
362
+ reportProgress: reportProgress
363
+ }
364
+ );
365
+ }
366
+
225
367
  /**
226
368
  * listDashboardCaseUsers
227
369
  * @param userId userId
@@ -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
+
@@ -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
+
@@ -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';
@@ -433,6 +434,7 @@ export * from './intercomPages';
433
434
  export * from './intercomSearchConversationsResponse';
434
435
  export * from './intercomSearchTicketsResponse';
435
436
  export * from './intercomTicketAttributes';
437
+ export * from './inviteCaseParticipantRequest';
436
438
  export * from './inviteHouseholdMateRequest';
437
439
  export * from './inviteLawyerToLawfirmRequest';
438
440
  export * from './invoiceLineItemModel';
@@ -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
@@ -3173,6 +3210,51 @@ angular.module('otrBackendService', [])
3173
3210
 
3174
3211
  return deferred.promise;
3175
3212
  };
3213
+ /**
3214
+ * inviteCaseParticipant
3215
+ * @method
3216
+ * @name OtrService#inviteCaseParticipantUsingPOST
3217
+ * @param {object} parameters - method options and parameters
3218
+ * @param {string} parameters.caseId - caseId
3219
+ * @param {} parameters.request - request
3220
+ */
3221
+ OtrService.prototype.inviteCaseParticipantUsingPOST = function(parameters) {
3222
+ if (parameters === undefined) {
3223
+ parameters = {};
3224
+ }
3225
+ var deferred = $q.defer();
3226
+ var domain = this.domain,
3227
+ path = '/api/v1/cases/{caseId}/participants/invite';
3228
+ var body = {},
3229
+ queryParameters = {},
3230
+ headers = {},
3231
+ form = {};
3232
+
3233
+ headers['Accept'] = ['*/*'];
3234
+ headers['Content-Type'] = ['application/json'];
3235
+
3236
+ path = path.replace('{caseId}', parameters['caseId']);
3237
+
3238
+ if (parameters['caseId'] === undefined) {
3239
+ deferred.reject(new Error('Missing required parameter: caseId'));
3240
+ return deferred.promise;
3241
+ }
3242
+
3243
+ if (parameters['request'] !== undefined) {
3244
+ body = parameters['request'];
3245
+ }
3246
+
3247
+ if (parameters['request'] === undefined) {
3248
+ deferred.reject(new Error('Missing required parameter: request'));
3249
+ return deferred.promise;
3250
+ }
3251
+
3252
+ queryParameters = mergeQueryParams(parameters, queryParameters);
3253
+
3254
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
3255
+
3256
+ return deferred.promise;
3257
+ };
3176
3258
  /**
3177
3259
  * getPaymentPlanOptions
3178
3260
  * @method