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

apiEndpoints.js 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. },
  129. applications: {
  130. application: "/applications/{applicationUid}",
  131. addPerson: "/applications/{applicationUid}/persons",
  132. updatePerson: "/applications/{applicationUid}/persons/{personUid}",
  133. addPersonWithGiftState:
  134. "/applications/{applicationUid}/UTMA/persons?giftState={giftState}",
  135. updatePersonWithGiftState:
  136. "/applications/{applicationUid}/UTMA/persons/{personUid}?giftState={giftState}",
  137. addPersonWithCompanyName:
  138. "/applications/{applicationUid}/IRA/persons?companyName={companyName}",
  139. updatePersonWithCompanyName:
  140. "/applications/{applicationUid}/IRA/persons/{personUid}?companyName={companyName}",
  141. submitLegalEntity: "/applications/{applicationUid}/legalEntities",
  142. updateLegalEntity:
  143. "/applications/{applicationUid}/legalEntities/{personUid}",
  144. postNonIraFunding: "/applications/{applicationUid}/funding",
  145. postIraFunding: "/applications/{applicationUid}/iraFunding",
  146. postMSFunding: "/applications/{applicationUid}/metalStreamFunding",
  147. consent: "/applications/{applicationUid}/consents",
  148. updateConsent: `/applications/{applicationUid}/consents/{agreementConsentUid}`,
  149. submitMetalStreamRegistration:
  150. "/applications/{applicationUid}/metalStreamFunding",
  151. },
  152. common: {
  153. getCountries: "/countries/",
  154. getTaxForms: "/taxForms/",
  155. getContributionYears: "contributionYears",
  156. getCountryStates: "/countries/{iso3CountryCode}/states/",
  157. getSecurityQuestions: "/registration/securityQuestions/",
  158. getPortalSecurityQuestions: "/securityQuestions",
  159. },
  160. plaid: {
  161. getToken: "/bankaccounts/createplaidlinktoken",
  162. },
  163. affiliate: {
  164. setCookie: "/affiliate/picture",
  165. setFingerprint: "/affiliate/fingerprint",
  166. },
  167. offers: {
  168. getOneOffer: "offers",
  169. getOffers: "offers",
  170. getFeaturedOffers: "offers/featured",
  171. addOffer: "/users/{userId}/offers",
  172. editOffer: "/users/{userId}/offers/{offerId}",
  173. categories: "categories",
  174. locations: "locations",
  175. mineOffers: "users",
  176. removeOffer: "/users/{userId}/offers/{offerId}",
  177. pinOffer: "offers/{id}/pin",
  178. },
  179. chat: {
  180. getChat: "chats",
  181. getUserChats: "users/{userId}/chat",
  182. getOneChat: "users/{userId}/chats/{chatId}",
  183. createChat: "users/{userId}/offers/{offerId}/chat",
  184. sendMessage: "chats",
  185. },
  186. exchange: {
  187. getExchange: "exchanges",
  188. validateExchange: "exchanges",
  189. },
  190. reviews: {
  191. getUserReviews: "/users/{userId}/reviews",
  192. postReview: "/users/{userId}/reviews",
  193. removeReview: "/admin/reviews/{id}",
  194. },
  195. admin: {
  196. categories: {
  197. newCategory: "admin/categories",
  198. editCategory: "admin/categories/{categoryId}",
  199. deleteCategory: "admin/categories/{categoryId}",
  200. },
  201. subcategories: {
  202. newSubcategory: "admin/categories/{categoryId}",
  203. editSubcategory: "admin/categories/{categoryId}/{subcategoryName}",
  204. deleteSubcategory: "admin/categories/{categoryId}/{subcategoryName}",
  205. },
  206. locations: {
  207. newLocation: "admin/locations",
  208. editLocation: "admin/locations/{locationId}",
  209. deleteLocation: "admin/locations/{locationId}",
  210. },
  211. reviews: {
  212. getUserReviewsAsAdmin: 'admin/reviews/{userId}'
  213. }
  214. },
  215. };