@otr-app/shared-backend-generated-client 2.4.50 → 2.4.52

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.
@@ -890,11 +890,79 @@ export class ConsoleListControllerService {
890
890
  );
891
891
  }
892
892
 
893
+ /**
894
+ * getPendingCases
895
+ * @param length length
896
+ * @param page page
897
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
898
+ * @param reportProgress flag to report request and response progress.
899
+ */
900
+ public getPendingCasesUsingGET(length?: number, page?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<GetPendingCasesResponse>;
901
+ public getPendingCasesUsingGET(length?: number, page?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<GetPendingCasesResponse>>;
902
+ public getPendingCasesUsingGET(length?: number, page?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<GetPendingCasesResponse>>;
903
+ public getPendingCasesUsingGET(length?: number, page?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
904
+
905
+ let localVarQueryParameters = new HttpParams({encoder: this.encoder});
906
+ if (length !== undefined && length !== null) {
907
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
908
+ <any>length, 'length');
909
+ }
910
+ if (page !== undefined && page !== null) {
911
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
912
+ <any>page, 'page');
913
+ }
914
+
915
+ let localVarHeaders = this.defaultHeaders;
916
+
917
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
918
+ if (localVarHttpHeaderAcceptSelected === undefined) {
919
+ // to determine the Accept header
920
+ const httpHeaderAccepts: string[] = [
921
+ 'application/json'
922
+ ];
923
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
924
+ }
925
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
926
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
927
+ }
928
+
929
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
930
+ if (localVarHttpContext === undefined) {
931
+ localVarHttpContext = new HttpContext();
932
+ }
933
+
934
+
935
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
936
+ if (localVarHttpHeaderAcceptSelected) {
937
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
938
+ responseType_ = 'text';
939
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
940
+ responseType_ = 'json';
941
+ } else {
942
+ responseType_ = 'blob';
943
+ }
944
+ }
945
+
946
+ let localVarPath = `/api/v1/cases/pending`;
947
+ return this.httpClient.request<GetPendingCasesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
948
+ {
949
+ context: localVarHttpContext,
950
+ params: localVarQueryParameters,
951
+ responseType: <any>responseType_,
952
+ withCredentials: this.configuration.withCredentials,
953
+ headers: localVarHeaders,
954
+ observe: observe,
955
+ reportProgress: reportProgress
956
+ }
957
+ );
958
+ }
959
+
893
960
  /**
894
961
  * getPendingCases
895
962
  * @param request request
896
963
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
897
964
  * @param reportProgress flag to report request and response progress.
965
+ * @deprecated
898
966
  */
899
967
  public getPendingCasesUsingPOST(request: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<GetPendingCasesResponse>;
900
968
  public getPendingCasesUsingPOST(request: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<GetPendingCasesResponse>>;
@@ -14,5 +14,6 @@ import { CaseModel } from './caseModel';
14
14
 
15
15
  export interface GetPendingCasesResponse {
16
16
  pendingCases?: Array<CaseModel>;
17
+ totalPendingCases?: number;
17
18
  }
18
19
 
@@ -28,6 +28,7 @@ export interface MatchCitationModel {
28
28
  court?: CourtDomain;
29
29
  documentUrlToConvert?: string;
30
30
  fineAmount?: number;
31
+ hasCitationImage?: boolean;
31
32
  involvesAccident?: boolean;
32
33
  isDeleted?: boolean;
33
34
  regionCode?: string;
@@ -1250,6 +1250,45 @@ angular.module('otrBackendService', [])
1250
1250
 
1251
1251
  return deferred.promise;
1252
1252
  };
1253
+ /**
1254
+ * getPendingCases
1255
+ * @method
1256
+ * @name OtrService#getPendingCasesUsingGET
1257
+ * @param {object} parameters - method options and parameters
1258
+ * @param {integer} parameters.length - length
1259
+ * @param {integer} parameters.page - page
1260
+ */
1261
+ OtrService.prototype.getPendingCasesUsingGET = function(parameters) {
1262
+ if (parameters === undefined) {
1263
+ parameters = {};
1264
+ }
1265
+ var deferred = $q.defer();
1266
+ var domain = this.domain,
1267
+ path = '/api/v1/cases/pending';
1268
+ var body = {},
1269
+ queryParameters = {},
1270
+ headers = {},
1271
+ form = {};
1272
+
1273
+ headers['Accept'] = ['application/json'];
1274
+
1275
+ /** set default value **/
1276
+ queryParameters['length'] = 50;
1277
+
1278
+ if (parameters['length'] !== undefined) {
1279
+ queryParameters['length'] = parameters['length'];
1280
+ }
1281
+
1282
+ if (parameters['page'] !== undefined) {
1283
+ queryParameters['page'] = parameters['page'];
1284
+ }
1285
+
1286
+ queryParameters = mergeQueryParams(parameters, queryParameters);
1287
+
1288
+ this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
1289
+
1290
+ return deferred.promise;
1291
+ };
1253
1292
  /**
1254
1293
  * getPendingCases
1255
1294
  * @method