@otr-app/shared-backend-generated-client 2.3.39 → 2.3.41

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.
@@ -378,17 +378,17 @@ export class DashboardControllerService {
378
378
  }
379
379
 
380
380
  /**
381
- * listCitations2
381
+ * listCitations
382
382
  * @param request request
383
383
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
384
384
  * @param reportProgress flag to report request and response progress.
385
385
  */
386
- public listCitations2UsingPOST(request: ListCitationsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<ListCitationsResponse>;
387
- public listCitations2UsingPOST(request: ListCitationsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<ListCitationsResponse>>;
388
- public listCitations2UsingPOST(request: ListCitationsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<ListCitationsResponse>>;
389
- public listCitations2UsingPOST(request: ListCitationsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
386
+ public listCitationsUsingPOST(request: ListCitationsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<ListCitationsResponse>;
387
+ public listCitationsUsingPOST(request: ListCitationsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<ListCitationsResponse>>;
388
+ public listCitationsUsingPOST(request: ListCitationsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<ListCitationsResponse>>;
389
+ public listCitationsUsingPOST(request: ListCitationsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
390
390
  if (request === null || request === undefined) {
391
- throw new Error('Required parameter request was null or undefined when calling listCitations2UsingPOST.');
391
+ throw new Error('Required parameter request was null or undefined when calling listCitationsUsingPOST.');
392
392
  }
393
393
 
394
394
  let localVarHeaders = this.defaultHeaders;
@@ -431,7 +431,7 @@ export class DashboardControllerService {
431
431
  }
432
432
  }
433
433
 
434
- let localVarPath = `/api/v1/console/citations2`;
434
+ let localVarPath = `/api/v1/console/citations`;
435
435
  return this.httpClient.request<ListCitationsResponse>('post', `${this.configuration.basePath}${localVarPath}`,
436
436
  {
437
437
  context: localVarHttpContext,
@@ -445,124 +445,6 @@ export class DashboardControllerService {
445
445
  );
446
446
  }
447
447
 
448
- /**
449
- * listCitations
450
- * @param endDate endDate
451
- * @param startDate startDate
452
- * @param caseStatusFilter caseStatusFilter
453
- * @param countyFilter countyFilter
454
- * @param experimentName experimentName
455
- * @param groupName groupName
456
- * @param length length
457
- * @param page page
458
- * @param stateFilter stateFilter
459
- * @param statusCategoryFilter statusCategoryFilter
460
- * @param timeZoneId timeZoneId
461
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
462
- * @param reportProgress flag to report request and response progress.
463
- */
464
- public listCitationsUsingGET(endDate: string, startDate: string, caseStatusFilter?: string, countyFilter?: string, experimentName?: 'PRINCETON_PROJECT_1', groupName?: string, length?: number, page?: number, stateFilter?: string, statusCategoryFilter?: string, timeZoneId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<ListCitationsResponse>;
465
- public listCitationsUsingGET(endDate: string, startDate: string, caseStatusFilter?: string, countyFilter?: string, experimentName?: 'PRINCETON_PROJECT_1', groupName?: string, length?: number, page?: number, stateFilter?: string, statusCategoryFilter?: string, timeZoneId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<ListCitationsResponse>>;
466
- public listCitationsUsingGET(endDate: string, startDate: string, caseStatusFilter?: string, countyFilter?: string, experimentName?: 'PRINCETON_PROJECT_1', groupName?: string, length?: number, page?: number, stateFilter?: string, statusCategoryFilter?: string, timeZoneId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<ListCitationsResponse>>;
467
- public listCitationsUsingGET(endDate: string, startDate: string, caseStatusFilter?: string, countyFilter?: string, experimentName?: 'PRINCETON_PROJECT_1', groupName?: string, length?: number, page?: number, stateFilter?: string, statusCategoryFilter?: string, timeZoneId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
468
- if (endDate === null || endDate === undefined) {
469
- throw new Error('Required parameter endDate was null or undefined when calling listCitationsUsingGET.');
470
- }
471
- if (startDate === null || startDate === undefined) {
472
- throw new Error('Required parameter startDate was null or undefined when calling listCitationsUsingGET.');
473
- }
474
-
475
- let localVarQueryParameters = new HttpParams({encoder: this.encoder});
476
- if (caseStatusFilter !== undefined && caseStatusFilter !== null) {
477
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
478
- <any>caseStatusFilter, 'caseStatusFilter');
479
- }
480
- if (countyFilter !== undefined && countyFilter !== null) {
481
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
482
- <any>countyFilter, 'countyFilter');
483
- }
484
- if (endDate !== undefined && endDate !== null) {
485
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
486
- <any>endDate, 'endDate');
487
- }
488
- if (experimentName !== undefined && experimentName !== null) {
489
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
490
- <any>experimentName, 'experimentName');
491
- }
492
- if (groupName !== undefined && groupName !== null) {
493
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
494
- <any>groupName, 'groupName');
495
- }
496
- if (length !== undefined && length !== null) {
497
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
498
- <any>length, 'length');
499
- }
500
- if (page !== undefined && page !== null) {
501
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
502
- <any>page, 'page');
503
- }
504
- if (startDate !== undefined && startDate !== null) {
505
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
506
- <any>startDate, 'startDate');
507
- }
508
- if (stateFilter !== undefined && stateFilter !== null) {
509
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
510
- <any>stateFilter, 'stateFilter');
511
- }
512
- if (statusCategoryFilter !== undefined && statusCategoryFilter !== null) {
513
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
514
- <any>statusCategoryFilter, 'statusCategoryFilter');
515
- }
516
- if (timeZoneId !== undefined && timeZoneId !== null) {
517
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
518
- <any>timeZoneId, 'timeZoneId');
519
- }
520
-
521
- let localVarHeaders = this.defaultHeaders;
522
-
523
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
524
- if (localVarHttpHeaderAcceptSelected === undefined) {
525
- // to determine the Accept header
526
- const httpHeaderAccepts: string[] = [
527
- 'application/json'
528
- ];
529
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
530
- }
531
- if (localVarHttpHeaderAcceptSelected !== undefined) {
532
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
533
- }
534
-
535
- let localVarHttpContext: HttpContext | undefined = options && options.context;
536
- if (localVarHttpContext === undefined) {
537
- localVarHttpContext = new HttpContext();
538
- }
539
-
540
-
541
- let responseType_: 'text' | 'json' | 'blob' = 'json';
542
- if (localVarHttpHeaderAcceptSelected) {
543
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
544
- responseType_ = 'text';
545
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
546
- responseType_ = 'json';
547
- } else {
548
- responseType_ = 'blob';
549
- }
550
- }
551
-
552
- let localVarPath = `/api/v1/console/citations`;
553
- return this.httpClient.request<ListCitationsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
554
- {
555
- context: localVarHttpContext,
556
- params: localVarQueryParameters,
557
- responseType: <any>responseType_,
558
- withCredentials: this.configuration.withCredentials,
559
- headers: localVarHeaders,
560
- observe: observe,
561
- reportProgress: reportProgress
562
- }
563
- );
564
- }
565
-
566
448
  /**
567
449
  * listCustomers
568
450
  * @param graphRequest graphRequest
@@ -14,8 +14,14 @@
14
14
  export interface ListCitationsRequest {
15
15
  caseStatusCategoryFilter?: ListCitationsRequest.CaseStatusCategoryFilterEnum;
16
16
  caseStatusFilterList?: Array<ListCitationsRequest.CaseStatusFilterListEnum>;
17
+ cdlStatus?: string;
17
18
  countyFilter?: string;
18
19
  endDate?: string;
20
+ experimentGroup?: ListCitationsRequest.ExperimentGroupEnum;
21
+ experimentName?: string;
22
+ hasAccident?: boolean;
23
+ hasCase?: boolean;
24
+ hasPhoto?: boolean;
19
25
  length?: number;
20
26
  page?: number;
21
27
  sortMap?: { [key: string]: string; };
@@ -71,6 +77,12 @@ export namespace ListCitationsRequest {
71
77
  TrafficSchool: 'TRAFFIC_SCHOOL' as CaseStatusFilterListEnum,
72
78
  Unconfirmed: 'UNCONFIRMED' as CaseStatusFilterListEnum
73
79
  };
80
+ export type ExperimentGroupEnum = 'CONTROL' | 'VARIATION_1' | 'VARIATION_2';
81
+ export const ExperimentGroupEnum = {
82
+ Control: 'CONTROL' as ExperimentGroupEnum,
83
+ Variation1: 'VARIATION_1' as ExperimentGroupEnum,
84
+ Variation2: 'VARIATION_2' as ExperimentGroupEnum
85
+ };
74
86
  export type StateFilterListEnum = 'AK' | 'AL' | 'AR' | 'AZ' | 'CA' | 'CO' | 'CT' | 'DC' | 'DE' | 'FL' | 'GA' | 'HI' | 'IA' | 'ID' | 'IL' | 'IN' | 'KS' | 'KY' | 'LA' | 'MA' | 'MD' | 'ME' | 'MI' | 'MN' | 'MO' | 'MS' | 'MT' | 'NC' | 'ND' | 'NE' | 'NH' | 'NJ' | 'NM' | 'NV' | 'NY' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VA' | 'VT' | 'WA' | 'WI' | 'WV' | 'WY';
75
87
  export const StateFilterListEnum = {
76
88
  Ak: 'AK' as StateFilterListEnum,
@@ -4795,109 +4795,17 @@ angular.module('otrBackendService', [])
4795
4795
  /**
4796
4796
  * listCitations
4797
4797
  * @method
4798
- * @name OtrService#listCitationsUsingGET
4799
- * @param {object} parameters - method options and parameters
4800
- * @param {string} parameters.caseStatusFilter - caseStatusFilter
4801
- * @param {string} parameters.countyFilter - countyFilter
4802
- * @param {string} parameters.endDate - endDate
4803
-
4804
- * @param {string} parameters.groupName - groupName
4805
- * @param {integer} parameters.length - length
4806
- * @param {integer} parameters.page - page
4807
- * @param {string} parameters.startDate - startDate
4808
- * @param {string} parameters.stateFilter - stateFilter
4809
- * @param {string} parameters.statusCategoryFilter - statusCategoryFilter
4810
- * @param {string} parameters.timeZoneId - timeZoneId
4811
- */
4812
- OtrService.prototype.listCitationsUsingGET = function(parameters) {
4813
- if (parameters === undefined) {
4814
- parameters = {};
4815
- }
4816
- var deferred = $q.defer();
4817
- var domain = this.domain,
4818
- path = '/api/v1/console/citations';
4819
- var body = {},
4820
- queryParameters = {},
4821
- headers = {},
4822
- form = {};
4823
-
4824
- headers['Accept'] = ['application/json'];
4825
-
4826
- if (parameters['caseStatusFilter'] !== undefined) {
4827
- queryParameters['caseStatusFilter'] = parameters['caseStatusFilter'];
4828
- }
4829
-
4830
- if (parameters['countyFilter'] !== undefined) {
4831
- queryParameters['countyFilter'] = parameters['countyFilter'];
4832
- }
4833
-
4834
- if (parameters['endDate'] !== undefined) {
4835
- queryParameters['endDate'] = parameters['endDate'];
4836
- }
4837
-
4838
- if (parameters['endDate'] === undefined) {
4839
- deferred.reject(new Error('Missing required parameter: endDate'));
4840
- return deferred.promise;
4841
- }
4842
-
4843
- queryParameters['experimentName'] = 'PRINCETON_PROJECT_1';
4844
-
4845
- if (parameters['groupName'] !== undefined) {
4846
- queryParameters['groupName'] = parameters['groupName'];
4847
- }
4848
-
4849
- /** set default value **/
4850
- queryParameters['length'] = 10;
4851
-
4852
- if (parameters['length'] !== undefined) {
4853
- queryParameters['length'] = parameters['length'];
4854
- }
4855
-
4856
- if (parameters['page'] !== undefined) {
4857
- queryParameters['page'] = parameters['page'];
4858
- }
4859
-
4860
- if (parameters['startDate'] !== undefined) {
4861
- queryParameters['startDate'] = parameters['startDate'];
4862
- }
4863
-
4864
- if (parameters['startDate'] === undefined) {
4865
- deferred.reject(new Error('Missing required parameter: startDate'));
4866
- return deferred.promise;
4867
- }
4868
-
4869
- if (parameters['stateFilter'] !== undefined) {
4870
- queryParameters['stateFilter'] = parameters['stateFilter'];
4871
- }
4872
-
4873
- if (parameters['statusCategoryFilter'] !== undefined) {
4874
- queryParameters['statusCategoryFilter'] = parameters['statusCategoryFilter'];
4875
- }
4876
-
4877
- if (parameters['timeZoneId'] !== undefined) {
4878
- queryParameters['timeZoneId'] = parameters['timeZoneId'];
4879
- }
4880
-
4881
- queryParameters = mergeQueryParams(parameters, queryParameters);
4882
-
4883
- this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
4884
-
4885
- return deferred.promise;
4886
- };
4887
- /**
4888
- * getCitationsWithMissingFields
4889
- * @method
4890
- * @name OtrService#getCitationsWithMissingFieldsUsingPOST
4798
+ * @name OtrService#listCitationsUsingPOST
4891
4799
  * @param {object} parameters - method options and parameters
4892
4800
  * @param {} parameters.request - request
4893
4801
  */
4894
- OtrService.prototype.getCitationsWithMissingFieldsUsingPOST = function(parameters) {
4802
+ OtrService.prototype.listCitationsUsingPOST = function(parameters) {
4895
4803
  if (parameters === undefined) {
4896
4804
  parameters = {};
4897
4805
  }
4898
4806
  var deferred = $q.defer();
4899
4807
  var domain = this.domain,
4900
- path = '/api/v1/console/citations-with-missing-fields';
4808
+ path = '/api/v1/console/citations';
4901
4809
  var body = {},
4902
4810
  queryParameters = {},
4903
4811
  headers = {},
@@ -4922,19 +4830,19 @@ angular.module('otrBackendService', [])
4922
4830
  return deferred.promise;
4923
4831
  };
4924
4832
  /**
4925
- * listCitations2
4833
+ * getCitationsWithMissingFields
4926
4834
  * @method
4927
- * @name OtrService#listCitations2UsingPOST
4835
+ * @name OtrService#getCitationsWithMissingFieldsUsingPOST
4928
4836
  * @param {object} parameters - method options and parameters
4929
4837
  * @param {} parameters.request - request
4930
4838
  */
4931
- OtrService.prototype.listCitations2UsingPOST = function(parameters) {
4839
+ OtrService.prototype.getCitationsWithMissingFieldsUsingPOST = function(parameters) {
4932
4840
  if (parameters === undefined) {
4933
4841
  parameters = {};
4934
4842
  }
4935
4843
  var deferred = $q.defer();
4936
4844
  var domain = this.domain,
4937
- path = '/api/v1/console/citations2';
4845
+ path = '/api/v1/console/citations-with-missing-fields';
4938
4846
  var body = {},
4939
4847
  queryParameters = {},
4940
4848
  headers = {},