stentor-models 1.59.57 → 1.59.58
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.
|
@@ -75,6 +75,17 @@ export interface CrmServiceAvailabilityOptions extends CrmServiceAvailabilitySet
|
|
|
75
75
|
*/
|
|
76
76
|
jobType?: string;
|
|
77
77
|
}
|
|
78
|
+
export interface CrmServiceJobType {
|
|
79
|
+
/**
|
|
80
|
+
* The job type id.
|
|
81
|
+
*/
|
|
82
|
+
id: string;
|
|
83
|
+
/**
|
|
84
|
+
* The job type name.
|
|
85
|
+
*/
|
|
86
|
+
name?: string;
|
|
87
|
+
class?: "MAINTENANCE" | "REPAIR" | "INSTALLATION" | "ESTIMATION";
|
|
88
|
+
}
|
|
78
89
|
export interface CrmService {
|
|
79
90
|
/**
|
|
80
91
|
* Send information about a lead to the CRM.
|
|
@@ -110,7 +121,7 @@ export interface CrmService {
|
|
|
110
121
|
*
|
|
111
122
|
* @param message
|
|
112
123
|
*/
|
|
113
|
-
getJobType(message: string): Promise<
|
|
124
|
+
getJobType(message: string, externalLead?: ExternalLead): Promise<CrmServiceJobType>;
|
|
114
125
|
}
|
|
115
126
|
export type CrmServiceProps = CrmServiceAvailabilitySettings;
|
|
116
127
|
export declare class AbstractCrmService implements CrmService {
|
|
@@ -121,6 +132,6 @@ export declare class AbstractCrmService implements CrmService {
|
|
|
121
132
|
constructor(props: CrmServiceProps);
|
|
122
133
|
send(externalLead: ExternalLead, extras?: Record<string, unknown>): Promise<CrmResponse>;
|
|
123
134
|
getAvailability(range: DateTimeRange, options?: CrmServiceAvailabilityOptions): Promise<CrmServiceAvailability>;
|
|
124
|
-
getJobType(message: string): Promise<
|
|
135
|
+
getJobType(message: string, externalLead?: ExternalLead): Promise<CrmServiceJobType>;
|
|
125
136
|
update?(externalLead: ExternalLead, extras?: Record<string, unknown>): Promise<CrmResponse>;
|
|
126
137
|
}
|
|
@@ -39,7 +39,7 @@ class AbstractCrmService {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
|
-
getJobType(message) {
|
|
42
|
+
getJobType(message, externalLead) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
throw new Error("Method not implemented.");
|
|
45
45
|
});
|
|
@@ -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;;;;;;;;;;;;AA0IpC,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.58",
|
|
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": "4bb6eb5f2aa798567a1b23ec08d3bdc6ed33a164"
|
|
37
37
|
}
|