Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

apiEndpoints.js 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. export default {
  2. accounts: {
  3. get: "accounts/{accountUid}",
  4. forgotPassword: "forgot-password",
  5. resetPassword: "reset-password",
  6. getCurrentUserPermissions:
  7. "accounts/{currentAccountUid}/users/{currentUserUid}/permissions",
  8. getAddresses: "accounts/{accountUid}/addresses",
  9. updateAddress: "account/{accountUid}/addresses/{addressUid}",
  10. deleteAddress: "accounts/{accountUid}/addresses/{addressUid}",
  11. getUsers: "accounts/{accountUid}/users",
  12. register: "users",
  13. updateUser: "account/{accountUid}/users/{userUid}?actionType={actionType}",
  14. deleteUser: "accounts/{accountUid}/users/{userUid}",
  15. getSettings: "accounts/{accountUid}/settings",
  16. getIraSettings: "accounts/{accountUid}/iraSettings",
  17. getSettingsRegistration: "application/settings",
  18. agreement: "accounts/agreement",
  19. },
  20. authentications: {
  21. getUsernames: "authenticate/usernames",
  22. login: "auth/token",
  23. logout: "auth/logout",
  24. getUserSecurityQuestion: "users/username/securityquestion",
  25. confirmSecurityQuestion: "authenticate/confirm",
  26. confirmForgotPassword: "users/passwords/reset_token",
  27. resetPassword: "auth/reset-password",
  28. forgotPassword: "auth/forgot-password",
  29. refreshToken: "/auth/refresh",
  30. generateToken: "/authenticate/generate",
  31. authenticate:
  32. "/authenticate?fp={fp}&offer={offer}&landingPageUrl={landingPageUrl}&registrationFlowType={registrationFlowType}",
  33. confirmAuthentication:
  34. "/authenticate/confirm?fp={fp}&offer={offer}&landingPageUrl={landingPageUrl}&registrationFlowType={registrationFlowType}",
  35. },
  36. bankAccounts: {
  37. get: "accounts/{accountUid}/bankaccounts",
  38. getBankAccount:
  39. "accounts/{accountUid}/bankaccounts/{bankAccountUid}?type={type}",
  40. getBankAccountsByType:
  41. "accounts/{accountUid}/bankaccounts?type={type}&active=true",
  42. getBankDetailsByRoutingNumber: "banks/{routingNumber}",
  43. newAccount: "accounts/{accountUid}/bankaccounts",
  44. deleteAccount:
  45. "accounts/{accountUid}/bankaccounts/{bankAccountUid}?type={type}",
  46. verify: "/accounts/{accountUid}/bankaccountverification/{bankAccountUid}",
  47. postBankAccountRegistration: "/accounts/{applicationUid}/bankaccounts",
  48. getRegistration: "banks/{applicationUid}/bankaccounts",
  49. },
  50. documents: {
  51. getDocuments: "accounts/{accountUid}/documents?year={year}",
  52. getDocument: "accounts/{accountUid}/documents/{documentType}",
  53. },
  54. countries: "/countries",
  55. metalStream: {
  56. getMetalStreamSettings: "accounts/{accountUid}/metalstream",
  57. getMetalStreamFundings: "applications/{applicationUid}/metalStreamFunding",
  58. },
  59. orders: {
  60. buyForStorage: "/accounts/{accountUid}/orders/buyForStorage",
  61. buyForDelivery: "/accounts/{accountUid}/orders/buyForDelivery",
  62. verifyBuyForDelivery: "/accounts/{accountUid}/orders/buyForDelivery/verify",
  63. sellFromStorage: "/accounts/{accountUid}/orders/sellFromStorage",
  64. fractionalConversion: "/accounts/{accountUid}/orders/fractionalConversion",
  65. deliverFromStorageVerify:
  66. "/accounts/{accountUid}/orders/deliverFromStorage/verify",
  67. deliverFromStorage: "/accounts/{accountUid}/orders/deliverFromStorage",
  68. iraCashDistribution: "/accounts/{accountUid}/orders/iraCashDistribution",
  69. iraCashTransfer: "/accounts/{accountUid}/orders/iraCashTransfer",
  70. iraFeeWithdrawal: "accounts/{accountUid}/orders/iraFeeWithdrawal",
  71. achDeposit: "accounts/{accountUid}/orders/achDeposit",
  72. wireWithdrawal: "/accounts/{accountUid}/orders/wireWithdrawal",
  73. checkWithdrawal: "/accounts/{accountUid}/orders/checkWithdrawal",
  74. },
  75. portfolio: {
  76. getPortfolioValuations: "accounts/{accountUid}/portfolio/valuations",
  77. getPortfolioMetalPrices: "marketprices",
  78. getPortfolioHoldings:
  79. "accounts/{accountUid}/portfolio/products?valuation=true",
  80. getPortfolioProductCodes: "/accounts/{accountUid}/portfolio/productcodes",
  81. getPortfolioBalances: "/accounts/{accountUid}/portfolio/balances",
  82. getPortfolioProductBySymbol:
  83. "/accounts/{accountUid}/portfolio/products/{symbol}",
  84. getPortfolioTransactions: "/accounts/{accountUid}/transactions",
  85. getPortfolioSingleTransaction:
  86. "/accounts/{accountUid}/transactions/{transactionUid}",
  87. getProductPortoflioTransactions: "accounts/{accountUid}/transactions",
  88. getRecentPortfolioTransactions:
  89. "accounts/{accountUid}/transactions?content=Recent",
  90. getFinancialPortfolioTransactions: "accounts/{accountUid}/transactions",
  91. getFinancialPortfolioPendingTransactions:
  92. "accounts/{accountUid}/transactions/fundinghistory",
  93. patchFinancialPortfolioPendingTransactions:
  94. "/accounts/{accountUid}/transactions/fundinghistory/{depositKey}",
  95. },
  96. products: {
  97. getPrices: "/accounts/{accountUid}/products/prices",
  98. prices: "accounts/{accountUid}/products/prices?side={side}",
  99. tiers:
  100. "/accounts/{accountUid}/products/prices/{symbol}/tiers?side={side}&location={location}",
  101. symbolPrices: "/accounts/{accountUid}/products/{symbol}/prices?side={side}",
  102. getPricesRegistration: "applications/{applicationUid}/products/prices",
  103. },
  104. settings: {
  105. get: "settings",
  106. },
  107. taxForms: {
  108. getTaxForms: "settings/taxForms/{applicationType}",
  109. },
  110. users: {
  111. getAccounts: "/users/{userUid}/accounts",
  112. getRegistrationAccounts: "/users/{userUid}/accounts",
  113. updateUser: "/users/{userUid}?updateUserActionType={actionType}",
  114. updateUserPassword: "/users/{userUid}/passwords",
  115. logout: "/auth/logout",
  116. getUsernames: "/users/email",
  117. createUser:
  118. "/users?fp={fp}&offer={offer}&landingPageUrl={landingPageUrl}&registrationFlowType={registrationFlowType}",
  119. updateUserRegistration: "/users/{userUid}",
  120. invite: "/users/invite",
  121. getProfile: "users/",
  122. editProfile: "users/{userId}",
  123. getAllProfiles: "users/companies",
  124. editProfileAsAdmin: "admin/users/{userId}",
  125. getAllProfilesAsAdmin: "admin/users",
  126. deleteProfileAsAdmin: "admin/users/{userId}",
  127. blockProfileAsAdmin: "admin/users/{userId}/block",
  128. unblockProfileAsAdmin: "admin/users/{userId}/unblock",
  129. },
  130. applications: {
  131. application: "/applications/{applicationUid}",
  132. addPerson: "/applications/{applicationUid}/persons",
  133. updatePerson: "/applications/{applicationUid}/persons/{personUid}",
  134. addPersonWithGiftState:
  135. "/applications/{applicationUid}/UTMA/persons?giftState={giftState}",
  136. updatePersonWithGiftState:
  137. "/applications/{applicationUid}/UTMA/persons/{personUid}?giftState={giftState}",
  138. addPersonWithCompanyName:
  139. "/applications/{applicationUid}/IRA/persons?companyName={companyName}",
  140. updatePersonWithCompanyName:
  141. "/applications/{applicationUid}/IRA/persons/{personUid}?companyName={companyName}",
  142. submitLegalEntity: "/applications/{applicationUid}/legalEntities",
  143. updateLegalEntity:
  144. "/applications/{applicationUid}/legalEntities/{personUid}",
  145. postNonIraFunding: "/applications/{applicationUid}/funding",
  146. postIraFunding: "/applications/{applicationUid}/iraFunding",
  147. postMSFunding: "/applications/{applicationUid}/metalStreamFunding",
  148. consent: "/applications/{applicationUid}/consents",
  149. updateConsent: `/applications/{applicationUid}/consents/{agreementConsentUid}`,
  150. submitMetalStreamRegistration:
  151. "/applications/{applicationUid}/metalStreamFunding",
  152. },
  153. common: {
  154. getCountries: "/countries/",
  155. getTaxForms: "/taxForms/",
  156. getContributionYears: "contributionYears",
  157. getCountryStates: "/countries/{iso3CountryCode}/states/",
  158. getSecurityQuestions: "/registration/securityQuestions/",
  159. getPortalSecurityQuestions: "/securityQuestions",
  160. },
  161. plaid: {
  162. getToken: "/bankaccounts/createplaidlinktoken",
  163. },
  164. affiliate: {
  165. setCookie: "/affiliate/picture",
  166. setFingerprint: "/affiliate/fingerprint",
  167. },
  168. offers: {
  169. getOneOffer: "offers/{offerId}",
  170. getOffers: "offers",
  171. getFeaturedOffers: "offers/featured",
  172. addOffer: "/users/{userId}/offers",
  173. editOffer: "/users/{userId}/offers/{offerId}",
  174. editOfferAsAdmin: "/admin/offers/{offerId}",
  175. categories: "categories",
  176. locations: "locations",
  177. mineOffers: "users",
  178. profileOffers: "users/{userId}/offers",
  179. profileOffersAsAdmin: "admin/users/{userId}/offers",
  180. removeOffer: "/users/{userId}/offers/{offerId}",
  181. removeOfferAsAdmin: "/admin/offers/{offerId}",
  182. pinOffer: "admin/offers/{id}/pin",
  183. },
  184. chat: {
  185. getChat: "chats",
  186. getUserChats: "users/{userId}/chats",
  187. getOneChat: "users/{userId}/chats/{chatId}",
  188. createChat: "users/{userId}/offers/{offerId}/chat",
  189. sendMessage: "chats",
  190. },
  191. exchange: {
  192. getExchange: "exchanges",
  193. validateExchange: "exchanges",
  194. acceptExchange: "users/{userId}/exchanges/{exchangeId}/accept",
  195. },
  196. reviews: {
  197. getUserReviews: "/users/{userId}/reviews",
  198. postReview: "/users/{userId}/reviews",
  199. removeReview: "/admin/reviews/{id}",
  200. },
  201. admin: {
  202. categories: {
  203. newCategory: "admin/categories",
  204. editCategory: "admin/categories/{categoryId}",
  205. deleteCategory: "admin/categories/{categoryId}",
  206. },
  207. subcategories: {
  208. newSubcategory: "admin/categories/{categoryId}",
  209. editSubcategory: "admin/categories/{categoryId}/{subcategoryName}",
  210. deleteSubcategory: "admin/categories/{categoryId}/{subcategoryName}",
  211. },
  212. locations: {
  213. newLocation: "admin/locations",
  214. editLocation: "admin/locations/{locationId}",
  215. deleteLocation: "admin/locations/{locationId}",
  216. },
  217. reviews: {
  218. getUserReviewsAsAdmin: "admin/reviews/{userId}",
  219. },
  220. },
  221. };