@otr-app/shared-backend-generated-client 2.3.136 → 2.3.137

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 (27) hide show
  1. package/dist/angular/.openapi-generator/FILES +5 -0
  2. package/dist/angular/api/api.ts +3 -1
  3. package/dist/angular/api/externalContentVoteController.service.ts +221 -0
  4. package/dist/angular/api.module.ts +1 -0
  5. package/dist/angular/model/externalContentVoteModel.ts +19 -0
  6. package/dist/angular/model/externalUserContentVoteModel.ts +30 -0
  7. package/dist/angular/model/getExternalContentUserVotesResponse.ts +18 -0
  8. package/dist/angular/model/models.ts +4 -0
  9. package/dist/angular/model/saveExternalContentVoteRequest.ts +31 -0
  10. package/dist/otrBackendService.js +71 -0
  11. package/dist/otrBackendService.min.js +4 -4
  12. package/dist/typescript/api/ExternalContentVoteControllerApi.d.ts +33 -0
  13. package/dist/typescript/api/ExternalContentVoteControllerApi.js +79 -0
  14. package/dist/typescript/api/api.d.ts +3 -1
  15. package/dist/typescript/api/api.js +3 -1
  16. package/dist/typescript/api.module.js +1 -0
  17. package/dist/typescript/model/ExternalContentVoteModel.d.ts +16 -0
  18. package/dist/typescript/model/ExternalContentVoteModel.js +13 -0
  19. package/dist/typescript/model/ExternalUserContentVoteModel.d.ts +25 -0
  20. package/dist/typescript/model/ExternalUserContentVoteModel.js +24 -0
  21. package/dist/typescript/model/GetExternalContentUserVotesResponse.d.ts +15 -0
  22. package/dist/typescript/model/GetExternalContentUserVotesResponse.js +13 -0
  23. package/dist/typescript/model/SaveExternalContentVoteRequest.d.ts +26 -0
  24. package/dist/typescript/model/SaveExternalContentVoteRequest.js +24 -0
  25. package/dist/typescript/model/models.d.ts +4 -0
  26. package/dist/typescript/model/models.js +4 -0
  27. package/package.json +1 -1
@@ -43,6 +43,7 @@ api/directMailController.service.ts
43
43
  api/dripController.service.ts
44
44
  api/dripWebhooksController.service.ts
45
45
  api/emailSubscriptionController.service.ts
46
+ api/externalContentVoteController.service.ts
46
47
  api/externalTicketLookupController.service.ts
47
48
  api/feedbackController.service.ts
48
49
  api/freshcallerController.service.ts
@@ -304,7 +305,9 @@ model/enableViolationsForLawfirmRequest.ts
304
305
  model/enableViolationsForLawfirmResponse.ts
305
306
  model/estimateInsuranceSavingsRequest.ts
306
307
  model/estimateInsuranceSavingsResponse.ts
308
+ model/externalContentVoteModel.ts
307
309
  model/externalTicketCourt.ts
310
+ model/externalUserContentVoteModel.ts
308
311
  model/feedbackAttachmentModel.ts
309
312
  model/feedbackDomain.ts
310
313
  model/financialTransaction.ts
@@ -382,6 +385,7 @@ model/getDeclinedCasesRequest.ts
382
385
  model/getDeclinedCasesResponse.ts
383
386
  model/getDocumentsRequest.ts
384
387
  model/getEmailTemplateResponse.ts
388
+ model/getExternalContentUserVotesResponse.ts
385
389
  model/getExternalTicketInputParamsResponse.ts
386
390
  model/getHouseHoldMateModel.ts
387
391
  model/getHouseholdMatesResponse.ts
@@ -639,6 +643,7 @@ model/saveAgentBookingRequest.ts
639
643
  model/saveAgentBookingResponse.ts
640
644
  model/saveCaseNotesRequest.ts
641
645
  model/saveCaseUserRequest.ts
646
+ model/saveExternalContentVoteRequest.ts
642
647
  model/saveItemToWatchlistRequest.ts
643
648
  model/saveLawfirmSurchargeModel.ts
644
649
  model/saveLawfirmSurchargesRequest.ts
@@ -80,6 +80,8 @@ export * from './dripWebhooksController.service';
80
80
  import { DripWebhooksControllerService } from './dripWebhooksController.service';
81
81
  export * from './emailSubscriptionController.service';
82
82
  import { EmailSubscriptionControllerService } from './emailSubscriptionController.service';
83
+ export * from './externalContentVoteController.service';
84
+ import { ExternalContentVoteControllerService } from './externalContentVoteController.service';
83
85
  export * from './externalTicketLookupController.service';
84
86
  import { ExternalTicketLookupControllerService } from './externalTicketLookupController.service';
85
87
  export * from './feedbackController.service';
@@ -206,4 +208,4 @@ export * from './websocketMessageController.service';
206
208
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
207
209
  export * from './workflowStateController.service';
208
210
  import { WorkflowStateControllerService } from './workflowStateController.service';
209
- export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPredictionControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
211
+ export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPredictionControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
@@ -0,0 +1,221 @@
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
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams,
16
+ HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
17
+ } from '@angular/common/http';
18
+ import { CustomHttpParameterCodec } from '../encoder';
19
+ import { Observable } from 'rxjs';
20
+
21
+ // @ts-ignore
22
+ import { GetExternalContentUserVotesResponse } from '../model/getExternalContentUserVotesResponse';
23
+ // @ts-ignore
24
+ import { SaveExternalContentVoteRequest } from '../model/saveExternalContentVoteRequest';
25
+
26
+ // @ts-ignore
27
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
28
+ import { Configuration } from '../configuration';
29
+
30
+
31
+
32
+ @Injectable({
33
+ providedIn: 'root'
34
+ })
35
+ export class ExternalContentVoteControllerService {
36
+
37
+ protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
38
+ public defaultHeaders = new HttpHeaders();
39
+ public configuration = new Configuration();
40
+ public encoder: HttpParameterCodec;
41
+
42
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
43
+ if (configuration) {
44
+ this.configuration = configuration;
45
+ }
46
+ if (typeof this.configuration.basePath !== 'string') {
47
+ if (Array.isArray(basePath) && basePath.length > 0) {
48
+ basePath = basePath[0];
49
+ }
50
+
51
+ if (typeof basePath !== 'string') {
52
+ basePath = this.basePath;
53
+ }
54
+ this.configuration.basePath = basePath;
55
+ }
56
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
57
+ }
58
+
59
+
60
+ // @ts-ignore
61
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
62
+ if (typeof value === "object" && value instanceof Date === false) {
63
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
64
+ } else {
65
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
66
+ }
67
+ return httpParams;
68
+ }
69
+
70
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
71
+ if (value == null) {
72
+ return httpParams;
73
+ }
74
+
75
+ if (typeof value === "object") {
76
+ if (Array.isArray(value)) {
77
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
78
+ } else if (value instanceof Date) {
79
+ if (key != null) {
80
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
81
+ } else {
82
+ throw Error("key may not be null if value is Date");
83
+ }
84
+ } else {
85
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
86
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
87
+ }
88
+ } else if (key != null) {
89
+ httpParams = httpParams.append(key, value);
90
+ } else {
91
+ throw Error("key may not be null if value is not object or array");
92
+ }
93
+ return httpParams;
94
+ }
95
+
96
+ /**
97
+ * getExternalContentUserVotes
98
+ * @param userId userId
99
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
100
+ * @param reportProgress flag to report request and response progress.
101
+ */
102
+ public getExternalContentUserVotesUsingGET(userId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetExternalContentUserVotesResponse>;
103
+ public getExternalContentUserVotesUsingGET(userId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetExternalContentUserVotesResponse>>;
104
+ public getExternalContentUserVotesUsingGET(userId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetExternalContentUserVotesResponse>>;
105
+ public getExternalContentUserVotesUsingGET(userId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
106
+ if (userId === null || userId === undefined) {
107
+ throw new Error('Required parameter userId was null or undefined when calling getExternalContentUserVotesUsingGET.');
108
+ }
109
+
110
+ let localVarHeaders = this.defaultHeaders;
111
+
112
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
113
+ if (localVarHttpHeaderAcceptSelected === undefined) {
114
+ // to determine the Accept header
115
+ const httpHeaderAccepts: string[] = [
116
+ '*/*'
117
+ ];
118
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
119
+ }
120
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
121
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
122
+ }
123
+
124
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
125
+ if (localVarHttpContext === undefined) {
126
+ localVarHttpContext = new HttpContext();
127
+ }
128
+
129
+
130
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
131
+ if (localVarHttpHeaderAcceptSelected) {
132
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
133
+ responseType_ = 'text';
134
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
135
+ responseType_ = 'json';
136
+ } else {
137
+ responseType_ = 'blob';
138
+ }
139
+ }
140
+
141
+ let localVarPath = `/api/v1/external-content-votes/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
142
+ return this.httpClient.request<GetExternalContentUserVotesResponse>('get', `${this.configuration.basePath}${localVarPath}`,
143
+ {
144
+ context: localVarHttpContext,
145
+ responseType: <any>responseType_,
146
+ withCredentials: this.configuration.withCredentials,
147
+ headers: localVarHeaders,
148
+ observe: observe,
149
+ reportProgress: reportProgress
150
+ }
151
+ );
152
+ }
153
+
154
+ /**
155
+ * saveExternalContentVote
156
+ * @param request request
157
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
158
+ * @param reportProgress flag to report request and response progress.
159
+ */
160
+ public saveExternalContentVoteUsingPOST(request: SaveExternalContentVoteRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
161
+ public saveExternalContentVoteUsingPOST(request: SaveExternalContentVoteRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
162
+ public saveExternalContentVoteUsingPOST(request: SaveExternalContentVoteRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
163
+ public saveExternalContentVoteUsingPOST(request: SaveExternalContentVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
164
+ if (request === null || request === undefined) {
165
+ throw new Error('Required parameter request was null or undefined when calling saveExternalContentVoteUsingPOST.');
166
+ }
167
+
168
+ let localVarHeaders = this.defaultHeaders;
169
+
170
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
171
+ if (localVarHttpHeaderAcceptSelected === undefined) {
172
+ // to determine the Accept header
173
+ const httpHeaderAccepts: string[] = [
174
+ ];
175
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
176
+ }
177
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
178
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
179
+ }
180
+
181
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
182
+ if (localVarHttpContext === undefined) {
183
+ localVarHttpContext = new HttpContext();
184
+ }
185
+
186
+
187
+ // to determine the Content-Type header
188
+ const consumes: string[] = [
189
+ 'application/json'
190
+ ];
191
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
192
+ if (httpContentTypeSelected !== undefined) {
193
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
194
+ }
195
+
196
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
197
+ if (localVarHttpHeaderAcceptSelected) {
198
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
199
+ responseType_ = 'text';
200
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
201
+ responseType_ = 'json';
202
+ } else {
203
+ responseType_ = 'blob';
204
+ }
205
+ }
206
+
207
+ let localVarPath = `/api/v1/external-content-votes`;
208
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
209
+ {
210
+ context: localVarHttpContext,
211
+ body: request,
212
+ responseType: <any>responseType_,
213
+ withCredentials: this.configuration.withCredentials,
214
+ headers: localVarHeaders,
215
+ observe: observe,
216
+ reportProgress: reportProgress
217
+ }
218
+ );
219
+ }
220
+
221
+ }
@@ -43,6 +43,7 @@ import { DirectMailControllerService } from './api/directMailController.service'
43
43
  import { DripControllerService } from './api/dripController.service';
44
44
  import { DripWebhooksControllerService } from './api/dripWebhooksController.service';
45
45
  import { EmailSubscriptionControllerService } from './api/emailSubscriptionController.service';
46
+ import { ExternalContentVoteControllerService } from './api/externalContentVoteController.service';
46
47
  import { ExternalTicketLookupControllerService } from './api/externalTicketLookupController.service';
47
48
  import { FeedbackControllerService } from './api/feedbackController.service';
48
49
  import { FreshcallerControllerService } from './api/freshcallerController.service';
@@ -0,0 +1,19 @@
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
+ import { ExternalUserContentVoteModel } from './externalUserContentVoteModel';
13
+
14
+
15
+ export interface ExternalContentVoteModel {
16
+ externalContentId?: string;
17
+ userContentVoteModelList?: Array<ExternalUserContentVoteModel>;
18
+ }
19
+
@@ -0,0 +1,30 @@
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 ExternalUserContentVoteModel {
15
+ externalContentUserVoteId?: number;
16
+ userId?: number;
17
+ voteType?: ExternalUserContentVoteModel.VoteTypeEnum;
18
+ voteValue?: number;
19
+ }
20
+ export namespace ExternalUserContentVoteModel {
21
+ export type VoteTypeEnum = 'DOWNVOTE' | 'HELPFUL' | 'UNHELPFUL' | 'UPVOTE';
22
+ export const VoteTypeEnum = {
23
+ Downvote: 'DOWNVOTE' as VoteTypeEnum,
24
+ Helpful: 'HELPFUL' as VoteTypeEnum,
25
+ Unhelpful: 'UNHELPFUL' as VoteTypeEnum,
26
+ Upvote: 'UPVOTE' as VoteTypeEnum
27
+ };
28
+ }
29
+
30
+
@@ -0,0 +1,18 @@
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
+ import { ExternalContentVoteModel } from './externalContentVoteModel';
13
+
14
+
15
+ export interface GetExternalContentUserVotesResponse {
16
+ userContentVotes?: Array<ExternalContentVoteModel>;
17
+ }
18
+
@@ -192,7 +192,9 @@ export * from './enableViolationsForLawfirmRequest';
192
192
  export * from './enableViolationsForLawfirmResponse';
193
193
  export * from './estimateInsuranceSavingsRequest';
194
194
  export * from './estimateInsuranceSavingsResponse';
195
+ export * from './externalContentVoteModel';
195
196
  export * from './externalTicketCourt';
197
+ export * from './externalUserContentVoteModel';
196
198
  export * from './feedbackAttachmentModel';
197
199
  export * from './feedbackDomain';
198
200
  export * from './financialTransaction';
@@ -270,6 +272,7 @@ export * from './getDeclinedCasesRequest';
270
272
  export * from './getDeclinedCasesResponse';
271
273
  export * from './getDocumentsRequest';
272
274
  export * from './getEmailTemplateResponse';
275
+ export * from './getExternalContentUserVotesResponse';
273
276
  export * from './getExternalTicketInputParamsResponse';
274
277
  export * from './getHouseHoldMateModel';
275
278
  export * from './getHouseholdMatesResponse';
@@ -526,6 +529,7 @@ export * from './saveAgentBookingRequest';
526
529
  export * from './saveAgentBookingResponse';
527
530
  export * from './saveCaseNotesRequest';
528
531
  export * from './saveCaseUserRequest';
532
+ export * from './saveExternalContentVoteRequest';
529
533
  export * from './saveItemToWatchlistRequest';
530
534
  export * from './saveLawfirmSurchargeModel';
531
535
  export * from './saveLawfirmSurchargesRequest';
@@ -0,0 +1,31 @@
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 SaveExternalContentVoteRequest {
15
+ documentType?: string;
16
+ externalDocumentId?: number;
17
+ userId?: number;
18
+ voteType?: SaveExternalContentVoteRequest.VoteTypeEnum;
19
+ voteValue?: number;
20
+ }
21
+ export namespace SaveExternalContentVoteRequest {
22
+ export type VoteTypeEnum = 'DOWNVOTE' | 'HELPFUL' | 'UNHELPFUL' | 'UPVOTE';
23
+ export const VoteTypeEnum = {
24
+ Downvote: 'DOWNVOTE' as VoteTypeEnum,
25
+ Helpful: 'HELPFUL' as VoteTypeEnum,
26
+ Unhelpful: 'UNHELPFUL' as VoteTypeEnum,
27
+ Upvote: 'UPVOTE' as VoteTypeEnum
28
+ };
29
+ }
30
+
31
+
@@ -6848,6 +6848,77 @@ angular.module('otrBackendService', [])
6848
6848
 
6849
6849
  return deferred.promise;
6850
6850
  };
6851
+ /**
6852
+ * saveExternalContentVote
6853
+ * @method
6854
+ * @name OtrService#saveExternalContentVoteUsingPOST
6855
+ * @param {object} parameters - method options and parameters
6856
+ * @param {} parameters.request - request
6857
+ */
6858
+ OtrService.prototype.saveExternalContentVoteUsingPOST = function(parameters) {
6859
+ if (parameters === undefined) {
6860
+ parameters = {};
6861
+ }
6862
+ var deferred = $q.defer();
6863
+ var domain = this.domain,
6864
+ path = '/api/v1/external-content-votes';
6865
+ var body = {},
6866
+ queryParameters = {},
6867
+ headers = {},
6868
+ form = {};
6869
+
6870
+ headers['Accept'] = ['*/*'];
6871
+ headers['Content-Type'] = ['application/json'];
6872
+
6873
+ if (parameters['request'] !== undefined) {
6874
+ body = parameters['request'];
6875
+ }
6876
+
6877
+ if (parameters['request'] === undefined) {
6878
+ deferred.reject(new Error('Missing required parameter: request'));
6879
+ return deferred.promise;
6880
+ }
6881
+
6882
+ queryParameters = mergeQueryParams(parameters, queryParameters);
6883
+
6884
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
6885
+
6886
+ return deferred.promise;
6887
+ };
6888
+ /**
6889
+ * getExternalContentUserVotes
6890
+ * @method
6891
+ * @name OtrService#getExternalContentUserVotesUsingGET
6892
+ * @param {object} parameters - method options and parameters
6893
+ * @param {string} parameters.userId - userId
6894
+ */
6895
+ OtrService.prototype.getExternalContentUserVotesUsingGET = function(parameters) {
6896
+ if (parameters === undefined) {
6897
+ parameters = {};
6898
+ }
6899
+ var deferred = $q.defer();
6900
+ var domain = this.domain,
6901
+ path = '/api/v1/external-content-votes/{userId}';
6902
+ var body = {},
6903
+ queryParameters = {},
6904
+ headers = {},
6905
+ form = {};
6906
+
6907
+ headers['Accept'] = ['*/*'];
6908
+
6909
+ path = path.replace('{userId}', parameters['userId']);
6910
+
6911
+ if (parameters['userId'] === undefined) {
6912
+ deferred.reject(new Error('Missing required parameter: userId'));
6913
+ return deferred.promise;
6914
+ }
6915
+
6916
+ queryParameters = mergeQueryParams(parameters, queryParameters);
6917
+
6918
+ this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
6919
+
6920
+ return deferred.promise;
6921
+ };
6851
6922
  /**
6852
6923
  * getExternalTickets
6853
6924
  * @method