@scout9/admin 1.0.2 → 1.0.3
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/package.json +7 -2
- package/src/api.ts +2580 -262
- package/tsconfig.tsbuildinfo +1 -1
- package/build/api-openai.d.ts +0 -2992
- package/build/api-openai.js +0 -1968
- package/build/api.d.ts +0 -1162
- package/build/api.js +0 -553
- package/build/base.d.ts +0 -54
- package/build/base.js +0 -66
- package/build/common.d.ts +0 -65
- package/build/common.js +0 -145
- package/build/configuration.d.ts +0 -83
- package/build/configuration.js +0 -91
- package/build/index.d.ts +0 -13
- package/build/index.js +0 -31
- package/build/schemas/common/algolia.d.ts +0 -20
- package/build/schemas/common/algolia.js +0 -2
- package/build/schemas/common/contact-map.d.ts +0 -33
- package/build/schemas/common/contact-map.js +0 -2
- package/build/schemas/common/currency.d.ts +0 -1
- package/build/schemas/common/currency.js +0 -2
- package/build/schemas/common/index.d.ts +0 -6
- package/build/schemas/common/index.js +0 -22
- package/build/schemas/common/location.d.ts +0 -5
- package/build/schemas/common/location.js +0 -2
- package/build/schemas/common/task.d.ts +0 -20
- package/build/schemas/common/task.js +0 -2
- package/build/schemas/common/time.d.ts +0 -14
- package/build/schemas/common/time.js +0 -2
- package/build/schemas/common.d.ts +0 -77
- package/build/schemas/common.js +0 -8
- package/build/schemas/conversations/context.d.ts +0 -55
- package/build/schemas/conversations/context.js +0 -2
- package/build/schemas/conversations/conversation.d.ts +0 -53
- package/build/schemas/conversations/conversation.js +0 -2
- package/build/schemas/conversations/index.d.ts +0 -6
- package/build/schemas/conversations/index.js +0 -22
- package/build/schemas/conversations/message.d.ts +0 -62
- package/build/schemas/conversations/message.js +0 -2
- package/build/schemas/conversations/parsed.d.ts +0 -7
- package/build/schemas/conversations/parsed.js +0 -2
- package/build/schemas/conversations/scheduled-conversation.d.ts +0 -31
- package/build/schemas/conversations/scheduled-conversation.js +0 -2
- package/build/schemas/conversations/webhook.d.ts +0 -8
- package/build/schemas/conversations/webhook.js +0 -2
- package/build/schemas/index.d.ts +0 -3
- package/build/schemas/index.js +0 -19
- package/build/schemas/users/businesses/agents/agent.d.ts +0 -76
- package/build/schemas/users/businesses/agents/agent.js +0 -2
- package/build/schemas/users/businesses/agents/auth.d.ts +0 -7
- package/build/schemas/users/businesses/agents/auth.js +0 -2
- package/build/schemas/users/businesses/agents/index.d.ts +0 -2
- package/build/schemas/users/businesses/agents/index.js +0 -18
- package/build/schemas/users/businesses/business-location.d.ts +0 -10
- package/build/schemas/users/businesses/business-location.js +0 -2
- package/build/schemas/users/businesses/business.d.ts +0 -32
- package/build/schemas/users/businesses/business.js +0 -2
- package/build/schemas/users/businesses/context/context-indexed.d.ts +0 -9
- package/build/schemas/users/businesses/context/context-indexed.js +0 -2
- package/build/schemas/users/businesses/context/context-saves.d.ts +0 -12
- package/build/schemas/users/businesses/context/context-saves.js +0 -2
- package/build/schemas/users/businesses/context/context.d.ts +0 -64
- package/build/schemas/users/businesses/context/context.js +0 -2
- package/build/schemas/users/businesses/context/index.d.ts +0 -2
- package/build/schemas/users/businesses/context/index.js +0 -18
- package/build/schemas/users/businesses/index.d.ts +0 -5
- package/build/schemas/users/businesses/index.js +0 -21
- package/build/schemas/users/businesses/notifications.d.ts +0 -7
- package/build/schemas/users/businesses/notifications.js +0 -2
- package/build/schemas/users/businesses/offerings/index.d.ts +0 -2
- package/build/schemas/users/businesses/offerings/index.js +0 -18
- package/build/schemas/users/businesses/offerings/offer-indexed.d.ts +0 -34
- package/build/schemas/users/businesses/offerings/offer-indexed.js +0 -2
- package/build/schemas/users/businesses/offerings/offer.d.ts +0 -29
- package/build/schemas/users/businesses/offerings/offer.js +0 -2
- package/build/schemas/users/businesses/thread.d.ts +0 -44
- package/build/schemas/users/businesses/thread.js +0 -2
- package/build/schemas/users/customers/customer.d.ts +0 -35
- package/build/schemas/users/customers/customer.js +0 -2
- package/build/schemas/users/customers/index.d.ts +0 -1
- package/build/schemas/users/customers/index.js +0 -17
- package/build/schemas/users/index.d.ts +0 -2
- package/build/schemas/users/index.js +0 -18
- package/src/.openapi-generator/FILES +0 -9
- package/src/.openapi-generator/VERSION +0 -1
package/build/common.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scout9 API
|
|
3
|
-
* APIs for managing Scout9 users and conversations
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 type { Configuration } from "./configuration";
|
|
13
|
-
import type { RequestArgs } from "./base";
|
|
14
|
-
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
|
-
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
|
-
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
|
-
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
|
-
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/build/common.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Scout9 API
|
|
6
|
-
* APIs for managing Scout9 users and conversations
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
|
-
const base_1 = require("./base");
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
|
-
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @throws {RequiredError}
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
29
|
-
if (paramValue === null || paramValue === undefined) {
|
|
30
|
-
throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.assertParamExists = assertParamExists;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
|
-
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
39
|
-
if (configuration && configuration.apiKey) {
|
|
40
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
41
|
-
? await configuration.apiKey(keyParamName)
|
|
42
|
-
: await configuration.apiKey;
|
|
43
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
|
-
const setBasicAuthToObject = function (object, configuration) {
|
|
52
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
53
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
*/
|
|
61
|
-
const setBearerAuthToObject = async function (object, configuration) {
|
|
62
|
-
if (configuration && configuration.accessToken) {
|
|
63
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
64
|
-
? await configuration.accessToken()
|
|
65
|
-
: await configuration.accessToken;
|
|
66
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
|
-
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
75
|
-
if (configuration && configuration.accessToken) {
|
|
76
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
77
|
-
? await configuration.accessToken(name, scopes)
|
|
78
|
-
: await configuration.accessToken;
|
|
79
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
exports.setOAuthToObject = setOAuthToObject;
|
|
83
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
84
|
-
if (parameter == null)
|
|
85
|
-
return;
|
|
86
|
-
if (typeof parameter === "object") {
|
|
87
|
-
if (Array.isArray(parameter)) {
|
|
88
|
-
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
if (urlSearchParams.has(key)) {
|
|
96
|
-
urlSearchParams.append(key, parameter);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
urlSearchParams.set(key, parameter);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
|
-
const setSearchParams = function (url, ...objects) {
|
|
108
|
-
const searchParams = new URLSearchParams(url.search);
|
|
109
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
110
|
-
url.search = searchParams.toString();
|
|
111
|
-
};
|
|
112
|
-
exports.setSearchParams = setSearchParams;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @export
|
|
116
|
-
*/
|
|
117
|
-
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
118
|
-
const nonString = typeof value !== 'string';
|
|
119
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
120
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
121
|
-
: nonString;
|
|
122
|
-
return needsSerialization
|
|
123
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
124
|
-
: (value || "");
|
|
125
|
-
};
|
|
126
|
-
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @export
|
|
130
|
-
*/
|
|
131
|
-
const toPathString = function (url) {
|
|
132
|
-
return url.pathname + url.search + url.hash;
|
|
133
|
-
};
|
|
134
|
-
exports.toPathString = toPathString;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
|
-
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
|
-
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
|
|
142
|
-
return axios.request(axiosRequestArgs);
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
exports.createRequestFunction = createRequestFunction;
|
package/build/configuration.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scout9 API
|
|
3
|
-
* APIs for managing Scout9 users and conversations
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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
|
-
export interface ConfigurationParameters {
|
|
13
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
-
username?: string;
|
|
15
|
-
password?: string;
|
|
16
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
-
basePath?: string;
|
|
18
|
-
baseOptions?: any;
|
|
19
|
-
formDataCtor?: new () => any;
|
|
20
|
-
}
|
|
21
|
-
export declare class Configuration {
|
|
22
|
-
/**
|
|
23
|
-
* parameter for apiKey security
|
|
24
|
-
* @param name security name
|
|
25
|
-
* @memberof Configuration
|
|
26
|
-
*/
|
|
27
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
-
/**
|
|
29
|
-
* parameter for basic security
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Configuration
|
|
33
|
-
*/
|
|
34
|
-
username?: string;
|
|
35
|
-
/**
|
|
36
|
-
* parameter for basic security
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Configuration
|
|
40
|
-
*/
|
|
41
|
-
password?: string;
|
|
42
|
-
/**
|
|
43
|
-
* parameter for oauth2 security
|
|
44
|
-
* @param name security name
|
|
45
|
-
* @param scopes oauth2 scope
|
|
46
|
-
* @memberof Configuration
|
|
47
|
-
*/
|
|
48
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
-
/**
|
|
50
|
-
* override base path
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Configuration
|
|
54
|
-
*/
|
|
55
|
-
basePath?: string;
|
|
56
|
-
/**
|
|
57
|
-
* base options for axios calls
|
|
58
|
-
*
|
|
59
|
-
* @type {any}
|
|
60
|
-
* @memberof Configuration
|
|
61
|
-
*/
|
|
62
|
-
baseOptions?: any;
|
|
63
|
-
/**
|
|
64
|
-
* The FormData constructor that will be used to create multipart form data
|
|
65
|
-
* requests. You can inject this here so that execution environments that
|
|
66
|
-
* do not support the FormData class can still run the generated client.
|
|
67
|
-
*
|
|
68
|
-
* @type {new () => FormData}
|
|
69
|
-
*/
|
|
70
|
-
formDataCtor?: new () => any;
|
|
71
|
-
constructor(param?: ConfigurationParameters);
|
|
72
|
-
/**
|
|
73
|
-
* Check if the given MIME is a JSON MIME.
|
|
74
|
-
* JSON MIME examples:
|
|
75
|
-
* application/json
|
|
76
|
-
* application/json; charset=UTF8
|
|
77
|
-
* APPLICATION/JSON
|
|
78
|
-
* application/vnd.company+json
|
|
79
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
-
*/
|
|
82
|
-
isJsonMime(mime: string): boolean;
|
|
83
|
-
}
|
package/build/configuration.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Scout9 API
|
|
6
|
-
* APIs for managing Scout9 users and conversations
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.Configuration = void 0;
|
|
17
|
-
class Configuration {
|
|
18
|
-
/**
|
|
19
|
-
* parameter for apiKey security
|
|
20
|
-
* @param name security name
|
|
21
|
-
* @memberof Configuration
|
|
22
|
-
*/
|
|
23
|
-
apiKey;
|
|
24
|
-
/**
|
|
25
|
-
* parameter for basic security
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Configuration
|
|
29
|
-
*/
|
|
30
|
-
username;
|
|
31
|
-
/**
|
|
32
|
-
* parameter for basic security
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Configuration
|
|
36
|
-
*/
|
|
37
|
-
password;
|
|
38
|
-
/**
|
|
39
|
-
* parameter for oauth2 security
|
|
40
|
-
* @param name security name
|
|
41
|
-
* @param scopes oauth2 scope
|
|
42
|
-
* @memberof Configuration
|
|
43
|
-
*/
|
|
44
|
-
accessToken;
|
|
45
|
-
/**
|
|
46
|
-
* override base path
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Configuration
|
|
50
|
-
*/
|
|
51
|
-
basePath;
|
|
52
|
-
/**
|
|
53
|
-
* base options for axios calls
|
|
54
|
-
*
|
|
55
|
-
* @type {any}
|
|
56
|
-
* @memberof Configuration
|
|
57
|
-
*/
|
|
58
|
-
baseOptions;
|
|
59
|
-
/**
|
|
60
|
-
* The FormData constructor that will be used to create multipart form data
|
|
61
|
-
* requests. You can inject this here so that execution environments that
|
|
62
|
-
* do not support the FormData class can still run the generated client.
|
|
63
|
-
*
|
|
64
|
-
* @type {new () => FormData}
|
|
65
|
-
*/
|
|
66
|
-
formDataCtor;
|
|
67
|
-
constructor(param = {}) {
|
|
68
|
-
this.apiKey = param.apiKey;
|
|
69
|
-
this.username = param.username;
|
|
70
|
-
this.password = param.password;
|
|
71
|
-
this.accessToken = param.accessToken;
|
|
72
|
-
this.basePath = param.basePath;
|
|
73
|
-
this.baseOptions = param.baseOptions;
|
|
74
|
-
this.formDataCtor = param.formDataCtor;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Check if the given MIME is a JSON MIME.
|
|
78
|
-
* JSON MIME examples:
|
|
79
|
-
* application/json
|
|
80
|
-
* application/json; charset=UTF8
|
|
81
|
-
* APPLICATION/JSON
|
|
82
|
-
* application/vnd.company+json
|
|
83
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
84
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
85
|
-
*/
|
|
86
|
-
isJsonMime(mime) {
|
|
87
|
-
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
88
|
-
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.Configuration = Configuration;
|
package/build/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scout9 API
|
|
3
|
-
* APIs for managing Scout9 users and conversations
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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
|
-
export * from "./api";
|
|
13
|
-
export * from "./configuration";
|
package/build/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Scout9 API
|
|
6
|
-
* APIs for managing Scout9 users and conversations
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api"), exports);
|
|
31
|
-
__exportStar(require("./configuration"), exports);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper schedule to bridge algolia records with internal db
|
|
3
|
-
*/
|
|
4
|
-
export interface IAlgoliaIndexedObject {
|
|
5
|
-
/**
|
|
6
|
-
* Where this object is stored in the database
|
|
7
|
-
*/
|
|
8
|
-
parent: string;
|
|
9
|
-
/**
|
|
10
|
-
* Algolia objectID required
|
|
11
|
-
*/
|
|
12
|
-
objectID: string;
|
|
13
|
-
/**
|
|
14
|
-
* Algolia geolocation for a given object
|
|
15
|
-
*/
|
|
16
|
-
_geoloc?: {
|
|
17
|
-
lat: number;
|
|
18
|
-
lng: number;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EmailServiceType } from '../users';
|
|
2
|
-
export interface IContactPath {
|
|
3
|
-
id: string;
|
|
4
|
-
path: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* A utility helper collection to map contact information to a common format.
|
|
8
|
-
*
|
|
9
|
-
* scout9-contact-map/{contact}
|
|
10
|
-
*/
|
|
11
|
-
export interface IContactMap {
|
|
12
|
-
/**
|
|
13
|
-
* Can either be the formatted phone number or email address.
|
|
14
|
-
*/
|
|
15
|
-
contact: string;
|
|
16
|
-
agentPaths: {
|
|
17
|
-
businessId: string;
|
|
18
|
-
agentId: string;
|
|
19
|
-
}[];
|
|
20
|
-
customerPaths: {
|
|
21
|
-
businessId: string;
|
|
22
|
-
customerId: string;
|
|
23
|
-
}[];
|
|
24
|
-
programmableEmailProps?: {
|
|
25
|
-
type: EmailServiceType;
|
|
26
|
-
/**
|
|
27
|
-
* If this email is a gmail email, then we can store the refresh token (after they O-Auth) here so that we can run gmail.contacts.watch
|
|
28
|
-
* @TODO - create a O-Auth flow for this, see scripts/gmail/generate-refresh-token for an example
|
|
29
|
-
*/
|
|
30
|
-
gmailRefreshToken?: string;
|
|
31
|
-
gmailWatchExpiration?: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Currency = 'usd' | 'cad';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./location"), exports);
|
|
18
|
-
__exportStar(require("./currency"), exports);
|
|
19
|
-
__exportStar(require("./time"), exports);
|
|
20
|
-
__exportStar(require("./task"), exports);
|
|
21
|
-
__exportStar(require("./contact-map"), exports);
|
|
22
|
-
__exportStar(require("./algolia"), exports);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Timestamp } from '../common';
|
|
2
|
-
export interface ITask {
|
|
3
|
-
/**
|
|
4
|
-
* Unique token for processing
|
|
5
|
-
*/
|
|
6
|
-
token?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Time when the task was created
|
|
9
|
-
*/
|
|
10
|
-
time: Timestamp;
|
|
11
|
-
/**
|
|
12
|
-
* When was the task completed
|
|
13
|
-
*/
|
|
14
|
-
completed?: Timestamp;
|
|
15
|
-
retries?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface IQueueTask {
|
|
18
|
-
token: string;
|
|
19
|
-
taskPath: string;
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
import { ISOString, Timestamp } from '../common';
|
|
3
|
-
export interface ITimeRange {
|
|
4
|
-
from: ISOString;
|
|
5
|
-
to: ISOString;
|
|
6
|
-
}
|
|
7
|
-
export interface ITimeRangeTimestamp {
|
|
8
|
-
from: Timestamp;
|
|
9
|
-
to: Timestamp;
|
|
10
|
-
}
|
|
11
|
-
export interface ITimeRangeMoment {
|
|
12
|
-
from: moment.Moment;
|
|
13
|
-
to: moment.Moment;
|
|
14
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export type Timestamp = any;
|
|
2
|
-
export type ISOString = string;
|
|
3
|
-
export type MessageStatus = 'queued' | 'sending' | 'sent' | 'failed' | 'delivered' | 'undelivered' | 'receiving' | 'received' | 'accepted' | 'scheduled' | 'read' | 'partially_delivered' | 'canceled';
|
|
4
|
-
export declare const ChatCompletionRequestMessageRoleEnum: {
|
|
5
|
-
readonly System: "system";
|
|
6
|
-
readonly User: "user";
|
|
7
|
-
readonly Assistant: "assistant";
|
|
8
|
-
};
|
|
9
|
-
export type ChatCompletionRequestMessageRoleEnum = typeof ChatCompletionRequestMessageRoleEnum[keyof typeof ChatCompletionRequestMessageRoleEnum];
|
|
10
|
-
export interface ChatCompletionRequestMessage {
|
|
11
|
-
/**
|
|
12
|
-
* The role of the author of this message.
|
|
13
|
-
* @type {string}
|
|
14
|
-
* @memberof ChatCompletionRequestMessage
|
|
15
|
-
*/
|
|
16
|
-
'role': ChatCompletionRequestMessageRoleEnum;
|
|
17
|
-
/**
|
|
18
|
-
* The contents of the message
|
|
19
|
-
* @type {string}
|
|
20
|
-
* @memberof ChatCompletionRequestMessage
|
|
21
|
-
*/
|
|
22
|
-
'content': string;
|
|
23
|
-
/**
|
|
24
|
-
* The name of the user in a multi-user chat
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ChatCompletionRequestMessage
|
|
27
|
-
*/
|
|
28
|
-
'name'?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare module Stripe {
|
|
31
|
-
interface Address {
|
|
32
|
-
/**
|
|
33
|
-
* City/District/Suburb/Town/Village.
|
|
34
|
-
*/
|
|
35
|
-
city: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* 2-letter country code.
|
|
38
|
-
*/
|
|
39
|
-
country: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* Address line 1 (Street address/PO Box/Company name).
|
|
42
|
-
*/
|
|
43
|
-
line1: string | null;
|
|
44
|
-
/**
|
|
45
|
-
* Address line 2 (Apartment/Suite/Unit/Building).
|
|
46
|
-
*/
|
|
47
|
-
line2: string | null;
|
|
48
|
-
/**
|
|
49
|
-
* ZIP or postal code.
|
|
50
|
-
*/
|
|
51
|
-
postal_code: string | null;
|
|
52
|
-
/**
|
|
53
|
-
* State/County/Province/Region.
|
|
54
|
-
*/
|
|
55
|
-
state: string | null;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Helper schedule to bridge algolia records with internal db
|
|
60
|
-
*/
|
|
61
|
-
export interface IAlgoliaIndexedObject {
|
|
62
|
-
/**
|
|
63
|
-
* Where this object is stored in the database
|
|
64
|
-
*/
|
|
65
|
-
parent: string;
|
|
66
|
-
/**
|
|
67
|
-
* Algolia objectID required
|
|
68
|
-
*/
|
|
69
|
-
objectID: string;
|
|
70
|
-
/**
|
|
71
|
-
* Algolia geolocation for a given object
|
|
72
|
-
*/
|
|
73
|
-
_geoloc?: {
|
|
74
|
-
lat: number;
|
|
75
|
-
lng: number;
|
|
76
|
-
};
|
|
77
|
-
}
|
package/build/schemas/common.js
DELETED