stentor-models 1.59.70 → 1.59.75
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/lib/Crm.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ export interface ExternalLead {
|
|
|
39
39
|
* (this maybe looked up already as a side effect of the avalability request)
|
|
40
40
|
*/
|
|
41
41
|
jobTypeId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optinal id to to identify the availabilty stratego (blocked days ahead, etc)
|
|
44
|
+
*/
|
|
45
|
+
availabilityClassId?: string;
|
|
42
46
|
/**
|
|
43
47
|
* Is it abandoned (unfinished)?
|
|
44
48
|
*/
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
import { CrmResponse, ExternalLead } from "../Crm";
|
|
3
3
|
import { DateTime, DateTimeRange } from "../DateTime";
|
|
4
4
|
export type DayOfWeek = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
5
|
+
export interface AvailabilityClass {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
summary: string;
|
|
9
|
+
numberOfDaysOut: number;
|
|
10
|
+
appointmentsPerDay: number;
|
|
11
|
+
leadOnly: boolean;
|
|
12
|
+
}
|
|
5
13
|
/**
|
|
6
14
|
* Settings for the availability of the CRM service.
|
|
7
15
|
*/
|
|
@@ -22,6 +30,14 @@ export interface CrmServiceAvailabilitySettings {
|
|
|
22
30
|
* Job types, where we only schedule a few days (3) ahead
|
|
23
31
|
*/
|
|
24
32
|
delayedJobTypes?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The customer specific "availability classes" that describes the scheduling strategy for job types.
|
|
35
|
+
*/
|
|
36
|
+
availabilityClasses?: AvailabilityClass[];
|
|
37
|
+
/**
|
|
38
|
+
* The default availability class (when the AI cannot figure it out)
|
|
39
|
+
*/
|
|
40
|
+
defaultAvailabilityClass?: string;
|
|
25
41
|
}
|
|
26
42
|
export interface CrmServiceTimeAvailability {
|
|
27
43
|
/**
|
|
@@ -84,7 +100,7 @@ export interface CrmServiceJobType {
|
|
|
84
100
|
* The job type name.
|
|
85
101
|
*/
|
|
86
102
|
name?: string;
|
|
87
|
-
class?:
|
|
103
|
+
class?: string;
|
|
88
104
|
}
|
|
89
105
|
export interface CrmService {
|
|
90
106
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrmService.js","sourceRoot":"","sources":["../../src/Services/CrmService.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CrmService.js","sourceRoot":"","sources":["../../src/Services/CrmService.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;AA2JpC,MAAa,kBAAkB;IAU3B,YAAmB,KAAsB;QAErC,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;YACtB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QAC7C,CAAC;QAED,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACpB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACzC,CAAC;QAED,IAAI,OAAO,KAAK,CAAC,yBAAyB,KAAK,QAAQ,EAAE,CAAC;YACtD,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAAC;QACrE,CAAC;QAED,IAAI,OAAO,KAAK,CAAC,eAAe,EAAE,CAAC;YAC/B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QACjD,CAAC;IACL,CAAC;IAED,6DAA6D;IAChD,IAAI,CAAC,YAA0B,EAAE,MAAgC;;YAC1E,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC;KAAA;IAED,6DAA6D;IAChD,eAAe,CAAC,KAAoB,EAAE,OAAuC;;YACtF,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC;KAAA;IAED,6DAA6D;IAChD,UAAU,CAAC,OAAe,EAAE,YAA2B;;YAChE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC;KAAA;IAED,6DAA6D;IAChD,MAAM,CAAE,YAA0B,EAAE,MAAgC;;YAC7E,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC;KAAA;CACJ;AAhDD,gDAgDC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.59.
|
|
7
|
+
"version": "1.59.75",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "2.0.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "b21ca480e4c86ea7888d437980f73b85f5a43efa"
|
|
37
37
|
}
|