@otr-app/shared-backend-generated-client 2.5.35 → 2.5.36
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/dist/angular/api/caseUserController.service.ts +61 -0
- package/dist/angular/model/defendantDetailsModel.ts +2 -0
- package/dist/angular/model/validateDirectMailResponse.ts +2 -1
- package/dist/otrBackendService.js +42 -0
- package/dist/otrBackendService.min.js +7 -7
- package/dist/typescript/api/CaseUserControllerApi.d.ts +7 -0
- package/dist/typescript/api/CaseUserControllerApi.js +31 -0
- package/dist/typescript/model/DefendantDetailsModel.d.ts +2 -0
- package/dist/typescript/model/ValidateDirectMailResponse.d.ts +1 -0
- package/dist/typescript/model/ValidateDirectMailResponse.js +1 -0
- package/dist/typescript-fetch/apis/CaseUserControllerApi.d.ts +12 -0
- package/dist/typescript-fetch/apis/CaseUserControllerApi.js +30 -0
- package/dist/typescript-fetch/models/DefendantDetailsModel.d.ts +12 -0
- package/dist/typescript-fetch/models/DefendantDetailsModel.js +4 -0
- package/dist/typescript-fetch/models/ValidateDirectMailResponse.d.ts +1 -0
- package/dist/typescript-fetch/models/ValidateDirectMailResponse.js +1 -0
- package/dist/typescript-open-api/otr-backend.d.ts +65 -0
- package/dist/typescript-open-api/otr-backend.js +1 -0
- package/package.json +1 -1
|
@@ -17,6 +17,13 @@ export declare class CaseUserControllerApi {
|
|
|
17
17
|
defaultHeaders: any;
|
|
18
18
|
static $inject: string[];
|
|
19
19
|
constructor($http: ng.IHttpService, $httpParamSerializer?: (d: any) => any, basePath?: string);
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary deleteCaseUser
|
|
23
|
+
* @param caseId caseId
|
|
24
|
+
* @param caseUsersId caseUsersId
|
|
25
|
+
*/
|
|
26
|
+
deleteCaseUserUsingDELETE(caseId: string, caseUsersId: number, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
|
|
20
27
|
/**
|
|
21
28
|
*
|
|
22
29
|
* @summary getCaseUsersByCase
|
|
@@ -20,6 +20,37 @@ export class CaseUserControllerApi {
|
|
|
20
20
|
this.basePath = basePath;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary deleteCaseUser
|
|
26
|
+
* @param caseId caseId
|
|
27
|
+
* @param caseUsersId caseUsersId
|
|
28
|
+
*/
|
|
29
|
+
deleteCaseUserUsingDELETE(caseId, caseUsersId, extraHttpRequestParams) {
|
|
30
|
+
const localVarPath = this.basePath + '/api/v1/case-users/{caseUsersId}/cases/{caseId}'
|
|
31
|
+
.replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)))
|
|
32
|
+
.replace('{' + 'caseUsersId' + '}', encodeURIComponent(String(caseUsersId)));
|
|
33
|
+
let queryParameters = {};
|
|
34
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
35
|
+
// verify required parameter 'caseId' is not null or undefined
|
|
36
|
+
if (caseId === null || caseId === undefined) {
|
|
37
|
+
throw new Error('Required parameter caseId was null or undefined when calling deleteCaseUserUsingDELETE.');
|
|
38
|
+
}
|
|
39
|
+
// verify required parameter 'caseUsersId' is not null or undefined
|
|
40
|
+
if (caseUsersId === null || caseUsersId === undefined) {
|
|
41
|
+
throw new Error('Required parameter caseUsersId was null or undefined when calling deleteCaseUserUsingDELETE.');
|
|
42
|
+
}
|
|
43
|
+
let httpRequestParams = {
|
|
44
|
+
method: 'DELETE',
|
|
45
|
+
url: localVarPath,
|
|
46
|
+
params: queryParameters,
|
|
47
|
+
headers: headerParams
|
|
48
|
+
};
|
|
49
|
+
if (extraHttpRequestParams) {
|
|
50
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
51
|
+
}
|
|
52
|
+
return this.$http(httpRequestParams);
|
|
53
|
+
}
|
|
23
54
|
/**
|
|
24
55
|
*
|
|
25
56
|
* @summary getCaseUsersByCase
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export interface DefendantDetailsModel {
|
|
13
13
|
"additionalNote"?: string;
|
|
14
|
+
"caseUsersId"?: number;
|
|
14
15
|
"emailAddress"?: string;
|
|
15
16
|
"firstName"?: string;
|
|
17
|
+
"hasFinancialAccess"?: boolean;
|
|
16
18
|
"lastName"?: string;
|
|
17
19
|
"relationshipToClientType"?: DefendantDetailsModel.RelationshipToClientTypeEnum;
|
|
18
20
|
"userId"?: number;
|
|
@@ -41,6 +41,7 @@ export var ValidateDirectMailResponse;
|
|
|
41
41
|
OtrErrorEnum[OtrErrorEnum["CASEPAYMENTHASSTRIPECHARGE"] = 'CASE_PAYMENT_HAS_STRIPE_CHARGE'] = "CASEPAYMENTHASSTRIPECHARGE";
|
|
42
42
|
OtrErrorEnum[OtrErrorEnum["CASESTATUSNOTALLOWED"] = 'CASE_STATUS_NOT_ALLOWED'] = "CASESTATUSNOTALLOWED";
|
|
43
43
|
OtrErrorEnum[OtrErrorEnum["CASEUSERMISMATCH"] = 'CASE_USER_MISMATCH'] = "CASEUSERMISMATCH";
|
|
44
|
+
OtrErrorEnum[OtrErrorEnum["CASEUSERNOTFOUND"] = 'CASE_USER_NOT_FOUND'] = "CASEUSERNOTFOUND";
|
|
44
45
|
OtrErrorEnum[OtrErrorEnum["CCWILLEXPIREBEFOREPAYMENTPLAN"] = 'CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN'] = "CCWILLEXPIREBEFOREPAYMENTPLAN";
|
|
45
46
|
OtrErrorEnum[OtrErrorEnum["CHARGEALREADYCAPTURED"] = 'CHARGE_ALREADY_CAPTURED'] = "CHARGEALREADYCAPTURED";
|
|
46
47
|
OtrErrorEnum[OtrErrorEnum["CHARGEEXPIRED"] = 'CHARGE_EXPIRED'] = "CHARGEEXPIRED";
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { GetCaseUsersResponse, ListDashboardCaseUsersResponse, SaveCaseUserRequest } from '../models';
|
|
14
|
+
export interface DeleteCaseUserUsingDELETERequest {
|
|
15
|
+
caseId: string;
|
|
16
|
+
caseUsersId: number;
|
|
17
|
+
}
|
|
14
18
|
export interface GetCaseUsersByCaseUsingGETRequest {
|
|
15
19
|
caseId: string;
|
|
16
20
|
getRemovedUsers?: boolean;
|
|
@@ -28,6 +32,14 @@ export interface SaveCaseUserUsingPOSTRequest {
|
|
|
28
32
|
*
|
|
29
33
|
*/
|
|
30
34
|
export declare class CaseUserControllerApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* deleteCaseUser
|
|
37
|
+
*/
|
|
38
|
+
deleteCaseUserUsingDELETERaw(requestParameters: DeleteCaseUserUsingDELETERequest): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
* deleteCaseUser
|
|
41
|
+
*/
|
|
42
|
+
deleteCaseUserUsingDELETE(requestParameters: DeleteCaseUserUsingDELETERequest): Promise<void>;
|
|
31
43
|
/**
|
|
32
44
|
* getCaseUsersByCase
|
|
33
45
|
*/
|
|
@@ -26,6 +26,36 @@ import { GetCaseUsersResponseFromJSON, ListDashboardCaseUsersResponseFromJSON, S
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class CaseUserControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* deleteCaseUser
|
|
31
|
+
*/
|
|
32
|
+
deleteCaseUserUsingDELETERaw(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling deleteCaseUserUsingDELETE.');
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters.caseUsersId === null || requestParameters.caseUsersId === undefined) {
|
|
38
|
+
throw new runtime.RequiredError('caseUsersId', 'Required parameter requestParameters.caseUsersId was null or undefined when calling deleteCaseUserUsingDELETE.');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
const response = yield this.request({
|
|
43
|
+
path: `/api/v1/case-users/{caseUsersId}/cases/{caseId}`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))).replace(`{${"caseUsersId"}}`, encodeURIComponent(String(requestParameters.caseUsersId))),
|
|
44
|
+
method: 'DELETE',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
});
|
|
48
|
+
return new runtime.VoidApiResponse(response);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* deleteCaseUser
|
|
53
|
+
*/
|
|
54
|
+
deleteCaseUserUsingDELETE(requestParameters) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
yield this.deleteCaseUserUsingDELETERaw(requestParameters);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
29
59
|
/**
|
|
30
60
|
* getCaseUsersByCase
|
|
31
61
|
*/
|
|
@@ -21,6 +21,12 @@ export interface DefendantDetailsModel {
|
|
|
21
21
|
* @memberof DefendantDetailsModel
|
|
22
22
|
*/
|
|
23
23
|
additionalNote?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DefendantDetailsModel
|
|
28
|
+
*/
|
|
29
|
+
caseUsersId?: number;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -33,6 +39,12 @@ export interface DefendantDetailsModel {
|
|
|
33
39
|
* @memberof DefendantDetailsModel
|
|
34
40
|
*/
|
|
35
41
|
firstName?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof DefendantDetailsModel
|
|
46
|
+
*/
|
|
47
|
+
hasFinancialAccess?: boolean;
|
|
36
48
|
/**
|
|
37
49
|
*
|
|
38
50
|
* @type {string}
|
|
@@ -21,8 +21,10 @@ export function DefendantDetailsModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
'additionalNote': !exists(json, 'additionalNote') ? undefined : json['additionalNote'],
|
|
24
|
+
'caseUsersId': !exists(json, 'caseUsersId') ? undefined : json['caseUsersId'],
|
|
24
25
|
'emailAddress': !exists(json, 'emailAddress') ? undefined : json['emailAddress'],
|
|
25
26
|
'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
|
|
27
|
+
'hasFinancialAccess': !exists(json, 'hasFinancialAccess') ? undefined : json['hasFinancialAccess'],
|
|
26
28
|
'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
|
|
27
29
|
'relationshipToClientType': !exists(json, 'relationshipToClientType') ? undefined : json['relationshipToClientType'],
|
|
28
30
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
@@ -37,8 +39,10 @@ export function DefendantDetailsModelToJSON(value) {
|
|
|
37
39
|
}
|
|
38
40
|
return {
|
|
39
41
|
'additionalNote': value.additionalNote,
|
|
42
|
+
'caseUsersId': value.caseUsersId,
|
|
40
43
|
'emailAddress': value.emailAddress,
|
|
41
44
|
'firstName': value.firstName,
|
|
45
|
+
'hasFinancialAccess': value.hasFinancialAccess,
|
|
42
46
|
'lastName': value.lastName,
|
|
43
47
|
'relationshipToClientType': value.relationshipToClientType,
|
|
44
48
|
'userId': value.userId,
|
|
@@ -58,6 +58,7 @@ export declare enum ValidateDirectMailResponseOtrErrorEnum {
|
|
|
58
58
|
CASEPAYMENTHASSTRIPECHARGE = "CASE_PAYMENT_HAS_STRIPE_CHARGE",
|
|
59
59
|
CASESTATUSNOTALLOWED = "CASE_STATUS_NOT_ALLOWED",
|
|
60
60
|
CASEUSERMISMATCH = "CASE_USER_MISMATCH",
|
|
61
|
+
CASEUSERNOTFOUND = "CASE_USER_NOT_FOUND",
|
|
61
62
|
CCWILLEXPIREBEFOREPAYMENTPLAN = "CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN",
|
|
62
63
|
CHARGEALREADYCAPTURED = "CHARGE_ALREADY_CAPTURED",
|
|
63
64
|
CHARGEEXPIRED = "CHARGE_EXPIRED",
|
|
@@ -68,6 +68,7 @@ export var ValidateDirectMailResponseOtrErrorEnum;
|
|
|
68
68
|
ValidateDirectMailResponseOtrErrorEnum["CASEPAYMENTHASSTRIPECHARGE"] = "CASE_PAYMENT_HAS_STRIPE_CHARGE";
|
|
69
69
|
ValidateDirectMailResponseOtrErrorEnum["CASESTATUSNOTALLOWED"] = "CASE_STATUS_NOT_ALLOWED";
|
|
70
70
|
ValidateDirectMailResponseOtrErrorEnum["CASEUSERMISMATCH"] = "CASE_USER_MISMATCH";
|
|
71
|
+
ValidateDirectMailResponseOtrErrorEnum["CASEUSERNOTFOUND"] = "CASE_USER_NOT_FOUND";
|
|
71
72
|
ValidateDirectMailResponseOtrErrorEnum["CCWILLEXPIREBEFOREPAYMENTPLAN"] = "CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN";
|
|
72
73
|
ValidateDirectMailResponseOtrErrorEnum["CHARGEALREADYCAPTURED"] = "CHARGE_ALREADY_CAPTURED";
|
|
73
74
|
ValidateDirectMailResponseOtrErrorEnum["CHARGEEXPIRED"] = "CHARGE_EXPIRED";
|
|
@@ -1267,6 +1267,23 @@ export interface paths {
|
|
|
1267
1267
|
patch?: never;
|
|
1268
1268
|
trace?: never;
|
|
1269
1269
|
};
|
|
1270
|
+
"/api/v1/case-users/{caseUsersId}/cases/{caseId}": {
|
|
1271
|
+
parameters: {
|
|
1272
|
+
query?: never;
|
|
1273
|
+
header?: never;
|
|
1274
|
+
path?: never;
|
|
1275
|
+
cookie?: never;
|
|
1276
|
+
};
|
|
1277
|
+
get?: never;
|
|
1278
|
+
put?: never;
|
|
1279
|
+
post?: never;
|
|
1280
|
+
/** deleteCaseUser */
|
|
1281
|
+
delete: operations["deleteCaseUserUsingDELETE"];
|
|
1282
|
+
options?: never;
|
|
1283
|
+
head?: never;
|
|
1284
|
+
patch?: never;
|
|
1285
|
+
trace?: never;
|
|
1286
|
+
};
|
|
1270
1287
|
"/api/v1/cases/{caseId}/users": {
|
|
1271
1288
|
parameters: {
|
|
1272
1289
|
query?: never;
|
|
@@ -9857,8 +9874,11 @@ export interface components {
|
|
|
9857
9874
|
/** DefendantDetailsModel */
|
|
9858
9875
|
DefendantDetailsModel: {
|
|
9859
9876
|
additionalNote?: string;
|
|
9877
|
+
/** Format: int32 */
|
|
9878
|
+
caseUsersId?: number;
|
|
9860
9879
|
emailAddress?: string;
|
|
9861
9880
|
firstName?: string;
|
|
9881
|
+
hasFinancialAccess?: boolean;
|
|
9862
9882
|
lastName?: string;
|
|
9863
9883
|
/** @enum {string} */
|
|
9864
9884
|
relationshipToClientType?: CaseUserDetailsModelRelationshipToClientType;
|
|
@@ -20453,6 +20473,50 @@ export interface operations {
|
|
|
20453
20473
|
};
|
|
20454
20474
|
};
|
|
20455
20475
|
};
|
|
20476
|
+
deleteCaseUserUsingDELETE: {
|
|
20477
|
+
parameters: {
|
|
20478
|
+
query?: never;
|
|
20479
|
+
header?: never;
|
|
20480
|
+
path: {
|
|
20481
|
+
/** @description caseUsersId */
|
|
20482
|
+
caseUsersId: number;
|
|
20483
|
+
/** @description caseId */
|
|
20484
|
+
caseId: string;
|
|
20485
|
+
};
|
|
20486
|
+
cookie?: never;
|
|
20487
|
+
};
|
|
20488
|
+
requestBody?: never;
|
|
20489
|
+
responses: {
|
|
20490
|
+
/** @description OK */
|
|
20491
|
+
200: {
|
|
20492
|
+
headers: {
|
|
20493
|
+
[name: string]: unknown;
|
|
20494
|
+
};
|
|
20495
|
+
content?: never;
|
|
20496
|
+
};
|
|
20497
|
+
/** @description No Content */
|
|
20498
|
+
204: {
|
|
20499
|
+
headers: {
|
|
20500
|
+
[name: string]: unknown;
|
|
20501
|
+
};
|
|
20502
|
+
content?: never;
|
|
20503
|
+
};
|
|
20504
|
+
/** @description Unauthorized */
|
|
20505
|
+
401: {
|
|
20506
|
+
headers: {
|
|
20507
|
+
[name: string]: unknown;
|
|
20508
|
+
};
|
|
20509
|
+
content?: never;
|
|
20510
|
+
};
|
|
20511
|
+
/** @description Forbidden */
|
|
20512
|
+
403: {
|
|
20513
|
+
headers: {
|
|
20514
|
+
[name: string]: unknown;
|
|
20515
|
+
};
|
|
20516
|
+
content?: never;
|
|
20517
|
+
};
|
|
20518
|
+
};
|
|
20519
|
+
};
|
|
20456
20520
|
getCaseUsersByCaseUsingGET: {
|
|
20457
20521
|
parameters: {
|
|
20458
20522
|
query?: {
|
|
@@ -40950,6 +41014,7 @@ export declare enum ValidateDirectMailResponseOtrError {
|
|
|
40950
41014
|
CASE_PAYMENT_HAS_STRIPE_CHARGE = "CASE_PAYMENT_HAS_STRIPE_CHARGE",
|
|
40951
41015
|
CASE_STATUS_NOT_ALLOWED = "CASE_STATUS_NOT_ALLOWED",
|
|
40952
41016
|
CASE_USER_MISMATCH = "CASE_USER_MISMATCH",
|
|
41017
|
+
CASE_USER_NOT_FOUND = "CASE_USER_NOT_FOUND",
|
|
40953
41018
|
CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN = "CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN",
|
|
40954
41019
|
CHARGE_ALREADY_CAPTURED = "CHARGE_ALREADY_CAPTURED",
|
|
40955
41020
|
CHARGE_EXPIRED = "CHARGE_EXPIRED",
|
|
@@ -1333,6 +1333,7 @@ export var ValidateDirectMailResponseOtrError;
|
|
|
1333
1333
|
ValidateDirectMailResponseOtrError["CASE_PAYMENT_HAS_STRIPE_CHARGE"] = "CASE_PAYMENT_HAS_STRIPE_CHARGE";
|
|
1334
1334
|
ValidateDirectMailResponseOtrError["CASE_STATUS_NOT_ALLOWED"] = "CASE_STATUS_NOT_ALLOWED";
|
|
1335
1335
|
ValidateDirectMailResponseOtrError["CASE_USER_MISMATCH"] = "CASE_USER_MISMATCH";
|
|
1336
|
+
ValidateDirectMailResponseOtrError["CASE_USER_NOT_FOUND"] = "CASE_USER_NOT_FOUND";
|
|
1336
1337
|
ValidateDirectMailResponseOtrError["CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN"] = "CC_WILL_EXPIRE_BEFORE_PAYMENT_PLAN";
|
|
1337
1338
|
ValidateDirectMailResponseOtrError["CHARGE_ALREADY_CAPTURED"] = "CHARGE_ALREADY_CAPTURED";
|
|
1338
1339
|
ValidateDirectMailResponseOtrError["CHARGE_EXPIRED"] = "CHARGE_EXPIRED";
|