@otr-app/shared-backend-generated-client 2.5.10 → 2.5.11
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/.openapi-generator/FILES +1 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/intercomWebhookController.service.ts +159 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/otrBackendService.js +37 -0
- package/dist/otrBackendService.min.js +4 -4
- package/dist/typescript/api/IntercomWebhookControllerApi.d.ts +26 -0
- package/dist/typescript/api/IntercomWebhookControllerApi.js +49 -0
- package/dist/typescript/api/api.d.ts +3 -1
- package/dist/typescript/api/api.js +3 -1
- package/dist/typescript/api.module.js +1 -0
- package/dist/typescript-fetch/apis/IntercomWebhookControllerApi.d.ts +28 -0
- package/dist/typescript-fetch/apis/IntercomWebhookControllerApi.js +57 -0
- package/dist/typescript-fetch/apis/index.d.ts +1 -0
- package/dist/typescript-fetch/apis/index.js +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/// <reference types="angular" />
|
|
13
|
+
export declare class IntercomWebhookControllerApi {
|
|
14
|
+
protected $http: ng.IHttpService;
|
|
15
|
+
protected $httpParamSerializer?: (d: any) => any;
|
|
16
|
+
protected basePath: string;
|
|
17
|
+
defaultHeaders: any;
|
|
18
|
+
static $inject: string[];
|
|
19
|
+
constructor($http: ng.IHttpService, $httpParamSerializer?: (d: any) => any, basePath?: string);
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary onConversationNotification
|
|
23
|
+
* @param body body
|
|
24
|
+
*/
|
|
25
|
+
onConversationNotificationUsingPOST(body: string, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
export class IntercomWebhookControllerApi {
|
|
14
|
+
constructor($http, $httpParamSerializer, basePath) {
|
|
15
|
+
this.$http = $http;
|
|
16
|
+
this.$httpParamSerializer = $httpParamSerializer;
|
|
17
|
+
this.basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
|
|
18
|
+
this.defaultHeaders = {};
|
|
19
|
+
if (basePath !== undefined) {
|
|
20
|
+
this.basePath = basePath;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary onConversationNotification
|
|
26
|
+
* @param body body
|
|
27
|
+
*/
|
|
28
|
+
onConversationNotificationUsingPOST(body, extraHttpRequestParams) {
|
|
29
|
+
const localVarPath = this.basePath + '/api/v1/intercom/webhook/conversation-notification';
|
|
30
|
+
let queryParameters = {};
|
|
31
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
32
|
+
// verify required parameter 'body' is not null or undefined
|
|
33
|
+
if (body === null || body === undefined) {
|
|
34
|
+
throw new Error('Required parameter body was null or undefined when calling onConversationNotificationUsingPOST.');
|
|
35
|
+
}
|
|
36
|
+
let httpRequestParams = {
|
|
37
|
+
method: 'POST',
|
|
38
|
+
url: localVarPath,
|
|
39
|
+
data: body,
|
|
40
|
+
params: queryParameters,
|
|
41
|
+
headers: headerParams
|
|
42
|
+
};
|
|
43
|
+
if (extraHttpRequestParams) {
|
|
44
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
45
|
+
}
|
|
46
|
+
return this.$http(httpRequestParams);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
IntercomWebhookControllerApi.$inject = ['$http', '$httpParamSerializer', 'basePath'];
|
|
@@ -114,6 +114,8 @@ export * from './InsuranceCalculatorControllerApi';
|
|
|
114
114
|
import { InsuranceCalculatorControllerApi } from './InsuranceCalculatorControllerApi';
|
|
115
115
|
export * from './IntercomTicketControllerApi';
|
|
116
116
|
import { IntercomTicketControllerApi } from './IntercomTicketControllerApi';
|
|
117
|
+
export * from './IntercomWebhookControllerApi';
|
|
118
|
+
import { IntercomWebhookControllerApi } from './IntercomWebhookControllerApi';
|
|
117
119
|
export * from './LawfirmCaseDecisionControllerApi';
|
|
118
120
|
import { LawfirmCaseDecisionControllerApi } from './LawfirmCaseDecisionControllerApi';
|
|
119
121
|
export * from './LawfirmCasesControllerApi';
|
|
@@ -230,4 +232,4 @@ export * from './WebsocketMessageControllerApi';
|
|
|
230
232
|
import { WebsocketMessageControllerApi } from './WebsocketMessageControllerApi';
|
|
231
233
|
export * from './WorkflowStateControllerApi';
|
|
232
234
|
import { WorkflowStateControllerApi } from './WorkflowStateControllerApi';
|
|
233
|
-
export declare const APIS: (typeof ActionRequiredControllerApi | typeof ActivityFeedControllerApi | typeof AddressControllerApi | typeof AlertNotificationControllerApi | typeof AppEventsControllerApi | typeof AuditLawfirmEventsControllerApi | typeof AuditLogControllerApi | typeof AuthenticationControllerApi | typeof AwsCredentialsControllerApi | typeof BlogWebhookControllerApi | typeof BranchLinkControllerApi | typeof CaptchaControllerApi | typeof CaseActionsControllerApi | typeof CaseControllerApi | typeof CaseCounterOfferControllerApi | typeof CaseCreationControllerApi | typeof CaseDeclineControllerApi | typeof CaseNotesControllerApi | typeof CasePaymentControllerApi | typeof CaseReferralCodeControllerApi | typeof CaseRefundControllerApi | typeof CaseResolutionControllerApi | typeof CaseStatusControllerApi | typeof CaseTransferControllerApi | typeof CaseUserControllerApi | typeof CertificateControllerApi | typeof CitationAuditControllerApi | typeof CitationControllerApi | typeof CoachingCardsControllerApi | typeof ConfigurationControllerApi | typeof ConsoleListControllerApi | typeof ContactLoopWebhookControllerApi | typeof ContactTimelineControllerApi | typeof ConversationControllerApi | typeof CountyControllerApi | typeof CourtControllerApi | typeof CrmControllerApi | typeof CustomerLeadControllerApi | typeof CustomerReviewControllerApi | typeof CustomerServiceAgentBookingsControllerApi | typeof CustomerServiceAgentControllerApi | typeof DashboardControllerApi | typeof DirectMailControllerApi | typeof DripControllerApi | typeof DripWebhooksControllerApi | typeof DriverLicenseControllerApi | typeof EmailSubscriptionControllerApi | typeof EmployeeControllerApi | typeof ExternalContentVoteControllerApi | typeof ExternalTicketLookupControllerApi | typeof FeedbackControllerApi | typeof FreshcallerControllerApi | typeof FreshdeskTicketControllerApi | typeof GetCaseControllerApi | typeof HouseholdMateControllerApi | typeof HubspotWebhookControllerApi | typeof InsuranceCalculatorControllerApi | typeof IntercomTicketControllerApi | typeof LawfirmCaseDecisionControllerApi | typeof LawfirmCasesControllerApi | typeof LawfirmControllerApi | typeof LawfirmDocumentControllerApi | typeof LawfirmFeeCoverageControllerApi | typeof LawfirmPaymentModelControllerApi | typeof LawfirmRatesControllerApi | typeof LawfirmSettingsControllerApi | typeof LawfirmStorefrontControllerApi | typeof LawfirmSurchargeControllerApi | typeof LawfirmTransactionsControllerApi | typeof LawyerControllerApi | typeof LegalServicesControllerApi | typeof LineItemControllerApi | typeof ListCasesControllerApi | typeof MediaCreationControllerApi | typeof MessagesControllerApi | typeof NotesControllerApi | typeof OcrPipelineControllerApi | typeof OcrPredictionControllerApi | typeof OnDemandRequestControllerApi | typeof OneTimePasswordControllerApi | typeof PhoneLeadsControllerApi | typeof PushNotificationControllerApi | typeof RecurringBillingControllerApi | typeof RefLinkControllerApi | typeof ReferralCodeControllerApi | typeof ReferralControllerApi | typeof ReferralSourceControllerApi | typeof RefundEligibilityControllerApi | typeof RegistrationControllerApi | typeof ReportingControllerApi | typeof ScheduledTaskControllerApi | typeof SingleSignOnControllerApi | typeof SnsListenerControllerApi | typeof SocialLoginControllerApi | typeof StripeCardControllerApi | typeof StripeControllerApi | typeof StripeSyncControllerApi | typeof StripeWebhookControllerApi | typeof TicketReviewControllerApi | typeof UrlRedirectControllerApi | typeof UserAccountControllerApi | typeof UserAuditControllerApi | typeof UserControllerApi | typeof UserPasswordControllerApi | typeof UserProfileControllerApi | typeof UserSearchControllerApi | typeof UserSettingsControllerApi | typeof UserSocialProfileControllerApi | typeof UtilityControllerApi | typeof ValidationControllerApi | typeof VerificationControllerApi | typeof ViolationControllerApi | typeof ViolationPenaltyControllerApi | typeof WatchlistsControllerApi | typeof WebsocketMessageControllerApi | typeof WorkflowStateControllerApi)[];
|
|
235
|
+
export declare const APIS: (typeof ActionRequiredControllerApi | typeof ActivityFeedControllerApi | typeof AddressControllerApi | typeof AlertNotificationControllerApi | typeof AppEventsControllerApi | typeof AuditLawfirmEventsControllerApi | typeof AuditLogControllerApi | typeof AuthenticationControllerApi | typeof AwsCredentialsControllerApi | typeof BlogWebhookControllerApi | typeof BranchLinkControllerApi | typeof CaptchaControllerApi | typeof CaseActionsControllerApi | typeof CaseControllerApi | typeof CaseCounterOfferControllerApi | typeof CaseCreationControllerApi | typeof CaseDeclineControllerApi | typeof CaseNotesControllerApi | typeof CasePaymentControllerApi | typeof CaseReferralCodeControllerApi | typeof CaseRefundControllerApi | typeof CaseResolutionControllerApi | typeof CaseStatusControllerApi | typeof CaseTransferControllerApi | typeof CaseUserControllerApi | typeof CertificateControllerApi | typeof CitationAuditControllerApi | typeof CitationControllerApi | typeof CoachingCardsControllerApi | typeof ConfigurationControllerApi | typeof ConsoleListControllerApi | typeof ContactLoopWebhookControllerApi | typeof ContactTimelineControllerApi | typeof ConversationControllerApi | typeof CountyControllerApi | typeof CourtControllerApi | typeof CrmControllerApi | typeof CustomerLeadControllerApi | typeof CustomerReviewControllerApi | typeof CustomerServiceAgentBookingsControllerApi | typeof CustomerServiceAgentControllerApi | typeof DashboardControllerApi | typeof DirectMailControllerApi | typeof DripControllerApi | typeof DripWebhooksControllerApi | typeof DriverLicenseControllerApi | typeof EmailSubscriptionControllerApi | typeof EmployeeControllerApi | typeof ExternalContentVoteControllerApi | typeof ExternalTicketLookupControllerApi | typeof FeedbackControllerApi | typeof FreshcallerControllerApi | typeof FreshdeskTicketControllerApi | typeof GetCaseControllerApi | typeof HouseholdMateControllerApi | typeof HubspotWebhookControllerApi | typeof InsuranceCalculatorControllerApi | typeof IntercomTicketControllerApi | typeof IntercomWebhookControllerApi | typeof LawfirmCaseDecisionControllerApi | typeof LawfirmCasesControllerApi | typeof LawfirmControllerApi | typeof LawfirmDocumentControllerApi | typeof LawfirmFeeCoverageControllerApi | typeof LawfirmPaymentModelControllerApi | typeof LawfirmRatesControllerApi | typeof LawfirmSettingsControllerApi | typeof LawfirmStorefrontControllerApi | typeof LawfirmSurchargeControllerApi | typeof LawfirmTransactionsControllerApi | typeof LawyerControllerApi | typeof LegalServicesControllerApi | typeof LineItemControllerApi | typeof ListCasesControllerApi | typeof MediaCreationControllerApi | typeof MessagesControllerApi | typeof NotesControllerApi | typeof OcrPipelineControllerApi | typeof OcrPredictionControllerApi | typeof OnDemandRequestControllerApi | typeof OneTimePasswordControllerApi | typeof PhoneLeadsControllerApi | typeof PushNotificationControllerApi | typeof RecurringBillingControllerApi | typeof RefLinkControllerApi | typeof ReferralCodeControllerApi | typeof ReferralControllerApi | typeof ReferralSourceControllerApi | typeof RefundEligibilityControllerApi | typeof RegistrationControllerApi | typeof ReportingControllerApi | typeof ScheduledTaskControllerApi | typeof SingleSignOnControllerApi | typeof SnsListenerControllerApi | typeof SocialLoginControllerApi | typeof StripeCardControllerApi | typeof StripeControllerApi | typeof StripeSyncControllerApi | typeof StripeWebhookControllerApi | typeof TicketReviewControllerApi | typeof UrlRedirectControllerApi | typeof UserAccountControllerApi | typeof UserAuditControllerApi | typeof UserControllerApi | typeof UserPasswordControllerApi | typeof UserProfileControllerApi | typeof UserSearchControllerApi | typeof UserSettingsControllerApi | typeof UserSocialProfileControllerApi | typeof UtilityControllerApi | typeof ValidationControllerApi | typeof VerificationControllerApi | typeof ViolationControllerApi | typeof ViolationPenaltyControllerApi | typeof WatchlistsControllerApi | typeof WebsocketMessageControllerApi | typeof WorkflowStateControllerApi)[];
|
|
@@ -114,6 +114,8 @@ export * from './InsuranceCalculatorControllerApi';
|
|
|
114
114
|
import { InsuranceCalculatorControllerApi } from './InsuranceCalculatorControllerApi';
|
|
115
115
|
export * from './IntercomTicketControllerApi';
|
|
116
116
|
import { IntercomTicketControllerApi } from './IntercomTicketControllerApi';
|
|
117
|
+
export * from './IntercomWebhookControllerApi';
|
|
118
|
+
import { IntercomWebhookControllerApi } from './IntercomWebhookControllerApi';
|
|
117
119
|
export * from './LawfirmCaseDecisionControllerApi';
|
|
118
120
|
import { LawfirmCaseDecisionControllerApi } from './LawfirmCaseDecisionControllerApi';
|
|
119
121
|
export * from './LawfirmCasesControllerApi';
|
|
@@ -230,4 +232,4 @@ export * from './WebsocketMessageControllerApi';
|
|
|
230
232
|
import { WebsocketMessageControllerApi } from './WebsocketMessageControllerApi';
|
|
231
233
|
export * from './WorkflowStateControllerApi';
|
|
232
234
|
import { WorkflowStateControllerApi } from './WorkflowStateControllerApi';
|
|
233
|
-
export const APIS = [ActionRequiredControllerApi, ActivityFeedControllerApi, AddressControllerApi, AlertNotificationControllerApi, AppEventsControllerApi, AuditLawfirmEventsControllerApi, AuditLogControllerApi, AuthenticationControllerApi, AwsCredentialsControllerApi, BlogWebhookControllerApi, BranchLinkControllerApi, CaptchaControllerApi, CaseActionsControllerApi, CaseControllerApi, CaseCounterOfferControllerApi, CaseCreationControllerApi, CaseDeclineControllerApi, CaseNotesControllerApi, CasePaymentControllerApi, CaseReferralCodeControllerApi, CaseRefundControllerApi, CaseResolutionControllerApi, CaseStatusControllerApi, CaseTransferControllerApi, CaseUserControllerApi, CertificateControllerApi, CitationAuditControllerApi, CitationControllerApi, CoachingCardsControllerApi, ConfigurationControllerApi, ConsoleListControllerApi, ContactLoopWebhookControllerApi, ContactTimelineControllerApi, ConversationControllerApi, CountyControllerApi, CourtControllerApi, CrmControllerApi, CustomerLeadControllerApi, CustomerReviewControllerApi, CustomerServiceAgentBookingsControllerApi, CustomerServiceAgentControllerApi, DashboardControllerApi, DirectMailControllerApi, DripControllerApi, DripWebhooksControllerApi, DriverLicenseControllerApi, EmailSubscriptionControllerApi, EmployeeControllerApi, ExternalContentVoteControllerApi, ExternalTicketLookupControllerApi, FeedbackControllerApi, FreshcallerControllerApi, FreshdeskTicketControllerApi, GetCaseControllerApi, HouseholdMateControllerApi, HubspotWebhookControllerApi, InsuranceCalculatorControllerApi, IntercomTicketControllerApi, LawfirmCaseDecisionControllerApi, LawfirmCasesControllerApi, LawfirmControllerApi, LawfirmDocumentControllerApi, LawfirmFeeCoverageControllerApi, LawfirmPaymentModelControllerApi, LawfirmRatesControllerApi, LawfirmSettingsControllerApi, LawfirmStorefrontControllerApi, LawfirmSurchargeControllerApi, LawfirmTransactionsControllerApi, LawyerControllerApi, LegalServicesControllerApi, LineItemControllerApi, ListCasesControllerApi, MediaCreationControllerApi, MessagesControllerApi, NotesControllerApi, OcrPipelineControllerApi, OcrPredictionControllerApi, OnDemandRequestControllerApi, OneTimePasswordControllerApi, PhoneLeadsControllerApi, PushNotificationControllerApi, RecurringBillingControllerApi, RefLinkControllerApi, ReferralCodeControllerApi, ReferralControllerApi, ReferralSourceControllerApi, RefundEligibilityControllerApi, RegistrationControllerApi, ReportingControllerApi, ScheduledTaskControllerApi, SingleSignOnControllerApi, SnsListenerControllerApi, SocialLoginControllerApi, StripeCardControllerApi, StripeControllerApi, StripeSyncControllerApi, StripeWebhookControllerApi, TicketReviewControllerApi, UrlRedirectControllerApi, UserAccountControllerApi, UserAuditControllerApi, UserControllerApi, UserPasswordControllerApi, UserProfileControllerApi, UserSearchControllerApi, UserSettingsControllerApi, UserSocialProfileControllerApi, UtilityControllerApi, ValidationControllerApi, VerificationControllerApi, ViolationControllerApi, ViolationPenaltyControllerApi, WatchlistsControllerApi, WebsocketMessageControllerApi, WorkflowStateControllerApi];
|
|
235
|
+
export const APIS = [ActionRequiredControllerApi, ActivityFeedControllerApi, AddressControllerApi, AlertNotificationControllerApi, AppEventsControllerApi, AuditLawfirmEventsControllerApi, AuditLogControllerApi, AuthenticationControllerApi, AwsCredentialsControllerApi, BlogWebhookControllerApi, BranchLinkControllerApi, CaptchaControllerApi, CaseActionsControllerApi, CaseControllerApi, CaseCounterOfferControllerApi, CaseCreationControllerApi, CaseDeclineControllerApi, CaseNotesControllerApi, CasePaymentControllerApi, CaseReferralCodeControllerApi, CaseRefundControllerApi, CaseResolutionControllerApi, CaseStatusControllerApi, CaseTransferControllerApi, CaseUserControllerApi, CertificateControllerApi, CitationAuditControllerApi, CitationControllerApi, CoachingCardsControllerApi, ConfigurationControllerApi, ConsoleListControllerApi, ContactLoopWebhookControllerApi, ContactTimelineControllerApi, ConversationControllerApi, CountyControllerApi, CourtControllerApi, CrmControllerApi, CustomerLeadControllerApi, CustomerReviewControllerApi, CustomerServiceAgentBookingsControllerApi, CustomerServiceAgentControllerApi, DashboardControllerApi, DirectMailControllerApi, DripControllerApi, DripWebhooksControllerApi, DriverLicenseControllerApi, EmailSubscriptionControllerApi, EmployeeControllerApi, ExternalContentVoteControllerApi, ExternalTicketLookupControllerApi, FeedbackControllerApi, FreshcallerControllerApi, FreshdeskTicketControllerApi, GetCaseControllerApi, HouseholdMateControllerApi, HubspotWebhookControllerApi, InsuranceCalculatorControllerApi, IntercomTicketControllerApi, IntercomWebhookControllerApi, LawfirmCaseDecisionControllerApi, LawfirmCasesControllerApi, LawfirmControllerApi, LawfirmDocumentControllerApi, LawfirmFeeCoverageControllerApi, LawfirmPaymentModelControllerApi, LawfirmRatesControllerApi, LawfirmSettingsControllerApi, LawfirmStorefrontControllerApi, LawfirmSurchargeControllerApi, LawfirmTransactionsControllerApi, LawyerControllerApi, LegalServicesControllerApi, LineItemControllerApi, ListCasesControllerApi, MediaCreationControllerApi, MessagesControllerApi, NotesControllerApi, OcrPipelineControllerApi, OcrPredictionControllerApi, OnDemandRequestControllerApi, OneTimePasswordControllerApi, PhoneLeadsControllerApi, PushNotificationControllerApi, RecurringBillingControllerApi, RefLinkControllerApi, ReferralCodeControllerApi, ReferralControllerApi, ReferralSourceControllerApi, RefundEligibilityControllerApi, RegistrationControllerApi, ReportingControllerApi, ScheduledTaskControllerApi, SingleSignOnControllerApi, SnsListenerControllerApi, SocialLoginControllerApi, StripeCardControllerApi, StripeControllerApi, StripeSyncControllerApi, StripeWebhookControllerApi, TicketReviewControllerApi, UrlRedirectControllerApi, UserAccountControllerApi, UserAuditControllerApi, UserControllerApi, UserPasswordControllerApi, UserProfileControllerApi, UserSearchControllerApi, UserSettingsControllerApi, UserSocialProfileControllerApi, UtilityControllerApi, ValidationControllerApi, VerificationControllerApi, ViolationControllerApi, ViolationPenaltyControllerApi, WatchlistsControllerApi, WebsocketMessageControllerApi, WorkflowStateControllerApi];
|
|
@@ -59,6 +59,7 @@ const apiModule = angular.module('api', [])
|
|
|
59
59
|
.service('HubspotWebhookControllerApi', api.HubspotWebhookControllerApi)
|
|
60
60
|
.service('InsuranceCalculatorControllerApi', api.InsuranceCalculatorControllerApi)
|
|
61
61
|
.service('IntercomTicketControllerApi', api.IntercomTicketControllerApi)
|
|
62
|
+
.service('IntercomWebhookControllerApi', api.IntercomWebhookControllerApi)
|
|
62
63
|
.service('LawfirmCaseDecisionControllerApi', api.LawfirmCaseDecisionControllerApi)
|
|
63
64
|
.service('LawfirmCasesControllerApi', api.LawfirmCasesControllerApi)
|
|
64
65
|
.service('LawfirmControllerApi', api.LawfirmControllerApi)
|
|
@@ -0,0 +1,28 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
export interface OnConversationNotificationUsingPOSTRequest {
|
|
14
|
+
body: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class IntercomWebhookControllerApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* onConversationNotification
|
|
22
|
+
*/
|
|
23
|
+
onConversationNotificationUsingPOSTRaw(requestParameters: OnConversationNotificationUsingPOSTRequest): Promise<runtime.ApiResponse<void>>;
|
|
24
|
+
/**
|
|
25
|
+
* onConversationNotification
|
|
26
|
+
*/
|
|
27
|
+
onConversationNotificationUsingPOST(requestParameters: OnConversationNotificationUsingPOSTRequest): Promise<void>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class IntercomWebhookControllerApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* onConversationNotification
|
|
30
|
+
*/
|
|
31
|
+
onConversationNotificationUsingPOSTRaw(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters.body === null || requestParameters.body === undefined) {
|
|
34
|
+
throw new runtime.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling onConversationNotificationUsingPOST.');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: `/api/v1/intercom/webhook/conversation-notification`,
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
body: requestParameters.body,
|
|
45
|
+
});
|
|
46
|
+
return new runtime.VoidApiResponse(response);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* onConversationNotification
|
|
51
|
+
*/
|
|
52
|
+
onConversationNotificationUsingPOST(requestParameters) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
yield this.onConversationNotificationUsingPOSTRaw(requestParameters);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -56,6 +56,7 @@ export * from './HouseholdMateControllerApi';
|
|
|
56
56
|
export * from './HubspotWebhookControllerApi';
|
|
57
57
|
export * from './InsuranceCalculatorControllerApi';
|
|
58
58
|
export * from './IntercomTicketControllerApi';
|
|
59
|
+
export * from './IntercomWebhookControllerApi';
|
|
59
60
|
export * from './LawfirmCaseDecisionControllerApi';
|
|
60
61
|
export * from './LawfirmCasesControllerApi';
|
|
61
62
|
export * from './LawfirmControllerApi';
|
|
@@ -56,6 +56,7 @@ export * from './HouseholdMateControllerApi';
|
|
|
56
56
|
export * from './HubspotWebhookControllerApi';
|
|
57
57
|
export * from './InsuranceCalculatorControllerApi';
|
|
58
58
|
export * from './IntercomTicketControllerApi';
|
|
59
|
+
export * from './IntercomWebhookControllerApi';
|
|
59
60
|
export * from './LawfirmCaseDecisionControllerApi';
|
|
60
61
|
export * from './LawfirmCasesControllerApi';
|
|
61
62
|
export * from './LawfirmControllerApi';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otr-app/shared-backend-generated-client",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.11",
|
|
4
4
|
"main": "dist/otrBackendService.min.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist"
|
|
@@ -20,13 +20,14 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"download:devo": "curl https://otr-backend-service-us-devo.offtherecord.com/v2/api-docs -o api/otr-service.json",
|
|
23
|
+
"download:devo:v3": "curl https://otr-backend-service-us-devo.offtherecord.com/v3/api-docs -o api/otr-service-v3.json",
|
|
23
24
|
"clean-source": "find dist/typescript* -type f | grep -v \"\\.d\\.ts\\|\\.js\" | xargs rm",
|
|
24
25
|
"generate:devo": "npm run generate:devo-angularjs",
|
|
25
26
|
"generate:devo-angularjs-ci": "npm run download:devo && gulp codegen && java -jar /opt/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i api/otr-service.json -o myclient/typescript -g typescript-angularjs && tsc --project tsconfig.json --outDir dist/typescript",
|
|
26
27
|
"generate:devo-angular-ci": "npm run download:devo && gulp codegen && java -jar /opt/openapi-generator-630/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i api/otr-service.json -o dist/angular -g typescript-angular",
|
|
27
28
|
"generate:devo-angular": "npm run download:devo && gulp codegen && opnapi-generator-cli version-manager set 6.3.0 && openapi-generator-cli generate -i api/otr-service.json -o dist/angular -g typescript-angular",
|
|
28
29
|
"generate:devo-typescript-fetch": "rm -r dist/typescript-fetch || npm run download:devo && openapi-generator-cli version-manager set 4.3.1 && openapi-generator-cli generate -i api/otr-service.json -o myclient/typescript-fetch -g typescript-fetch --additional-properties=typescriptThreePlus=true && tsc --project tsconfig.fetch.json --outDir dist/typescript-fetch",
|
|
29
|
-
"generate:devo-typescript-open-api": "npx openapi-typescript
|
|
30
|
+
"generate:devo-typescript-open-api": "npm run download:devo:v3 && npx openapi-typescript api/otr-service-v3.json -o dist/typescript-open-api/otr-backend.ts --enum=true --dedupe-enums && tsc --project tsconfig-open-api.json --outDir dist/typescript-open-api && npm run clean-source",
|
|
30
31
|
"generate:devo-angularjs": "rm -r dist/typescript || npm run download:devo && gulp codegen && openapi-generator-cli version-manager set 4.3.1 && openapi-generator-cli generate -i api/otr-service.json -o myclient/typescript -g typescript-angularjs && tsc --project tsconfig.json --outDir dist/typescript",
|
|
31
32
|
"generate:local": "curl http://localhost:8080/v2/api-docs -o api/otr-service.json && gulp codegen && openapi-generator-cli generate -i api/otr-service.json -o dist/typescript -g typescript-angular && tsc && npm run clean-source",
|
|
32
33
|
"bootstrap": "npm i @openapitools/openapi-generator-cli -g && openapi-generator-cli version-manager set 6.3.0"
|