@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.
@@ -31,6 +31,13 @@ export declare class CaseUserControllerApi {
31
31
  * @param getRemovedUsers getRemovedUsers
32
32
  */
33
33
  getCaseUsersByCaseUsingGET(caseId: string, getRemovedUsers?: boolean, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetCaseUsersResponse>;
34
+ /**
35
+ *
36
+ * @summary inviteCaseParticipant
37
+ * @param caseId caseId
38
+ * @param request request
39
+ */
40
+ inviteCaseParticipantUsingPOST(caseId: string, request: models.InviteCaseParticipantRequest, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
34
41
  /**
35
42
  *
36
43
  * @summary listDashboardCaseUsers
@@ -80,6 +80,37 @@ export class CaseUserControllerApi {
80
80
  }
81
81
  return this.$http(httpRequestParams);
82
82
  }
83
+ /**
84
+ *
85
+ * @summary inviteCaseParticipant
86
+ * @param caseId caseId
87
+ * @param request request
88
+ */
89
+ inviteCaseParticipantUsingPOST(caseId, request, extraHttpRequestParams) {
90
+ const localVarPath = this.basePath + '/api/v1/cases/{caseId}/participants/invite'
91
+ .replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)));
92
+ let queryParameters = {};
93
+ let headerParams = Object.assign({}, this.defaultHeaders);
94
+ // verify required parameter 'caseId' is not null or undefined
95
+ if (caseId === null || caseId === undefined) {
96
+ throw new Error('Required parameter caseId was null or undefined when calling inviteCaseParticipantUsingPOST.');
97
+ }
98
+ // verify required parameter 'request' is not null or undefined
99
+ if (request === null || request === undefined) {
100
+ throw new Error('Required parameter request was null or undefined when calling inviteCaseParticipantUsingPOST.');
101
+ }
102
+ let httpRequestParams = {
103
+ method: 'POST',
104
+ url: localVarPath,
105
+ data: request,
106
+ params: queryParameters,
107
+ headers: headerParams
108
+ };
109
+ if (extraHttpRequestParams) {
110
+ httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
111
+ }
112
+ return this.$http(httpRequestParams);
113
+ }
83
114
  /**
84
115
  *
85
116
  * @summary listDashboardCaseUsers
@@ -0,0 +1,35 @@
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
+ export interface InviteCaseParticipantRequest {
13
+ "emailAddress": string;
14
+ "firstName": string;
15
+ "hasFinancialAccess": boolean;
16
+ "isDefendant": boolean;
17
+ "lastName": string;
18
+ "relationshipToClient": InviteCaseParticipantRequest.RelationshipToClientEnum;
19
+ }
20
+ export declare namespace InviteCaseParticipantRequest {
21
+ enum RelationshipToClientEnum {
22
+ CHILD,
23
+ COPILOT,
24
+ EMPLOYER,
25
+ FAMILYMEMBER,
26
+ FRIEND,
27
+ LAWYER,
28
+ OTHER,
29
+ PARENT,
30
+ SELF,
31
+ SERVICEPROVIDER,
32
+ SIGNIFICANTOTHER,
33
+ UNKNOWN
34
+ }
35
+ }
@@ -0,0 +1,29 @@
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
+ export var InviteCaseParticipantRequest;
13
+ (function (InviteCaseParticipantRequest) {
14
+ let RelationshipToClientEnum;
15
+ (function (RelationshipToClientEnum) {
16
+ RelationshipToClientEnum[RelationshipToClientEnum["CHILD"] = 'CHILD'] = "CHILD";
17
+ RelationshipToClientEnum[RelationshipToClientEnum["COPILOT"] = 'COPILOT'] = "COPILOT";
18
+ RelationshipToClientEnum[RelationshipToClientEnum["EMPLOYER"] = 'EMPLOYER'] = "EMPLOYER";
19
+ RelationshipToClientEnum[RelationshipToClientEnum["FAMILYMEMBER"] = 'FAMILY_MEMBER'] = "FAMILYMEMBER";
20
+ RelationshipToClientEnum[RelationshipToClientEnum["FRIEND"] = 'FRIEND'] = "FRIEND";
21
+ RelationshipToClientEnum[RelationshipToClientEnum["LAWYER"] = 'LAWYER'] = "LAWYER";
22
+ RelationshipToClientEnum[RelationshipToClientEnum["OTHER"] = 'OTHER'] = "OTHER";
23
+ RelationshipToClientEnum[RelationshipToClientEnum["PARENT"] = 'PARENT'] = "PARENT";
24
+ RelationshipToClientEnum[RelationshipToClientEnum["SELF"] = 'SELF'] = "SELF";
25
+ RelationshipToClientEnum[RelationshipToClientEnum["SERVICEPROVIDER"] = 'SERVICE_PROVIDER'] = "SERVICEPROVIDER";
26
+ RelationshipToClientEnum[RelationshipToClientEnum["SIGNIFICANTOTHER"] = 'SIGNIFICANT_OTHER'] = "SIGNIFICANTOTHER";
27
+ RelationshipToClientEnum[RelationshipToClientEnum["UNKNOWN"] = 'UNKNOWN'] = "UNKNOWN";
28
+ })(RelationshipToClientEnum = InviteCaseParticipantRequest.RelationshipToClientEnum || (InviteCaseParticipantRequest.RelationshipToClientEnum = {}));
29
+ })(InviteCaseParticipantRequest || (InviteCaseParticipantRequest = {}));
@@ -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';
@@ -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';
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { GetCaseUsersResponse, ListDashboardCaseUsersResponse, SaveCaseUserRequest } from '../models';
13
+ import { GetCaseUsersResponse, InviteCaseParticipantRequest, ListDashboardCaseUsersResponse, SaveCaseUserRequest } from '../models';
14
14
  export interface DeleteCaseUserUsingDELETERequest {
15
15
  caseId: string;
16
16
  caseUsersId: number;
@@ -19,6 +19,10 @@ export interface GetCaseUsersByCaseUsingGETRequest {
19
19
  caseId: string;
20
20
  getRemovedUsers?: boolean;
21
21
  }
22
+ export interface InviteCaseParticipantUsingPOSTRequest {
23
+ caseId: string;
24
+ request: InviteCaseParticipantRequest;
25
+ }
22
26
  export interface ListDashboardCaseUsersUsingGETRequest {
23
27
  userId: number;
24
28
  isDefendant?: boolean;
@@ -47,6 +51,14 @@ export declare class CaseUserControllerApi extends runtime.BaseAPI {
47
51
  * getCaseUsersByCase
48
52
  */
49
53
  getCaseUsersByCaseUsingGET(requestParameters: GetCaseUsersByCaseUsingGETRequest): Promise<GetCaseUsersResponse>;
54
+ /**
55
+ * inviteCaseParticipant
56
+ */
57
+ inviteCaseParticipantUsingPOSTRaw(requestParameters: InviteCaseParticipantUsingPOSTRequest): Promise<runtime.ApiResponse<void>>;
58
+ /**
59
+ * inviteCaseParticipant
60
+ */
61
+ inviteCaseParticipantUsingPOST(requestParameters: InviteCaseParticipantUsingPOSTRequest): Promise<void>;
50
62
  /**
51
63
  * listDashboardCaseUsers
52
64
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GetCaseUsersResponseFromJSON, ListDashboardCaseUsersResponseFromJSON, SaveCaseUserRequestToJSON, } from '../models';
24
+ import { GetCaseUsersResponseFromJSON, InviteCaseParticipantRequestToJSON, ListDashboardCaseUsersResponseFromJSON, SaveCaseUserRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -87,6 +87,38 @@ export class CaseUserControllerApi extends runtime.BaseAPI {
87
87
  return yield response.value();
88
88
  });
89
89
  }
90
+ /**
91
+ * inviteCaseParticipant
92
+ */
93
+ inviteCaseParticipantUsingPOSTRaw(requestParameters) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
96
+ throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling inviteCaseParticipantUsingPOST.');
97
+ }
98
+ if (requestParameters.request === null || requestParameters.request === undefined) {
99
+ throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling inviteCaseParticipantUsingPOST.');
100
+ }
101
+ const queryParameters = {};
102
+ const headerParameters = {};
103
+ headerParameters['Content-Type'] = 'application/json';
104
+ const response = yield this.request({
105
+ path: `/api/v1/cases/{caseId}/participants/invite`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))),
106
+ method: 'POST',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ body: InviteCaseParticipantRequestToJSON(requestParameters.request),
110
+ });
111
+ return new runtime.VoidApiResponse(response);
112
+ });
113
+ }
114
+ /**
115
+ * inviteCaseParticipant
116
+ */
117
+ inviteCaseParticipantUsingPOST(requestParameters) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ yield this.inviteCaseParticipantUsingPOSTRaw(requestParameters);
120
+ });
121
+ }
90
122
  /**
91
123
  * listDashboardCaseUsers
92
124
  */
@@ -0,0 +1,75 @@
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
15
+ * @interface InviteCaseParticipantRequest
16
+ */
17
+ export interface InviteCaseParticipantRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InviteCaseParticipantRequest
22
+ */
23
+ emailAddress: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InviteCaseParticipantRequest
28
+ */
29
+ firstName: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof InviteCaseParticipantRequest
34
+ */
35
+ hasFinancialAccess: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof InviteCaseParticipantRequest
40
+ */
41
+ isDefendant: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof InviteCaseParticipantRequest
46
+ */
47
+ lastName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof InviteCaseParticipantRequest
52
+ */
53
+ relationshipToClient: InviteCaseParticipantRequestRelationshipToClientEnum;
54
+ }
55
+ export declare function InviteCaseParticipantRequestFromJSON(json: any): InviteCaseParticipantRequest;
56
+ export declare function InviteCaseParticipantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteCaseParticipantRequest;
57
+ export declare function InviteCaseParticipantRequestToJSON(value?: InviteCaseParticipantRequest | null): any;
58
+ /**
59
+ * @export
60
+ * @enum {string}
61
+ */
62
+ export declare enum InviteCaseParticipantRequestRelationshipToClientEnum {
63
+ CHILD = "CHILD",
64
+ COPILOT = "COPILOT",
65
+ EMPLOYER = "EMPLOYER",
66
+ FAMILYMEMBER = "FAMILY_MEMBER",
67
+ FRIEND = "FRIEND",
68
+ LAWYER = "LAWYER",
69
+ OTHER = "OTHER",
70
+ PARENT = "PARENT",
71
+ SELF = "SELF",
72
+ SERVICEPROVIDER = "SERVICE_PROVIDER",
73
+ SIGNIFICANTOTHER = "SIGNIFICANT_OTHER",
74
+ UNKNOWN = "UNKNOWN"
75
+ }
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OffTheRecord Rest Service API - Devo
5
+ * A service to handle your traffic tickets
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export function InviteCaseParticipantRequestFromJSON(json) {
15
+ return InviteCaseParticipantRequestFromJSONTyped(json, false);
16
+ }
17
+ export function InviteCaseParticipantRequestFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'emailAddress': json['emailAddress'],
23
+ 'firstName': json['firstName'],
24
+ 'hasFinancialAccess': json['hasFinancialAccess'],
25
+ 'isDefendant': json['isDefendant'],
26
+ 'lastName': json['lastName'],
27
+ 'relationshipToClient': json['relationshipToClient'],
28
+ };
29
+ }
30
+ export function InviteCaseParticipantRequestToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'emailAddress': value.emailAddress,
39
+ 'firstName': value.firstName,
40
+ 'hasFinancialAccess': value.hasFinancialAccess,
41
+ 'isDefendant': value.isDefendant,
42
+ 'lastName': value.lastName,
43
+ 'relationshipToClient': value.relationshipToClient,
44
+ };
45
+ }
46
+ /**
47
+ * @export
48
+ * @enum {string}
49
+ */
50
+ export var InviteCaseParticipantRequestRelationshipToClientEnum;
51
+ (function (InviteCaseParticipantRequestRelationshipToClientEnum) {
52
+ InviteCaseParticipantRequestRelationshipToClientEnum["CHILD"] = "CHILD";
53
+ InviteCaseParticipantRequestRelationshipToClientEnum["COPILOT"] = "COPILOT";
54
+ InviteCaseParticipantRequestRelationshipToClientEnum["EMPLOYER"] = "EMPLOYER";
55
+ InviteCaseParticipantRequestRelationshipToClientEnum["FAMILYMEMBER"] = "FAMILY_MEMBER";
56
+ InviteCaseParticipantRequestRelationshipToClientEnum["FRIEND"] = "FRIEND";
57
+ InviteCaseParticipantRequestRelationshipToClientEnum["LAWYER"] = "LAWYER";
58
+ InviteCaseParticipantRequestRelationshipToClientEnum["OTHER"] = "OTHER";
59
+ InviteCaseParticipantRequestRelationshipToClientEnum["PARENT"] = "PARENT";
60
+ InviteCaseParticipantRequestRelationshipToClientEnum["SELF"] = "SELF";
61
+ InviteCaseParticipantRequestRelationshipToClientEnum["SERVICEPROVIDER"] = "SERVICE_PROVIDER";
62
+ InviteCaseParticipantRequestRelationshipToClientEnum["SIGNIFICANTOTHER"] = "SIGNIFICANT_OTHER";
63
+ InviteCaseParticipantRequestRelationshipToClientEnum["UNKNOWN"] = "UNKNOWN";
64
+ })(InviteCaseParticipantRequestRelationshipToClientEnum || (InviteCaseParticipantRequestRelationshipToClientEnum = {}));
@@ -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';
@@ -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';
@@ -1283,6 +1283,23 @@ export interface paths {
1283
1283
  patch?: never;
1284
1284
  trace?: never;
1285
1285
  };
1286
+ "/api/v1/cases/{caseId}/participants/invite": {
1287
+ parameters: {
1288
+ query?: never;
1289
+ header?: never;
1290
+ path?: never;
1291
+ cookie?: never;
1292
+ };
1293
+ get?: never;
1294
+ put?: never;
1295
+ /** inviteCaseParticipant */
1296
+ post: operations["inviteCaseParticipantUsingPOST"];
1297
+ delete?: never;
1298
+ options?: never;
1299
+ head?: never;
1300
+ patch?: never;
1301
+ trace?: never;
1302
+ };
1286
1303
  "/api/v1/cases/{caseId}/users": {
1287
1304
  parameters: {
1288
1305
  query?: never;
@@ -11963,6 +11980,16 @@ export interface components {
11963
11980
  _default_description_?: string;
11964
11981
  _default_title_?: string;
11965
11982
  };
11983
+ /** InviteCaseParticipantRequest */
11984
+ InviteCaseParticipantRequest: {
11985
+ emailAddress: string;
11986
+ firstName: string;
11987
+ hasFinancialAccess: boolean;
11988
+ isDefendant: boolean;
11989
+ lastName: string;
11990
+ /** @enum {string} */
11991
+ relationshipToClient: CaseUserDetailsModelRelationshipToClientType;
11992
+ };
11966
11993
  /** InviteHouseholdMateRequest */
11967
11994
  InviteHouseholdMateRequest: {
11968
11995
  emailAddress?: string;
@@ -20783,6 +20810,59 @@ export interface operations {
20783
20810
  };
20784
20811
  };
20785
20812
  };
20813
+ inviteCaseParticipantUsingPOST: {
20814
+ parameters: {
20815
+ query?: never;
20816
+ header?: never;
20817
+ path: {
20818
+ /** @description caseId */
20819
+ caseId: string;
20820
+ };
20821
+ cookie?: never;
20822
+ };
20823
+ requestBody?: {
20824
+ content: {
20825
+ "application/json": components["schemas"]["InviteCaseParticipantRequest"];
20826
+ };
20827
+ };
20828
+ responses: {
20829
+ /** @description OK */
20830
+ 200: {
20831
+ headers: {
20832
+ [name: string]: unknown;
20833
+ };
20834
+ content?: never;
20835
+ };
20836
+ /** @description Created */
20837
+ 201: {
20838
+ headers: {
20839
+ [name: string]: unknown;
20840
+ };
20841
+ content?: never;
20842
+ };
20843
+ /** @description Unauthorized */
20844
+ 401: {
20845
+ headers: {
20846
+ [name: string]: unknown;
20847
+ };
20848
+ content?: never;
20849
+ };
20850
+ /** @description Forbidden */
20851
+ 403: {
20852
+ headers: {
20853
+ [name: string]: unknown;
20854
+ };
20855
+ content?: never;
20856
+ };
20857
+ /** @description Not Found */
20858
+ 404: {
20859
+ headers: {
20860
+ [name: string]: unknown;
20861
+ };
20862
+ content?: never;
20863
+ };
20864
+ };
20865
+ };
20786
20866
  getCaseUsersByCaseUsingGET: {
20787
20867
  parameters: {
20788
20868
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otr-app/shared-backend-generated-client",
3
- "version": "2.5.101",
3
+ "version": "2.5.102",
4
4
  "main": "dist/otrBackendService.min.js",
5
5
  "files": [
6
6
  "/dist"