@leadping/sdk 1.0.28 → 1.0.30

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 (282) hide show
  1. package/dist/analytics/my/index.d.ts +3 -3
  2. package/dist/automations/index.d.ts +2 -2
  3. package/dist/automations/item/index.d.ts +6 -6
  4. package/dist/contact/index.d.ts +10 -1
  5. package/dist/contact/index.d.ts.map +1 -1
  6. package/dist/contact/index.js +10 -0
  7. package/dist/contact/index.js.map +1 -1
  8. package/dist/contact/website/index.d.ts +78 -0
  9. package/dist/contact/website/index.d.ts.map +1 -0
  10. package/dist/contact/website/index.js +74 -0
  11. package/dist/contact/website/index.js.map +1 -0
  12. package/dist/events/index.d.ts +5 -5
  13. package/dist/events/index.d.ts.map +1 -1
  14. package/dist/events/index.js +5 -5
  15. package/dist/events/index.js.map +1 -1
  16. package/dist/events/organizations/index.d.ts +22 -0
  17. package/dist/events/organizations/index.d.ts.map +1 -0
  18. package/dist/events/organizations/index.js +21 -0
  19. package/dist/events/organizations/index.js.map +1 -0
  20. package/dist/events/{businesses → organizations}/item/index.d.ts +10 -10
  21. package/dist/events/organizations/item/index.d.ts.map +1 -0
  22. package/dist/events/{businesses → organizations}/item/index.js +3 -3
  23. package/dist/events/organizations/item/index.js.map +1 -0
  24. package/dist/feedback/index.d.ts +2 -2
  25. package/dist/leadStatusChanges/all/index.d.ts +20 -0
  26. package/dist/leadStatusChanges/all/index.d.ts.map +1 -0
  27. package/dist/leadStatusChanges/all/index.js +20 -0
  28. package/dist/leadStatusChanges/all/index.js.map +1 -0
  29. package/dist/leadStatusChanges/all/my/index.d.ts +31 -0
  30. package/dist/leadStatusChanges/all/my/index.d.ts.map +1 -0
  31. package/dist/leadStatusChanges/all/my/index.js +29 -0
  32. package/dist/leadStatusChanges/all/my/index.js.map +1 -0
  33. package/dist/leadStatusChanges/index.d.ts +27 -0
  34. package/dist/leadStatusChanges/index.d.ts.map +1 -0
  35. package/dist/leadStatusChanges/index.js +26 -0
  36. package/dist/leadStatusChanges/index.js.map +1 -0
  37. package/dist/{dispositions → leadStatusChanges}/item/index.d.ts +18 -18
  38. package/dist/leadStatusChanges/item/index.d.ts.map +1 -0
  39. package/dist/{dispositions → leadStatusChanges}/item/index.js +9 -9
  40. package/dist/leadStatusChanges/item/index.js.map +1 -0
  41. package/dist/leadStatuses/index.d.ts +6 -6
  42. package/dist/leadStatuses/index.js +1 -1
  43. package/dist/leadStatuses/index.js.map +1 -1
  44. package/dist/leadStatuses/item/index.d.ts +6 -6
  45. package/dist/leadStatuses/item/index.js +1 -1
  46. package/dist/leadStatuses/item/index.js.map +1 -1
  47. package/dist/leadpingOpenApiClient.d.ts +10 -10
  48. package/dist/leadpingOpenApiClient.d.ts.map +1 -1
  49. package/dist/leadpingOpenApiClient.js +12 -12
  50. package/dist/leadpingOpenApiClient.js.map +1 -1
  51. package/dist/leads/index.d.ts +3 -3
  52. package/dist/leads/index.d.ts.map +1 -1
  53. package/dist/leads/index.js +4 -4
  54. package/dist/leads/index.js.map +1 -1
  55. package/dist/leads/intake/index.d.ts +4 -4
  56. package/dist/leads/item/archive/index.d.ts +2 -2
  57. package/dist/leads/item/archive/index.d.ts.map +1 -1
  58. package/dist/leads/item/archive/index.js +1 -1
  59. package/dist/leads/item/archive/index.js.map +1 -1
  60. package/dist/leads/item/index.d.ts +19 -9
  61. package/dist/leads/item/index.d.ts.map +1 -1
  62. package/dist/leads/item/index.js +17 -6
  63. package/dist/leads/item/index.js.map +1 -1
  64. package/dist/leads/item/status/index.d.ts +33 -0
  65. package/dist/leads/item/status/index.d.ts.map +1 -0
  66. package/dist/leads/item/status/index.js +31 -0
  67. package/dist/leads/item/status/index.js.map +1 -0
  68. package/dist/{dispositions/lead/item → leads/item/statusHistory}/exportEscaped/index.d.ts +7 -7
  69. package/dist/leads/item/statusHistory/exportEscaped/index.d.ts.map +1 -0
  70. package/dist/{dispositions/lead/item → leads/item/statusHistory}/exportEscaped/index.js +3 -3
  71. package/dist/leads/item/statusHistory/exportEscaped/index.js.map +1 -0
  72. package/dist/{dispositions/lead/item → leads/item/statusHistory}/index.d.ts +10 -10
  73. package/dist/leads/item/statusHistory/index.d.ts.map +1 -0
  74. package/dist/{dispositions/lead/item → leads/item/statusHistory}/index.js +6 -6
  75. package/dist/leads/item/statusHistory/index.js.map +1 -0
  76. package/dist/leads/item/tags/index.d.ts +6 -6
  77. package/dist/leads/item/tags/index.d.ts.map +1 -1
  78. package/dist/leads/item/tags/index.js +1 -1
  79. package/dist/leads/item/tags/index.js.map +1 -1
  80. package/dist/leads/item/tags/item/index.d.ts +4 -4
  81. package/dist/leads/item/tags/item/index.d.ts.map +1 -1
  82. package/dist/leads/item/tags/item/index.js +1 -1
  83. package/dist/leads/item/tags/item/index.js.map +1 -1
  84. package/dist/leads/item/unarchive/index.d.ts +2 -2
  85. package/dist/leads/item/unarchive/index.d.ts.map +1 -1
  86. package/dist/leads/item/unarchive/index.js +1 -1
  87. package/dist/leads/item/unarchive/index.js.map +1 -1
  88. package/dist/leads/item/workflowStatus/index.d.ts +4 -4
  89. package/dist/leads/item/workflowStatus/index.d.ts.map +1 -1
  90. package/dist/leads/item/workflowStatus/index.js +1 -1
  91. package/dist/leads/item/workflowStatus/index.js.map +1 -1
  92. package/dist/models/index.d.ts +4375 -3673
  93. package/dist/models/index.d.ts.map +1 -1
  94. package/dist/models/index.js +3845 -3249
  95. package/dist/models/index.js.map +1 -1
  96. package/dist/notifications/item/index.d.ts +2 -2
  97. package/dist/{businesses → organizations}/apiKeys/index.d.ts +2 -2
  98. package/dist/organizations/apiKeys/index.d.ts.map +1 -0
  99. package/dist/{businesses → organizations}/apiKeys/index.js +1 -1
  100. package/dist/organizations/apiKeys/index.js.map +1 -0
  101. package/dist/{businesses → organizations}/apiKeys/my/index.d.ts +7 -7
  102. package/dist/organizations/apiKeys/my/index.d.ts.map +1 -0
  103. package/dist/{businesses → organizations}/apiKeys/my/index.js +3 -3
  104. package/dist/organizations/apiKeys/my/index.js.map +1 -0
  105. package/dist/{businesses → organizations}/index.d.ts +4 -4
  106. package/dist/organizations/index.d.ts.map +1 -0
  107. package/dist/{businesses → organizations}/index.js +2 -2
  108. package/dist/organizations/index.js.map +1 -0
  109. package/dist/organizations/invitations/accept/index.d.ts +31 -0
  110. package/dist/organizations/invitations/accept/index.d.ts.map +1 -0
  111. package/dist/{businesses → organizations}/invitations/accept/index.js +4 -4
  112. package/dist/organizations/invitations/accept/index.js.map +1 -0
  113. package/dist/{businesses → organizations}/invitations/index.d.ts +2 -2
  114. package/dist/organizations/invitations/index.d.ts.map +1 -0
  115. package/dist/{businesses → organizations}/invitations/index.js +1 -1
  116. package/dist/organizations/invitations/index.js.map +1 -0
  117. package/dist/{businesses → organizations}/invitations/token/index.d.ts +3 -3
  118. package/dist/organizations/invitations/token/index.d.ts.map +1 -0
  119. package/dist/{businesses → organizations}/invitations/token/index.js +1 -1
  120. package/dist/organizations/invitations/token/index.js.map +1 -0
  121. package/dist/{businesses → organizations}/invitations/token/item/index.d.ts +7 -7
  122. package/dist/organizations/invitations/token/item/index.d.ts.map +1 -0
  123. package/dist/{businesses → organizations}/invitations/token/item/index.js +3 -3
  124. package/dist/organizations/invitations/token/item/index.js.map +1 -0
  125. package/dist/{businesses → organizations}/me/index.d.ts +26 -26
  126. package/dist/organizations/me/index.d.ts.map +1 -0
  127. package/dist/{businesses → organizations}/me/index.js +13 -13
  128. package/dist/organizations/me/index.js.map +1 -0
  129. package/dist/{businesses → organizations}/me/invitations/index.d.ts +16 -16
  130. package/dist/organizations/me/invitations/index.d.ts.map +1 -0
  131. package/dist/{businesses → organizations}/me/invitations/index.js +5 -5
  132. package/dist/organizations/me/invitations/index.js.map +1 -0
  133. package/dist/{businesses → organizations}/me/invitations/item/index.d.ts +4 -4
  134. package/dist/organizations/me/invitations/item/index.d.ts.map +1 -0
  135. package/dist/{businesses → organizations}/me/invitations/item/index.js +1 -1
  136. package/dist/organizations/me/invitations/item/index.js.map +1 -0
  137. package/dist/{businesses → organizations}/me/invitations/item/resend/index.d.ts +7 -7
  138. package/dist/organizations/me/invitations/item/resend/index.d.ts.map +1 -0
  139. package/dist/{businesses → organizations}/me/invitations/item/resend/index.js +3 -3
  140. package/dist/organizations/me/invitations/item/resend/index.js.map +1 -0
  141. package/dist/organizations/me/members/index.d.ts +57 -0
  142. package/dist/organizations/me/members/index.d.ts.map +1 -0
  143. package/dist/{businesses/me/users → organizations/me/members}/index.js +9 -9
  144. package/dist/organizations/me/members/index.js.map +1 -0
  145. package/dist/{businesses/me/users → organizations/me/members}/item/index.d.ts +12 -12
  146. package/dist/organizations/me/members/item/index.d.ts.map +1 -0
  147. package/dist/{businesses/me/users → organizations/me/members}/item/index.js +4 -4
  148. package/dist/organizations/me/members/item/index.js.map +1 -0
  149. package/dist/{businesses → organizations}/me/oneZerodlc/index.d.ts +2 -2
  150. package/dist/organizations/me/oneZerodlc/index.d.ts.map +1 -0
  151. package/dist/{businesses → organizations}/me/oneZerodlc/index.js +1 -1
  152. package/dist/organizations/me/oneZerodlc/index.js.map +1 -0
  153. package/dist/{businesses → organizations}/me/oneZerodlc/notes/index.d.ts +9 -9
  154. package/dist/organizations/me/oneZerodlc/notes/index.d.ts.map +1 -0
  155. package/dist/{businesses → organizations}/me/oneZerodlc/notes/index.js +3 -3
  156. package/dist/organizations/me/oneZerodlc/notes/index.js.map +1 -0
  157. package/dist/{businesses → organizations}/me/options/index.d.ts +7 -7
  158. package/dist/organizations/me/options/index.d.ts.map +1 -0
  159. package/dist/{businesses → organizations}/me/options/index.js +3 -3
  160. package/dist/organizations/me/options/index.js.map +1 -0
  161. package/dist/organizations/me/switchEscaped/index.d.ts +32 -0
  162. package/dist/organizations/me/switchEscaped/index.d.ts.map +1 -0
  163. package/dist/{businesses → organizations}/me/switchEscaped/index.js +4 -4
  164. package/dist/organizations/me/switchEscaped/index.js.map +1 -0
  165. package/dist/outbound/overview/index.d.ts +2 -2
  166. package/dist/paymentMethods/index.d.ts +2 -2
  167. package/dist/paymentMethods/invoices/index.d.ts +2 -2
  168. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts +3 -3
  169. package/dist/paymentMethods/item/defaultEscaped/index.d.ts +2 -2
  170. package/dist/paymentMethods/item/index.d.ts +2 -2
  171. package/dist/phoneNumbers/all/index.d.ts +3 -3
  172. package/dist/phoneNumbers/all/index.d.ts.map +1 -1
  173. package/dist/phoneNumbers/all/index.js +3 -3
  174. package/dist/phoneNumbers/all/index.js.map +1 -1
  175. package/dist/phoneNumbers/all/{business → organization}/index.d.ts +6 -6
  176. package/dist/phoneNumbers/all/organization/index.d.ts.map +1 -0
  177. package/dist/phoneNumbers/all/{business → organization}/index.js +3 -3
  178. package/dist/phoneNumbers/all/organization/index.js.map +1 -0
  179. package/dist/phoneNumbers/index.d.ts +2 -2
  180. package/dist/phoneNumbers/isAvailableForPurchase/index.d.ts +2 -2
  181. package/dist/phoneNumbers/item/index.d.ts +2 -2
  182. package/dist/sms/index.d.ts +5 -0
  183. package/dist/sms/index.d.ts.map +1 -1
  184. package/dist/sms/index.js +5 -0
  185. package/dist/sms/index.js.map +1 -1
  186. package/dist/sms/media/index.d.ts +97 -0
  187. package/dist/sms/media/index.d.ts.map +1 -0
  188. package/dist/sms/media/index.js +104 -0
  189. package/dist/sms/media/index.js.map +1 -0
  190. package/dist/sms/send/index.d.ts +2 -2
  191. package/dist/sources/index.d.ts +2 -2
  192. package/dist/sources/item/index.d.ts +6 -6
  193. package/dist/sources/item/metrics/index.d.ts +3 -3
  194. package/dist/suppressions/all/index.d.ts +20 -0
  195. package/dist/suppressions/all/index.d.ts.map +1 -0
  196. package/dist/suppressions/all/index.js +20 -0
  197. package/dist/suppressions/all/index.js.map +1 -0
  198. package/dist/suppressions/all/my/index.d.ts +31 -0
  199. package/dist/suppressions/all/my/index.d.ts.map +1 -0
  200. package/dist/suppressions/all/my/index.js +29 -0
  201. package/dist/suppressions/all/my/index.js.map +1 -0
  202. package/dist/suppressions/index.d.ts +12 -0
  203. package/dist/suppressions/index.d.ts.map +1 -1
  204. package/dist/suppressions/index.js +11 -0
  205. package/dist/suppressions/index.js.map +1 -1
  206. package/dist/suppressions/item/index.d.ts +30 -0
  207. package/dist/suppressions/item/index.d.ts.map +1 -0
  208. package/dist/{users/me/lastLogin → suppressions/item}/index.js +6 -6
  209. package/dist/suppressions/item/index.js.map +1 -0
  210. package/dist/tags/index.d.ts +5 -5
  211. package/dist/tags/item/index.d.ts +4 -4
  212. package/dist/usage/all/my/index.d.ts +2 -2
  213. package/dist/usage/summary/my/index.d.ts +3 -3
  214. package/dist/users/compliance/index.d.ts +2 -2
  215. package/dist/users/me/index.d.ts +4 -9
  216. package/dist/users/me/index.d.ts.map +1 -1
  217. package/dist/users/me/index.js +0 -5
  218. package/dist/users/me/index.js.map +1 -1
  219. package/dist/wallets/me/index.d.ts +2 -2
  220. package/package.json +1 -1
  221. package/dist/businesses/apiKeys/index.d.ts.map +0 -1
  222. package/dist/businesses/apiKeys/index.js.map +0 -1
  223. package/dist/businesses/apiKeys/my/index.d.ts.map +0 -1
  224. package/dist/businesses/apiKeys/my/index.js.map +0 -1
  225. package/dist/businesses/index.d.ts.map +0 -1
  226. package/dist/businesses/index.js.map +0 -1
  227. package/dist/businesses/invitations/accept/index.d.ts +0 -31
  228. package/dist/businesses/invitations/accept/index.d.ts.map +0 -1
  229. package/dist/businesses/invitations/accept/index.js.map +0 -1
  230. package/dist/businesses/invitations/index.d.ts.map +0 -1
  231. package/dist/businesses/invitations/index.js.map +0 -1
  232. package/dist/businesses/invitations/token/index.d.ts.map +0 -1
  233. package/dist/businesses/invitations/token/index.js.map +0 -1
  234. package/dist/businesses/invitations/token/item/index.d.ts.map +0 -1
  235. package/dist/businesses/invitations/token/item/index.js.map +0 -1
  236. package/dist/businesses/me/index.d.ts.map +0 -1
  237. package/dist/businesses/me/index.js.map +0 -1
  238. package/dist/businesses/me/invitations/index.d.ts.map +0 -1
  239. package/dist/businesses/me/invitations/index.js.map +0 -1
  240. package/dist/businesses/me/invitations/item/index.d.ts.map +0 -1
  241. package/dist/businesses/me/invitations/item/index.js.map +0 -1
  242. package/dist/businesses/me/invitations/item/resend/index.d.ts.map +0 -1
  243. package/dist/businesses/me/invitations/item/resend/index.js.map +0 -1
  244. package/dist/businesses/me/oneZerodlc/index.d.ts.map +0 -1
  245. package/dist/businesses/me/oneZerodlc/index.js.map +0 -1
  246. package/dist/businesses/me/oneZerodlc/notes/index.d.ts.map +0 -1
  247. package/dist/businesses/me/oneZerodlc/notes/index.js.map +0 -1
  248. package/dist/businesses/me/options/index.d.ts.map +0 -1
  249. package/dist/businesses/me/options/index.js.map +0 -1
  250. package/dist/businesses/me/switchEscaped/index.d.ts +0 -32
  251. package/dist/businesses/me/switchEscaped/index.d.ts.map +0 -1
  252. package/dist/businesses/me/switchEscaped/index.js.map +0 -1
  253. package/dist/businesses/me/users/index.d.ts +0 -57
  254. package/dist/businesses/me/users/index.d.ts.map +0 -1
  255. package/dist/businesses/me/users/index.js.map +0 -1
  256. package/dist/businesses/me/users/item/index.d.ts.map +0 -1
  257. package/dist/businesses/me/users/item/index.js.map +0 -1
  258. package/dist/dispositions/index.d.ts +0 -49
  259. package/dist/dispositions/index.d.ts.map +0 -1
  260. package/dist/dispositions/index.js +0 -47
  261. package/dist/dispositions/index.js.map +0 -1
  262. package/dist/dispositions/item/index.d.ts.map +0 -1
  263. package/dist/dispositions/item/index.js.map +0 -1
  264. package/dist/dispositions/lead/index.d.ts +0 -22
  265. package/dist/dispositions/lead/index.d.ts.map +0 -1
  266. package/dist/dispositions/lead/index.js +0 -22
  267. package/dist/dispositions/lead/index.js.map +0 -1
  268. package/dist/dispositions/lead/item/exportEscaped/index.d.ts.map +0 -1
  269. package/dist/dispositions/lead/item/exportEscaped/index.js.map +0 -1
  270. package/dist/dispositions/lead/item/index.d.ts.map +0 -1
  271. package/dist/dispositions/lead/item/index.js.map +0 -1
  272. package/dist/events/businesses/index.d.ts +0 -22
  273. package/dist/events/businesses/index.d.ts.map +0 -1
  274. package/dist/events/businesses/index.js +0 -21
  275. package/dist/events/businesses/index.js.map +0 -1
  276. package/dist/events/businesses/item/index.d.ts.map +0 -1
  277. package/dist/events/businesses/item/index.js.map +0 -1
  278. package/dist/phoneNumbers/all/business/index.d.ts.map +0 -1
  279. package/dist/phoneNumbers/all/business/index.js.map +0 -1
  280. package/dist/users/me/lastLogin/index.d.ts +0 -30
  281. package/dist/users/me/lastLogin/index.d.ts.map +0 -1
  282. package/dist/users/me/lastLogin/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../organizations/me/options/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoG,KAAK,wBAAwB,EAAuB,MAAM,0BAA0B,CAAC;AAEhM,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,wBAAwB,EAAE,GAAG,SAAS,CAAC,CAAC;IACxH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClH;AACD;;GAEG;AACH,eAAO,MAAM,gCAAgC,wCAAwC,CAAC;AACtF;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAUnD,CAAC"}
@@ -2,11 +2,11 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createBusinessSwitchOptionFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../../models/index.js';
5
+ import { createOrganizationSwitchOptionFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const OptionsRequestBuilderUriTemplate = "{+baseurl}/businesses/me/options";
9
+ export const OptionsRequestBuilderUriTemplate = "{+baseurl}/organizations/me/options";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
@@ -18,7 +18,7 @@ export const OptionsRequestBuilderRequestsMetadata = {
18
18
  401: createProblemDetailsFromDiscriminatorValue,
19
19
  },
20
20
  adapterMethodName: "sendCollection",
21
- responseBodyFactory: createBusinessSwitchOptionFromDiscriminatorValue,
21
+ responseBodyFactory: createOrganizationSwitchOptionFromDiscriminatorValue,
22
22
  },
23
23
  };
24
24
  /* tslint:enable */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../organizations/me/options/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oDAAoD,EAAE,0CAA0C,EAAsD,MAAM,0BAA0B,CAAC;AAsBhM;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,qCAAqC,CAAC;AACtF;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAqB;IACnE,GAAG,EAAE;QACD,WAAW,EAAE,gCAAgC;QAC7C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,gBAAgB;QACnC,mBAAmB,EAAG,oDAAoD;KAC7E;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,32 @@
1
+ import { type OrganizationResponse, type OrganizationSwitchRequest } from '../../../models/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /organizations/me/switch
5
+ */
6
+ export interface SwitchRequestBuilder extends BaseRequestBuilder<SwitchRequestBuilder> {
7
+ /**
8
+ * Switches the authenticated user's active organization context so subsequent lead, billing, and communication requests target that organization.
9
+ * @param body Request schema for the Leadping API organization switch request, including the fields clients can send.
10
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
+ * @returns {Promise<OrganizationResponse>}
12
+ * @throws {ProblemDetails} error when the service returns a 401 status code
13
+ * @throws {ProblemDetails} error when the service returns a 403 status code
14
+ */
15
+ post(body: OrganizationSwitchRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OrganizationResponse | undefined>;
16
+ /**
17
+ * Switches the authenticated user's active organization context so subsequent lead, billing, and communication requests target that organization.
18
+ * @param body Request schema for the Leadping API organization switch request, including the fields clients can send.
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns {RequestInformation}
21
+ */
22
+ toPostRequestInformation(body: OrganizationSwitchRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
23
+ }
24
+ /**
25
+ * Uri template for the request builder.
26
+ */
27
+ export declare const SwitchRequestBuilderUriTemplate = "{+baseurl}/organizations/me/switch";
28
+ /**
29
+ * Metadata for all the requests in the request builder.
30
+ */
31
+ export declare const SwitchRequestBuilderRequestsMetadata: RequestsMetadata;
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../organizations/me/switchEscaped/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmK,KAAK,oBAAoB,EAAE,KAAK,yBAAyB,EAAuB,MAAM,0BAA0B,CAAC;AAE3R,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,CAAC,oBAAoB,CAAC;IAClF;;;;;;;OAOG;IACF,IAAI,CAAC,IAAI,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;IACpJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,yBAAyB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACpJ;AACD;;GAEG;AACH,eAAO,MAAM,+BAA+B,uCAAuC,CAAC;AACpF;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,gBAclD,CAAC"}
@@ -2,11 +2,11 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createBusinessResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeBusinessSwitchRequest } from '../../../models/index.js';
5
+ import { createOrganizationResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeOrganizationSwitchRequest } from '../../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const SwitchRequestBuilderUriTemplate = "{+baseurl}/businesses/me/switch";
9
+ export const SwitchRequestBuilderUriTemplate = "{+baseurl}/organizations/me/switch";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
@@ -19,9 +19,9 @@ export const SwitchRequestBuilderRequestsMetadata = {
19
19
  403: createProblemDetailsFromDiscriminatorValue,
20
20
  },
21
21
  adapterMethodName: "send",
22
- responseBodyFactory: createBusinessResponseFromDiscriminatorValue,
22
+ responseBodyFactory: createOrganizationResponseFromDiscriminatorValue,
23
23
  requestBodyContentType: "application/json",
24
- requestBodySerializer: serializeBusinessSwitchRequest,
24
+ requestBodySerializer: serializeOrganizationSwitchRequest,
25
25
  requestInformationContentSetMethod: "setContentFromParsable",
26
26
  },
27
27
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../organizations/me/switchEscaped/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,gDAAgD,EAAE,0CAA0C,EAAiC,kCAAkC,EAAkF,MAAM,0BAA0B,CAAC;AAyB3R;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,oCAAoC,CAAC;AACpF;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAqB;IAClE,IAAI,EAAE;QACF,WAAW,EAAE,+BAA+B;QAC5C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,gDAAgD;QACtE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,kCAAkC;QACzD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -5,14 +5,14 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
5
5
  */
6
6
  export interface OverviewRequestBuilder extends BaseRequestBuilder<OverviewRequestBuilder> {
7
7
  /**
8
- * Returns current-business outbound capacity, scheduled work, and pacing decisions used to control lead communication delivery.
8
+ * Returns current-organization outbound capacity, scheduled work, and pacing decisions used to control lead communication delivery.
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
10
  * @returns {Promise<OutboundCapacityOverview>}
11
11
  * @throws {ProblemDetails} error when the service returns a 401 status code
12
12
  */
13
13
  get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OutboundCapacityOverview | undefined>;
14
14
  /**
15
- * Returns current-business outbound capacity, scheduled work, and pacing decisions used to control lead communication delivery.
15
+ * Returns current-organization outbound capacity, scheduled work, and pacing decisions used to control lead communication delivery.
16
16
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
17
  * @returns {RequestInformation}
18
18
  */
@@ -17,14 +17,14 @@ export interface PaymentMethodsRequestBuilder extends BaseRequestBuilder<Payment
17
17
  */
18
18
  byId(id: string): PaymentMethodsItemRequestBuilder;
19
19
  /**
20
- * Lists the payment methods available to the current business for billing, invoice payments, and wallet funding.
20
+ * Lists the payment methods available to the current organization for billing, invoice payments, and wallet funding.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
22
  * @returns {Promise<StripePaymentMethodResponse[]>}
23
23
  * @throws {ProblemDetails} error when the service returns a 401 status code
24
24
  */
25
25
  get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<StripePaymentMethodResponse[] | undefined>;
26
26
  /**
27
- * Lists the payment methods available to the current business for billing, invoice payments, and wallet funding.
27
+ * Lists the payment methods available to the current organization for billing, invoice payments, and wallet funding.
28
28
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
29
  * @returns {RequestInformation}
30
30
  */
@@ -12,13 +12,13 @@ export interface InvoicesRequestBuilder extends BaseRequestBuilder<InvoicesReque
12
12
  */
13
13
  byInvoiceId(invoiceId: string): WithInvoiceItemRequestBuilder;
14
14
  /**
15
- * Returns the current business's Stripe invoices with their amounts, payment status, billing period, and hosted invoice details.
15
+ * Returns the current organization's Stripe invoices with their amounts, payment status, billing period, and hosted invoice details.
16
16
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
17
  * @returns {Promise<StripeInvoiceResponse[]>}
18
18
  */
19
19
  get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<StripeInvoiceResponse[] | undefined>;
20
20
  /**
21
- * Returns the current business's Stripe invoices with their amounts, payment status, billing period, and hosted invoice details.
21
+ * Returns the current organization's Stripe invoices with their amounts, payment status, billing period, and hosted invoice details.
22
22
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
23
  * @returns {RequestInformation}
24
24
  */
@@ -5,21 +5,21 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
5
5
  */
6
6
  export interface PdfAccessRequestBuilder extends BaseRequestBuilder<PdfAccessRequestBuilder> {
7
7
  /**
8
- * Creates a short-lived, secure URL that lets the current business view or download a private Stripe invoice PDF without exposing a permanent file link.
8
+ * Creates a short-lived, secure URL that lets the current organization view or download a private Stripe invoice PDF without exposing a permanent file link.
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
10
  * @returns {Promise<InvoicePdfAccessResponse>}
11
11
  * @throws {ProblemDetails} error when the service returns a 404 status code
12
12
  */
13
13
  get(requestConfiguration?: RequestConfiguration<PdfAccessRequestBuilderGetQueryParameters> | undefined): Promise<InvoicePdfAccessResponse | undefined>;
14
14
  /**
15
- * Creates a short-lived, secure URL that lets the current business view or download a private Stripe invoice PDF without exposing a permanent file link.
15
+ * Creates a short-lived, secure URL that lets the current organization view or download a private Stripe invoice PDF without exposing a permanent file link.
16
16
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
17
  * @returns {RequestInformation}
18
18
  */
19
19
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<PdfAccessRequestBuilderGetQueryParameters> | undefined): RequestInformation;
20
20
  }
21
21
  /**
22
- * Creates a short-lived, secure URL that lets the current business view or download a private Stripe invoice PDF without exposing a permanent file link.
22
+ * Creates a short-lived, secure URL that lets the current organization view or download a private Stripe invoice PDF without exposing a permanent file link.
23
23
  */
24
24
  export interface PdfAccessRequestBuilderGetQueryParameters {
25
25
  download?: boolean;
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
5
5
  */
6
6
  export interface DefaultRequestBuilder extends BaseRequestBuilder<DefaultRequestBuilder> {
7
7
  /**
8
- * Sets a payment method as the default for the current business's future invoices and billing activity.
8
+ * Sets a payment method as the default for the current organization's future invoices and billing activity.
9
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
10
  * @returns {Promise<StripePaymentMethodResponse>}
11
11
  * @throws {ProblemDetails} error when the service returns a 400 status code
@@ -13,7 +13,7 @@ export interface DefaultRequestBuilder extends BaseRequestBuilder<DefaultRequest
13
13
  */
14
14
  post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<StripePaymentMethodResponse | undefined>;
15
15
  /**
16
- * Sets a payment method as the default for the current business's future invoices and billing activity.
16
+ * Sets a payment method as the default for the current organization's future invoices and billing activity.
17
17
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
18
18
  * @returns {RequestInformation}
19
19
  */
@@ -18,7 +18,7 @@ export interface PaymentMethodsItemRequestBuilder extends BaseRequestBuilder<Pay
18
18
  */
19
19
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
20
20
  /**
21
- * Returns one payment method for the current user or business, including card metadata used for billing management.
21
+ * Returns one payment method for the current user or organization, including card metadata used for billing management.
22
22
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
23
  * @returns {Promise<StripePaymentMethodResponse>}
24
24
  * @throws {ProblemDetails} error when the service returns a 400 status code
@@ -33,7 +33,7 @@ export interface PaymentMethodsItemRequestBuilder extends BaseRequestBuilder<Pay
33
33
  */
34
34
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
35
35
  /**
36
- * Returns one payment method for the current user or business, including card metadata used for billing management.
36
+ * Returns one payment method for the current user or organization, including card metadata used for billing management.
37
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38
38
  * @returns {RequestInformation}
39
39
  */
@@ -1,13 +1,13 @@
1
- import { type BusinessRequestBuilder } from './business/index.js';
1
+ import { type OrganizationRequestBuilder } from './organization/index.js';
2
2
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
4
  * Builds and executes requests for operations under /phone-numbers/all
5
5
  */
6
6
  export interface AllRequestBuilder extends BaseRequestBuilder<AllRequestBuilder> {
7
7
  /**
8
- * The business property
8
+ * The organization property
9
9
  */
10
- get business(): BusinessRequestBuilder;
10
+ get organization(): OrganizationRequestBuilder;
11
11
  }
12
12
  /**
13
13
  * Uri template for the request builder.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../phoneNumbers/all/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0C,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1G,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;OAEG;IACH,IAAI,QAAQ,IAAI,sBAAsB,CAAC;CAC1C;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAIhJ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../phoneNumbers/all/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8C,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAEtH,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;OAEG;IACH,IAAI,YAAY,IAAI,0BAA0B,CAAC;CAClD;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAIhJ,CAAC"}
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { BusinessRequestBuilderRequestsMetadata } from './business/index.js';
5
+ import { OrganizationRequestBuilderRequestsMetadata } from './organization/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
@@ -11,8 +11,8 @@ export const AllRequestBuilderUriTemplate = "{+baseurl}/phone-numbers/all";
11
11
  * Metadata for all the navigation properties in the request builder.
12
12
  */
13
13
  export const AllRequestBuilderNavigationMetadata = {
14
- business: {
15
- requestsMetadata: BusinessRequestBuilderRequestsMetadata,
14
+ organization: {
15
+ requestsMetadata: OrganizationRequestBuilderRequestsMetadata,
16
16
  },
17
17
  };
18
18
  /* tslint:enable */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../phoneNumbers/all/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAa1G;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AAC3E;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqG;IACjJ,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;KAC3D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../phoneNumbers/all/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAmC,MAAM,yBAAyB,CAAC;AAatH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AAC3E;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqG;IACjJ,YAAY,EAAE;QACV,gBAAgB,EAAE,0CAA0C;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -1,11 +1,11 @@
1
1
  import { type PagedResultOfPhoneNumberTableRow, type RequestDataOptions } from '../../../models/index.js';
2
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
3
  /**
4
- * Builds and executes requests for operations under /phone-numbers/all/business
4
+ * Builds and executes requests for operations under /phone-numbers/all/organization
5
5
  */
6
- export interface BusinessRequestBuilder extends BaseRequestBuilder<BusinessRequestBuilder> {
6
+ export interface OrganizationRequestBuilder extends BaseRequestBuilder<OrganizationRequestBuilder> {
7
7
  /**
8
- * Lists phone numbers visible to the current business with paging, sorting, and filters for messaging, calling, and warmup management.
8
+ * Lists phone numbers visible to the current organization with paging, sorting, and filters for messaging, calling, and warmup management.
9
9
  * @param body Options for flexible, efficient, and explicit querying in Cosmos DB or similar repositories.
10
10
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
11
  * @returns {Promise<PagedResultOfPhoneNumberTableRow>}
@@ -14,7 +14,7 @@ export interface BusinessRequestBuilder extends BaseRequestBuilder<BusinessReque
14
14
  */
15
15
  post(body: RequestDataOptions, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PagedResultOfPhoneNumberTableRow | undefined>;
16
16
  /**
17
- * Lists phone numbers visible to the current business with paging, sorting, and filters for messaging, calling, and warmup management.
17
+ * Lists phone numbers visible to the current organization with paging, sorting, and filters for messaging, calling, and warmup management.
18
18
  * @param body Options for flexible, efficient, and explicit querying in Cosmos DB or similar repositories.
19
19
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
20
  * @returns {RequestInformation}
@@ -24,9 +24,9 @@ export interface BusinessRequestBuilder extends BaseRequestBuilder<BusinessReque
24
24
  /**
25
25
  * Uri template for the request builder.
26
26
  */
27
- export declare const BusinessRequestBuilderUriTemplate = "{+baseurl}/phone-numbers/all/business";
27
+ export declare const OrganizationRequestBuilderUriTemplate = "{+baseurl}/phone-numbers/all/organization";
28
28
  /**
29
29
  * Metadata for all the requests in the request builder.
30
30
  */
31
- export declare const BusinessRequestBuilderRequestsMetadata: RequestsMetadata;
31
+ export declare const OrganizationRequestBuilderRequestsMetadata: RequestsMetadata;
32
32
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../phoneNumbers/all/organization/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoL,KAAK,gCAAgC,EAAuB,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEjT,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB,CAAC,0BAA0B,CAAC;IAC9F;;;;;;;OAOG;IACF,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAAC;IACzJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC7I;AACD;;GAEG;AACH,eAAO,MAAM,qCAAqC,8CAA8C,CAAC;AACjG;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,gBAcxD,CAAC"}
@@ -6,13 +6,13 @@ import { createPagedResultOfPhoneNumberTableRowFromDiscriminatorValue, createPro
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const BusinessRequestBuilderUriTemplate = "{+baseurl}/phone-numbers/all/business";
9
+ export const OrganizationRequestBuilderUriTemplate = "{+baseurl}/phone-numbers/all/organization";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
13
- export const BusinessRequestBuilderRequestsMetadata = {
13
+ export const OrganizationRequestBuilderRequestsMetadata = {
14
14
  post: {
15
- uriTemplate: BusinessRequestBuilderUriTemplate,
15
+ uriTemplate: OrganizationRequestBuilderUriTemplate,
16
16
  responseBodyContentType: "application/json",
17
17
  errorMappings: {
18
18
  400: createProblemDetailsFromDiscriminatorValue,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../phoneNumbers/all/organization/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,4DAA4D,EAAE,0CAA0C,EAA6C,2BAA2B,EAAuF,MAAM,0BAA0B,CAAC;AAyBjT;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,2CAA2C,CAAC;AACjG;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAqB;IACxE,IAAI,EAAE;QACF,WAAW,EAAE,qCAAqC;QAClD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,4DAA4D;QAClF,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,2BAA2B;QAClD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -32,7 +32,7 @@ export interface PhoneNumbersRequestBuilder extends BaseRequestBuilder<PhoneNumb
32
32
  */
33
33
  byPhoneNumberId(phoneNumberId: string): PhoneNumberItemRequestBuilder;
34
34
  /**
35
- * Purchases or creates a phone number for the current business so it can be assigned to messaging, calls, and lead follow-up.
35
+ * Purchases or creates a phone number for the current organization so it can be assigned to messaging, calls, and lead follow-up.
36
36
  * @param body Request schema for the Leadping API phone number update request, including the fields clients can send.
37
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38
38
  * @returns {Promise<PhoneNumberResponse>}
@@ -42,7 +42,7 @@ export interface PhoneNumbersRequestBuilder extends BaseRequestBuilder<PhoneNumb
42
42
  */
43
43
  post(body: PhoneNumberRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PhoneNumberResponse | undefined>;
44
44
  /**
45
- * Purchases or creates a phone number for the current business so it can be assigned to messaging, calls, and lead follow-up.
45
+ * Purchases or creates a phone number for the current organization so it can be assigned to messaging, calls, and lead follow-up.
46
46
  * @param body Request schema for the Leadping API phone number update request, including the fields clients can send.
47
47
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
48
48
  * @returns {RequestInformation}
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
5
5
  */
6
6
  export interface IsAvailableForPurchaseRequestBuilder extends BaseRequestBuilder<IsAvailableForPurchaseRequestBuilder> {
7
7
  /**
8
- * Checks whether a phone number can be purchased for the current business before creating or assigning it.
8
+ * Checks whether a phone number can be purchased for the current organization before creating or assigning it.
9
9
  * @param body Request schema for checking phone number availability before purchase or assignment.
10
10
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
11
11
  * @returns {Promise<PhoneNumberAvailabilityResponse>}
@@ -15,7 +15,7 @@ export interface IsAvailableForPurchaseRequestBuilder extends BaseRequestBuilder
15
15
  */
16
16
  post(body: PhoneNumberAvailabilityRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PhoneNumberAvailabilityResponse | undefined>;
17
17
  /**
18
- * Checks whether a phone number can be purchased for the current business before creating or assigning it.
18
+ * Checks whether a phone number can be purchased for the current organization before creating or assigning it.
19
19
  * @param body Request schema for checking phone number availability before purchase or assignment.
20
20
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
21
  * @returns {RequestInformation}
@@ -15,7 +15,7 @@ export interface PhoneNumberItemRequestBuilder extends BaseRequestBuilder<PhoneN
15
15
  */
16
16
  get warmup(): WarmupRequestBuilder;
17
17
  /**
18
- * Deletes a phone number from the current business when it should no longer be used for lead communication.
18
+ * Deletes a phone number from the current organization when it should no longer be used for lead communication.
19
19
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
20
  * @throws {ProblemDetails} error when the service returns a 400 status code
21
21
  * @throws {ProblemDetails} error when the service returns a 401 status code
@@ -43,7 +43,7 @@ export interface PhoneNumberItemRequestBuilder extends BaseRequestBuilder<PhoneN
43
43
  */
44
44
  put(body: PhoneNumberRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PhoneNumberResponse | undefined>;
45
45
  /**
46
- * Deletes a phone number from the current business when it should no longer be used for lead communication.
46
+ * Deletes a phone number from the current organization when it should no longer be used for lead communication.
47
47
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
48
48
  * @returns {RequestInformation}
49
49
  */
@@ -1,10 +1,15 @@
1
1
  import { type WithSmsEventItemRequestBuilder } from './item/index.js';
2
+ import { type MediaRequestBuilder } from './media/index.js';
2
3
  import { type SendRequestBuilder } from './send/index.js';
3
4
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
4
5
  /**
5
6
  * Builds and executes requests for operations under /sms
6
7
  */
7
8
  export interface SmsRequestBuilder extends BaseRequestBuilder<SmsRequestBuilder> {
9
+ /**
10
+ * The media property
11
+ */
12
+ get media(): MediaRequestBuilder;
8
13
  /**
9
14
  * The send property
10
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../sms/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,8BAA8B,EAAoD,MAAM,iBAAiB,CAAC;AAExH,OAAO,EAAsC,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;OAEG;IACH,IAAI,IAAI,IAAI,kBAAkB,CAAC;IAC/B;;;;OAIG;IACF,YAAY,CAAC,UAAU,EAAE,MAAM,GAAI,8BAA8B,CAAC;CACtE;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAC7D;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAQhJ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../sms/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,8BAA8B,EAAoD,MAAM,iBAAiB,CAAC;AAExH,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAAsC,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,IAAI,IAAI,kBAAkB,CAAC;IAC/B;;;;OAIG;IACF,YAAY,CAAC,UAAU,EAAE,MAAM,GAAI,8BAA8B,CAAC;CACtE;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAC7D;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAWhJ,CAAC"}
package/dist/sms/index.js CHANGED
@@ -4,6 +4,8 @@
4
4
  // @ts-ignore
5
5
  import { WithSmsEventItemRequestBuilderNavigationMetadata } from './item/index.js';
6
6
  // @ts-ignore
7
+ import { MediaRequestBuilderRequestsMetadata } from './media/index.js';
8
+ // @ts-ignore
7
9
  import { SendRequestBuilderRequestsMetadata } from './send/index.js';
8
10
  /**
9
11
  * Uri template for the request builder.
@@ -17,6 +19,9 @@ export const SmsRequestBuilderNavigationMetadata = {
17
19
  navigationMetadata: WithSmsEventItemRequestBuilderNavigationMetadata,
18
20
  pathParametersMappings: ["smsEventId"],
19
21
  },
22
+ media: {
23
+ requestsMetadata: MediaRequestBuilderRequestsMetadata,
24
+ },
20
25
  send: {
21
26
  requestsMetadata: SendRequestBuilderRequestsMetadata,
22
27
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../sms/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAuC,gDAAgD,EAAE,MAAM,iBAAiB,CAAC;AACxH,aAAa;AACb,OAAO,EAAE,kCAAkC,EAA2B,MAAM,iBAAiB,CAAC;AAmB9F;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;AAC7D;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqG;IACjJ,YAAY,EAAE;QACV,kBAAkB,EAAE,gDAAgD;QACpE,sBAAsB,EAAE,CAAC,YAAY,CAAC;KACzC;IACD,IAAI,EAAE;QACF,gBAAgB,EAAE,kCAAkC;KACvD;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../sms/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAuC,gDAAgD,EAAE,MAAM,iBAAiB,CAAC;AACxH,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA4B,MAAM,kBAAkB,CAAC;AACjG,aAAa;AACb,OAAO,EAAE,kCAAkC,EAA2B,MAAM,iBAAiB,CAAC;AAuB9F;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;AAC7D;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqG;IACjJ,YAAY,EAAE;QACV,kBAAkB,EAAE,gDAAgD;QACpE,sBAAsB,EAAE,CAAC,YAAY,CAAC;KACzC;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,mCAAmC;KACxD;IACD,IAAI,EAAE;QACF,gBAAgB,EAAE,kCAAkC;KACvD;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,97 @@
1
+ import { type MessageMediaAttachment } from '../../models/index.js';
2
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {MediaPostRequestBody_Headers}
7
+ */
8
+ export declare function createMediaPostRequestBody_HeadersFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ /**
10
+ * Creates a new instance of the appropriate class based on discriminator value
11
+ * @param parseNode The parse node to use to read the discriminator value and create the object
12
+ * @returns {MediaPostRequestBody}
13
+ */
14
+ export declare function createMediaPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
15
+ /**
16
+ * The deserialization information for the current model
17
+ * @param MediaPostRequestBody The instance to deserialize into.
18
+ * @returns {Record<string, (node: ParseNode) => void>}
19
+ */
20
+ export declare function deserializeIntoMediaPostRequestBody(mediaPostRequestBody?: Partial<MediaPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
21
+ /**
22
+ * The deserialization information for the current model
23
+ * @param MediaPostRequestBody_Headers The instance to deserialize into.
24
+ * @returns {Record<string, (node: ParseNode) => void>}
25
+ */
26
+ export declare function deserializeIntoMediaPostRequestBody_Headers(mediaPostRequestBody_Headers?: Partial<MediaPostRequestBody_Headers> | undefined): Record<string, (node: ParseNode) => void>;
27
+ export interface MediaPostRequestBody extends AdditionalDataHolder, Parsable {
28
+ /**
29
+ * The ContentDisposition property
30
+ */
31
+ contentDisposition?: string | null;
32
+ /**
33
+ * The ContentType property
34
+ */
35
+ contentType?: string | null;
36
+ /**
37
+ * The FileName property
38
+ */
39
+ fileName?: string | null;
40
+ /**
41
+ * The Headers property
42
+ */
43
+ headers?: MediaPostRequestBody_Headers | null;
44
+ /**
45
+ * The Length property
46
+ */
47
+ length?: number | null;
48
+ /**
49
+ * The Name property
50
+ */
51
+ name?: string | null;
52
+ }
53
+ export interface MediaPostRequestBody_Headers extends AdditionalDataHolder, Parsable {
54
+ }
55
+ /**
56
+ * Builds and executes requests for operations under /sms/media
57
+ */
58
+ export interface MediaRequestBuilder extends BaseRequestBuilder<MediaRequestBuilder> {
59
+ /**
60
+ * Uploads media for a subsequent MMS send.
61
+ * @param body The request body
62
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
63
+ * @returns {Promise<MessageMediaAttachment>}
64
+ * @throws {ProblemDetails} error when the service returns a 400 status code
65
+ */
66
+ post(body: MediaPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<MessageMediaAttachment | undefined>;
67
+ /**
68
+ * Uploads media for a subsequent MMS send.
69
+ * @param body The request body
70
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
71
+ * @returns {RequestInformation}
72
+ */
73
+ toPostRequestInformation(body: MediaPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
74
+ }
75
+ /**
76
+ * Serializes information the current object
77
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
78
+ * @param MediaPostRequestBody The instance to serialize from.
79
+ * @param writer Serialization writer to use to serialize this model
80
+ */
81
+ export declare function serializeMediaPostRequestBody(writer: SerializationWriter, mediaPostRequestBody?: Partial<MediaPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
82
+ /**
83
+ * Serializes information the current object
84
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
85
+ * @param MediaPostRequestBody_Headers The instance to serialize from.
86
+ * @param writer Serialization writer to use to serialize this model
87
+ */
88
+ export declare function serializeMediaPostRequestBody_Headers(writer: SerializationWriter, mediaPostRequestBody_Headers?: Partial<MediaPostRequestBody_Headers> | undefined | null, isSerializingDerivedType?: boolean): void;
89
+ /**
90
+ * Uri template for the request builder.
91
+ */
92
+ export declare const MediaRequestBuilderUriTemplate = "{+baseurl}/sms/media";
93
+ /**
94
+ * Metadata for all the requests in the request builder.
95
+ */
96
+ export declare const MediaRequestBuilderRequestsMetadata: RequestsMetadata;
97
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../sms/media/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmI,KAAK,sBAAsB,EAAuB,MAAM,uBAAuB,CAAC;AAE1N,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE7P;;;;GAIG;AAEH,wBAAgB,wDAAwD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAEhL;AACD;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAExK;AACD;;;;GAIG;AAEH,wBAAgB,mCAAmC,CAAC,oBAAoB,GAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CASpK;AACD;;;;GAIG;AAEH,wBAAgB,2CAA2C,CAAC,4BAA4B,GAAE,OAAO,CAAC,4BAA4B,CAAC,GAAG,SAAc,GAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAG5L;AACD,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB,EAAE,QAAQ;IACxE;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AACD,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB,EAAE,QAAQ;CACnF;AACD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IACjJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC/I;AACD;;;;;GAKG;AAEH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,GAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CASxM;AACD;;;;;GAKG;AAEH,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,mBAAmB,EAAE,4BAA4B,GAAE,OAAO,CAAC,4BAA4B,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAGhO;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,yBAAyB,CAAC;AACrE;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAajD,CAAC"}