@scout9/admin 1.0.1 → 1.0.2
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/build/api.d.ts +1116 -32
- package/build/api.js +475 -12
- package/build/base.d.ts +11 -0
- package/build/base.js +14 -0
- package/build/common.d.ts +11 -0
- package/build/common.js +13 -0
- package/build/configuration.d.ts +11 -12
- package/build/configuration.js +13 -28
- package/build/index.d.ts +11 -0
- package/build/index.js +13 -0
- package/package.json +6 -2
- package/src/.openapi-generator/FILES +9 -0
- package/src/.openapi-generator/VERSION +1 -0
- package/src/api.ts +1417 -95
- package/src/base.ts +34 -17
- package/src/common.ts +73 -59
- package/src/configuration.ts +92 -115
- package/src/index.ts +16 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/src/api-openai.txt +0 -4117
- package/src/schemas/common/algolia.ts +0 -24
- package/src/schemas/common/contact-map.ts +0 -35
- package/src/schemas/common/currency.ts +0 -1
- package/src/schemas/common/index.ts +0 -6
- package/src/schemas/common/location.ts +0 -6
- package/src/schemas/common/task.ts +0 -26
- package/src/schemas/common/time.ts +0 -15
- package/src/schemas/common.ts +0 -94
- package/src/schemas/conversations/context.ts +0 -64
- package/src/schemas/conversations/conversation.ts +0 -68
- package/src/schemas/conversations/index.ts +0 -6
- package/src/schemas/conversations/message.ts +0 -78
- package/src/schemas/conversations/parsed.ts +0 -5
- package/src/schemas/conversations/scheduled-conversation.ts +0 -35
- package/src/schemas/conversations/webhook.ts +0 -10
- package/src/schemas/index.ts +0 -3
- package/src/schemas/users/businesses/agents/agent.ts +0 -107
- package/src/schemas/users/businesses/agents/auth.ts +0 -8
- package/src/schemas/users/businesses/agents/index.ts +0 -2
- package/src/schemas/users/businesses/business-location.ts +0 -15
- package/src/schemas/users/businesses/business.ts +0 -43
- package/src/schemas/users/businesses/context/context-indexed.ts +0 -11
- package/src/schemas/users/businesses/context/context-saves.ts +0 -14
- package/src/schemas/users/businesses/context/context.ts +0 -76
- package/src/schemas/users/businesses/context/index.ts +0 -2
- package/src/schemas/users/businesses/index.ts +0 -6
- package/src/schemas/users/businesses/notifications.ts +0 -12
- package/src/schemas/users/businesses/offerings/index.ts +0 -2
- package/src/schemas/users/businesses/offerings/offer-indexed.ts +0 -42
- package/src/schemas/users/businesses/offerings/offer.ts +0 -39
- package/src/schemas/users/businesses/thread.ts +0 -55
- package/src/schemas/users/customers/customer.ts +0 -46
- package/src/schemas/users/customers/index.ts +0 -1
- package/src/schemas/users/index.ts +0 -2
package/build/configuration.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
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
|
+
*/
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
16
|
exports.Configuration = void 0;
|
|
4
|
-
const packageJson = require("../package.json");
|
|
5
17
|
class Configuration {
|
|
6
18
|
/**
|
|
7
19
|
* parameter for apiKey security
|
|
@@ -9,13 +21,6 @@ class Configuration {
|
|
|
9
21
|
* @memberof Configuration
|
|
10
22
|
*/
|
|
11
23
|
apiKey;
|
|
12
|
-
/**
|
|
13
|
-
* Scout9 organization id
|
|
14
|
-
*
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof Configuration
|
|
17
|
-
*/
|
|
18
|
-
organization;
|
|
19
24
|
/**
|
|
20
25
|
* parameter for basic security
|
|
21
26
|
*
|
|
@@ -59,34 +64,14 @@ class Configuration {
|
|
|
59
64
|
* @type {new () => FormData}
|
|
60
65
|
*/
|
|
61
66
|
formDataCtor;
|
|
62
|
-
/**
|
|
63
|
-
* The version of the Scout9 API that this client library version is
|
|
64
|
-
*/
|
|
65
|
-
apiVersion;
|
|
66
67
|
constructor(param = {}) {
|
|
67
68
|
this.apiKey = param.apiKey;
|
|
68
|
-
this.organization = param.organization;
|
|
69
69
|
this.username = param.username;
|
|
70
70
|
this.password = param.password;
|
|
71
71
|
this.accessToken = param.accessToken;
|
|
72
72
|
this.basePath = param.basePath;
|
|
73
73
|
this.baseOptions = param.baseOptions;
|
|
74
74
|
this.formDataCtor = param.formDataCtor;
|
|
75
|
-
this.apiVersion = 'v' + packageJson.version.split(".")[0];
|
|
76
|
-
if (!this.baseOptions) {
|
|
77
|
-
this.baseOptions = {};
|
|
78
|
-
}
|
|
79
|
-
this.baseOptions.headers = {
|
|
80
|
-
'User-Agent': `Scout9/NodeJS/${packageJson.version}`,
|
|
81
|
-
'Authorization': `Bearer ${this.apiKey}`,
|
|
82
|
-
...this.baseOptions.headers,
|
|
83
|
-
};
|
|
84
|
-
if (this.organization) {
|
|
85
|
-
this.baseOptions.headers['Scout9-Organization'] = this.organization;
|
|
86
|
-
}
|
|
87
|
-
if (!this.formDataCtor) {
|
|
88
|
-
this.formDataCtor = require("form-data");
|
|
89
|
-
}
|
|
90
75
|
}
|
|
91
76
|
/**
|
|
92
77
|
* Check if the given MIME is a JSON MIME.
|
package/build/index.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
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
|
+
*/
|
|
1
12
|
export * from "./api";
|
|
2
13
|
export * from "./configuration";
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
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
|
+
*/
|
|
2
15
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
16
|
if (k2 === undefined) k2 = k;
|
|
4
17
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
package/package.json
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scout9/admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc --build",
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "6.* || 8.* || >=10.*"
|
|
12
|
+
},
|
|
10
13
|
"author": "Patrick Opie <opiepat@gmail.com>",
|
|
11
14
|
"contributors": [
|
|
12
15
|
"Patrick Opie <patrick@scout9.com>",
|
|
13
16
|
"Charlie M <charlie@scout9.com>",
|
|
14
17
|
"Colin Bell <colin@scout9.com>",
|
|
15
|
-
"Cody Hartman <cody@scout9.com>"
|
|
18
|
+
"Cody Hartman <cody@scout9.com>",
|
|
19
|
+
"John Dusto <john@scout9.com>"
|
|
16
20
|
],
|
|
17
21
|
"publishConfig": {
|
|
18
22
|
"access": "public"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6.6.0
|