rcs-js 1.0.5 → 1.0.7

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 (237) hide show
  1. package/Client.d.ts +73 -3
  2. package/Client.js +253 -70
  3. package/README.md +1 -1
  4. package/api/client/requests/GetCompanyRequest.d.ts +17 -0
  5. package/api/client/requests/RegisterCompanyRequest.d.ts +39 -0
  6. package/api/client/requests/UpdateCompanyRequest.d.ts +17 -0
  7. package/api/client/requests/index.d.ts +3 -0
  8. package/api/errors/BadRequestError.d.ts +1 -2
  9. package/api/errors/InternalServerError.d.ts +1 -2
  10. package/api/errors/NotFoundError.d.ts +8 -0
  11. package/api/errors/NotFoundError.js +41 -0
  12. package/api/errors/UnauthorizedError.d.ts +1 -2
  13. package/api/errors/index.d.ts +1 -0
  14. package/api/errors/index.js +1 -0
  15. package/api/types/AdditionalEmail.d.ts +9 -0
  16. package/api/types/AdditionalPhoneNumber.d.ts +9 -0
  17. package/api/types/AdditionalPhoneNumber.js +5 -0
  18. package/api/types/AdditionalWebsite.d.ts +9 -0
  19. package/api/types/AdditionalWebsite.js +5 -0
  20. package/api/types/BadRequestErrorBody.d.ts +3 -1
  21. package/api/types/BadRequestErrorBodyError.d.ts +10 -0
  22. package/api/types/BadRequestErrorBodyError.js +5 -0
  23. package/api/types/Company.d.ts +56 -0
  24. package/api/types/Company.js +5 -0
  25. package/api/types/CompanyAdditionalEmailsItem.d.ts +9 -0
  26. package/api/types/CompanyAdditionalEmailsItem.js +5 -0
  27. package/api/types/CompanyAdditionalPhoneNumbersItem.d.ts +9 -0
  28. package/api/types/CompanyAdditionalPhoneNumbersItem.js +5 -0
  29. package/api/types/CompanyAdditionalWebsitesItem.d.ts +9 -0
  30. package/api/types/CompanyAdditionalWebsitesItem.js +5 -0
  31. package/api/types/CompanyContact.d.ts +21 -0
  32. package/api/types/CompanyContact.js +5 -0
  33. package/api/types/CompanyDetails.d.ts +19 -0
  34. package/api/types/CompanyDetails.js +5 -0
  35. package/api/types/InternalServerErrorBody.d.ts +1 -0
  36. package/api/types/NotFoundErrorBody.d.ts +6 -0
  37. package/api/types/NotFoundErrorBody.js +5 -0
  38. package/api/types/Optionals.d.ts +13 -0
  39. package/api/types/Optionals.js +5 -0
  40. package/api/types/PointOfContact.d.ts +11 -0
  41. package/api/types/PointOfContact.js +5 -0
  42. package/api/types/RegisterCompanyResponse.d.ts +8 -0
  43. package/api/types/RegisterCompanyResponse.js +5 -0
  44. package/api/types/RegisterCompanyResponseBrand.d.ts +7 -0
  45. package/api/types/RegisterCompanyResponseBrand.js +5 -0
  46. package/api/types/SendMessageRequest.d.ts +5 -0
  47. package/api/types/SendMessageRequest.js +5 -0
  48. package/{dist/api/types/SendResponse.d.ts → api/types/SendMessageResponse.d.ts} +1 -1
  49. package/api/types/SendMessageResponse.js +5 -0
  50. package/api/types/UpdateCompanyResponse.d.ts +8 -0
  51. package/api/types/UpdateCompanyResponse.js +5 -0
  52. package/api/types/UpdateCompanyResponseBrand.d.ts +7 -0
  53. package/api/types/UpdateCompanyResponseBrand.js +5 -0
  54. package/api/types/index.d.ts +19 -2
  55. package/api/types/index.js +19 -2
  56. package/dist/Client.d.ts +73 -3
  57. package/dist/Client.js +253 -70
  58. package/dist/api/client/requests/GetCompanyRequest.d.ts +17 -0
  59. package/dist/api/client/requests/GetCompanyRequest.js +5 -0
  60. package/dist/api/client/requests/RegisterCompanyRequest.d.ts +39 -0
  61. package/dist/api/client/requests/RegisterCompanyRequest.js +5 -0
  62. package/dist/api/client/requests/UpdateCompanyRequest.d.ts +17 -0
  63. package/dist/api/client/requests/UpdateCompanyRequest.js +5 -0
  64. package/dist/api/client/requests/index.d.ts +3 -0
  65. package/dist/api/errors/BadRequestError.d.ts +1 -2
  66. package/dist/api/errors/InternalServerError.d.ts +1 -2
  67. package/dist/api/errors/NotFoundError.d.ts +8 -0
  68. package/dist/api/errors/NotFoundError.js +41 -0
  69. package/dist/api/errors/UnauthorizedError.d.ts +1 -2
  70. package/dist/api/errors/index.d.ts +1 -0
  71. package/dist/api/errors/index.js +1 -0
  72. package/dist/api/types/AdditionalEmail.d.ts +9 -0
  73. package/dist/api/types/AdditionalEmail.js +5 -0
  74. package/dist/api/types/AdditionalPhoneNumber.d.ts +9 -0
  75. package/dist/api/types/AdditionalPhoneNumber.js +5 -0
  76. package/dist/api/types/AdditionalWebsite.d.ts +9 -0
  77. package/dist/api/types/AdditionalWebsite.js +5 -0
  78. package/dist/api/types/BadRequestErrorBody.d.ts +3 -1
  79. package/dist/api/types/BadRequestErrorBodyError.d.ts +10 -0
  80. package/dist/api/types/BadRequestErrorBodyError.js +5 -0
  81. package/dist/api/types/Company.d.ts +56 -0
  82. package/dist/api/types/Company.js +5 -0
  83. package/dist/api/types/CompanyAdditionalEmailsItem.d.ts +9 -0
  84. package/dist/api/types/CompanyAdditionalEmailsItem.js +5 -0
  85. package/dist/api/types/CompanyAdditionalPhoneNumbersItem.d.ts +9 -0
  86. package/dist/api/types/CompanyAdditionalPhoneNumbersItem.js +5 -0
  87. package/dist/api/types/CompanyAdditionalWebsitesItem.d.ts +9 -0
  88. package/dist/api/types/CompanyAdditionalWebsitesItem.js +5 -0
  89. package/dist/api/types/CompanyContact.d.ts +21 -0
  90. package/dist/api/types/CompanyContact.js +5 -0
  91. package/dist/api/types/CompanyDetails.d.ts +19 -0
  92. package/dist/api/types/CompanyDetails.js +5 -0
  93. package/dist/api/types/InternalServerErrorBody.d.ts +1 -0
  94. package/dist/api/types/NotFoundErrorBody.d.ts +6 -0
  95. package/dist/api/types/NotFoundErrorBody.js +5 -0
  96. package/dist/api/types/Optionals.d.ts +13 -0
  97. package/dist/api/types/Optionals.js +5 -0
  98. package/dist/api/types/PointOfContact.d.ts +11 -0
  99. package/dist/api/types/PointOfContact.js +5 -0
  100. package/dist/api/types/RegisterCompanyResponse.d.ts +8 -0
  101. package/dist/api/types/RegisterCompanyResponse.js +5 -0
  102. package/dist/api/types/RegisterCompanyResponseBrand.d.ts +7 -0
  103. package/dist/api/types/RegisterCompanyResponseBrand.js +5 -0
  104. package/dist/api/types/SendMessageRequest.d.ts +5 -0
  105. package/dist/api/types/SendMessageRequest.js +5 -0
  106. package/{api/types/SendResponse.d.ts → dist/api/types/SendMessageResponse.d.ts} +1 -1
  107. package/dist/api/types/SendMessageResponse.js +5 -0
  108. package/dist/api/types/UpdateCompanyResponse.d.ts +8 -0
  109. package/dist/api/types/UpdateCompanyResponse.js +5 -0
  110. package/dist/api/types/UpdateCompanyResponseBrand.d.ts +7 -0
  111. package/dist/api/types/UpdateCompanyResponseBrand.js +5 -0
  112. package/dist/api/types/index.d.ts +19 -2
  113. package/dist/api/types/index.js +19 -2
  114. package/dist/environments.d.ts +1 -1
  115. package/dist/environments.js +1 -1
  116. package/dist/serialization/client/getCompany.d.ts +11 -0
  117. package/dist/serialization/client/getCompany.js +32 -0
  118. package/dist/serialization/client/index.d.ts +1 -0
  119. package/dist/serialization/client/index.js +14 -0
  120. package/dist/serialization/client/requests/RegisterCompanyRequest.d.ts +19 -0
  121. package/dist/serialization/client/requests/RegisterCompanyRequest.js +40 -0
  122. package/dist/serialization/client/requests/UpdateCompanyRequest.d.ts +20 -0
  123. package/dist/serialization/client/requests/UpdateCompanyRequest.js +41 -0
  124. package/dist/serialization/client/requests/index.d.ts +2 -0
  125. package/dist/serialization/client/requests/index.js +5 -1
  126. package/dist/serialization/types/AdditionalEmail.d.ts +13 -0
  127. package/dist/serialization/types/AdditionalEmail.js +34 -0
  128. package/dist/serialization/types/AdditionalPhoneNumber.d.ts +13 -0
  129. package/dist/serialization/types/AdditionalPhoneNumber.js +34 -0
  130. package/dist/serialization/types/AdditionalWebsite.d.ts +13 -0
  131. package/dist/serialization/types/AdditionalWebsite.js +34 -0
  132. package/dist/serialization/types/BadRequestErrorBody.d.ts +3 -1
  133. package/dist/serialization/types/BadRequestErrorBody.js +3 -1
  134. package/dist/serialization/types/BadRequestErrorBodyError.d.ts +16 -0
  135. package/dist/serialization/types/BadRequestErrorBodyError.js +37 -0
  136. package/dist/serialization/types/Company.d.ts +39 -0
  137. package/dist/serialization/types/Company.js +60 -0
  138. package/dist/serialization/types/CompanyAdditionalEmailsItem.d.ts +13 -0
  139. package/dist/serialization/types/CompanyAdditionalEmailsItem.js +34 -0
  140. package/dist/serialization/types/CompanyAdditionalPhoneNumbersItem.d.ts +13 -0
  141. package/dist/serialization/types/CompanyAdditionalPhoneNumbersItem.js +34 -0
  142. package/dist/serialization/types/CompanyAdditionalWebsitesItem.d.ts +13 -0
  143. package/dist/serialization/types/CompanyAdditionalWebsitesItem.js +34 -0
  144. package/dist/serialization/types/CompanyContact.d.ts +19 -0
  145. package/dist/serialization/types/CompanyContact.js +40 -0
  146. package/dist/serialization/types/CompanyDetails.d.ts +18 -0
  147. package/dist/serialization/types/CompanyDetails.js +39 -0
  148. package/dist/serialization/types/InternalServerErrorBody.d.ts +1 -0
  149. package/dist/serialization/types/InternalServerErrorBody.js +1 -0
  150. package/dist/serialization/types/NotFoundErrorBody.d.ts +12 -0
  151. package/dist/serialization/types/NotFoundErrorBody.js +33 -0
  152. package/dist/serialization/types/Optionals.d.ts +18 -0
  153. package/dist/serialization/types/Optionals.js +39 -0
  154. package/dist/serialization/types/PointOfContact.d.ts +14 -0
  155. package/dist/serialization/types/PointOfContact.js +35 -0
  156. package/dist/serialization/types/RegisterCompanyResponse.d.ts +14 -0
  157. package/dist/serialization/types/RegisterCompanyResponse.js +35 -0
  158. package/dist/serialization/types/RegisterCompanyResponseBrand.d.ts +13 -0
  159. package/dist/serialization/types/RegisterCompanyResponseBrand.js +34 -0
  160. package/dist/serialization/types/{SendRequest.d.ts → SendMessageRequest.d.ts} +2 -2
  161. package/dist/serialization/types/{SendRequest.js → SendMessageRequest.js} +2 -2
  162. package/{serialization/types/SendResponse.d.ts → dist/serialization/types/SendMessageResponse.d.ts} +2 -2
  163. package/dist/serialization/types/{SendResponse.js → SendMessageResponse.js} +2 -2
  164. package/dist/serialization/types/UpdateCompanyResponse.d.ts +14 -0
  165. package/dist/serialization/types/UpdateCompanyResponse.js +35 -0
  166. package/dist/serialization/types/UpdateCompanyResponseBrand.d.ts +13 -0
  167. package/dist/serialization/types/UpdateCompanyResponseBrand.js +34 -0
  168. package/dist/serialization/types/index.d.ts +19 -2
  169. package/dist/serialization/types/index.js +19 -2
  170. package/dist/version.d.ts +1 -1
  171. package/dist/version.js +1 -1
  172. package/environments.d.ts +1 -1
  173. package/environments.js +1 -1
  174. package/package.json +1 -1
  175. package/reference.md +5 -13
  176. package/serialization/client/getCompany.d.ts +11 -0
  177. package/serialization/client/getCompany.js +32 -0
  178. package/serialization/client/index.d.ts +1 -0
  179. package/serialization/client/index.js +14 -0
  180. package/serialization/client/requests/RegisterCompanyRequest.d.ts +19 -0
  181. package/serialization/client/requests/RegisterCompanyRequest.js +40 -0
  182. package/serialization/client/requests/UpdateCompanyRequest.d.ts +20 -0
  183. package/serialization/client/requests/UpdateCompanyRequest.js +41 -0
  184. package/serialization/client/requests/index.d.ts +2 -0
  185. package/serialization/client/requests/index.js +5 -1
  186. package/serialization/types/AdditionalEmail.d.ts +13 -0
  187. package/serialization/types/AdditionalEmail.js +34 -0
  188. package/serialization/types/AdditionalPhoneNumber.d.ts +13 -0
  189. package/serialization/types/AdditionalPhoneNumber.js +34 -0
  190. package/serialization/types/AdditionalWebsite.d.ts +13 -0
  191. package/serialization/types/AdditionalWebsite.js +34 -0
  192. package/serialization/types/BadRequestErrorBody.d.ts +3 -1
  193. package/serialization/types/BadRequestErrorBody.js +3 -1
  194. package/serialization/types/BadRequestErrorBodyError.d.ts +16 -0
  195. package/serialization/types/BadRequestErrorBodyError.js +37 -0
  196. package/serialization/types/Company.d.ts +39 -0
  197. package/serialization/types/Company.js +60 -0
  198. package/serialization/types/CompanyAdditionalEmailsItem.d.ts +13 -0
  199. package/serialization/types/CompanyAdditionalEmailsItem.js +34 -0
  200. package/serialization/types/CompanyAdditionalPhoneNumbersItem.d.ts +13 -0
  201. package/serialization/types/CompanyAdditionalPhoneNumbersItem.js +34 -0
  202. package/serialization/types/CompanyAdditionalWebsitesItem.d.ts +13 -0
  203. package/serialization/types/CompanyAdditionalWebsitesItem.js +34 -0
  204. package/serialization/types/CompanyContact.d.ts +19 -0
  205. package/serialization/types/CompanyContact.js +40 -0
  206. package/serialization/types/CompanyDetails.d.ts +18 -0
  207. package/serialization/types/CompanyDetails.js +39 -0
  208. package/serialization/types/InternalServerErrorBody.d.ts +1 -0
  209. package/serialization/types/InternalServerErrorBody.js +1 -0
  210. package/serialization/types/NotFoundErrorBody.d.ts +12 -0
  211. package/serialization/types/NotFoundErrorBody.js +33 -0
  212. package/serialization/types/Optionals.d.ts +18 -0
  213. package/serialization/types/Optionals.js +39 -0
  214. package/serialization/types/PointOfContact.d.ts +14 -0
  215. package/serialization/types/PointOfContact.js +35 -0
  216. package/serialization/types/RegisterCompanyResponse.d.ts +14 -0
  217. package/serialization/types/RegisterCompanyResponse.js +35 -0
  218. package/serialization/types/RegisterCompanyResponseBrand.d.ts +13 -0
  219. package/serialization/types/RegisterCompanyResponseBrand.js +34 -0
  220. package/serialization/types/{SendRequest.d.ts → SendMessageRequest.d.ts} +2 -2
  221. package/serialization/types/{SendRequest.js → SendMessageRequest.js} +2 -2
  222. package/{dist/serialization/types/SendResponse.d.ts → serialization/types/SendMessageResponse.d.ts} +2 -2
  223. package/serialization/types/{SendResponse.js → SendMessageResponse.js} +2 -2
  224. package/serialization/types/UpdateCompanyResponse.d.ts +14 -0
  225. package/serialization/types/UpdateCompanyResponse.js +35 -0
  226. package/serialization/types/UpdateCompanyResponseBrand.d.ts +13 -0
  227. package/serialization/types/UpdateCompanyResponseBrand.js +34 -0
  228. package/serialization/types/index.d.ts +19 -2
  229. package/serialization/types/index.js +19 -2
  230. package/version.d.ts +1 -1
  231. package/version.js +1 -1
  232. package/api/types/SendRequest.d.ts +0 -5
  233. package/dist/api/types/SendRequest.d.ts +0 -5
  234. /package/api/{types/SendRequest.js → client/requests/GetCompanyRequest.js} +0 -0
  235. /package/api/{types/SendResponse.js → client/requests/RegisterCompanyRequest.js} +0 -0
  236. /package/{dist/api/types/SendRequest.js → api/client/requests/UpdateCompanyRequest.js} +0 -0
  237. /package/{dist/api/types/SendResponse.js → api/types/AdditionalEmail.js} +0 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AdditionalWebsite {
5
+ /** URL of the additional website. */
6
+ url: string;
7
+ /** Label for the additional website. */
8
+ label: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Pinnacle from "../index";
4
5
  export interface BadRequestErrorBody {
5
- error?: string;
6
+ error?: Pinnacle.BadRequestErrorBodyError;
7
+ success?: boolean;
6
8
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BadRequestErrorBodyError {
5
+ code?: string;
6
+ expected?: string;
7
+ received?: string;
8
+ path?: string[];
9
+ message?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Pinnacle from "../index";
5
+ export interface Company {
6
+ /** The unique identifier for the company */
7
+ id?: number;
8
+ /** The date and time when the company was created */
9
+ createdAt?: Date;
10
+ /** The name of the company */
11
+ name?: string;
12
+ /** The address of the company */
13
+ address?: string;
14
+ /** The Employer Identification Number (EIN) of the company */
15
+ ein?: string;
16
+ /** A description of the company */
17
+ description?: string;
18
+ /** The brand color of the company */
19
+ brandColor?: string;
20
+ /** The URL of the company's logo */
21
+ logoUrl?: string;
22
+ /** The URL of the company's hero image */
23
+ heroUrl?: string;
24
+ /** The primary website URL of the company */
25
+ primaryWebsiteUrl?: string;
26
+ /** The label for the primary website URL */
27
+ primaryWebsiteLabel?: string;
28
+ /** The primary phone number of the company */
29
+ primaryPhone?: string;
30
+ /** The label for the primary phone number */
31
+ primaryPhoneLabel?: string;
32
+ /** The primary email address of the company */
33
+ primaryEmail?: string;
34
+ /** The label for the primary email address */
35
+ primaryEmailLabel?: string;
36
+ /** The URL of the company's privacy policy */
37
+ privacyPolicyUrl?: string;
38
+ /** The URL of the company's terms of service */
39
+ tosUrl?: string;
40
+ /** The name of the point of contact */
41
+ pocName?: string;
42
+ /** The title of the point of contact */
43
+ pocTitle?: string;
44
+ /** The email address of the point of contact */
45
+ pocEmail?: string;
46
+ /** A list of test phone numbers */
47
+ testNumbers?: string[];
48
+ /** The approval status of the company */
49
+ status?: string;
50
+ /** A list of additional websites */
51
+ additionalWebsites?: Pinnacle.CompanyAdditionalWebsitesItem[];
52
+ /** A list of additional email addresses */
53
+ additionalEmails?: Pinnacle.CompanyAdditionalEmailsItem[];
54
+ /** A list of additional phone numbers */
55
+ additionalPhoneNumbers?: Pinnacle.CompanyAdditionalPhoneNumbersItem[];
56
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyAdditionalEmailsItem {
5
+ /** The additional email address */
6
+ email?: string;
7
+ /** The label for the additional email address */
8
+ label?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyAdditionalPhoneNumbersItem {
5
+ /** The label for the additional phone number */
6
+ label?: string;
7
+ /** The additional phone number */
8
+ phone?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyAdditionalWebsitesItem {
5
+ /** The URL of the additional website */
6
+ url?: string;
7
+ /** The label for the additional website */
8
+ label?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyContact {
5
+ /** Primary website URL. */
6
+ primaryWebsiteUrl: string;
7
+ /** Label for the primary website. */
8
+ primaryWebsiteLabel: string;
9
+ /** Primary phone number in international format. */
10
+ primaryPhone: string;
11
+ /** Label for the primary phone number. */
12
+ primaryPhoneLabel: string;
13
+ /** Primary email address. */
14
+ primaryEmail: string;
15
+ /** Label for the primary email address. */
16
+ primaryEmailLabel: string;
17
+ /** URL of the privacy policy. */
18
+ privacyPolicyUrl: string;
19
+ /** URL of the terms of service. */
20
+ tosUrl: string;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CompanyDetails {
5
+ /** The name of the company. */
6
+ name: string;
7
+ /** The address of the company. */
8
+ address: string;
9
+ /** The EIN (Employer Identification Number) of the company. */
10
+ ein: string;
11
+ /** A description of the company. */
12
+ description: string;
13
+ /** The brand color in hex format, must pass a contrast ratio of at least 4.5:1 with white. */
14
+ brandColor: string;
15
+ /** URL of the company logo. */
16
+ logoUrl: string;
17
+ /** URL of the company's hero image. */
18
+ heroUrl: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface InternalServerErrorBody {
5
+ success?: boolean;
5
6
  error?: string;
6
7
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NotFoundErrorBody {
5
+ error?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Pinnacle from "../index";
5
+ export interface Optionals {
6
+ /** List of additional websites, up to 2. */
7
+ additionalWebsites?: Pinnacle.AdditionalWebsite[];
8
+ /** List of additional phone numbers, up to 2. */
9
+ additionalPhoneNumbers?: Pinnacle.AdditionalPhoneNumber[];
10
+ /** List of additional email addresses, up to 2. */
11
+ additionalEmails?: Pinnacle.AdditionalEmail[];
12
+ testNumbers?: string[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PointOfContact {
5
+ /** Point of contact's name. */
6
+ pocName: string;
7
+ /** Point of contact's title. */
8
+ pocTitle: string;
9
+ /** Point of contact's email address. */
10
+ pocEmail: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Pinnacle from "../index";
5
+ export interface RegisterCompanyResponse {
6
+ success?: boolean;
7
+ brand?: Pinnacle.RegisterCompanyResponseBrand;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface RegisterCompanyResponseBrand {
5
+ name?: string;
6
+ id?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Pinnacle from "../index";
5
+ export declare type SendMessageRequest = Pinnacle.CardRcs | Pinnacle.Sms | Pinnacle.BasicRcs | Pinnacle.MediaRcs | Pinnacle.CarouselRcs;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface SendResponse {
4
+ export interface SendMessageResponse {
5
5
  /** Confirmation message that the message was sent successfully */
6
6
  message?: string;
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Pinnacle from "../index";
5
+ export interface UpdateCompanyResponse {
6
+ success?: boolean;
7
+ brand?: Pinnacle.UpdateCompanyResponseBrand;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UpdateCompanyResponseBrand {
5
+ name?: string;
6
+ id?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,8 +4,14 @@ export * from "./UnauthorizedErrorBody";
4
4
  export * from "./InternalServerErrorBody";
5
5
  export * from "./UpdateSettingsResponse";
6
6
  export * from "./GetAccountNumberResponse";
7
- export * from "./SendRequest";
8
- export * from "./SendResponse";
7
+ export * from "./SendMessageRequest";
8
+ export * from "./SendMessageResponse";
9
+ export * from "./NotFoundErrorBody";
10
+ export * from "./RegisterCompanyResponseBrand";
11
+ export * from "./RegisterCompanyResponse";
12
+ export * from "./BadRequestErrorBodyError";
13
+ export * from "./UpdateCompanyResponseBrand";
14
+ export * from "./UpdateCompanyResponse";
9
15
  export * from "./PhoneNumber";
10
16
  export * from "./Url";
11
17
  export * from "./Call";
@@ -32,3 +38,14 @@ export * from "./CardRcsMessage";
32
38
  export * from "./CardRcs";
33
39
  export * from "./CarouselRcsMessage";
34
40
  export * from "./CarouselRcs";
41
+ export * from "./CompanyAdditionalWebsitesItem";
42
+ export * from "./CompanyAdditionalEmailsItem";
43
+ export * from "./CompanyAdditionalPhoneNumbersItem";
44
+ export * from "./Company";
45
+ export * from "./CompanyDetails";
46
+ export * from "./CompanyContact";
47
+ export * from "./PointOfContact";
48
+ export * from "./AdditionalWebsite";
49
+ export * from "./AdditionalPhoneNumber";
50
+ export * from "./AdditionalEmail";
51
+ export * from "./Optionals";
@@ -20,8 +20,14 @@ __exportStar(require("./UnauthorizedErrorBody"), exports);
20
20
  __exportStar(require("./InternalServerErrorBody"), exports);
21
21
  __exportStar(require("./UpdateSettingsResponse"), exports);
22
22
  __exportStar(require("./GetAccountNumberResponse"), exports);
23
- __exportStar(require("./SendRequest"), exports);
24
- __exportStar(require("./SendResponse"), exports);
23
+ __exportStar(require("./SendMessageRequest"), exports);
24
+ __exportStar(require("./SendMessageResponse"), exports);
25
+ __exportStar(require("./NotFoundErrorBody"), exports);
26
+ __exportStar(require("./RegisterCompanyResponseBrand"), exports);
27
+ __exportStar(require("./RegisterCompanyResponse"), exports);
28
+ __exportStar(require("./BadRequestErrorBodyError"), exports);
29
+ __exportStar(require("./UpdateCompanyResponseBrand"), exports);
30
+ __exportStar(require("./UpdateCompanyResponse"), exports);
25
31
  __exportStar(require("./PhoneNumber"), exports);
26
32
  __exportStar(require("./Url"), exports);
27
33
  __exportStar(require("./Call"), exports);
@@ -48,3 +54,14 @@ __exportStar(require("./CardRcsMessage"), exports);
48
54
  __exportStar(require("./CardRcs"), exports);
49
55
  __exportStar(require("./CarouselRcsMessage"), exports);
50
56
  __exportStar(require("./CarouselRcs"), exports);
57
+ __exportStar(require("./CompanyAdditionalWebsitesItem"), exports);
58
+ __exportStar(require("./CompanyAdditionalEmailsItem"), exports);
59
+ __exportStar(require("./CompanyAdditionalPhoneNumbersItem"), exports);
60
+ __exportStar(require("./Company"), exports);
61
+ __exportStar(require("./CompanyDetails"), exports);
62
+ __exportStar(require("./CompanyContact"), exports);
63
+ __exportStar(require("./PointOfContact"), exports);
64
+ __exportStar(require("./AdditionalWebsite"), exports);
65
+ __exportStar(require("./AdditionalPhoneNumber"), exports);
66
+ __exportStar(require("./AdditionalEmail"), exports);
67
+ __exportStar(require("./Optionals"), exports);
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export declare const PinnacleEnvironment: {
5
- readonly Default: "https://trypinnacle.dev/api";
5
+ readonly Default: "https://www.trypinnacle.dev/api";
6
6
  };
7
7
  export declare type PinnacleEnvironment = typeof PinnacleEnvironment.Default;
@@ -5,5 +5,5 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PinnacleEnvironment = void 0;
7
7
  exports.PinnacleEnvironment = {
8
- Default: "https://trypinnacle.dev/api",
8
+ Default: "https://www.trypinnacle.dev/api",
9
9
  };
@@ -0,0 +1,11 @@
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 { Company } from "../types/Company";
8
+ export declare const Response: core.serialization.Schema<serializers.getCompany.Response.Raw, Pinnacle.Company[]>;
9
+ export declare namespace Response {
10
+ type Raw = Company.Raw[];
11
+ }
@@ -0,0 +1,32 @@
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.Response = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Company_1 = require("../types/Company");
32
+ exports.Response = core.serialization.list(Company_1.Company);
@@ -1 +1,2 @@
1
+ export * as getCompany from "./getCompany";
1
2
  export * from "./requests";
@@ -10,8 +10,22 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
13
25
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
27
  };
16
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.getCompany = void 0;
30
+ exports.getCompany = __importStar(require("./getCompany"));
17
31
  __exportStar(require("./requests"), exports);
@@ -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 { CompanyDetails } from "../../types/CompanyDetails";
8
+ import { CompanyContact } from "../../types/CompanyContact";
9
+ import { PointOfContact } from "../../types/PointOfContact";
10
+ import { Optionals } from "../../types/Optionals";
11
+ export declare const RegisterCompanyRequest: core.serialization.Schema<serializers.RegisterCompanyRequest.Raw, Pinnacle.RegisterCompanyRequest>;
12
+ export declare namespace RegisterCompanyRequest {
13
+ interface Raw {
14
+ company: CompanyDetails.Raw;
15
+ companyContact: CompanyContact.Raw;
16
+ pointOfContact: PointOfContact.Raw;
17
+ optionals?: Optionals.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.RegisterCompanyRequest = void 0;
30
+ const core = __importStar(require("../../../core"));
31
+ const CompanyDetails_1 = require("../../types/CompanyDetails");
32
+ const CompanyContact_1 = require("../../types/CompanyContact");
33
+ const PointOfContact_1 = require("../../types/PointOfContact");
34
+ const Optionals_1 = require("../../types/Optionals");
35
+ exports.RegisterCompanyRequest = core.serialization.object({
36
+ company: CompanyDetails_1.CompanyDetails,
37
+ companyContact: CompanyContact_1.CompanyContact,
38
+ pointOfContact: PointOfContact_1.PointOfContact,
39
+ optionals: Optionals_1.Optionals.optional(),
40
+ });
@@ -0,0 +1,20 @@
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 { Company } from "../../types/Company";
8
+ import { CompanyContact } from "../../types/CompanyContact";
9
+ import { PointOfContact } from "../../types/PointOfContact";
10
+ import { Optionals } from "../../types/Optionals";
11
+ export declare const UpdateCompanyRequest: core.serialization.Schema<serializers.UpdateCompanyRequest.Raw, Pinnacle.UpdateCompanyRequest>;
12
+ export declare namespace UpdateCompanyRequest {
13
+ interface Raw {
14
+ companyId: string;
15
+ company?: Company.Raw | null;
16
+ companyContact?: CompanyContact.Raw | null;
17
+ pointOfContact?: PointOfContact.Raw | null;
18
+ optionals?: Optionals.Raw | null;
19
+ }
20
+ }