rcs-js 1.0.13 → 1.0.15

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 (161) hide show
  1. package/Client.js +1 -1
  2. package/README.md +10 -0
  3. package/api/resources/company/client/Client.d.ts +8 -0
  4. package/api/resources/company/client/Client.js +11 -3
  5. package/api/resources/company/client/requests/CompanyRegisterRequest.d.ts +9 -0
  6. package/api/resources/company/client/requests/CompanyUpdateRequest.d.ts +1 -0
  7. package/api/resources/send/client/Client.js +3 -3
  8. package/api/types/Action.d.ts +1 -1
  9. package/api/types/ActionType.d.ts +3 -3
  10. package/api/types/ActionType.js +1 -1
  11. package/api/types/Company.d.ts +12 -0
  12. package/api/types/CompanyCategory.d.ts +20 -0
  13. package/api/types/CompanyCategory.js +22 -0
  14. package/api/types/CompanyDetails.d.ts +3 -0
  15. package/api/types/InboundActionMessage.d.ts +13 -0
  16. package/api/types/InboundActionMessage.js +5 -0
  17. package/api/types/InboundLocationMessage.d.ts +11 -0
  18. package/api/types/InboundLocationMessage.js +5 -0
  19. package/api/types/InboundLocationMessageCoordinates.d.ts +7 -0
  20. package/api/types/InboundLocationMessageCoordinates.js +5 -0
  21. package/api/types/InboundMediaMessage.d.ts +12 -0
  22. package/api/types/InboundMediaMessage.js +5 -0
  23. package/api/types/InboundMessage.d.ts +10 -0
  24. package/api/types/InboundMessage.js +5 -0
  25. package/api/types/InboundMessageMessageType.d.ts +10 -0
  26. package/api/types/InboundMessageMessageType.js +12 -0
  27. package/api/types/InboundMessageMetadata.d.ts +8 -0
  28. package/api/types/InboundMessageMetadata.js +5 -0
  29. package/api/types/InboundTextMessage.d.ts +11 -0
  30. package/api/types/InboundTextMessage.js +5 -0
  31. package/api/types/MediaPayload.d.ts +7 -0
  32. package/api/types/MediaPayload.js +5 -0
  33. package/api/types/MessageMetadata.d.ts +6 -0
  34. package/api/types/MessageMetadata.js +5 -0
  35. package/api/types/Messaging.d.ts +15 -0
  36. package/api/types/Messaging.js +5 -0
  37. package/api/types/SenderMetadata.d.ts +8 -0
  38. package/api/types/SenderMetadata.js +5 -0
  39. package/api/types/index.d.ts +13 -0
  40. package/api/types/index.js +13 -0
  41. package/dist/Client.js +1 -1
  42. package/dist/api/resources/company/client/Client.d.ts +8 -0
  43. package/dist/api/resources/company/client/Client.js +11 -3
  44. package/dist/api/resources/company/client/requests/CompanyRegisterRequest.d.ts +9 -0
  45. package/dist/api/resources/company/client/requests/CompanyUpdateRequest.d.ts +1 -0
  46. package/dist/api/resources/send/client/Client.js +3 -3
  47. package/dist/api/types/Action.d.ts +1 -1
  48. package/dist/api/types/ActionType.d.ts +3 -3
  49. package/dist/api/types/ActionType.js +1 -1
  50. package/dist/api/types/Company.d.ts +12 -0
  51. package/dist/api/types/CompanyCategory.d.ts +20 -0
  52. package/dist/api/types/CompanyCategory.js +22 -0
  53. package/dist/api/types/CompanyDetails.d.ts +3 -0
  54. package/dist/api/types/InboundActionMessage.d.ts +13 -0
  55. package/dist/api/types/InboundActionMessage.js +5 -0
  56. package/dist/api/types/InboundLocationMessage.d.ts +11 -0
  57. package/dist/api/types/InboundLocationMessage.js +5 -0
  58. package/dist/api/types/InboundLocationMessageCoordinates.d.ts +7 -0
  59. package/dist/api/types/InboundLocationMessageCoordinates.js +5 -0
  60. package/dist/api/types/InboundMediaMessage.d.ts +12 -0
  61. package/dist/api/types/InboundMediaMessage.js +5 -0
  62. package/dist/api/types/InboundMessage.d.ts +10 -0
  63. package/dist/api/types/InboundMessage.js +5 -0
  64. package/dist/api/types/InboundMessageMessageType.d.ts +10 -0
  65. package/dist/api/types/InboundMessageMessageType.js +12 -0
  66. package/dist/api/types/InboundMessageMetadata.d.ts +8 -0
  67. package/dist/api/types/InboundMessageMetadata.js +5 -0
  68. package/dist/api/types/InboundTextMessage.d.ts +11 -0
  69. package/dist/api/types/InboundTextMessage.js +5 -0
  70. package/dist/api/types/MediaPayload.d.ts +7 -0
  71. package/dist/api/types/MediaPayload.js +5 -0
  72. package/dist/api/types/MessageMetadata.d.ts +6 -0
  73. package/dist/api/types/MessageMetadata.js +5 -0
  74. package/dist/api/types/Messaging.d.ts +15 -0
  75. package/dist/api/types/Messaging.js +5 -0
  76. package/dist/api/types/SenderMetadata.d.ts +8 -0
  77. package/dist/api/types/SenderMetadata.js +5 -0
  78. package/dist/api/types/index.d.ts +13 -0
  79. package/dist/api/types/index.js +13 -0
  80. package/dist/serialization/resources/company/client/requests/CompanyRegisterRequest.d.ts +2 -0
  81. package/dist/serialization/resources/company/client/requests/CompanyRegisterRequest.js +2 -0
  82. package/dist/serialization/resources/company/client/requests/CompanyUpdateRequest.d.ts +2 -0
  83. package/dist/serialization/resources/company/client/requests/CompanyUpdateRequest.js +2 -0
  84. package/dist/serialization/types/ActionType.d.ts +1 -1
  85. package/dist/serialization/types/ActionType.js +1 -1
  86. package/dist/serialization/types/Company.d.ts +7 -0
  87. package/dist/serialization/types/Company.js +7 -0
  88. package/dist/serialization/types/CompanyCategory.d.ts +10 -0
  89. package/dist/serialization/types/CompanyCategory.js +46 -0
  90. package/dist/serialization/types/CompanyDetails.d.ts +2 -0
  91. package/dist/serialization/types/CompanyDetails.js +2 -0
  92. package/dist/serialization/types/InboundActionMessage.d.ts +19 -0
  93. package/dist/serialization/types/InboundActionMessage.js +40 -0
  94. package/dist/serialization/types/InboundLocationMessage.d.ts +18 -0
  95. package/dist/serialization/types/InboundLocationMessage.js +39 -0
  96. package/dist/serialization/types/InboundLocationMessageCoordinates.d.ts +13 -0
  97. package/dist/serialization/types/InboundLocationMessageCoordinates.js +34 -0
  98. package/dist/serialization/types/InboundMediaMessage.d.ts +19 -0
  99. package/dist/serialization/types/InboundMediaMessage.js +40 -0
  100. package/dist/serialization/types/InboundMessage.d.ts +17 -0
  101. package/dist/serialization/types/InboundMessage.js +38 -0
  102. package/dist/serialization/types/InboundMessageMessageType.d.ts +10 -0
  103. package/dist/serialization/types/InboundMessageMessageType.js +31 -0
  104. package/dist/serialization/types/InboundMessageMetadata.d.ts +15 -0
  105. package/dist/serialization/types/InboundMessageMetadata.js +36 -0
  106. package/dist/serialization/types/InboundTextMessage.d.ts +17 -0
  107. package/dist/serialization/types/InboundTextMessage.js +38 -0
  108. package/dist/serialization/types/MediaPayload.d.ts +13 -0
  109. package/dist/serialization/types/MediaPayload.js +34 -0
  110. package/dist/serialization/types/MessageMetadata.d.ts +12 -0
  111. package/dist/serialization/types/MessageMetadata.js +33 -0
  112. package/dist/serialization/types/Messaging.d.ts +16 -0
  113. package/dist/serialization/types/Messaging.js +37 -0
  114. package/dist/serialization/types/SenderMetadata.d.ts +14 -0
  115. package/dist/serialization/types/SenderMetadata.js +35 -0
  116. package/dist/serialization/types/index.d.ts +13 -0
  117. package/dist/serialization/types/index.js +13 -0
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/package.json +1 -1
  121. package/reference.md +10 -0
  122. package/serialization/resources/company/client/requests/CompanyRegisterRequest.d.ts +2 -0
  123. package/serialization/resources/company/client/requests/CompanyRegisterRequest.js +2 -0
  124. package/serialization/resources/company/client/requests/CompanyUpdateRequest.d.ts +2 -0
  125. package/serialization/resources/company/client/requests/CompanyUpdateRequest.js +2 -0
  126. package/serialization/types/ActionType.d.ts +1 -1
  127. package/serialization/types/ActionType.js +1 -1
  128. package/serialization/types/Company.d.ts +7 -0
  129. package/serialization/types/Company.js +7 -0
  130. package/serialization/types/CompanyCategory.d.ts +10 -0
  131. package/serialization/types/CompanyCategory.js +46 -0
  132. package/serialization/types/CompanyDetails.d.ts +2 -0
  133. package/serialization/types/CompanyDetails.js +2 -0
  134. package/serialization/types/InboundActionMessage.d.ts +19 -0
  135. package/serialization/types/InboundActionMessage.js +40 -0
  136. package/serialization/types/InboundLocationMessage.d.ts +18 -0
  137. package/serialization/types/InboundLocationMessage.js +39 -0
  138. package/serialization/types/InboundLocationMessageCoordinates.d.ts +13 -0
  139. package/serialization/types/InboundLocationMessageCoordinates.js +34 -0
  140. package/serialization/types/InboundMediaMessage.d.ts +19 -0
  141. package/serialization/types/InboundMediaMessage.js +40 -0
  142. package/serialization/types/InboundMessage.d.ts +17 -0
  143. package/serialization/types/InboundMessage.js +38 -0
  144. package/serialization/types/InboundMessageMessageType.d.ts +10 -0
  145. package/serialization/types/InboundMessageMessageType.js +31 -0
  146. package/serialization/types/InboundMessageMetadata.d.ts +15 -0
  147. package/serialization/types/InboundMessageMetadata.js +36 -0
  148. package/serialization/types/InboundTextMessage.d.ts +17 -0
  149. package/serialization/types/InboundTextMessage.js +38 -0
  150. package/serialization/types/MediaPayload.d.ts +13 -0
  151. package/serialization/types/MediaPayload.js +34 -0
  152. package/serialization/types/MessageMetadata.d.ts +12 -0
  153. package/serialization/types/MessageMetadata.js +33 -0
  154. package/serialization/types/Messaging.d.ts +16 -0
  155. package/serialization/types/Messaging.js +37 -0
  156. package/serialization/types/SenderMetadata.d.ts +14 -0
  157. package/serialization/types/SenderMetadata.js +35 -0
  158. package/serialization/types/index.d.ts +13 -0
  159. package/serialization/types/index.js +13 -0
  160. package/version.d.ts +1 -1
  161. package/version.js +1 -1
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MessageMetadata = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.MessageMetadata = core.serialization.object({
32
+ timestamp: core.serialization.date(),
33
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Pinnacle from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const Messaging: core.serialization.ObjectSchema<serializers.Messaging.Raw, Pinnacle.Messaging>;
8
+ export declare namespace Messaging {
9
+ interface Raw {
10
+ optIn: string;
11
+ optOut: string;
12
+ optOutKeywords: string[];
13
+ agentUseCase: string;
14
+ expectedAgentResponses: string;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Messaging = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Messaging = core.serialization.object({
32
+ optIn: core.serialization.string(),
33
+ optOut: core.serialization.string(),
34
+ optOutKeywords: core.serialization.list(core.serialization.string()),
35
+ agentUseCase: core.serialization.string(),
36
+ expectedAgentResponses: core.serialization.string(),
37
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Pinnacle from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const SenderMetadata: core.serialization.ObjectSchema<serializers.SenderMetadata.Raw, Pinnacle.SenderMetadata>;
8
+ export declare namespace SenderMetadata {
9
+ interface Raw {
10
+ city?: string | null;
11
+ state?: string | null;
12
+ country?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SenderMetadata = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SenderMetadata = core.serialization.object({
32
+ city: core.serialization.string().optional(),
33
+ state: core.serialization.string().optional(),
34
+ country: core.serialization.string().optional(),
35
+ });
@@ -8,9 +8,11 @@ export * from "./CompanyAdditionalWebsitesItem";
8
8
  export * from "./CompanyAdditionalEmailsItem";
9
9
  export * from "./CompanyAdditionalPhoneNumbersItem";
10
10
  export * from "./Company";
11
+ export * from "./CompanyCategory";
11
12
  export * from "./CompanyDetails";
12
13
  export * from "./CompanyContact";
13
14
  export * from "./PointOfContact";
15
+ export * from "./Messaging";
14
16
  export * from "./AdditionalWebsite";
15
17
  export * from "./AdditionalPhoneNumber";
16
18
  export * from "./AdditionalEmail";
@@ -19,3 +21,14 @@ export * from "./Card";
19
21
  export * from "./ActionType";
20
22
  export * from "./ActionLatLong";
21
23
  export * from "./Action";
24
+ export * from "./InboundMessageMessageType";
25
+ export * from "./InboundMessageMetadata";
26
+ export * from "./InboundMessage";
27
+ export * from "./SenderMetadata";
28
+ export * from "./MessageMetadata";
29
+ export * from "./InboundTextMessage";
30
+ export * from "./MediaPayload";
31
+ export * from "./InboundMediaMessage";
32
+ export * from "./InboundActionMessage";
33
+ export * from "./InboundLocationMessageCoordinates";
34
+ export * from "./InboundLocationMessage";
@@ -24,9 +24,11 @@ __exportStar(require("./CompanyAdditionalWebsitesItem"), exports);
24
24
  __exportStar(require("./CompanyAdditionalEmailsItem"), exports);
25
25
  __exportStar(require("./CompanyAdditionalPhoneNumbersItem"), exports);
26
26
  __exportStar(require("./Company"), exports);
27
+ __exportStar(require("./CompanyCategory"), exports);
27
28
  __exportStar(require("./CompanyDetails"), exports);
28
29
  __exportStar(require("./CompanyContact"), exports);
29
30
  __exportStar(require("./PointOfContact"), exports);
31
+ __exportStar(require("./Messaging"), exports);
30
32
  __exportStar(require("./AdditionalWebsite"), exports);
31
33
  __exportStar(require("./AdditionalPhoneNumber"), exports);
32
34
  __exportStar(require("./AdditionalEmail"), exports);
@@ -35,3 +37,14 @@ __exportStar(require("./Card"), exports);
35
37
  __exportStar(require("./ActionType"), exports);
36
38
  __exportStar(require("./ActionLatLong"), exports);
37
39
  __exportStar(require("./Action"), exports);
40
+ __exportStar(require("./InboundMessageMessageType"), exports);
41
+ __exportStar(require("./InboundMessageMetadata"), exports);
42
+ __exportStar(require("./InboundMessage"), exports);
43
+ __exportStar(require("./SenderMetadata"), exports);
44
+ __exportStar(require("./MessageMetadata"), exports);
45
+ __exportStar(require("./InboundTextMessage"), exports);
46
+ __exportStar(require("./MediaPayload"), exports);
47
+ __exportStar(require("./InboundMediaMessage"), exports);
48
+ __exportStar(require("./InboundActionMessage"), exports);
49
+ __exportStar(require("./InboundLocationMessageCoordinates"), exports);
50
+ __exportStar(require("./InboundLocationMessage"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.13";
1
+ export declare const SDK_VERSION = "1.0.15";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.13";
4
+ exports.SDK_VERSION = "1.0.15";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rcs-js",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "private": false,
5
5
  "repository": "https://github.com/pinnacle-dev/rcs-js",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -161,6 +161,7 @@ Register a company for RCS with the Pinnacle platform
161
161
  await client.company.register({
162
162
  company: {
163
163
  name: "name",
164
+ category: "Entertainment",
164
165
  address: "address",
165
166
  ein: "ein",
166
167
  description: "description",
@@ -178,6 +179,15 @@ await client.company.register({
178
179
  privacyPolicyUrl: "privacyPolicyUrl",
179
180
  tosUrl: "tosUrl",
180
181
  },
182
+ messaging: {
183
+ optIn: "By opting in, you agree to receive messages from Pinnacle, including updates and promotions. Reply \u201CSTOP\u201D to unsubscribe. Standard message and data rates may apply.",
184
+ optOut: "Reply with keywords like STOP or UNSUBSCRIBE to opt-out. A confirmation message will be sent, and no further messages will be received unless you re-subscribe.",
185
+ optOutKeywords: ["STOP", "UNSUBSCRIBE"],
186
+ agentUseCase:
187
+ "Pinnacle\u2019s agent assists with product updates, promotions, order tracking, and support. It answers FAQs, provides order updates, and helps with opt-in/out processes. Escalates to live support when needed.",
188
+ expectedAgentResponses:
189
+ "General Inquiry: \u201CHow can I assist you today?\u201D\nOrder Status: \u201CProvide your order number.\u201D\nOpt-In: \u201CYou\u2019re now subscribed!\u201D\nOpt-Out: \u201CYou have unsubscribed.\u201D\nEscalation: \u201CConnecting to a live agent.\u201D \n",
190
+ },
181
191
  pointOfContact: {
182
192
  pocName: "pocName",
183
193
  pocTitle: "pocTitle",
@@ -6,6 +6,7 @@ import * as Pinnacle from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { CompanyDetails } from "../../../../types/CompanyDetails";
8
8
  import { CompanyContact } from "../../../../types/CompanyContact";
9
+ import { Messaging } from "../../../../types/Messaging";
9
10
  import { PointOfContact } from "../../../../types/PointOfContact";
10
11
  import { Optionals } from "../../../../types/Optionals";
11
12
  export declare const CompanyRegisterRequest: core.serialization.Schema<serializers.CompanyRegisterRequest.Raw, Pinnacle.CompanyRegisterRequest>;
@@ -13,6 +14,7 @@ export declare namespace CompanyRegisterRequest {
13
14
  interface Raw {
14
15
  company: CompanyDetails.Raw;
15
16
  companyContact: CompanyContact.Raw;
17
+ messaging: Messaging.Raw;
16
18
  pointOfContact: PointOfContact.Raw;
17
19
  optionals?: Optionals.Raw | null;
18
20
  }
@@ -30,11 +30,13 @@ exports.CompanyRegisterRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const CompanyDetails_1 = require("../../../../types/CompanyDetails");
32
32
  const CompanyContact_1 = require("../../../../types/CompanyContact");
33
+ const Messaging_1 = require("../../../../types/Messaging");
33
34
  const PointOfContact_1 = require("../../../../types/PointOfContact");
34
35
  const Optionals_1 = require("../../../../types/Optionals");
35
36
  exports.CompanyRegisterRequest = core.serialization.object({
36
37
  company: CompanyDetails_1.CompanyDetails,
37
38
  companyContact: CompanyContact_1.CompanyContact,
39
+ messaging: Messaging_1.Messaging,
38
40
  pointOfContact: PointOfContact_1.PointOfContact,
39
41
  optionals: Optionals_1.Optionals.optional(),
40
42
  });
@@ -6,6 +6,7 @@ import * as Pinnacle from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { Company } from "../../../../types/Company";
8
8
  import { CompanyContact } from "../../../../types/CompanyContact";
9
+ import { Messaging } from "../../../../types/Messaging";
9
10
  import { PointOfContact } from "../../../../types/PointOfContact";
10
11
  import { Optionals } from "../../../../types/Optionals";
11
12
  export declare const CompanyUpdateRequest: core.serialization.Schema<serializers.CompanyUpdateRequest.Raw, Pinnacle.CompanyUpdateRequest>;
@@ -14,6 +15,7 @@ export declare namespace CompanyUpdateRequest {
14
15
  companyId: string;
15
16
  company?: Company.Raw | null;
16
17
  companyContact?: CompanyContact.Raw | null;
18
+ messaging?: Messaging.Raw | null;
17
19
  pointOfContact?: PointOfContact.Raw | null;
18
20
  optionals?: Optionals.Raw | null;
19
21
  }
@@ -30,12 +30,14 @@ exports.CompanyUpdateRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const Company_1 = require("../../../../types/Company");
32
32
  const CompanyContact_1 = require("../../../../types/CompanyContact");
33
+ const Messaging_1 = require("../../../../types/Messaging");
33
34
  const PointOfContact_1 = require("../../../../types/PointOfContact");
34
35
  const Optionals_1 = require("../../../../types/Optionals");
35
36
  exports.CompanyUpdateRequest = core.serialization.object({
36
37
  companyId: core.serialization.string(),
37
38
  company: Company_1.Company.optional(),
38
39
  companyContact: CompanyContact_1.CompanyContact.optional(),
40
+ messaging: Messaging_1.Messaging.optional(),
39
41
  pointOfContact: PointOfContact_1.PointOfContact.optional(),
40
42
  optionals: Optionals_1.Optionals.optional(),
41
43
  });
@@ -6,5 +6,5 @@ import * as Pinnacle from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ActionType: core.serialization.Schema<serializers.ActionType.Raw, Pinnacle.ActionType>;
8
8
  export declare namespace ActionType {
9
- type Raw = "openUrl" | "call" | "trigger" | "requestLocation" | "scheduleEvent" | "sendLocation";
9
+ type Raw = "openUrl" | "call" | "trigger" | "requestUserLocation" | "scheduleEvent" | "sendLocation";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ActionType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ActionType = core.serialization.enum_(["openUrl", "call", "trigger", "requestLocation", "scheduleEvent", "sendLocation"]);
31
+ exports.ActionType = core.serialization.enum_(["openUrl", "call", "trigger", "requestUserLocation", "scheduleEvent", "sendLocation"]);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Pinnacle from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { CompanyCategory } from "./CompanyCategory";
7
8
  import { CompanyAdditionalWebsitesItem } from "./CompanyAdditionalWebsitesItem";
8
9
  import { CompanyAdditionalEmailsItem } from "./CompanyAdditionalEmailsItem";
9
10
  import { CompanyAdditionalPhoneNumbersItem } from "./CompanyAdditionalPhoneNumbersItem";
@@ -13,6 +14,7 @@ export declare namespace Company {
13
14
  id?: number | null;
14
15
  createdAt?: string | null;
15
16
  name?: string | null;
17
+ category?: CompanyCategory.Raw | null;
16
18
  address?: string | null;
17
19
  ein?: string | null;
18
20
  description?: string | null;
@@ -30,6 +32,11 @@ export declare namespace Company {
30
32
  pocName?: string | null;
31
33
  pocTitle?: string | null;
32
34
  pocEmail?: string | null;
35
+ optIn?: string | null;
36
+ optOut?: string | null;
37
+ optOutKeywords?: string[] | null;
38
+ agentUseCase?: string | null;
39
+ expectedAgentResponses?: string | null;
33
40
  testNumbers?: string[] | null;
34
41
  status?: string | null;
35
42
  additionalWebsites?: CompanyAdditionalWebsitesItem.Raw[] | null;
@@ -28,6 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Company = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const CompanyCategory_1 = require("./CompanyCategory");
31
32
  const CompanyAdditionalWebsitesItem_1 = require("./CompanyAdditionalWebsitesItem");
32
33
  const CompanyAdditionalEmailsItem_1 = require("./CompanyAdditionalEmailsItem");
33
34
  const CompanyAdditionalPhoneNumbersItem_1 = require("./CompanyAdditionalPhoneNumbersItem");
@@ -35,6 +36,7 @@ exports.Company = core.serialization.object({
35
36
  id: core.serialization.number().optional(),
36
37
  createdAt: core.serialization.date().optional(),
37
38
  name: core.serialization.string().optional(),
39
+ category: CompanyCategory_1.CompanyCategory.optional(),
38
40
  address: core.serialization.string().optional(),
39
41
  ein: core.serialization.string().optional(),
40
42
  description: core.serialization.string().optional(),
@@ -52,6 +54,11 @@ exports.Company = core.serialization.object({
52
54
  pocName: core.serialization.string().optional(),
53
55
  pocTitle: core.serialization.string().optional(),
54
56
  pocEmail: core.serialization.string().optional(),
57
+ optIn: core.serialization.string().optional(),
58
+ optOut: core.serialization.string().optional(),
59
+ optOutKeywords: core.serialization.list(core.serialization.string()).optional(),
60
+ agentUseCase: core.serialization.string().optional(),
61
+ expectedAgentResponses: core.serialization.string().optional(),
55
62
  testNumbers: core.serialization.list(core.serialization.string()).optional(),
56
63
  status: core.serialization.string().optional(),
57
64
  additionalWebsites: core.serialization.list(CompanyAdditionalWebsitesItem_1.CompanyAdditionalWebsitesItem).optional(),
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Pinnacle from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CompanyCategory: core.serialization.Schema<serializers.CompanyCategory.Raw, Pinnacle.CompanyCategory>;
8
+ export declare namespace CompanyCategory {
9
+ type Raw = "Entertainment" | "Finance" | "Food & Beverage" | "Games" | "Health" | "Misc" | "News" | "Other" | "Productivity" | "Shopping & Retail" | "Social" | "Sports" | "Travel" | "Utilities";
10
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CompanyCategory = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.CompanyCategory = core.serialization.enum_([
32
+ "Entertainment",
33
+ "Finance",
34
+ "Food & Beverage",
35
+ "Games",
36
+ "Health",
37
+ "Misc",
38
+ "News",
39
+ "Other",
40
+ "Productivity",
41
+ "Shopping & Retail",
42
+ "Social",
43
+ "Sports",
44
+ "Travel",
45
+ "Utilities",
46
+ ]);
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Pinnacle from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { CompanyCategory } from "./CompanyCategory";
7
8
  export declare const CompanyDetails: core.serialization.ObjectSchema<serializers.CompanyDetails.Raw, Pinnacle.CompanyDetails>;
8
9
  export declare namespace CompanyDetails {
9
10
  interface Raw {
10
11
  name: string;
12
+ category: CompanyCategory.Raw;
11
13
  address: string;
12
14
  ein: string;
13
15
  description: string;
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CompanyDetails = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const CompanyCategory_1 = require("./CompanyCategory");
31
32
  exports.CompanyDetails = core.serialization.object({
32
33
  name: core.serialization.string(),
34
+ category: CompanyCategory_1.CompanyCategory,
33
35
  address: core.serialization.string(),
34
36
  ein: core.serialization.string(),
35
37
  description: core.serialization.string(),
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Pinnacle from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { InboundMessageMetadata } from "./InboundMessageMetadata";
8
+ export declare const InboundActionMessage: core.serialization.ObjectSchema<serializers.InboundActionMessage.Raw, Pinnacle.InboundActionMessage>;
9
+ export declare namespace InboundActionMessage {
10
+ interface Raw {
11
+ messageType?: "action" | null;
12
+ actionTitle: string;
13
+ payload?: string | null;
14
+ actionMetadata?: string | null;
15
+ from: string;
16
+ to: string;
17
+ metadata?: InboundMessageMetadata.Raw | null;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.InboundActionMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const InboundMessageMetadata_1 = require("./InboundMessageMetadata");
32
+ exports.InboundActionMessage = core.serialization.object({
33
+ messageType: core.serialization.stringLiteral("action").optional(),
34
+ actionTitle: core.serialization.string(),
35
+ payload: core.serialization.string().optional(),
36
+ actionMetadata: core.serialization.string().optional(),
37
+ from: core.serialization.string(),
38
+ to: core.serialization.string(),
39
+ metadata: InboundMessageMetadata_1.InboundMessageMetadata.optional(),
40
+ });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Pinnacle from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { InboundLocationMessageCoordinates } from "./InboundLocationMessageCoordinates";
8
+ import { InboundMessageMetadata } from "./InboundMessageMetadata";
9
+ export declare const InboundLocationMessage: core.serialization.ObjectSchema<serializers.InboundLocationMessage.Raw, Pinnacle.InboundLocationMessage>;
10
+ export declare namespace InboundLocationMessage {
11
+ interface Raw {
12
+ messageType?: "location" | null;
13
+ coordinates: InboundLocationMessageCoordinates.Raw;
14
+ from: string;
15
+ to: string;
16
+ metadata?: InboundMessageMetadata.Raw | null;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.InboundLocationMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const InboundLocationMessageCoordinates_1 = require("./InboundLocationMessageCoordinates");
32
+ const InboundMessageMetadata_1 = require("./InboundMessageMetadata");
33
+ exports.InboundLocationMessage = core.serialization.object({
34
+ messageType: core.serialization.stringLiteral("location").optional(),
35
+ coordinates: InboundLocationMessageCoordinates_1.InboundLocationMessageCoordinates,
36
+ from: core.serialization.string(),
37
+ to: core.serialization.string(),
38
+ metadata: InboundMessageMetadata_1.InboundMessageMetadata.optional(),
39
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Pinnacle from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const InboundLocationMessageCoordinates: core.serialization.ObjectSchema<serializers.InboundLocationMessageCoordinates.Raw, Pinnacle.InboundLocationMessageCoordinates>;
8
+ export declare namespace InboundLocationMessageCoordinates {
9
+ interface Raw {
10
+ lat: number;
11
+ lng: number;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.InboundLocationMessageCoordinates = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.InboundLocationMessageCoordinates = core.serialization.object({
32
+ lat: core.serialization.number(),
33
+ lng: core.serialization.number(),
34
+ });