@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.
Files changed (85) hide show
  1. package/package.json +7 -2
  2. package/src/api.ts +2580 -262
  3. package/tsconfig.tsbuildinfo +1 -1
  4. package/build/api-openai.d.ts +0 -2992
  5. package/build/api-openai.js +0 -1968
  6. package/build/api.d.ts +0 -1162
  7. package/build/api.js +0 -553
  8. package/build/base.d.ts +0 -54
  9. package/build/base.js +0 -66
  10. package/build/common.d.ts +0 -65
  11. package/build/common.js +0 -145
  12. package/build/configuration.d.ts +0 -83
  13. package/build/configuration.js +0 -91
  14. package/build/index.d.ts +0 -13
  15. package/build/index.js +0 -31
  16. package/build/schemas/common/algolia.d.ts +0 -20
  17. package/build/schemas/common/algolia.js +0 -2
  18. package/build/schemas/common/contact-map.d.ts +0 -33
  19. package/build/schemas/common/contact-map.js +0 -2
  20. package/build/schemas/common/currency.d.ts +0 -1
  21. package/build/schemas/common/currency.js +0 -2
  22. package/build/schemas/common/index.d.ts +0 -6
  23. package/build/schemas/common/index.js +0 -22
  24. package/build/schemas/common/location.d.ts +0 -5
  25. package/build/schemas/common/location.js +0 -2
  26. package/build/schemas/common/task.d.ts +0 -20
  27. package/build/schemas/common/task.js +0 -2
  28. package/build/schemas/common/time.d.ts +0 -14
  29. package/build/schemas/common/time.js +0 -2
  30. package/build/schemas/common.d.ts +0 -77
  31. package/build/schemas/common.js +0 -8
  32. package/build/schemas/conversations/context.d.ts +0 -55
  33. package/build/schemas/conversations/context.js +0 -2
  34. package/build/schemas/conversations/conversation.d.ts +0 -53
  35. package/build/schemas/conversations/conversation.js +0 -2
  36. package/build/schemas/conversations/index.d.ts +0 -6
  37. package/build/schemas/conversations/index.js +0 -22
  38. package/build/schemas/conversations/message.d.ts +0 -62
  39. package/build/schemas/conversations/message.js +0 -2
  40. package/build/schemas/conversations/parsed.d.ts +0 -7
  41. package/build/schemas/conversations/parsed.js +0 -2
  42. package/build/schemas/conversations/scheduled-conversation.d.ts +0 -31
  43. package/build/schemas/conversations/scheduled-conversation.js +0 -2
  44. package/build/schemas/conversations/webhook.d.ts +0 -8
  45. package/build/schemas/conversations/webhook.js +0 -2
  46. package/build/schemas/index.d.ts +0 -3
  47. package/build/schemas/index.js +0 -19
  48. package/build/schemas/users/businesses/agents/agent.d.ts +0 -76
  49. package/build/schemas/users/businesses/agents/agent.js +0 -2
  50. package/build/schemas/users/businesses/agents/auth.d.ts +0 -7
  51. package/build/schemas/users/businesses/agents/auth.js +0 -2
  52. package/build/schemas/users/businesses/agents/index.d.ts +0 -2
  53. package/build/schemas/users/businesses/agents/index.js +0 -18
  54. package/build/schemas/users/businesses/business-location.d.ts +0 -10
  55. package/build/schemas/users/businesses/business-location.js +0 -2
  56. package/build/schemas/users/businesses/business.d.ts +0 -32
  57. package/build/schemas/users/businesses/business.js +0 -2
  58. package/build/schemas/users/businesses/context/context-indexed.d.ts +0 -9
  59. package/build/schemas/users/businesses/context/context-indexed.js +0 -2
  60. package/build/schemas/users/businesses/context/context-saves.d.ts +0 -12
  61. package/build/schemas/users/businesses/context/context-saves.js +0 -2
  62. package/build/schemas/users/businesses/context/context.d.ts +0 -64
  63. package/build/schemas/users/businesses/context/context.js +0 -2
  64. package/build/schemas/users/businesses/context/index.d.ts +0 -2
  65. package/build/schemas/users/businesses/context/index.js +0 -18
  66. package/build/schemas/users/businesses/index.d.ts +0 -5
  67. package/build/schemas/users/businesses/index.js +0 -21
  68. package/build/schemas/users/businesses/notifications.d.ts +0 -7
  69. package/build/schemas/users/businesses/notifications.js +0 -2
  70. package/build/schemas/users/businesses/offerings/index.d.ts +0 -2
  71. package/build/schemas/users/businesses/offerings/index.js +0 -18
  72. package/build/schemas/users/businesses/offerings/offer-indexed.d.ts +0 -34
  73. package/build/schemas/users/businesses/offerings/offer-indexed.js +0 -2
  74. package/build/schemas/users/businesses/offerings/offer.d.ts +0 -29
  75. package/build/schemas/users/businesses/offerings/offer.js +0 -2
  76. package/build/schemas/users/businesses/thread.d.ts +0 -44
  77. package/build/schemas/users/businesses/thread.js +0 -2
  78. package/build/schemas/users/customers/customer.d.ts +0 -35
  79. package/build/schemas/users/customers/customer.js +0 -2
  80. package/build/schemas/users/customers/index.d.ts +0 -1
  81. package/build/schemas/users/customers/index.js +0 -17
  82. package/build/schemas/users/index.d.ts +0 -2
  83. package/build/schemas/users/index.js +0 -18
  84. package/src/.openapi-generator/FILES +0 -9
  85. package/src/.openapi-generator/VERSION +0 -1
@@ -1,18 +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("./offer"), exports);
18
- __exportStar(require("./offer-indexed"), exports);
@@ -1,34 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,29 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,44 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './customer';
@@ -1,17 +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("./customer"), exports);
@@ -1,2 +0,0 @@
1
- export * from './customers';
2
- export * from './businesses';
@@ -1,18 +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("./customers"), exports);
18
- __exportStar(require("./businesses"), exports);
@@ -1,9 +0,0 @@
1
- .gitignore
2
- .npmignore
3
- .openapi-generator-ignore
4
- api.ts
5
- base.ts
6
- common.ts
7
- configuration.ts
8
- git_push.sh
9
- index.ts
@@ -1 +0,0 @@
1
- 6.6.0