@scout9/admin 1.0.0
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/README.md +1 -0
- package/build/api-openai.d.ts +2992 -0
- package/build/api-openai.js +1968 -0
- package/build/api.d.ts +78 -0
- package/build/api.js +90 -0
- package/build/base.d.ts +43 -0
- package/build/base.js +52 -0
- package/build/common.d.ts +54 -0
- package/build/common.js +132 -0
- package/build/configuration.d.ts +84 -0
- package/build/configuration.js +106 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +18 -0
- package/build/schemas/common/algolia.d.ts +20 -0
- package/build/schemas/common/algolia.js +2 -0
- package/build/schemas/common/contact-map.d.ts +33 -0
- package/build/schemas/common/contact-map.js +2 -0
- package/build/schemas/common/currency.d.ts +1 -0
- package/build/schemas/common/currency.js +2 -0
- package/build/schemas/common/index.d.ts +6 -0
- package/build/schemas/common/index.js +22 -0
- package/build/schemas/common/location.d.ts +5 -0
- package/build/schemas/common/location.js +2 -0
- package/build/schemas/common/task.d.ts +20 -0
- package/build/schemas/common/task.js +2 -0
- package/build/schemas/common/time.d.ts +14 -0
- package/build/schemas/common/time.js +2 -0
- package/build/schemas/common.d.ts +77 -0
- package/build/schemas/common.js +8 -0
- package/build/schemas/conversations/context.d.ts +55 -0
- package/build/schemas/conversations/context.js +2 -0
- package/build/schemas/conversations/conversation.d.ts +53 -0
- package/build/schemas/conversations/conversation.js +2 -0
- package/build/schemas/conversations/index.d.ts +6 -0
- package/build/schemas/conversations/index.js +22 -0
- package/build/schemas/conversations/message.d.ts +62 -0
- package/build/schemas/conversations/message.js +2 -0
- package/build/schemas/conversations/parsed.d.ts +7 -0
- package/build/schemas/conversations/parsed.js +2 -0
- package/build/schemas/conversations/scheduled-conversation.d.ts +31 -0
- package/build/schemas/conversations/scheduled-conversation.js +2 -0
- package/build/schemas/conversations/webhook.d.ts +8 -0
- package/build/schemas/conversations/webhook.js +2 -0
- package/build/schemas/index.d.ts +3 -0
- package/build/schemas/index.js +19 -0
- package/build/schemas/users/businesses/agents/agent.d.ts +76 -0
- package/build/schemas/users/businesses/agents/agent.js +2 -0
- package/build/schemas/users/businesses/agents/auth.d.ts +7 -0
- package/build/schemas/users/businesses/agents/auth.js +2 -0
- package/build/schemas/users/businesses/agents/index.d.ts +2 -0
- package/build/schemas/users/businesses/agents/index.js +18 -0
- package/build/schemas/users/businesses/business-location.d.ts +10 -0
- package/build/schemas/users/businesses/business-location.js +2 -0
- package/build/schemas/users/businesses/business.d.ts +32 -0
- package/build/schemas/users/businesses/business.js +2 -0
- package/build/schemas/users/businesses/context/context-indexed.d.ts +9 -0
- package/build/schemas/users/businesses/context/context-indexed.js +2 -0
- package/build/schemas/users/businesses/context/context-saves.d.ts +12 -0
- package/build/schemas/users/businesses/context/context-saves.js +2 -0
- package/build/schemas/users/businesses/context/context.d.ts +64 -0
- package/build/schemas/users/businesses/context/context.js +2 -0
- package/build/schemas/users/businesses/context/index.d.ts +2 -0
- package/build/schemas/users/businesses/context/index.js +18 -0
- package/build/schemas/users/businesses/index.d.ts +5 -0
- package/build/schemas/users/businesses/index.js +21 -0
- package/build/schemas/users/businesses/notifications.d.ts +7 -0
- package/build/schemas/users/businesses/notifications.js +2 -0
- package/build/schemas/users/businesses/offerings/index.d.ts +2 -0
- package/build/schemas/users/businesses/offerings/index.js +18 -0
- package/build/schemas/users/businesses/offerings/offer-indexed.d.ts +34 -0
- package/build/schemas/users/businesses/offerings/offer-indexed.js +2 -0
- package/build/schemas/users/businesses/offerings/offer.d.ts +29 -0
- package/build/schemas/users/businesses/offerings/offer.js +2 -0
- package/build/schemas/users/businesses/thread.d.ts +44 -0
- package/build/schemas/users/businesses/thread.js +2 -0
- package/build/schemas/users/customers/customer.d.ts +35 -0
- package/build/schemas/users/customers/customer.js +2 -0
- package/build/schemas/users/customers/index.d.ts +1 -0
- package/build/schemas/users/customers/index.js +17 -0
- package/build/schemas/users/index.d.ts +2 -0
- package/build/schemas/users/index.js +18 -0
- package/package.json +33 -0
- package/src/api-openai.txt +4117 -0
- package/src/api.ts +141 -0
- package/src/base.ts +55 -0
- package/src/common.ts +136 -0
- package/src/configuration.ts +124 -0
- package/src/index.ts +2 -0
- package/src/schemas/common/algolia.ts +24 -0
- package/src/schemas/common/contact-map.ts +35 -0
- package/src/schemas/common/currency.ts +1 -0
- package/src/schemas/common/index.ts +6 -0
- package/src/schemas/common/location.ts +6 -0
- package/src/schemas/common/task.ts +26 -0
- package/src/schemas/common/time.ts +15 -0
- package/src/schemas/common.ts +94 -0
- package/src/schemas/conversations/context.ts +64 -0
- package/src/schemas/conversations/conversation.ts +68 -0
- package/src/schemas/conversations/index.ts +6 -0
- package/src/schemas/conversations/message.ts +78 -0
- package/src/schemas/conversations/parsed.ts +5 -0
- package/src/schemas/conversations/scheduled-conversation.ts +35 -0
- package/src/schemas/conversations/webhook.ts +10 -0
- package/src/schemas/index.ts +3 -0
- package/src/schemas/users/businesses/agents/agent.ts +107 -0
- package/src/schemas/users/businesses/agents/auth.ts +8 -0
- package/src/schemas/users/businesses/agents/index.ts +2 -0
- package/src/schemas/users/businesses/business-location.ts +15 -0
- package/src/schemas/users/businesses/business.ts +43 -0
- package/src/schemas/users/businesses/context/context-indexed.ts +11 -0
- package/src/schemas/users/businesses/context/context-saves.ts +14 -0
- package/src/schemas/users/businesses/context/context.ts +76 -0
- package/src/schemas/users/businesses/context/index.ts +2 -0
- package/src/schemas/users/businesses/index.ts +6 -0
- package/src/schemas/users/businesses/notifications.ts +12 -0
- package/src/schemas/users/businesses/offerings/index.ts +2 -0
- package/src/schemas/users/businesses/offerings/offer-indexed.ts +42 -0
- package/src/schemas/users/businesses/offerings/offer.ts +39 -0
- package/src/schemas/users/businesses/thread.ts +55 -0
- package/src/schemas/users/customers/customer.ts +46 -0
- package/src/schemas/users/customers/index.ts +1 -0
- package/src/schemas/users/index.ts +2 -0
- package/tsconfig.json +16 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* scout9-businesses/{businessId}
|
|
3
|
+
*/
|
|
4
|
+
export interface IBusiness {
|
|
5
|
+
name: string;
|
|
6
|
+
logo?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
/**
|
|
9
|
+
* User id of the owner of this account
|
|
10
|
+
*/
|
|
11
|
+
$owner: string;
|
|
12
|
+
phone: string;
|
|
13
|
+
email: string;
|
|
14
|
+
/**
|
|
15
|
+
* 1 sentence what does this business do?
|
|
16
|
+
*/
|
|
17
|
+
context: string;
|
|
18
|
+
apiKey?: string;
|
|
19
|
+
website?: string;
|
|
20
|
+
webhookUrl?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Stripe customer ids for charging subscriptions
|
|
23
|
+
*/
|
|
24
|
+
stripeCustomer?: string;
|
|
25
|
+
stripeCustomerDev?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Stripe connect ids for charging customers on behalf of Scout9
|
|
28
|
+
*/
|
|
29
|
+
stripeConnect?: string;
|
|
30
|
+
stripeConnectDev?: string;
|
|
31
|
+
twilioAddressSid?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IAlgoliaIndexedObject } from '../../../common';
|
|
2
|
+
import { IContext } from './context';
|
|
3
|
+
/**
|
|
4
|
+
* scout9-businesses/{businessId}/context-indexed/{context}
|
|
5
|
+
* An auto generated context, when a context category is created it will be indexed in a collection, resolving all stripe and
|
|
6
|
+
* algolia references.
|
|
7
|
+
*/
|
|
8
|
+
export interface IContextIndexed extends IContext, IAlgoliaIndexedObject {
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Timestamp } from '../../../common';
|
|
2
|
+
/**
|
|
3
|
+
* When a context field receives uploaded bulk data (csv/excel/json)
|
|
4
|
+
* scout9-businesses/{businessId}/context/{context}/saves/{save_time}
|
|
5
|
+
*/
|
|
6
|
+
export interface IContextSaves {
|
|
7
|
+
/**
|
|
8
|
+
* Where the file was saved
|
|
9
|
+
*/
|
|
10
|
+
ref: string;
|
|
11
|
+
time: Timestamp;
|
|
12
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ThreadLanguage } from '../thread';
|
|
2
|
+
/**
|
|
3
|
+
* Used to build NLP models to detect context invocation
|
|
4
|
+
*/
|
|
5
|
+
export interface IContextDetectionParams {
|
|
6
|
+
/**
|
|
7
|
+
* Key word entities to detect in a contacts message
|
|
8
|
+
*/
|
|
9
|
+
entities: {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
utteranceId?: string;
|
|
14
|
+
option: string;
|
|
15
|
+
languages: ThreadLanguage[];
|
|
16
|
+
text: string[];
|
|
17
|
+
}[];
|
|
18
|
+
/**
|
|
19
|
+
* Documents or phrases to train the model
|
|
20
|
+
*/
|
|
21
|
+
documents: {
|
|
22
|
+
language: ThreadLanguage;
|
|
23
|
+
text: string;
|
|
24
|
+
id: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* scout9-businesses/{businessId}/context/{$id}
|
|
29
|
+
*
|
|
30
|
+
* Context field to be used for conversation context and workflows
|
|
31
|
+
*/
|
|
32
|
+
export interface IContext {
|
|
33
|
+
/**
|
|
34
|
+
* Context $id - this is used to store the context data under the given collection
|
|
35
|
+
* scout9-businesses/{businessId}/{$id}/{row}
|
|
36
|
+
*/
|
|
37
|
+
$id: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the context
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
modifiable: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Description of the context
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
/**
|
|
48
|
+
* If provided, this can be used to detect if a given message is invoking this context
|
|
49
|
+
*/
|
|
50
|
+
detection?: IContextDetectionParams;
|
|
51
|
+
/**
|
|
52
|
+
* The column that represents the id of a given context row
|
|
53
|
+
*/
|
|
54
|
+
idColumn: string;
|
|
55
|
+
/**
|
|
56
|
+
* Column fields that could exist in the context
|
|
57
|
+
*/
|
|
58
|
+
columns: string[];
|
|
59
|
+
/**
|
|
60
|
+
* If provided this will enforce that the given columns are required
|
|
61
|
+
* NOTE: idColumn by default is required
|
|
62
|
+
*/
|
|
63
|
+
requiredColumns?: string[];
|
|
64
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./context"), exports);
|
|
18
|
+
__exportStar(require("./context-indexed"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./business"), exports);
|
|
18
|
+
__exportStar(require("./business-location"), exports);
|
|
19
|
+
__exportStar(require("./agents"), exports);
|
|
20
|
+
__exportStar(require("./thread"), exports);
|
|
21
|
+
__exportStar(require("./notifications"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./offer"), exports);
|
|
18
|
+
__exportStar(require("./offer-indexed"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* scout9-businesses/{businessId}/offers-indexed/{offerId}
|
|
3
|
+
* An auto generated offer, when an offer is created it will be indexed in a collection, resolving all stripe and
|
|
4
|
+
* algolia references.
|
|
5
|
+
*/
|
|
6
|
+
import { IOffer } from './offer';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated - use Context
|
|
9
|
+
*/
|
|
10
|
+
export interface IOfferIndexed extends IOffer {
|
|
11
|
+
/**
|
|
12
|
+
* scout9-businesses/{businessId}/offers/{parent}
|
|
13
|
+
*/
|
|
14
|
+
parent: string;
|
|
15
|
+
/**
|
|
16
|
+
* Algolia objectID
|
|
17
|
+
*/
|
|
18
|
+
objectID: string;
|
|
19
|
+
/**
|
|
20
|
+
* Stripe product ID
|
|
21
|
+
*/
|
|
22
|
+
stripe?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Stripe product ID for dev
|
|
25
|
+
*/
|
|
26
|
+
stripeDev?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Algolia geolocation for the offer, offer is limited to this location at some distance
|
|
29
|
+
*/
|
|
30
|
+
_geoloc?: {
|
|
31
|
+
lat: number;
|
|
32
|
+
lng: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Currency } from '../../../common/currency';
|
|
2
|
+
/**
|
|
3
|
+
* scout9-businesses/{businessId}/offers/{offerId}
|
|
4
|
+
*
|
|
5
|
+
* What do you offer to your customers? How can your agents help them?
|
|
6
|
+
* @deprecated - use Context
|
|
7
|
+
*/
|
|
8
|
+
export interface IOffer {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
/**
|
|
12
|
+
* Tags for the offer to be captured by the AI
|
|
13
|
+
*/
|
|
14
|
+
tags: string[];
|
|
15
|
+
/**
|
|
16
|
+
* The price of the offer is either a fixed price or an estimated price range
|
|
17
|
+
*/
|
|
18
|
+
price: number | [number, number];
|
|
19
|
+
currency: Currency;
|
|
20
|
+
/**
|
|
21
|
+
* Media urls for the offer
|
|
22
|
+
*/
|
|
23
|
+
media?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* scout9-businesses/{businessId}/locations/{locationId}
|
|
26
|
+
* If provided, the offer is only limited to these locations.
|
|
27
|
+
*/
|
|
28
|
+
locations?: string[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IConversationContextField } from '../../conversations';
|
|
2
|
+
import { IContextDetectionParams } from './context';
|
|
3
|
+
/**
|
|
4
|
+
* Languages we support
|
|
5
|
+
*/
|
|
6
|
+
export type ThreadLanguage = 'en' | 'es';
|
|
7
|
+
/**
|
|
8
|
+
* Used to initiate conversations
|
|
9
|
+
* scout9-businesses/{businessId}/threads/{threadId}
|
|
10
|
+
*/
|
|
11
|
+
export interface IThread {
|
|
12
|
+
/**
|
|
13
|
+
* Name of the thread
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Metadata to be used to detect when this conversation should be initiated
|
|
18
|
+
*/
|
|
19
|
+
initiators: IContextDetectionParams;
|
|
20
|
+
/**
|
|
21
|
+
* Fields to be loaded to a conversation
|
|
22
|
+
*/
|
|
23
|
+
fields: IConversationContextField[];
|
|
24
|
+
/**
|
|
25
|
+
* About this conversation - used as initial context
|
|
26
|
+
*/
|
|
27
|
+
context: string;
|
|
28
|
+
/**
|
|
29
|
+
* Public webhook when thread is created
|
|
30
|
+
*/
|
|
31
|
+
onCreated?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Public webhook when thread is updated
|
|
34
|
+
*/
|
|
35
|
+
onUpdated?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Public webhook when thread is deleted
|
|
38
|
+
*/
|
|
39
|
+
onDeleted?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Public webhook when thread has an error
|
|
42
|
+
*/
|
|
43
|
+
onError?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* If user is blocked, we can't send messages to them, this could happen if the customer has unsubscribed from the business
|
|
3
|
+
*/
|
|
4
|
+
import { Stripe, Timestamp } from '../../common';
|
|
5
|
+
export interface IBlockInfo {
|
|
6
|
+
message: string;
|
|
7
|
+
time: Timestamp;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* scout9-businesses/{$business}/customers/{customerId}
|
|
11
|
+
*
|
|
12
|
+
* Any information that is specific to a customer (not a businesses), the customerId can be used to get the auth details
|
|
13
|
+
* (email/phone)
|
|
14
|
+
*/
|
|
15
|
+
export interface ICustomer extends Partial<Stripe.Address> {
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string;
|
|
18
|
+
img?: string;
|
|
19
|
+
/**
|
|
20
|
+
* If this is a temp user, delete them after x days
|
|
21
|
+
*/
|
|
22
|
+
temp?: boolean;
|
|
23
|
+
neighborhood?: string;
|
|
24
|
+
neighborhoodName?: string;
|
|
25
|
+
address?: string;
|
|
26
|
+
addressStr?: string;
|
|
27
|
+
blocked?: IBlockInfo;
|
|
28
|
+
phone?: string;
|
|
29
|
+
phoneBlocked?: IBlockInfo;
|
|
30
|
+
email?: string;
|
|
31
|
+
emailBlocked?: IBlockInfo;
|
|
32
|
+
joined?: Timestamp;
|
|
33
|
+
stripe?: string;
|
|
34
|
+
stripeDev?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './customer';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./customer"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./customers"), exports);
|
|
18
|
+
__exportStar(require("./businesses"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scout9/admin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc --build",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "Patrick Opie <opiepat@gmail.com>",
|
|
11
|
+
"contributors": [
|
|
12
|
+
"Patrick Opie <patrick@scout9.com>",
|
|
13
|
+
"Charlie M <charlie@scout9.com>",
|
|
14
|
+
"Colin Bell <colin@scout9.com>",
|
|
15
|
+
"Cody Hartman <cody@scout9.com>"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"tags": [
|
|
21
|
+
"scout9",
|
|
22
|
+
"sms",
|
|
23
|
+
"email",
|
|
24
|
+
"api"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [],
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"axios": "^1.4.0",
|
|
30
|
+
"form-data": "^4.0.0",
|
|
31
|
+
"moment": "^2.29.4"
|
|
32
|
+
}
|
|
33
|
+
}
|