stentor-models 1.58.33 → 1.58.43
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/App/AppStatus.d.ts +2 -0
- package/lib/App/AppStatus.js +2 -1
- package/lib/App/AppStatus.js.map +1 -1
- package/lib/Crm.d.ts +21 -0
- package/lib/Services/CrmService.d.ts +5 -1
- package/package.json +2 -2
package/lib/App/AppStatus.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export type AppStatusInCertification = "In Certification";
|
|
|
11
11
|
export declare const APP_STATUS_IN_CERTIFICATION: AppStatusInCertification;
|
|
12
12
|
export type AppStatusRequiresPublish = "Needs publish";
|
|
13
13
|
export declare const APP_STATUS_REQUIRES_PUBLISH: AppStatusRequiresPublish;
|
|
14
|
+
export type AppStatusReadyForInstall = "Ready for Install";
|
|
15
|
+
export declare const APP_STATUS_READY_FOR_INSTALL: AppStatusReadyForInstall;
|
|
14
16
|
export type AppStatusLive = "Live";
|
|
15
17
|
export declare const APP_STATUS_LIVE: AppStatusLive;
|
|
16
18
|
export type AppStatusRequiresAttention = "Requires Attention";
|
package/lib/App/AppStatus.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APP_STATUS_LIVE_AND_REQUIRES_ATTENTION = exports.APP_STATUS_LIVE_AND_REQUIRES_PUBLISH = exports.APP_STATUS_LIVE_AND_IN_CERT = exports.APP_STATUS_LIVE_AND_REQUIRES_CERT = exports.APP_STATUS_CANCELLED = exports.APP_STATUS_ARCHIVED = exports.APP_STATUS_REQUIRES_ATTENTION = exports.APP_STATUS_LIVE = exports.APP_STATUS_REQUIRES_PUBLISH = exports.APP_STATUS_IN_CERTIFICATION = exports.APP_STATUS_UNDER_REVIEW = exports.APP_STATUS_SUBMITTED_FOR_REVIEW = exports.APP_STATUS_INCOMPLETE = exports.APP_STATUS_UNKNOWN = void 0;
|
|
3
|
+
exports.APP_STATUS_LIVE_AND_REQUIRES_ATTENTION = exports.APP_STATUS_LIVE_AND_REQUIRES_PUBLISH = exports.APP_STATUS_LIVE_AND_IN_CERT = exports.APP_STATUS_LIVE_AND_REQUIRES_CERT = exports.APP_STATUS_CANCELLED = exports.APP_STATUS_ARCHIVED = exports.APP_STATUS_REQUIRES_ATTENTION = exports.APP_STATUS_LIVE = exports.APP_STATUS_READY_FOR_INSTALL = exports.APP_STATUS_REQUIRES_PUBLISH = exports.APP_STATUS_IN_CERTIFICATION = exports.APP_STATUS_UNDER_REVIEW = exports.APP_STATUS_SUBMITTED_FOR_REVIEW = exports.APP_STATUS_INCOMPLETE = exports.APP_STATUS_UNKNOWN = void 0;
|
|
4
4
|
exports.APP_STATUS_UNKNOWN = "Unknown";
|
|
5
5
|
exports.APP_STATUS_INCOMPLETE = "Incomplete";
|
|
6
6
|
exports.APP_STATUS_SUBMITTED_FOR_REVIEW = "Submitted For Review";
|
|
7
7
|
exports.APP_STATUS_UNDER_REVIEW = "Under Review";
|
|
8
8
|
exports.APP_STATUS_IN_CERTIFICATION = "In Certification";
|
|
9
9
|
exports.APP_STATUS_REQUIRES_PUBLISH = "Needs publish";
|
|
10
|
+
exports.APP_STATUS_READY_FOR_INSTALL = "Ready for Install";
|
|
10
11
|
exports.APP_STATUS_LIVE = "Live";
|
|
11
12
|
exports.APP_STATUS_REQUIRES_ATTENTION = "Requires Attention";
|
|
12
13
|
exports.APP_STATUS_ARCHIVED = "Archived";
|
package/lib/App/AppStatus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppStatus.js","sourceRoot":"","sources":["../../src/App/AppStatus.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAqB,SAAS,CAAC;AAGjD,QAAA,qBAAqB,GAAwB,YAAY,CAAC;AAG1D,QAAA,+BAA+B,GAAgC,sBAAsB,CAAC;AAGtF,QAAA,uBAAuB,GAAyB,cAAc,CA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6
|
}
|
|
7
7
|
export interface ExternalLead {
|
|
8
|
+
/**
|
|
9
|
+
* Fields such as name and email
|
|
10
|
+
*/
|
|
8
11
|
fields: LeadFormField[];
|
|
9
12
|
source?: string;
|
|
10
13
|
company?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Transcript of the conversation
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
11
18
|
transcript?: Message[];
|
|
19
|
+
/**
|
|
20
|
+
* Optional reference ID
|
|
21
|
+
*/
|
|
22
|
+
refId?: string;
|
|
12
23
|
}
|
|
13
24
|
export interface CrmResponse {
|
|
25
|
+
/**
|
|
26
|
+
* Was the lead creation request successful
|
|
27
|
+
*/
|
|
14
28
|
status: "Success" | "Failure";
|
|
29
|
+
/**
|
|
30
|
+
* Potentially helpful message if there was a failure
|
|
31
|
+
*/
|
|
15
32
|
message?: string;
|
|
33
|
+
/**
|
|
34
|
+
* A reference to the lead in the CRM
|
|
35
|
+
*/
|
|
36
|
+
refId?: string;
|
|
16
37
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
import { CrmResponse, ExternalLead } from "../Crm";
|
|
3
3
|
export interface CrmService {
|
|
4
4
|
/**
|
|
5
|
-
* Send
|
|
5
|
+
* Send information about a lead to the CRM.
|
|
6
|
+
*
|
|
7
|
+
* This can be used to either create a lead or append data to an existing lead.
|
|
8
|
+
*
|
|
9
|
+
* The existing lead can be determined by the refId on the ExternalLead information or by attempting to match data such as email or phone number.
|
|
6
10
|
*
|
|
7
11
|
* @param externalLead Lead information
|
|
8
12
|
* @param extras Optional additional metadata to pass to the CRM
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.58.
|
|
7
|
+
"version": "1.58.43",
|
|
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.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "fdd11462ee2b9b0b3ca8bf7ee56f8ef472351b02"
|
|
37
37
|
}
|