@tec.pet/tecpet-sdk 0.0.220 → 0.0.222
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/domain/aiSettings/dto/pa.ai-agent-rule.dto.d.ts +6 -0
- package/dist/domain/aiSettings/dto/pa.ai-agent-rule.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-agent.dto.d.ts +91 -0
- package/dist/domain/aiSettings/dto/pa.ai-agent.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-campaign-trigger.dto.d.ts +4 -2
- package/dist/domain/aiSettings/dto/pa.ai-commercial-argument.dto.d.ts +7 -0
- package/dist/domain/aiSettings/dto/pa.ai-commercial-argument.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-extra-offer.dto.d.ts +8 -0
- package/dist/domain/aiSettings/dto/pa.ai-extra-offer.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-info-layer.dto.d.ts +18 -0
- package/dist/domain/aiSettings/dto/pa.ai-info-layer.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-registration-segment.dto.d.ts +13 -0
- package/dist/domain/aiSettings/dto/pa.ai-registration-segment.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-required-field.dto.d.ts +19 -0
- package/dist/domain/aiSettings/dto/pa.ai-required-field.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-schedule-day.dto.d.ts +13 -0
- package/dist/domain/aiSettings/dto/pa.ai-schedule-day.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.ai-trigger.dto.d.ts +9 -0
- package/dist/domain/aiSettings/dto/pa.ai-trigger.dto.js +2 -0
- package/dist/domain/aiSettings/dto/pa.get-ai-settings.dto.d.ts +71 -15
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-agent-identity.enum.d.ts +12 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-agent-identity.enum.js +16 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-agent-type.enum.d.ts +8 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-agent-type.enum.js +12 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-anamnesis-mode.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-anamnesis-mode.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-data-collection-format.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-data-collection-format.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-extra-data-timing.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-extra-data-timing.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-next-step.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-next-step.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-post-scheduling.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-post-scheduling.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-sales-approach.enum.d.ts +6 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-sales-approach.enum.js +10 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-show-info-to.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-show-info-to.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-show-price-mode.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-show-price-mode.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-time-selection.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiAgentEnums/ai-time-selection.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiInfoLayerEnums/ai-info-layer-type.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiInfoLayerEnums/ai-info-layer-type.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiRegistrationSegmentEnums/ai-registration-segment.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiRegistrationSegmentEnums/ai-registration-segment.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-source.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-source.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum.d.ts +19 -0
- package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum.js +23 -0
- package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-target.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-target.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiScheduleDayEnums/ai-day-of-week.enum.d.ts +9 -0
- package/dist/domain/aiSettings/enum/aiScheduleDayEnums/ai-day-of-week.enum.js +13 -0
- package/dist/domain/aiSettings/enum/aiScheduleDayEnums/ai-schedule-scope.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiScheduleDayEnums/ai-schedule-scope.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-company-context-mode.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-company-context-mode.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-handoff-list-mode.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-handoff-list-mode.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-inactive-employee-action.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-inactive-employee-action.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-inactivity-action.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-inactivity-action.enum.js +8 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-mode.enum.d.ts +5 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-mode.enum.js +9 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-operation-mode.enum.d.ts +6 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-operation-mode.enum.js +10 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-personality.enum.d.ts +11 -0
- package/dist/domain/aiSettings/enum/aiSettingsEnums/ai-personality.enum.js +15 -0
- package/dist/domain/aiSettings/enum/aiTriggerEnums/ai-trigger-pattern-type.enum.d.ts +4 -0
- package/dist/domain/aiSettings/enum/aiTriggerEnums/ai-trigger-pattern-type.enum.js +8 -0
- package/dist/domain/aiSettings/index.d.ts +35 -0
- package/dist/domain/aiSettings/index.js +35 -0
- package/dist/domain/customField/dto/pa.custom-field-config.dto.d.ts +20 -0
- package/dist/domain/customField/dto/pa.custom-field-config.dto.js +2 -0
- package/dist/domain/customField/enum/custom-field-type.enum.d.ts +10 -0
- package/dist/domain/customField/enum/custom-field-type.enum.js +14 -0
- package/dist/domain/customField/index.d.ts +2 -0
- package/dist/domain/customField/index.js +2 -0
- package/dist/infra/http/client.http.d.ts +7 -0
- package/dist/infra/http/client.http.js +16 -7
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { AiAgentIdentityEnum } from '../enum/aiAgentEnums/ai-agent-identity.enum';
|
|
2
|
+
import { AiAgentTypeEnum } from '../enum/aiAgentEnums/ai-agent-type.enum';
|
|
3
|
+
import { AiAnamnesisModeEnum } from '../enum/aiAgentEnums/ai-anamnesis-mode.enum';
|
|
4
|
+
import { AiNextStepEnum } from '../enum/aiAgentEnums/ai-next-step.enum';
|
|
5
|
+
import { AiPostSchedulingEnum } from '../enum/aiAgentEnums/ai-post-scheduling.enum';
|
|
6
|
+
import { AiSalesApproachEnum } from '../enum/aiAgentEnums/ai-sales-approach.enum';
|
|
7
|
+
import { AiShowInfoToEnum } from '../enum/aiAgentEnums/ai-show-info-to.enum';
|
|
8
|
+
import { AiShowPriceModeEnum } from '../enum/aiAgentEnums/ai-show-price-mode.enum';
|
|
9
|
+
import { AiTimeSelectionEnum } from '../enum/aiAgentEnums/ai-time-selection.enum';
|
|
10
|
+
import { PaAiAgentRuleJson } from './pa.ai-agent-rule.dto';
|
|
11
|
+
import { PaAiCommercialArgumentJson } from './pa.ai-commercial-argument.dto';
|
|
12
|
+
import { PaAiExtraOfferJson } from './pa.ai-extra-offer.dto';
|
|
13
|
+
import { PaAiInfoLayerJson } from './pa.ai-info-layer.dto';
|
|
14
|
+
import { PaAiRegistrationSegmentJson } from './pa.ai-registration-segment.dto';
|
|
15
|
+
import { PaAiScheduleDayJson } from './pa.ai-schedule-day.dto';
|
|
16
|
+
export interface PaAiAgentJson {
|
|
17
|
+
id: string;
|
|
18
|
+
type: AiAgentTypeEnum;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
order: number;
|
|
21
|
+
identity?: AiAgentIdentityEnum | null;
|
|
22
|
+
businessInfoEnabled: boolean;
|
|
23
|
+
showInfoTo?: AiShowInfoToEnum | null;
|
|
24
|
+
commercialArgumentsEnabled: boolean;
|
|
25
|
+
timeSelectionEnabled: boolean;
|
|
26
|
+
timeSelectionMode?: AiTimeSelectionEnum | null;
|
|
27
|
+
minSchedulingAdvanceMinutes?: number | null;
|
|
28
|
+
minIntervalBetweenSchedulingMinutes?: number | null;
|
|
29
|
+
postSchedulingBehavior?: AiPostSchedulingEnum | null;
|
|
30
|
+
allowReschedule: boolean;
|
|
31
|
+
allowCancel: boolean;
|
|
32
|
+
suggestSameServiceOtherPet: boolean;
|
|
33
|
+
allowProfessionalChoice: boolean;
|
|
34
|
+
askSameProfessional: boolean;
|
|
35
|
+
showPrices: boolean;
|
|
36
|
+
showPriceMode?: AiShowPriceModeEnum | null;
|
|
37
|
+
reinforceInPersonEvaluation: boolean;
|
|
38
|
+
pickupDeliveryEnabled: boolean;
|
|
39
|
+
pickupDeliveryOfferByAI: boolean;
|
|
40
|
+
pickupDeliveryForwardToAttendant: boolean;
|
|
41
|
+
fixedGreetingEnabled: boolean;
|
|
42
|
+
greetingRegisteredClient?: string | null;
|
|
43
|
+
greetingNewClient?: string | null;
|
|
44
|
+
fixedClosingEnabled: boolean;
|
|
45
|
+
closingRegisteredClient?: string | null;
|
|
46
|
+
closingNewClient?: string | null;
|
|
47
|
+
rememberUnfinishedScheduling: boolean;
|
|
48
|
+
suggestLastScheduling: boolean;
|
|
49
|
+
collectSymptoms: boolean;
|
|
50
|
+
requestVaccineHistory: boolean;
|
|
51
|
+
askHealthPlan: boolean;
|
|
52
|
+
requestHealthPlanName: boolean;
|
|
53
|
+
requestTutorCpf: boolean;
|
|
54
|
+
requestMicrochip: boolean;
|
|
55
|
+
onCallEnabled: boolean;
|
|
56
|
+
onCallGuidance?: string | null;
|
|
57
|
+
anamnesisEnabled: boolean;
|
|
58
|
+
anamnesisMode?: AiAnamnesisModeEnum | null;
|
|
59
|
+
anamnesisVaccineCard: boolean;
|
|
60
|
+
anamnesisParasiteControl: boolean;
|
|
61
|
+
anamnesisMedications: boolean;
|
|
62
|
+
anamnesisNeutering: boolean;
|
|
63
|
+
anamnesisSociability: boolean;
|
|
64
|
+
anamnesisFearsHabits: boolean;
|
|
65
|
+
anamnesisFeeding: boolean;
|
|
66
|
+
reinforceVaccinesUpToDate: boolean;
|
|
67
|
+
stayDaysLimitEnabled: boolean;
|
|
68
|
+
stayDaysLimit?: number | null;
|
|
69
|
+
offersHotel?: boolean | null;
|
|
70
|
+
pickupToleranceMinutesEnabled: boolean;
|
|
71
|
+
pickupToleranceMinutes?: number | null;
|
|
72
|
+
segmentPetshop: boolean;
|
|
73
|
+
segmentVet: boolean;
|
|
74
|
+
segmentDaycare: boolean;
|
|
75
|
+
salesApproach?: AiSalesApproachEnum | null;
|
|
76
|
+
showStartingPriceForUnregistered: boolean;
|
|
77
|
+
allowNonTecpetProductsServices: boolean;
|
|
78
|
+
nextStep?: AiNextStepEnum | null;
|
|
79
|
+
humanDiscountRequest: boolean;
|
|
80
|
+
humanRuleException: boolean;
|
|
81
|
+
humanPriceNotFound: boolean;
|
|
82
|
+
humanInPersonEvaluation: boolean;
|
|
83
|
+
humanHighValueBudget: boolean;
|
|
84
|
+
humanHighValueThreshold?: number | null;
|
|
85
|
+
commercialArguments: PaAiCommercialArgumentJson[];
|
|
86
|
+
infoLayers: PaAiInfoLayerJson[];
|
|
87
|
+
extraOffers: PaAiExtraOfferJson[];
|
|
88
|
+
registrationSegments: PaAiRegistrationSegmentJson[];
|
|
89
|
+
onCallDays: PaAiScheduleDayJson[];
|
|
90
|
+
rules: PaAiAgentRuleJson[];
|
|
91
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { MediaTypeEnum } from '../../chatbot/enum/chatbotActionEnums/media-type.enum';
|
|
2
|
+
import { AiInfoLayerTypeEnum } from '../enum/aiInfoLayerEnums/ai-info-layer-type.enum';
|
|
1
3
|
export declare enum AiCampaignTriggerPostActionEnum {
|
|
2
4
|
CONTINUE_WITH_AI = "CONTINUE_WITH_AI",
|
|
3
5
|
FORWARD_TO_HUMAN = "FORWARD_TO_HUMAN"
|
|
4
6
|
}
|
|
5
|
-
export type PaAiCampaignTriggerLayerType =
|
|
6
|
-
export type PaAiCampaignTriggerMediaType =
|
|
7
|
+
export type PaAiCampaignTriggerLayerType = AiInfoLayerTypeEnum | `${AiInfoLayerTypeEnum}`;
|
|
8
|
+
export type PaAiCampaignTriggerMediaType = MediaTypeEnum | `${MediaTypeEnum}`;
|
|
7
9
|
export interface PaAiCampaignTriggerMediaJson {
|
|
8
10
|
id: string;
|
|
9
11
|
mediaId: string | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MediaTypeEnum } from '../../chatbot/enum/chatbotActionEnums/media-type.enum';
|
|
2
|
+
import { AiInfoLayerTypeEnum } from '../enum/aiInfoLayerEnums/ai-info-layer-type.enum';
|
|
3
|
+
export interface PaAiInfoLayerMediaJson {
|
|
4
|
+
id: string;
|
|
5
|
+
mediaId?: string | null;
|
|
6
|
+
link?: string | null;
|
|
7
|
+
order: number;
|
|
8
|
+
type?: MediaTypeEnum;
|
|
9
|
+
fileName?: string | null;
|
|
10
|
+
mimeType?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface PaAiInfoLayerJson {
|
|
13
|
+
id: string;
|
|
14
|
+
type: AiInfoLayerTypeEnum;
|
|
15
|
+
message?: string | null;
|
|
16
|
+
order: number;
|
|
17
|
+
medias: PaAiInfoLayerMediaJson[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AiDataCollectionFormatEnum } from '../enum/aiAgentEnums/ai-data-collection-format.enum';
|
|
2
|
+
import { AiExtraDataTimingEnum } from '../enum/aiAgentEnums/ai-extra-data-timing.enum';
|
|
3
|
+
import { AiRegistrationSegmentEnum } from '../enum/aiRegistrationSegmentEnums/ai-registration-segment.enum';
|
|
4
|
+
import { PaAiRequiredFieldJson } from './pa.ai-required-field.dto';
|
|
5
|
+
export interface PaAiRegistrationSegmentJson {
|
|
6
|
+
id: string;
|
|
7
|
+
segment: AiRegistrationSegmentEnum;
|
|
8
|
+
dataCollectionFormat?: AiDataCollectionFormatEnum | null;
|
|
9
|
+
allowMinorRegistration: boolean;
|
|
10
|
+
requestMediaForPetConfirmation: boolean;
|
|
11
|
+
extraDataCollectionTiming?: AiExtraDataTimingEnum | null;
|
|
12
|
+
requiredFields: PaAiRequiredFieldJson[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PaCustomFieldConfigJson, PaCustomFieldOptionJson } from '../../customField/dto/pa.custom-field-config.dto';
|
|
2
|
+
import { CustomFieldTypeEnum } from '../../customField/enum/custom-field-type.enum';
|
|
3
|
+
import { AiRequiredFieldSourceEnum } from '../enum/aiRequiredFieldEnums/ai-required-field-source.enum';
|
|
4
|
+
import { AiRequiredFieldStandardKeyEnum } from '../enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum';
|
|
5
|
+
import { AiRequiredFieldTargetEnum } from '../enum/aiRequiredFieldEnums/ai-required-field-target.enum';
|
|
6
|
+
export interface PaAiRequiredFieldJson {
|
|
7
|
+
id: string;
|
|
8
|
+
target: AiRequiredFieldTargetEnum;
|
|
9
|
+
source: AiRequiredFieldSourceEnum;
|
|
10
|
+
standardKey?: AiRequiredFieldStandardKeyEnum | null;
|
|
11
|
+
customFieldId?: string | null;
|
|
12
|
+
customFieldTitle?: string;
|
|
13
|
+
customFieldType?: CustomFieldTypeEnum;
|
|
14
|
+
customFieldOptions?: PaCustomFieldOptionJson[];
|
|
15
|
+
customFieldConfig?: PaCustomFieldConfigJson | null;
|
|
16
|
+
customFieldIsRequired?: boolean;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
order: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AiDayOfWeekEnum } from '../enum/aiScheduleDayEnums/ai-day-of-week.enum';
|
|
2
|
+
import { AiScheduleScopeEnum } from '../enum/aiScheduleDayEnums/ai-schedule-scope.enum';
|
|
3
|
+
export interface PaAiScheduleTimeRangeJson {
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PaAiScheduleDayJson {
|
|
8
|
+
id: string;
|
|
9
|
+
scope: AiScheduleScopeEnum;
|
|
10
|
+
dayOfWeek: AiDayOfWeekEnum;
|
|
11
|
+
active: boolean;
|
|
12
|
+
timeRanges: PaAiScheduleTimeRangeJson[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AiTriggerPatternTypeEnum } from '../enum/aiTriggerEnums/ai-trigger-pattern-type.enum';
|
|
2
|
+
export interface PaAiTriggerJson {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
keyText: string;
|
|
7
|
+
patternType: AiTriggerPatternTypeEnum;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
}
|
|
@@ -1,19 +1,75 @@
|
|
|
1
|
+
import { AiCompanyContextModeEnum } from '../enum/aiSettingsEnums/ai-company-context-mode.enum';
|
|
2
|
+
import { AiHandoffListModeEnum } from '../enum/aiSettingsEnums/ai-handoff-list-mode.enum';
|
|
3
|
+
import { AiInactiveEmployeeActionEnum } from '../enum/aiSettingsEnums/ai-inactive-employee-action.enum';
|
|
4
|
+
import { AiInactivityActionEnum } from '../enum/aiSettingsEnums/ai-inactivity-action.enum';
|
|
5
|
+
import { AiModeEnum } from '../enum/aiSettingsEnums/ai-mode.enum';
|
|
6
|
+
import { AiOperationModeEnum } from '../enum/aiSettingsEnums/ai-operation-mode.enum';
|
|
7
|
+
import { AiPersonalityEnum } from '../enum/aiSettingsEnums/ai-personality.enum';
|
|
8
|
+
import { AiDayOfWeekEnum } from '../enum/aiScheduleDayEnums/ai-day-of-week.enum';
|
|
9
|
+
import { PaAiAgentJson } from './pa.ai-agent.dto';
|
|
1
10
|
import { PaAiCampaignTriggerJson } from './pa.ai-campaign-trigger.dto';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
import { PaAiScheduleDayJson, PaAiScheduleTimeRangeJson } from './pa.ai-schedule-day.dto';
|
|
12
|
+
import { PaAiTriggerJson } from './pa.ai-trigger.dto';
|
|
13
|
+
export interface PaAiShopJson {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
timeZone: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PaAiEmployeeRefJson {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PaAiWeeklyHoursJson {
|
|
23
|
+
weekday: number;
|
|
24
|
+
start: string;
|
|
25
|
+
end: string;
|
|
26
|
+
}
|
|
27
|
+
export interface PaAiOperationDayJson {
|
|
28
|
+
dayOfWeek: AiDayOfWeekEnum;
|
|
29
|
+
active: boolean;
|
|
30
|
+
timeRanges: PaAiScheduleTimeRangeJson[];
|
|
31
|
+
}
|
|
12
32
|
export interface PaAISettingsResponse {
|
|
13
33
|
id: string;
|
|
14
|
-
mode:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
34
|
+
mode: AiModeEnum;
|
|
35
|
+
nameEnabled: boolean;
|
|
36
|
+
assistantName?: string | null;
|
|
37
|
+
identifyAsAI: boolean;
|
|
38
|
+
operationModeEnabled: boolean;
|
|
39
|
+
operationMode: AiOperationModeEnum;
|
|
40
|
+
operationDays: PaAiOperationDayJson[];
|
|
41
|
+
operationOffMessage?: string;
|
|
42
|
+
operationHours: PaAiWeeklyHoursJson[] | null;
|
|
43
|
+
companyContextEnabled: boolean;
|
|
44
|
+
companyContextMode?: AiCompanyContextModeEnum | null;
|
|
45
|
+
companyContext?: string | null;
|
|
46
|
+
personality: AiPersonalityEnum;
|
|
47
|
+
personalityCustomInstruction?: string | null;
|
|
48
|
+
pixEnabled: boolean;
|
|
49
|
+
pixKey?: string | null;
|
|
50
|
+
humanSellPlans: boolean;
|
|
51
|
+
humanSellPlansMode?: AiHandoffListModeEnum | null;
|
|
52
|
+
humanPickupDelivery: boolean;
|
|
53
|
+
humanComplaints: boolean;
|
|
54
|
+
humanAdminQuestions: boolean;
|
|
55
|
+
humanGriefQuestions: boolean;
|
|
56
|
+
humanEmergencies: boolean;
|
|
57
|
+
humanOtherSubjects: boolean;
|
|
58
|
+
customHandoffMessageEnabled: boolean;
|
|
59
|
+
handoffMessageInHours?: string | null;
|
|
60
|
+
handoffMessageOutOfHours?: string | null;
|
|
61
|
+
aiInactivityMinutes?: number | null;
|
|
62
|
+
aiInactivityAction?: AiInactivityActionEnum | null;
|
|
63
|
+
humanInactivityMinutes?: number | null;
|
|
64
|
+
humanClosingMinutes?: number | null;
|
|
65
|
+
humanInactiveAction?: AiInactiveEmployeeActionEnum | null;
|
|
66
|
+
humanInactiveNotify?: PaAiEmployeeRefJson;
|
|
67
|
+
humanInactiveNotifyAlt?: PaAiEmployeeRefJson;
|
|
68
|
+
returnToAiAvailable?: boolean;
|
|
69
|
+
agents: PaAiAgentJson[];
|
|
70
|
+
triggers: PaAiTriggerJson[];
|
|
71
|
+
campaignTriggers: PaAiCampaignTriggerJson[];
|
|
72
|
+
humanServiceDays: PaAiScheduleDayJson[];
|
|
73
|
+
humanHours: PaAiWeeklyHoursJson[];
|
|
74
|
+
shop: PaAiShopJson;
|
|
19
75
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum AiAgentIdentityEnum {
|
|
2
|
+
PETSHOP = "Petshop",
|
|
3
|
+
BATH_AND_GROOMING = "Banho e tosa",
|
|
4
|
+
ANIMAL_AESTHETICS = "Est\u00E9tica animal",
|
|
5
|
+
ANIMAL_BEAUTY = "Beleza animal",
|
|
6
|
+
CLINIC = "Cl\u00EDnica",
|
|
7
|
+
OFFICE = "Consult\u00F3rio",
|
|
8
|
+
DAYCARE = "Daycare",
|
|
9
|
+
PET_HOTEL = "Hotel Pet",
|
|
10
|
+
NURSERY = "Creche",
|
|
11
|
+
DAYCARE_HOTEL = "Daycare/Hotel"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiAgentIdentityEnum = void 0;
|
|
4
|
+
var AiAgentIdentityEnum;
|
|
5
|
+
(function (AiAgentIdentityEnum) {
|
|
6
|
+
AiAgentIdentityEnum["PETSHOP"] = "Petshop";
|
|
7
|
+
AiAgentIdentityEnum["BATH_AND_GROOMING"] = "Banho e tosa";
|
|
8
|
+
AiAgentIdentityEnum["ANIMAL_AESTHETICS"] = "Est\u00E9tica animal";
|
|
9
|
+
AiAgentIdentityEnum["ANIMAL_BEAUTY"] = "Beleza animal";
|
|
10
|
+
AiAgentIdentityEnum["CLINIC"] = "Cl\u00EDnica";
|
|
11
|
+
AiAgentIdentityEnum["OFFICE"] = "Consult\u00F3rio";
|
|
12
|
+
AiAgentIdentityEnum["DAYCARE"] = "Daycare";
|
|
13
|
+
AiAgentIdentityEnum["PET_HOTEL"] = "Hotel Pet";
|
|
14
|
+
AiAgentIdentityEnum["NURSERY"] = "Creche";
|
|
15
|
+
AiAgentIdentityEnum["DAYCARE_HOTEL"] = "Daycare/Hotel";
|
|
16
|
+
})(AiAgentIdentityEnum || (exports.AiAgentIdentityEnum = AiAgentIdentityEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiAgentTypeEnum = void 0;
|
|
4
|
+
var AiAgentTypeEnum;
|
|
5
|
+
(function (AiAgentTypeEnum) {
|
|
6
|
+
AiAgentTypeEnum["RECEPTIONIST"] = "RECEPTIONIST";
|
|
7
|
+
AiAgentTypeEnum["PETSHOP"] = "PETSHOP";
|
|
8
|
+
AiAgentTypeEnum["VETERINARIAN"] = "VETERINARIAN";
|
|
9
|
+
AiAgentTypeEnum["DAYCARE"] = "DAYCARE";
|
|
10
|
+
AiAgentTypeEnum["SALES"] = "SALES";
|
|
11
|
+
AiAgentTypeEnum["REGISTRATION"] = "REGISTRATION";
|
|
12
|
+
})(AiAgentTypeEnum || (exports.AiAgentTypeEnum = AiAgentTypeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiAnamnesisModeEnum = void 0;
|
|
4
|
+
var AiAnamnesisModeEnum;
|
|
5
|
+
(function (AiAnamnesisModeEnum) {
|
|
6
|
+
AiAnamnesisModeEnum["VIA_CHAT"] = "VIA_CHAT";
|
|
7
|
+
AiAnamnesisModeEnum["VIA_FORM"] = "VIA_FORM";
|
|
8
|
+
})(AiAnamnesisModeEnum || (exports.AiAnamnesisModeEnum = AiAnamnesisModeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiDataCollectionFormatEnum = void 0;
|
|
4
|
+
var AiDataCollectionFormatEnum;
|
|
5
|
+
(function (AiDataCollectionFormatEnum) {
|
|
6
|
+
AiDataCollectionFormatEnum["ALL_IN_ONE_MESSAGE"] = "ALL_IN_ONE_MESSAGE";
|
|
7
|
+
AiDataCollectionFormatEnum["ASK_SEPARATELY"] = "ASK_SEPARATELY";
|
|
8
|
+
})(AiDataCollectionFormatEnum || (exports.AiDataCollectionFormatEnum = AiDataCollectionFormatEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiExtraDataTimingEnum = void 0;
|
|
4
|
+
var AiExtraDataTimingEnum;
|
|
5
|
+
(function (AiExtraDataTimingEnum) {
|
|
6
|
+
AiExtraDataTimingEnum["BEFORE_SCHEDULING"] = "BEFORE_SCHEDULING";
|
|
7
|
+
AiExtraDataTimingEnum["AFTER_SCHEDULING"] = "AFTER_SCHEDULING";
|
|
8
|
+
})(AiExtraDataTimingEnum || (exports.AiExtraDataTimingEnum = AiExtraDataTimingEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiNextStepEnum = void 0;
|
|
4
|
+
var AiNextStepEnum;
|
|
5
|
+
(function (AiNextStepEnum) {
|
|
6
|
+
AiNextStepEnum["FORWARD_TO_SPECIFIC_AGENT"] = "FORWARD_TO_SPECIFIC_AGENT";
|
|
7
|
+
AiNextStepEnum["FORWARD_TO_HUMAN"] = "FORWARD_TO_HUMAN";
|
|
8
|
+
})(AiNextStepEnum || (exports.AiNextStepEnum = AiNextStepEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiPostSchedulingEnum = void 0;
|
|
4
|
+
var AiPostSchedulingEnum;
|
|
5
|
+
(function (AiPostSchedulingEnum) {
|
|
6
|
+
AiPostSchedulingEnum["END_SERVICE"] = "END_SERVICE";
|
|
7
|
+
AiPostSchedulingEnum["REQUEST_PAYMENT_PROOF_AND_END"] = "REQUEST_PAYMENT_PROOF_AND_END";
|
|
8
|
+
AiPostSchedulingEnum["FORWARD_TO_HUMAN"] = "FORWARD_TO_HUMAN";
|
|
9
|
+
})(AiPostSchedulingEnum || (exports.AiPostSchedulingEnum = AiPostSchedulingEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSalesApproachEnum = void 0;
|
|
4
|
+
var AiSalesApproachEnum;
|
|
5
|
+
(function (AiSalesApproachEnum) {
|
|
6
|
+
AiSalesApproachEnum["CONVERSION_SPECIALIST"] = "CONVERSION_SPECIALIST";
|
|
7
|
+
AiSalesApproachEnum["HIGH_CONVERSION"] = "HIGH_CONVERSION";
|
|
8
|
+
AiSalesApproachEnum["DIRECT"] = "DIRECT";
|
|
9
|
+
AiSalesApproachEnum["CONSULTANT"] = "CONSULTANT";
|
|
10
|
+
})(AiSalesApproachEnum || (exports.AiSalesApproachEnum = AiSalesApproachEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiShowInfoToEnum = void 0;
|
|
4
|
+
var AiShowInfoToEnum;
|
|
5
|
+
(function (AiShowInfoToEnum) {
|
|
6
|
+
AiShowInfoToEnum["NEW_CLIENTS_ONLY"] = "NEW_CLIENTS_ONLY";
|
|
7
|
+
AiShowInfoToEnum["REGISTERED_CLIENTS_ONLY"] = "REGISTERED_CLIENTS_ONLY";
|
|
8
|
+
AiShowInfoToEnum["ALL_CLIENTS"] = "ALL_CLIENTS";
|
|
9
|
+
})(AiShowInfoToEnum || (exports.AiShowInfoToEnum = AiShowInfoToEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiShowPriceModeEnum = void 0;
|
|
4
|
+
var AiShowPriceModeEnum;
|
|
5
|
+
(function (AiShowPriceModeEnum) {
|
|
6
|
+
AiShowPriceModeEnum["STARTING_FROM"] = "STARTING_FROM";
|
|
7
|
+
AiShowPriceModeEnum["EXACT"] = "EXACT";
|
|
8
|
+
})(AiShowPriceModeEnum || (exports.AiShowPriceModeEnum = AiShowPriceModeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiTimeSelectionEnum = void 0;
|
|
4
|
+
var AiTimeSelectionEnum;
|
|
5
|
+
(function (AiTimeSelectionEnum) {
|
|
6
|
+
AiTimeSelectionEnum["AI_SELECTS"] = "AI_SELECTS";
|
|
7
|
+
AiTimeSelectionEnum["FORWARD_TO_HUMAN"] = "FORWARD_TO_HUMAN";
|
|
8
|
+
})(AiTimeSelectionEnum || (exports.AiTimeSelectionEnum = AiTimeSelectionEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiInfoLayerTypeEnum = void 0;
|
|
4
|
+
var AiInfoLayerTypeEnum;
|
|
5
|
+
(function (AiInfoLayerTypeEnum) {
|
|
6
|
+
AiInfoLayerTypeEnum["TEXT"] = "TEXT";
|
|
7
|
+
AiInfoLayerTypeEnum["FILE"] = "FILE";
|
|
8
|
+
AiInfoLayerTypeEnum["AUDIO"] = "AUDIO";
|
|
9
|
+
})(AiInfoLayerTypeEnum || (exports.AiInfoLayerTypeEnum = AiInfoLayerTypeEnum = {}));
|
package/dist/domain/aiSettings/enum/aiRegistrationSegmentEnums/ai-registration-segment.enum.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiRegistrationSegmentEnum = void 0;
|
|
4
|
+
var AiRegistrationSegmentEnum;
|
|
5
|
+
(function (AiRegistrationSegmentEnum) {
|
|
6
|
+
AiRegistrationSegmentEnum["PET_SHOP"] = "PET_SHOP";
|
|
7
|
+
AiRegistrationSegmentEnum["CLINIC"] = "CLINIC";
|
|
8
|
+
AiRegistrationSegmentEnum["DAY_CARE"] = "DAY_CARE";
|
|
9
|
+
})(AiRegistrationSegmentEnum || (exports.AiRegistrationSegmentEnum = AiRegistrationSegmentEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiRequiredFieldSourceEnum = void 0;
|
|
4
|
+
var AiRequiredFieldSourceEnum;
|
|
5
|
+
(function (AiRequiredFieldSourceEnum) {
|
|
6
|
+
AiRequiredFieldSourceEnum["STANDARD"] = "STANDARD";
|
|
7
|
+
AiRequiredFieldSourceEnum["CUSTOM"] = "CUSTOM";
|
|
8
|
+
})(AiRequiredFieldSourceEnum || (exports.AiRequiredFieldSourceEnum = AiRequiredFieldSourceEnum = {}));
|
package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum AiRequiredFieldStandardKeyEnum {
|
|
2
|
+
CLIENT_FULL_NAME = "CLIENT_FULL_NAME",
|
|
3
|
+
CLIENT_BIRTH_DATE = "CLIENT_BIRTH_DATE",
|
|
4
|
+
CLIENT_EMAIL = "CLIENT_EMAIL",
|
|
5
|
+
CLIENT_CPF = "CLIENT_CPF",
|
|
6
|
+
CLIENT_EMERGENCY_CONTACT = "CLIENT_EMERGENCY_CONTACT",
|
|
7
|
+
PET_NAME = "PET_NAME",
|
|
8
|
+
PET_BIRTH_DATE = "PET_BIRTH_DATE",
|
|
9
|
+
PET_SPECIE = "PET_SPECIE",
|
|
10
|
+
PET_BREED = "PET_BREED",
|
|
11
|
+
PET_SIZE = "PET_SIZE",
|
|
12
|
+
PET_COAT = "PET_COAT",
|
|
13
|
+
PET_MICROCHIP = "PET_MICROCHIP",
|
|
14
|
+
PET_EMERGENCY_CONTACT = "PET_EMERGENCY_CONTACT",
|
|
15
|
+
PET_SEX = "PET_SEX",
|
|
16
|
+
PET_NEUTERED = "PET_NEUTERED",
|
|
17
|
+
PET_PREFERRED_FOOD = "PET_PREFERRED_FOOD",
|
|
18
|
+
PET_COAT_COLOR = "PET_COAT_COLOR"
|
|
19
|
+
}
|
package/dist/domain/aiSettings/enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiRequiredFieldStandardKeyEnum = void 0;
|
|
4
|
+
var AiRequiredFieldStandardKeyEnum;
|
|
5
|
+
(function (AiRequiredFieldStandardKeyEnum) {
|
|
6
|
+
AiRequiredFieldStandardKeyEnum["CLIENT_FULL_NAME"] = "CLIENT_FULL_NAME";
|
|
7
|
+
AiRequiredFieldStandardKeyEnum["CLIENT_BIRTH_DATE"] = "CLIENT_BIRTH_DATE";
|
|
8
|
+
AiRequiredFieldStandardKeyEnum["CLIENT_EMAIL"] = "CLIENT_EMAIL";
|
|
9
|
+
AiRequiredFieldStandardKeyEnum["CLIENT_CPF"] = "CLIENT_CPF";
|
|
10
|
+
AiRequiredFieldStandardKeyEnum["CLIENT_EMERGENCY_CONTACT"] = "CLIENT_EMERGENCY_CONTACT";
|
|
11
|
+
AiRequiredFieldStandardKeyEnum["PET_NAME"] = "PET_NAME";
|
|
12
|
+
AiRequiredFieldStandardKeyEnum["PET_BIRTH_DATE"] = "PET_BIRTH_DATE";
|
|
13
|
+
AiRequiredFieldStandardKeyEnum["PET_SPECIE"] = "PET_SPECIE";
|
|
14
|
+
AiRequiredFieldStandardKeyEnum["PET_BREED"] = "PET_BREED";
|
|
15
|
+
AiRequiredFieldStandardKeyEnum["PET_SIZE"] = "PET_SIZE";
|
|
16
|
+
AiRequiredFieldStandardKeyEnum["PET_COAT"] = "PET_COAT";
|
|
17
|
+
AiRequiredFieldStandardKeyEnum["PET_MICROCHIP"] = "PET_MICROCHIP";
|
|
18
|
+
AiRequiredFieldStandardKeyEnum["PET_EMERGENCY_CONTACT"] = "PET_EMERGENCY_CONTACT";
|
|
19
|
+
AiRequiredFieldStandardKeyEnum["PET_SEX"] = "PET_SEX";
|
|
20
|
+
AiRequiredFieldStandardKeyEnum["PET_NEUTERED"] = "PET_NEUTERED";
|
|
21
|
+
AiRequiredFieldStandardKeyEnum["PET_PREFERRED_FOOD"] = "PET_PREFERRED_FOOD";
|
|
22
|
+
AiRequiredFieldStandardKeyEnum["PET_COAT_COLOR"] = "PET_COAT_COLOR";
|
|
23
|
+
})(AiRequiredFieldStandardKeyEnum || (exports.AiRequiredFieldStandardKeyEnum = AiRequiredFieldStandardKeyEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiRequiredFieldTargetEnum = void 0;
|
|
4
|
+
var AiRequiredFieldTargetEnum;
|
|
5
|
+
(function (AiRequiredFieldTargetEnum) {
|
|
6
|
+
AiRequiredFieldTargetEnum["CLIENT"] = "CLIENT";
|
|
7
|
+
AiRequiredFieldTargetEnum["PET"] = "PET";
|
|
8
|
+
})(AiRequiredFieldTargetEnum || (exports.AiRequiredFieldTargetEnum = AiRequiredFieldTargetEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiDayOfWeekEnum = void 0;
|
|
4
|
+
var AiDayOfWeekEnum;
|
|
5
|
+
(function (AiDayOfWeekEnum) {
|
|
6
|
+
AiDayOfWeekEnum["MONDAY"] = "MONDAY";
|
|
7
|
+
AiDayOfWeekEnum["TUESDAY"] = "TUESDAY";
|
|
8
|
+
AiDayOfWeekEnum["WEDNESDAY"] = "WEDNESDAY";
|
|
9
|
+
AiDayOfWeekEnum["THURSDAY"] = "THURSDAY";
|
|
10
|
+
AiDayOfWeekEnum["FRIDAY"] = "FRIDAY";
|
|
11
|
+
AiDayOfWeekEnum["SATURDAY"] = "SATURDAY";
|
|
12
|
+
AiDayOfWeekEnum["SUNDAY"] = "SUNDAY";
|
|
13
|
+
})(AiDayOfWeekEnum || (exports.AiDayOfWeekEnum = AiDayOfWeekEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiScheduleScopeEnum = void 0;
|
|
4
|
+
var AiScheduleScopeEnum;
|
|
5
|
+
(function (AiScheduleScopeEnum) {
|
|
6
|
+
AiScheduleScopeEnum["HUMAN_SERVICE"] = "HUMAN_SERVICE";
|
|
7
|
+
AiScheduleScopeEnum["ON_CALL"] = "ON_CALL";
|
|
8
|
+
})(AiScheduleScopeEnum || (exports.AiScheduleScopeEnum = AiScheduleScopeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiCompanyContextModeEnum = void 0;
|
|
4
|
+
var AiCompanyContextModeEnum;
|
|
5
|
+
(function (AiCompanyContextModeEnum) {
|
|
6
|
+
AiCompanyContextModeEnum["TECPET_DEFAULT"] = "TECPET_DEFAULT";
|
|
7
|
+
AiCompanyContextModeEnum["CUSTOM"] = "CUSTOM";
|
|
8
|
+
})(AiCompanyContextModeEnum || (exports.AiCompanyContextModeEnum = AiCompanyContextModeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiHandoffListModeEnum = void 0;
|
|
4
|
+
var AiHandoffListModeEnum;
|
|
5
|
+
(function (AiHandoffListModeEnum) {
|
|
6
|
+
AiHandoffListModeEnum["SIMPLE_SERVICE_LIST"] = "SIMPLE_SERVICE_LIST";
|
|
7
|
+
AiHandoffListModeEnum["DETAILED_SERVICE_LIST"] = "DETAILED_SERVICE_LIST";
|
|
8
|
+
AiHandoffListModeEnum["NO_LIST"] = "NO_LIST";
|
|
9
|
+
})(AiHandoffListModeEnum || (exports.AiHandoffListModeEnum = AiHandoffListModeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiInactiveEmployeeActionEnum = void 0;
|
|
4
|
+
var AiInactiveEmployeeActionEnum;
|
|
5
|
+
(function (AiInactiveEmployeeActionEnum) {
|
|
6
|
+
AiInactiveEmployeeActionEnum["NOTIFY_SOMEONE"] = "NOTIFY_SOMEONE";
|
|
7
|
+
AiInactiveEmployeeActionEnum["END_AND_SEND_MESSAGE"] = "END_AND_SEND_MESSAGE";
|
|
8
|
+
AiInactiveEmployeeActionEnum["RETURN_TO_AI"] = "RETURN_TO_AI";
|
|
9
|
+
})(AiInactiveEmployeeActionEnum || (exports.AiInactiveEmployeeActionEnum = AiInactiveEmployeeActionEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiInactivityActionEnum = void 0;
|
|
4
|
+
var AiInactivityActionEnum;
|
|
5
|
+
(function (AiInactivityActionEnum) {
|
|
6
|
+
AiInactivityActionEnum["END_AND_SEND_MESSAGE"] = "END_AND_SEND_MESSAGE";
|
|
7
|
+
AiInactivityActionEnum["KEEP_OPEN"] = "KEEP_OPEN";
|
|
8
|
+
})(AiInactivityActionEnum || (exports.AiInactivityActionEnum = AiInactivityActionEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiModeEnum = void 0;
|
|
4
|
+
var AiModeEnum;
|
|
5
|
+
(function (AiModeEnum) {
|
|
6
|
+
AiModeEnum["DISABLED"] = "DISABLED";
|
|
7
|
+
AiModeEnum["AUTO_REPLY"] = "AUTO_REPLY";
|
|
8
|
+
AiModeEnum["AUTO_SERVICE"] = "AUTO_SERVICE";
|
|
9
|
+
})(AiModeEnum || (exports.AiModeEnum = AiModeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiOperationModeEnum = void 0;
|
|
4
|
+
var AiOperationModeEnum;
|
|
5
|
+
(function (AiOperationModeEnum) {
|
|
6
|
+
AiOperationModeEnum["FULL_TIME"] = "FULL_TIME";
|
|
7
|
+
AiOperationModeEnum["COMMERCIAL_HOURS"] = "COMMERCIAL_HOURS";
|
|
8
|
+
AiOperationModeEnum["OUTSIDE_HUMAN_HOURS"] = "OUTSIDE_HUMAN_HOURS";
|
|
9
|
+
AiOperationModeEnum["CUSTOM_HOURS"] = "CUSTOM_HOURS";
|
|
10
|
+
})(AiOperationModeEnum || (exports.AiOperationModeEnum = AiOperationModeEnum = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiPersonalityEnum = void 0;
|
|
4
|
+
var AiPersonalityEnum;
|
|
5
|
+
(function (AiPersonalityEnum) {
|
|
6
|
+
AiPersonalityEnum["FRIENDLY"] = "FRIENDLY";
|
|
7
|
+
AiPersonalityEnum["EXPERT"] = "EXPERT";
|
|
8
|
+
AiPersonalityEnum["CONCISE"] = "CONCISE";
|
|
9
|
+
AiPersonalityEnum["PROFESSIONAL"] = "PROFESSIONAL";
|
|
10
|
+
AiPersonalityEnum["EXCITED"] = "EXCITED";
|
|
11
|
+
AiPersonalityEnum["CALM"] = "CALM";
|
|
12
|
+
AiPersonalityEnum["PET_MOM"] = "PET_MOM";
|
|
13
|
+
AiPersonalityEnum["COOL"] = "COOL";
|
|
14
|
+
AiPersonalityEnum["CUSTOM"] = "CUSTOM";
|
|
15
|
+
})(AiPersonalityEnum || (exports.AiPersonalityEnum = AiPersonalityEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiTriggerPatternTypeEnum = void 0;
|
|
4
|
+
var AiTriggerPatternTypeEnum;
|
|
5
|
+
(function (AiTriggerPatternTypeEnum) {
|
|
6
|
+
AiTriggerPatternTypeEnum["EXACT"] = "EXACT";
|
|
7
|
+
AiTriggerPatternTypeEnum["CONTAINS"] = "CONTAINS";
|
|
8
|
+
})(AiTriggerPatternTypeEnum || (exports.AiTriggerPatternTypeEnum = AiTriggerPatternTypeEnum = {}));
|
|
@@ -1,2 +1,37 @@
|
|
|
1
1
|
export * from './dto/pa.get-ai-settings.dto';
|
|
2
2
|
export * from './dto/pa.ai-campaign-trigger.dto';
|
|
3
|
+
export * from './dto/pa.ai-agent.dto';
|
|
4
|
+
export * from './dto/pa.ai-agent-rule.dto';
|
|
5
|
+
export * from './dto/pa.ai-commercial-argument.dto';
|
|
6
|
+
export * from './dto/pa.ai-extra-offer.dto';
|
|
7
|
+
export * from './dto/pa.ai-info-layer.dto';
|
|
8
|
+
export * from './dto/pa.ai-registration-segment.dto';
|
|
9
|
+
export * from './dto/pa.ai-required-field.dto';
|
|
10
|
+
export * from './dto/pa.ai-schedule-day.dto';
|
|
11
|
+
export * from './dto/pa.ai-trigger.dto';
|
|
12
|
+
export * from './enum/aiAgentEnums/ai-agent-identity.enum';
|
|
13
|
+
export * from './enum/aiAgentEnums/ai-agent-type.enum';
|
|
14
|
+
export * from './enum/aiAgentEnums/ai-anamnesis-mode.enum';
|
|
15
|
+
export * from './enum/aiAgentEnums/ai-data-collection-format.enum';
|
|
16
|
+
export * from './enum/aiAgentEnums/ai-extra-data-timing.enum';
|
|
17
|
+
export * from './enum/aiAgentEnums/ai-next-step.enum';
|
|
18
|
+
export * from './enum/aiAgentEnums/ai-post-scheduling.enum';
|
|
19
|
+
export * from './enum/aiAgentEnums/ai-sales-approach.enum';
|
|
20
|
+
export * from './enum/aiAgentEnums/ai-show-info-to.enum';
|
|
21
|
+
export * from './enum/aiAgentEnums/ai-show-price-mode.enum';
|
|
22
|
+
export * from './enum/aiAgentEnums/ai-time-selection.enum';
|
|
23
|
+
export * from './enum/aiInfoLayerEnums/ai-info-layer-type.enum';
|
|
24
|
+
export * from './enum/aiRegistrationSegmentEnums/ai-registration-segment.enum';
|
|
25
|
+
export * from './enum/aiRequiredFieldEnums/ai-required-field-source.enum';
|
|
26
|
+
export * from './enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum';
|
|
27
|
+
export * from './enum/aiRequiredFieldEnums/ai-required-field-target.enum';
|
|
28
|
+
export * from './enum/aiScheduleDayEnums/ai-day-of-week.enum';
|
|
29
|
+
export * from './enum/aiScheduleDayEnums/ai-schedule-scope.enum';
|
|
30
|
+
export * from './enum/aiSettingsEnums/ai-company-context-mode.enum';
|
|
31
|
+
export * from './enum/aiSettingsEnums/ai-handoff-list-mode.enum';
|
|
32
|
+
export * from './enum/aiSettingsEnums/ai-inactive-employee-action.enum';
|
|
33
|
+
export * from './enum/aiSettingsEnums/ai-inactivity-action.enum';
|
|
34
|
+
export * from './enum/aiSettingsEnums/ai-mode.enum';
|
|
35
|
+
export * from './enum/aiSettingsEnums/ai-operation-mode.enum';
|
|
36
|
+
export * from './enum/aiSettingsEnums/ai-personality.enum';
|
|
37
|
+
export * from './enum/aiTriggerEnums/ai-trigger-pattern-type.enum';
|
|
@@ -16,3 +16,38 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dto/pa.get-ai-settings.dto"), exports);
|
|
18
18
|
__exportStar(require("./dto/pa.ai-campaign-trigger.dto"), exports);
|
|
19
|
+
__exportStar(require("./dto/pa.ai-agent.dto"), exports);
|
|
20
|
+
__exportStar(require("./dto/pa.ai-agent-rule.dto"), exports);
|
|
21
|
+
__exportStar(require("./dto/pa.ai-commercial-argument.dto"), exports);
|
|
22
|
+
__exportStar(require("./dto/pa.ai-extra-offer.dto"), exports);
|
|
23
|
+
__exportStar(require("./dto/pa.ai-info-layer.dto"), exports);
|
|
24
|
+
__exportStar(require("./dto/pa.ai-registration-segment.dto"), exports);
|
|
25
|
+
__exportStar(require("./dto/pa.ai-required-field.dto"), exports);
|
|
26
|
+
__exportStar(require("./dto/pa.ai-schedule-day.dto"), exports);
|
|
27
|
+
__exportStar(require("./dto/pa.ai-trigger.dto"), exports);
|
|
28
|
+
__exportStar(require("./enum/aiAgentEnums/ai-agent-identity.enum"), exports);
|
|
29
|
+
__exportStar(require("./enum/aiAgentEnums/ai-agent-type.enum"), exports);
|
|
30
|
+
__exportStar(require("./enum/aiAgentEnums/ai-anamnesis-mode.enum"), exports);
|
|
31
|
+
__exportStar(require("./enum/aiAgentEnums/ai-data-collection-format.enum"), exports);
|
|
32
|
+
__exportStar(require("./enum/aiAgentEnums/ai-extra-data-timing.enum"), exports);
|
|
33
|
+
__exportStar(require("./enum/aiAgentEnums/ai-next-step.enum"), exports);
|
|
34
|
+
__exportStar(require("./enum/aiAgentEnums/ai-post-scheduling.enum"), exports);
|
|
35
|
+
__exportStar(require("./enum/aiAgentEnums/ai-sales-approach.enum"), exports);
|
|
36
|
+
__exportStar(require("./enum/aiAgentEnums/ai-show-info-to.enum"), exports);
|
|
37
|
+
__exportStar(require("./enum/aiAgentEnums/ai-show-price-mode.enum"), exports);
|
|
38
|
+
__exportStar(require("./enum/aiAgentEnums/ai-time-selection.enum"), exports);
|
|
39
|
+
__exportStar(require("./enum/aiInfoLayerEnums/ai-info-layer-type.enum"), exports);
|
|
40
|
+
__exportStar(require("./enum/aiRegistrationSegmentEnums/ai-registration-segment.enum"), exports);
|
|
41
|
+
__exportStar(require("./enum/aiRequiredFieldEnums/ai-required-field-source.enum"), exports);
|
|
42
|
+
__exportStar(require("./enum/aiRequiredFieldEnums/ai-required-field-standard-key.enum"), exports);
|
|
43
|
+
__exportStar(require("./enum/aiRequiredFieldEnums/ai-required-field-target.enum"), exports);
|
|
44
|
+
__exportStar(require("./enum/aiScheduleDayEnums/ai-day-of-week.enum"), exports);
|
|
45
|
+
__exportStar(require("./enum/aiScheduleDayEnums/ai-schedule-scope.enum"), exports);
|
|
46
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-company-context-mode.enum"), exports);
|
|
47
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-handoff-list-mode.enum"), exports);
|
|
48
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-inactive-employee-action.enum"), exports);
|
|
49
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-inactivity-action.enum"), exports);
|
|
50
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-mode.enum"), exports);
|
|
51
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-operation-mode.enum"), exports);
|
|
52
|
+
__exportStar(require("./enum/aiSettingsEnums/ai-personality.enum"), exports);
|
|
53
|
+
__exportStar(require("./enum/aiTriggerEnums/ai-trigger-pattern-type.enum"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface PaCustomFieldOptionJson {
|
|
2
|
+
value: string;
|
|
3
|
+
order: number;
|
|
4
|
+
}
|
|
5
|
+
export interface PaCustomFieldDateConfigJson {
|
|
6
|
+
allowPastDate: boolean;
|
|
7
|
+
allowFutureDate: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PaCustomFieldFileConfigJson {
|
|
10
|
+
allowImage: boolean;
|
|
11
|
+
allowVideo: boolean;
|
|
12
|
+
allowDocument: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface PaCustomFieldNumberConfigJson {
|
|
15
|
+
minValue: number | null;
|
|
16
|
+
maxValue: number | null;
|
|
17
|
+
isCurrency: boolean;
|
|
18
|
+
isPercentage: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type PaCustomFieldConfigJson = PaCustomFieldDateConfigJson | PaCustomFieldFileConfigJson | PaCustomFieldNumberConfigJson;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomFieldTypeEnum = void 0;
|
|
4
|
+
var CustomFieldTypeEnum;
|
|
5
|
+
(function (CustomFieldTypeEnum) {
|
|
6
|
+
CustomFieldTypeEnum["TEXT"] = "TEXT";
|
|
7
|
+
CustomFieldTypeEnum["NUMBER"] = "NUMBER";
|
|
8
|
+
CustomFieldTypeEnum["DATE"] = "DATE";
|
|
9
|
+
CustomFieldTypeEnum["PHONE"] = "PHONE";
|
|
10
|
+
CustomFieldTypeEnum["SINGLE_SELECT"] = "SINGLE_SELECT";
|
|
11
|
+
CustomFieldTypeEnum["MULTI_SELECT"] = "MULTI_SELECT";
|
|
12
|
+
CustomFieldTypeEnum["BOOLEAN"] = "BOOLEAN";
|
|
13
|
+
CustomFieldTypeEnum["FILE"] = "FILE";
|
|
14
|
+
})(CustomFieldTypeEnum || (exports.CustomFieldTypeEnum = CustomFieldTypeEnum = {}));
|
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dto/pa.set-custom-field-values.dto"), exports);
|
|
18
|
+
__exportStar(require("./dto/pa.custom-field-config.dto"), exports);
|
|
19
|
+
__exportStar(require("./enum/custom-field-type.enum"), exports);
|
|
@@ -10,4 +10,11 @@ export declare class HttpClient {
|
|
|
10
10
|
delete<T>(path: string, shopId?: number): Promise<T>;
|
|
11
11
|
private headers;
|
|
12
12
|
private shop;
|
|
13
|
+
/**
|
|
14
|
+
* Repassa o corpo cru do erro da API. Sem resposta (timeout, falha de rede) ou com
|
|
15
|
+
* corpo vazio, lança um Error com a mensagem do axios: ler `error.response.data`
|
|
16
|
+
* direto virava `TypeError` e perdia a causa. O `AxiosError` não é relançado porque
|
|
17
|
+
* o `toJSON()` dele serializa o `config`, com o header `Authorization`.
|
|
18
|
+
*/
|
|
19
|
+
private failure;
|
|
13
20
|
}
|
|
@@ -29,9 +29,9 @@ class HttpClient {
|
|
|
29
29
|
stdout_logger_1.logger.debug('tecpet-sdk', `[HTTP] ${this.shop(response.config.headers)} ← ${response.status} ${response.config.url}`, response?.data);
|
|
30
30
|
return response;
|
|
31
31
|
}, (error) => {
|
|
32
|
-
stdout_logger_1.logger.error('tecpet-sdk', `[HTTP] ${this.shop(error)} ← Error: ${error.message}`);
|
|
32
|
+
stdout_logger_1.logger.error('tecpet-sdk', `[HTTP] ${this.shop(error?.config?.headers)} ← Error: ${error.message}`);
|
|
33
33
|
if (error.response) {
|
|
34
|
-
stdout_logger_1.logger.error('tecpet-sdk', `[HTTP] ${this.shop(error)} ← Response:`, error?.response?.data);
|
|
34
|
+
stdout_logger_1.logger.error('tecpet-sdk', `[HTTP] ${this.shop(error?.config?.headers)} ← Response:`, error?.response?.data);
|
|
35
35
|
}
|
|
36
36
|
return Promise.reject(error);
|
|
37
37
|
});
|
|
@@ -42,7 +42,7 @@ class HttpClient {
|
|
|
42
42
|
return response?.data;
|
|
43
43
|
}
|
|
44
44
|
catch (error) {
|
|
45
|
-
throw error
|
|
45
|
+
throw this.failure(error);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
async post(path, payload, shopId) {
|
|
@@ -51,7 +51,7 @@ class HttpClient {
|
|
|
51
51
|
return response?.data;
|
|
52
52
|
}
|
|
53
53
|
catch (error) {
|
|
54
|
-
throw error
|
|
54
|
+
throw this.failure(error);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
async put(path, payload, shopId) {
|
|
@@ -60,7 +60,7 @@ class HttpClient {
|
|
|
60
60
|
return response?.data;
|
|
61
61
|
}
|
|
62
62
|
catch (error) {
|
|
63
|
-
throw error
|
|
63
|
+
throw this.failure(error);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
async patch(path, payload, shopId) {
|
|
@@ -69,7 +69,7 @@ class HttpClient {
|
|
|
69
69
|
return response?.data;
|
|
70
70
|
}
|
|
71
71
|
catch (error) {
|
|
72
|
-
throw error
|
|
72
|
+
throw this.failure(error);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async delete(path, shopId) {
|
|
@@ -78,7 +78,7 @@ class HttpClient {
|
|
|
78
78
|
return response?.data;
|
|
79
79
|
}
|
|
80
80
|
catch (error) {
|
|
81
|
-
throw error
|
|
81
|
+
throw this.failure(error);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
headers({ shopId }) {
|
|
@@ -94,5 +94,14 @@ class HttpClient {
|
|
|
94
94
|
const shop = headers?.['x-shop']?.toString();
|
|
95
95
|
return shop ? `shop=${shop}` : '';
|
|
96
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Repassa o corpo cru do erro da API. Sem resposta (timeout, falha de rede) ou com
|
|
99
|
+
* corpo vazio, lança um Error com a mensagem do axios: ler `error.response.data`
|
|
100
|
+
* direto virava `TypeError` e perdia a causa. O `AxiosError` não é relançado porque
|
|
101
|
+
* o `toJSON()` dele serializa o `config`, com o header `Authorization`.
|
|
102
|
+
*/
|
|
103
|
+
failure(error) {
|
|
104
|
+
return error?.response?.data || new Error(error?.message);
|
|
105
|
+
}
|
|
97
106
|
}
|
|
98
107
|
exports.HttpClient = HttpClient;
|