@cranberry-money/shared-constants 8.8.1 → 8.9.1

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 (160) hide show
  1. package/package.json +1 -1
  2. package/dist/api/auth.d.ts +0 -21
  3. package/dist/api/auth.d.ts.map +0 -1
  4. package/dist/api/auth.js +0 -23
  5. package/dist/api/config.d.ts +0 -36
  6. package/dist/api/config.d.ts.map +0 -1
  7. package/dist/api/config.js +0 -44
  8. package/dist/api/endpoints.d.ts +0 -157
  9. package/dist/api/endpoints.d.ts.map +0 -1
  10. package/dist/api/endpoints.js +0 -184
  11. package/dist/api/http.d.ts +0 -57
  12. package/dist/api/http.d.ts.map +0 -1
  13. package/dist/api/http.js +0 -62
  14. package/dist/api/index.d.ts +0 -9
  15. package/dist/api/index.d.ts.map +0 -1
  16. package/dist/api/index.js +0 -8
  17. package/dist/api/services.d.ts +0 -9
  18. package/dist/api/services.d.ts.map +0 -1
  19. package/dist/api/services.js +0 -8
  20. package/dist/business/accounts.d.ts +0 -38
  21. package/dist/business/accounts.d.ts.map +0 -1
  22. package/dist/business/accounts.js +0 -53
  23. package/dist/business/bank-accounts.d.ts +0 -71
  24. package/dist/business/bank-accounts.d.ts.map +0 -1
  25. package/dist/business/bank-accounts.js +0 -69
  26. package/dist/business/banking.d.ts +0 -44
  27. package/dist/business/banking.d.ts.map +0 -1
  28. package/dist/business/banking.js +0 -69
  29. package/dist/business/cache.d.ts +0 -9
  30. package/dist/business/cache.d.ts.map +0 -1
  31. package/dist/business/cache.js +0 -8
  32. package/dist/business/countries.d.ts +0 -11
  33. package/dist/business/countries.d.ts.map +0 -1
  34. package/dist/business/countries.js +0 -11
  35. package/dist/business/documents.d.ts +0 -48
  36. package/dist/business/documents.d.ts.map +0 -1
  37. package/dist/business/documents.js +0 -75
  38. package/dist/business/holdings.d.ts +0 -34
  39. package/dist/business/holdings.d.ts.map +0 -1
  40. package/dist/business/holdings.js +0 -34
  41. package/dist/business/index.d.ts +0 -16
  42. package/dist/business/index.d.ts.map +0 -1
  43. package/dist/business/index.js +0 -27
  44. package/dist/business/industries.d.ts +0 -9
  45. package/dist/business/industries.d.ts.map +0 -1
  46. package/dist/business/industries.js +0 -9
  47. package/dist/business/investments.d.ts +0 -87
  48. package/dist/business/investments.d.ts.map +0 -1
  49. package/dist/business/investments.js +0 -93
  50. package/dist/business/status/banks.d.ts +0 -29
  51. package/dist/business/status/banks.d.ts.map +0 -1
  52. package/dist/business/status/banks.js +0 -35
  53. package/dist/business/status/cash-accounts.d.ts +0 -56
  54. package/dist/business/status/cash-accounts.d.ts.map +0 -1
  55. package/dist/business/status/cash-accounts.js +0 -62
  56. package/dist/business/status/documents.d.ts +0 -25
  57. package/dist/business/status/documents.d.ts.map +0 -1
  58. package/dist/business/status/documents.js +0 -34
  59. package/dist/business/status/index.d.ts +0 -11
  60. package/dist/business/status/index.d.ts.map +0 -1
  61. package/dist/business/status/index.js +0 -10
  62. package/dist/business/status/instruments.d.ts +0 -42
  63. package/dist/business/status/instruments.d.ts.map +0 -1
  64. package/dist/business/status/instruments.js +0 -55
  65. package/dist/business/status/portfolios.d.ts +0 -18
  66. package/dist/business/status/portfolios.d.ts.map +0 -1
  67. package/dist/business/status/portfolios.js +0 -21
  68. package/dist/business/status/trades.d.ts +0 -89
  69. package/dist/business/status/trades.d.ts.map +0 -1
  70. package/dist/business/status/trades.js +0 -130
  71. package/dist/business/status/withdrawals.d.ts +0 -104
  72. package/dist/business/status/withdrawals.d.ts.map +0 -1
  73. package/dist/business/status/withdrawals.js +0 -153
  74. package/dist/business/trading.d.ts +0 -52
  75. package/dist/business/trading.d.ts.map +0 -1
  76. package/dist/business/trading.js +0 -68
  77. package/dist/common/index.d.ts +0 -2
  78. package/dist/common/index.d.ts.map +0 -1
  79. package/dist/common/index.js +0 -1
  80. package/dist/common/statuses.d.ts +0 -18
  81. package/dist/common/statuses.d.ts.map +0 -1
  82. package/dist/common/statuses.js +0 -17
  83. package/dist/config/defaults.d.ts +0 -68
  84. package/dist/config/defaults.d.ts.map +0 -1
  85. package/dist/config/defaults.js +0 -66
  86. package/dist/config/index.d.ts +0 -8
  87. package/dist/config/index.d.ts.map +0 -1
  88. package/dist/config/index.js +0 -7
  89. package/dist/config/pagination.d.ts +0 -28
  90. package/dist/config/pagination.d.ts.map +0 -1
  91. package/dist/config/pagination.js +0 -40
  92. package/dist/config/thresholds.d.ts +0 -65
  93. package/dist/config/thresholds.d.ts.map +0 -1
  94. package/dist/config/thresholds.js +0 -82
  95. package/dist/financial/currency.d.ts +0 -38
  96. package/dist/financial/currency.d.ts.map +0 -1
  97. package/dist/financial/currency.js +0 -75
  98. package/dist/financial/formatting.d.ts +0 -52
  99. package/dist/financial/formatting.d.ts.map +0 -1
  100. package/dist/financial/formatting.js +0 -49
  101. package/dist/financial/index.d.ts +0 -7
  102. package/dist/financial/index.d.ts.map +0 -1
  103. package/dist/financial/index.js +0 -6
  104. package/dist/financial/instruments.d.ts +0 -51
  105. package/dist/financial/instruments.d.ts.map +0 -1
  106. package/dist/financial/instruments.js +0 -68
  107. package/dist/index.d.ts +0 -15
  108. package/dist/index.d.ts.map +0 -1
  109. package/dist/index.js +0 -22
  110. package/dist/ui/cache.d.ts +0 -47
  111. package/dist/ui/cache.d.ts.map +0 -1
  112. package/dist/ui/cache.js +0 -45
  113. package/dist/ui/chart-config.d.ts +0 -35
  114. package/dist/ui/chart-config.d.ts.map +0 -1
  115. package/dist/ui/chart-config.js +0 -33
  116. package/dist/ui/colors.d.ts +0 -53
  117. package/dist/ui/colors.d.ts.map +0 -1
  118. package/dist/ui/colors.js +0 -94
  119. package/dist/ui/display.d.ts +0 -69
  120. package/dist/ui/display.d.ts.map +0 -1
  121. package/dist/ui/display.js +0 -80
  122. package/dist/ui/index.d.ts +0 -13
  123. package/dist/ui/index.d.ts.map +0 -1
  124. package/dist/ui/index.js +0 -12
  125. package/dist/ui/labels/index.d.ts +0 -20
  126. package/dist/ui/labels/index.d.ts.map +0 -1
  127. package/dist/ui/labels/index.js +0 -23
  128. package/dist/ui/navigation.d.ts +0 -45
  129. package/dist/ui/navigation.d.ts.map +0 -1
  130. package/dist/ui/navigation.js +0 -47
  131. package/dist/ui/status-colors-unified.d.ts +0 -91
  132. package/dist/ui/status-colors-unified.d.ts.map +0 -1
  133. package/dist/ui/status-colors-unified.js +0 -106
  134. package/dist/ui/timing.d.ts +0 -26
  135. package/dist/ui/timing.d.ts.map +0 -1
  136. package/dist/ui/timing.js +0 -24
  137. package/dist/ui/zIndex.d.ts +0 -80
  138. package/dist/ui/zIndex.d.ts.map +0 -1
  139. package/dist/ui/zIndex.js +0 -77
  140. package/dist/utilities/common.d.ts +0 -29
  141. package/dist/utilities/common.d.ts.map +0 -1
  142. package/dist/utilities/common.js +0 -28
  143. package/dist/utilities/defaults.d.ts +0 -52
  144. package/dist/utilities/defaults.d.ts.map +0 -1
  145. package/dist/utilities/defaults.js +0 -68
  146. package/dist/utilities/index.d.ts +0 -9
  147. package/dist/utilities/index.d.ts.map +0 -1
  148. package/dist/utilities/index.js +0 -8
  149. package/dist/utilities/sorting.d.ts +0 -45
  150. package/dist/utilities/sorting.d.ts.map +0 -1
  151. package/dist/utilities/sorting.js +0 -51
  152. package/dist/utilities/time.d.ts +0 -53
  153. package/dist/utilities/time.d.ts.map +0 -1
  154. package/dist/utilities/time.js +0 -65
  155. package/dist/utilities/validation.d.ts +0 -57
  156. package/dist/utilities/validation.d.ts.map +0 -1
  157. package/dist/utilities/validation.js +0 -65
  158. package/dist/validation/index.d.ts +0 -27
  159. package/dist/validation/index.d.ts.map +0 -1
  160. package/dist/validation/index.js +0 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "8.8.1",
3
+ "version": "8.9.1",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,21 +0,0 @@
1
- /**
2
- * Authentication-related constants
3
- * These match the constants from Blueberry's src/services/auth/constants.ts
4
- */
5
- export declare const DEFAULT_TOKEN_REFRESH_BUFFER_MINUTES = 5;
6
- export declare const MILLISECONDS_PER_MINUTE: number;
7
- export declare const MINUTES_PER_HOUR = 60;
8
- export declare const HOURS_PER_DAY = 24;
9
- export declare const TIME_LABEL_EXPIRED = "Expired";
10
- export declare const TIME_LABEL_MINUTE = "minute";
11
- export declare const TIME_LABEL_MINUTES = "minutes";
12
- export declare const TIME_LABEL_HOUR = "hour";
13
- export declare const TIME_LABEL_HOURS = "hours";
14
- export declare const TIME_LABEL_DAY = "day";
15
- export declare const TIME_LABEL_DAYS = "days";
16
- export declare const TIME_LABEL_HOUR_SHORT = "h";
17
- export declare const TIME_LABEL_MINUTE_SHORT = "m";
18
- export declare const TIME_LABEL_DAY_SHORT = "d";
19
- export declare const TOKEN_STORAGE_KEY_ACCESS = "access_token";
20
- export declare const TOKEN_STORAGE_KEY_REFRESH = "refresh_token";
21
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/api/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,uBAAuB,QAAY,CAAC;AACjD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,aAAa,KAAK,CAAC;AAGhC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAGxC,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,yBAAyB,kBAAkB,CAAC"}
package/dist/api/auth.js DELETED
@@ -1,23 +0,0 @@
1
- /**
2
- * Authentication-related constants
3
- * These match the constants from Blueberry's src/services/auth/constants.ts
4
- */
5
- // Token management constants
6
- export const DEFAULT_TOKEN_REFRESH_BUFFER_MINUTES = 5;
7
- export const MILLISECONDS_PER_MINUTE = 60 * 1000;
8
- export const MINUTES_PER_HOUR = 60;
9
- export const HOURS_PER_DAY = 24;
10
- // Time labels
11
- export const TIME_LABEL_EXPIRED = 'Expired';
12
- export const TIME_LABEL_MINUTE = 'minute';
13
- export const TIME_LABEL_MINUTES = 'minutes';
14
- export const TIME_LABEL_HOUR = 'hour';
15
- export const TIME_LABEL_HOURS = 'hours';
16
- export const TIME_LABEL_DAY = 'day';
17
- export const TIME_LABEL_DAYS = 'days';
18
- export const TIME_LABEL_HOUR_SHORT = 'h';
19
- export const TIME_LABEL_MINUTE_SHORT = 'm';
20
- export const TIME_LABEL_DAY_SHORT = 'd';
21
- // Storage keys
22
- export const TOKEN_STORAGE_KEY_ACCESS = 'access_token';
23
- export const TOKEN_STORAGE_KEY_REFRESH = 'refresh_token';
@@ -1,36 +0,0 @@
1
- /**
2
- * API configuration constants
3
- */
4
- export declare const API_VERSIONS: {
5
- readonly V1: "v1";
6
- readonly V2: "v2";
7
- };
8
- export type ApiVersion = (typeof API_VERSIONS)[keyof typeof API_VERSIONS];
9
- export declare const API_CONFIG: {
10
- readonly DEFAULT_TIMEOUT: 30000;
11
- readonly DEFAULT_RETRY_ATTEMPTS: 3;
12
- readonly DEFAULT_RETRY_DELAY: 1000;
13
- readonly MAX_RETRY_DELAY: 10000;
14
- readonly REQUEST_DEBOUNCE_MS: 300;
15
- };
16
- export declare const API_RESPONSE_CONFIG: {
17
- readonly DEFAULT_PAGE_SIZE: 20;
18
- readonly MAX_PAGE_SIZE: 100;
19
- readonly DEFAULT_SORT_ORDER: "desc";
20
- };
21
- export declare const API_ERROR_CODES: {
22
- readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
23
- readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
24
- readonly INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS";
25
- readonly VALIDATION_FAILED: "VALIDATION_FAILED";
26
- readonly INVALID_INPUT: "INVALID_INPUT";
27
- readonly MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD";
28
- readonly INSUFFICIENT_FUNDS: "INSUFFICIENT_FUNDS";
29
- readonly PORTFOLIO_LIMIT_EXCEEDED: "PORTFOLIO_LIMIT_EXCEEDED";
30
- readonly TRADE_LIMIT_EXCEEDED: "TRADE_LIMIT_EXCEEDED";
31
- readonly SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
32
- readonly RATE_LIMIT_EXCEEDED: "RATE_LIMIT_EXCEEDED";
33
- readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
34
- };
35
- export type ApiErrorCode = (typeof API_ERROR_CODES)[keyof typeof API_ERROR_CODES];
36
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/api/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAI1E,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAIX,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAoBlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
@@ -1,44 +0,0 @@
1
- /**
2
- * API configuration constants
3
- */
4
- import { PAGINATION_CONFIG, COMMON_THRESHOLDS } from '../config';
5
- // API Versions
6
- export const API_VERSIONS = {
7
- V1: 'v1',
8
- V2: 'v2',
9
- };
10
- // API Configuration
11
- // Now references common thresholds for consistency
12
- export const API_CONFIG = {
13
- DEFAULT_TIMEOUT: COMMON_THRESHOLDS.DEFAULT_TIMEOUT_MS,
14
- DEFAULT_RETRY_ATTEMPTS: COMMON_THRESHOLDS.DEFAULT_RETRY_ATTEMPTS,
15
- DEFAULT_RETRY_DELAY: COMMON_THRESHOLDS.DEFAULT_RETRY_DELAY_MS,
16
- MAX_RETRY_DELAY: COMMON_THRESHOLDS.MAX_RETRY_DELAY_MS,
17
- REQUEST_DEBOUNCE_MS: COMMON_THRESHOLDS.REQUEST_DEBOUNCE_MS,
18
- };
19
- // API Response Configuration
20
- // @deprecated Use PAGINATION_CONFIG from config/pagination instead
21
- export const API_RESPONSE_CONFIG = {
22
- DEFAULT_PAGE_SIZE: PAGINATION_CONFIG.DEFAULT_PAGE_SIZE,
23
- MAX_PAGE_SIZE: PAGINATION_CONFIG.MAX_PAGE_SIZE,
24
- DEFAULT_SORT_ORDER: PAGINATION_CONFIG.DEFAULT_SORT_ORDER,
25
- };
26
- // API Error Codes (custom application codes)
27
- export const API_ERROR_CODES = {
28
- // Authentication errors
29
- INVALID_CREDENTIALS: 'INVALID_CREDENTIALS',
30
- TOKEN_EXPIRED: 'TOKEN_EXPIRED',
31
- INSUFFICIENT_PERMISSIONS: 'INSUFFICIENT_PERMISSIONS',
32
- // Validation errors
33
- VALIDATION_FAILED: 'VALIDATION_FAILED',
34
- INVALID_INPUT: 'INVALID_INPUT',
35
- MISSING_REQUIRED_FIELD: 'MISSING_REQUIRED_FIELD',
36
- // Business logic errors
37
- INSUFFICIENT_FUNDS: 'INSUFFICIENT_FUNDS',
38
- PORTFOLIO_LIMIT_EXCEEDED: 'PORTFOLIO_LIMIT_EXCEEDED',
39
- TRADE_LIMIT_EXCEEDED: 'TRADE_LIMIT_EXCEEDED',
40
- // System errors
41
- SERVICE_UNAVAILABLE: 'SERVICE_UNAVAILABLE',
42
- RATE_LIMIT_EXCEEDED: 'RATE_LIMIT_EXCEEDED',
43
- UNKNOWN_ERROR: 'UNKNOWN_ERROR',
44
- };
@@ -1,157 +0,0 @@
1
- /**
2
- * API endpoint definitions for all services
3
- */
4
- export declare const API_BASE_PATHS: {
5
- readonly V1: "/api";
6
- };
7
- export declare const ACCOUNT_ENDPOINTS: {
8
- readonly BASE: "/api/accounts/";
9
- readonly DETAIL: (uuid: string) => `/api/accounts/${string}/`;
10
- };
11
- export declare const AUTH_ENDPOINTS: {
12
- readonly BASE: "/api/auth/";
13
- readonly LOGIN: "/api/auth/login/";
14
- readonly LOGOUT: "/api/auth/logout/";
15
- readonly REFRESH: "/api/auth/refresh/";
16
- readonly VERIFY: "/api/auth/verify/";
17
- readonly SIGNIN: "/api/signin/";
18
- readonly SIGNOUT: "/api/signout/";
19
- readonly SIGNUP: "/api/signup/";
20
- readonly EMAIL_VERIFICATION: "/api/email-verification/";
21
- readonly RESEND_VERIFICATION: "/api/resend-verification/";
22
- readonly TOKEN_REFRESH: "/api/token/refresh/";
23
- };
24
- export declare const BANK_ENDPOINTS: {
25
- readonly BASE: "/api/banks/";
26
- readonly DETAIL: (uuid: string) => `/api/banks/${string}/`;
27
- readonly ACCOUNTS: "/api/bank-accounts/";
28
- readonly ACCOUNT_DETAIL: (uuid: string) => `/api/bank-accounts/${string}/`;
29
- };
30
- export declare const CASH_ACCOUNT_ENDPOINTS: {
31
- readonly BASE: "/api/cash-accounts/";
32
- readonly DETAIL: (uuid: string) => `/api/cash-accounts/${string}/`;
33
- readonly TRANSACTIONS: (uuid: string) => `/api/cash-accounts/${string}/transactions/`;
34
- };
35
- export declare const CASH_ACCOUNT_TRANSACTION_ENDPOINTS: {
36
- readonly BASE: "/api/cash-account-transactions/";
37
- readonly DETAIL: (uuid: string) => `/api/cash-account-transactions/${string}/`;
38
- };
39
- export declare const COUNTRY_ENDPOINTS: {
40
- readonly BASE: "/api/countries/";
41
- readonly DETAIL: (uuid: string) => `/api/countries/${string}/`;
42
- };
43
- export declare const DOCUMENT_ENDPOINTS: {
44
- readonly BASE: "/api/documents/";
45
- readonly DETAIL: (uuid: string) => `/api/documents/${string}/`;
46
- readonly DOWNLOAD: (uuid: string) => `/api/documents/${string}/download/`;
47
- readonly SIGN: (uuid: string) => `/api/documents/${string}/sign/`;
48
- readonly AGREEMENT: "/api/documents/agreement/";
49
- readonly MDA: "/api/documents/mda/";
50
- readonly SOA: "/api/documents/soa/";
51
- };
52
- export declare const INDUSTRY_ENDPOINTS: {
53
- readonly BASE: "/api/industries/";
54
- readonly DETAIL: (uuid: string) => `/api/industries/${string}/`;
55
- };
56
- export declare const INSTRUMENT_ENDPOINTS: {
57
- readonly BASE: "/api/instruments/";
58
- readonly DETAIL: (uuid: string) => `/api/instruments/${string}/`;
59
- readonly PRICES: (uuid: string) => `/api/instruments/${string}/prices/`;
60
- readonly QUOTE: (uuid: string) => `/api/instruments/${string}/quote/`;
61
- };
62
- export declare const PORTFOLIO_ENDPOINTS: {
63
- readonly BASE: "/api/portfolios/";
64
- readonly DETAIL: (uuid: string) => `/api/portfolios/${string}/`;
65
- readonly ALLOCATIONS: (uuid: string) => `/api/portfolios/${string}/allocations/`;
66
- readonly HOLDINGS: (uuid: string) => `/api/portfolios/${string}/holdings/`;
67
- readonly PERFORMANCE: (uuid: string) => `/api/portfolios/${string}/performance/`;
68
- readonly TRANSACTIONS: (uuid: string) => `/api/portfolios/${string}/transactions/`;
69
- };
70
- export declare const PORTFOLIO_TEMPLATE_ENDPOINTS: {
71
- readonly BASE: "/api/portfolio-templates/";
72
- readonly DETAIL: (uuid: string) => `/api/portfolio-templates/${string}/`;
73
- readonly ALLOCATIONS: (uuid: string) => `/api/portfolio-templates/${string}/allocations/`;
74
- readonly RECOMMENDED: "/api/portfolio-templates/recommended/";
75
- };
76
- export declare const SECTOR_ENDPOINTS: {
77
- readonly BASE: "/api/sectors/";
78
- readonly DETAIL: (uuid: string) => `/api/sectors/${string}/`;
79
- };
80
- export declare const STOCK_EXCHANGE_ENDPOINTS: {
81
- readonly BASE: "/api/stock-exchanges/";
82
- readonly DETAIL: (uuid: string) => `/api/stock-exchanges/${string}/`;
83
- };
84
- export declare const TAX_RESIDENCY_ENDPOINTS: {
85
- readonly BASE: "/api/tax-residencies/";
86
- readonly DETAIL: (uuid: string) => `/api/tax-residencies/${string}/`;
87
- };
88
- export declare const TRADE_ENDPOINTS: {
89
- readonly BASE: "/api/trades/";
90
- readonly DETAIL: (uuid: string) => `/api/trades/${string}/`;
91
- readonly CANCEL: (uuid: string) => `/api/trades/${string}/cancel/`;
92
- readonly CONFIRM: (uuid: string) => `/api/trades/${string}/confirm/`;
93
- };
94
- export declare const TARGET_TRADE_ENDPOINTS: {
95
- readonly BASE: "/api/target-trades/";
96
- readonly DETAIL: (uuid: string) => `/api/target-trades/${string}/`;
97
- readonly APPROVE: (uuid: string) => `/api/target-trades/${string}/approve/`;
98
- readonly SUBMIT: (uuid: string) => `/api/target-trades/${string}/submit/`;
99
- };
100
- export declare const TRADE_SHEET_ENDPOINTS: {
101
- readonly BASE: "/api/trade-sheets/";
102
- readonly DETAIL: (uuid: string) => `/api/trade-sheets/${string}/`;
103
- };
104
- export declare const TARGET_TRADE_SHEET_ENDPOINTS: {
105
- readonly BASE: "/api/target-trade-sheets/";
106
- readonly DETAIL: (uuid: string) => `/api/target-trade-sheets/${string}/`;
107
- };
108
- export declare const USER_ENDPOINTS: {
109
- readonly BASE: "/api/users/";
110
- readonly DETAIL: (uuid: string) => `/api/users/${string}/`;
111
- readonly PROFILE: "/api/users/profile/";
112
- readonly PREFERENCES: "/api/users/preferences/";
113
- readonly INVESTMENT_PREFERENCES: "/api/users/investment-preferences/";
114
- };
115
- export declare const USER_PROFILE_ENDPOINTS: {
116
- readonly BASE: "/api/user-profiles/";
117
- readonly DETAIL: (uuid: string) => `/api/user-profiles/${string}/`;
118
- };
119
- export declare const INVESTMENT_PREFERENCES_ENDPOINTS: {
120
- readonly BASE: "/api/investment-preferences/";
121
- readonly DETAIL: (uuid: string) => `/api/investment-preferences/${string}/`;
122
- };
123
- export declare const WITHDRAWAL_ENDPOINTS: {
124
- readonly BASE: "/api/withdrawals/";
125
- readonly DETAIL: (uuid: string) => `/api/withdrawals/${string}/`;
126
- readonly CANCEL: (uuid: string) => `/api/withdrawals/${string}/cancel/`;
127
- readonly APPROVE: (uuid: string) => `/api/withdrawals/${string}/approve/`;
128
- readonly REJECT: (uuid: string) => `/api/withdrawals/${string}/reject/`;
129
- };
130
- export declare const WITHDRAWAL_REQUEST_ENDPOINTS: {
131
- readonly BASE: "/api/withdrawal-requests/";
132
- readonly DETAIL: (uuid: string) => `/api/withdrawal-requests/${string}/`;
133
- readonly CANCEL: (uuid: string) => `/api/withdrawal-requests/${string}/cancel/`;
134
- readonly APPROVE: (uuid: string) => `/api/withdrawal-requests/${string}/approve/`;
135
- readonly REJECT: (uuid: string) => `/api/withdrawal-requests/${string}/reject/`;
136
- };
137
- export declare const WITHDRAWAL_LIQUIDATION_ENDPOINTS: {
138
- readonly BASE: "/api/withdrawal-liquidations/";
139
- readonly DETAIL: (uuid: string) => `/api/withdrawal-liquidations/${string}/`;
140
- };
141
- export declare const TRANSACTION_ENDPOINTS: {
142
- readonly BASE: "/api/transactions/";
143
- readonly DETAIL: (uuid: string) => `/api/transactions/${string}/`;
144
- };
145
- export declare const ASSET_ALLOCATION_ENDPOINTS: {
146
- readonly BASE: "/api/asset-allocations/";
147
- readonly DETAIL: (uuid: string) => `/api/asset-allocations/${string}/`;
148
- };
149
- export declare const ASSET_HOLDING_ENDPOINTS: {
150
- readonly BASE: "/api/asset-holdings/";
151
- readonly DETAIL: (uuid: string) => `/api/asset-holdings/${string}/`;
152
- };
153
- export declare const ASSET_HOLDING_SNAPSHOT_ENDPOINTS: {
154
- readonly BASE: "/api/asset-holding-snapshots/";
155
- readonly DETAIL: (id: string) => `/api/asset-holding-snapshots/${string}/`;
156
- };
157
- //# sourceMappingURL=endpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/api/endpoints.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,cAAc;;CAEjB,CAAC;AAGX,eAAO,MAAM,iBAAiB;;4BAEb,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAGX,eAAO,MAAM,cAAc;;4BAEV,MAAM;;oCAEE,MAAM;CACrB,CAAC;AAGX,eAAO,MAAM,sBAAsB;;4BAElB,MAAM;kCACA,MAAM;CACnB,CAAC;AAGX,eAAO,MAAM,kCAAkC;;4BAE9B,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,iBAAiB;;4BAEb,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,kBAAkB;;4BAEd,MAAM;8BACJ,MAAM;0BACV,MAAM;;;;CAIX,CAAC;AAGX,eAAO,MAAM,kBAAkB;;4BAEd,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,oBAAoB;;4BAEhB,MAAM;4BACN,MAAM;2BACP,MAAM;CACZ,CAAC;AAGX,eAAO,MAAM,mBAAmB;;4BAEf,MAAM;iCACD,MAAM;8BACT,MAAM;iCACH,MAAM;kCACL,MAAM;CACnB,CAAC;AAGX,eAAO,MAAM,4BAA4B;;4BAExB,MAAM;iCACD,MAAM;;CAElB,CAAC;AAGX,eAAO,MAAM,gBAAgB;;4BAEZ,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,wBAAwB;;4BAEpB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,uBAAuB;;4BAEnB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,eAAe;;4BAEX,MAAM;4BACN,MAAM;6BACL,MAAM;CACd,CAAC;AAGX,eAAO,MAAM,sBAAsB;;4BAElB,MAAM;6BACL,MAAM;4BACP,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,qBAAqB;;4BAEjB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,4BAA4B;;4BAExB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,cAAc;;4BAEV,MAAM;;;;CAIb,CAAC;AAGX,eAAO,MAAM,sBAAsB;;4BAElB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,gCAAgC;;4BAE5B,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,oBAAoB;;4BAEhB,MAAM;4BACN,MAAM;6BACL,MAAM;4BACP,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,4BAA4B;;4BAExB,MAAM;4BACN,MAAM;6BACL,MAAM;4BACP,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,gCAAgC;;4BAE5B,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,qBAAqB;;4BAEjB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,0BAA0B;;4BAEtB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,uBAAuB;;4BAEnB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,gCAAgC;;0BAE9B,MAAM;CACX,CAAC"}
@@ -1,184 +0,0 @@
1
- /**
2
- * API endpoint definitions for all services
3
- */
4
- export const API_BASE_PATHS = {
5
- V1: '/api',
6
- };
7
- // Account endpoints
8
- export const ACCOUNT_ENDPOINTS = {
9
- BASE: '/api/accounts/',
10
- DETAIL: (uuid) => `/api/accounts/${uuid}/`,
11
- };
12
- // Authentication endpoints
13
- export const AUTH_ENDPOINTS = {
14
- BASE: '/api/auth/',
15
- LOGIN: '/api/auth/login/',
16
- LOGOUT: '/api/auth/logout/',
17
- REFRESH: '/api/auth/refresh/',
18
- VERIFY: '/api/auth/verify/',
19
- SIGNIN: '/api/signin/',
20
- SIGNOUT: '/api/signout/',
21
- SIGNUP: '/api/signup/',
22
- EMAIL_VERIFICATION: '/api/email-verification/',
23
- RESEND_VERIFICATION: '/api/resend-verification/',
24
- TOKEN_REFRESH: '/api/token/refresh/',
25
- };
26
- // Bank endpoints
27
- export const BANK_ENDPOINTS = {
28
- BASE: '/api/banks/',
29
- DETAIL: (uuid) => `/api/banks/${uuid}/`,
30
- ACCOUNTS: '/api/bank-accounts/',
31
- ACCOUNT_DETAIL: (uuid) => `/api/bank-accounts/${uuid}/`,
32
- };
33
- // Cash account endpoints
34
- export const CASH_ACCOUNT_ENDPOINTS = {
35
- BASE: '/api/cash-accounts/',
36
- DETAIL: (uuid) => `/api/cash-accounts/${uuid}/`,
37
- TRANSACTIONS: (uuid) => `/api/cash-accounts/${uuid}/transactions/`,
38
- };
39
- // Cash account transaction endpoints
40
- export const CASH_ACCOUNT_TRANSACTION_ENDPOINTS = {
41
- BASE: '/api/cash-account-transactions/',
42
- DETAIL: (uuid) => `/api/cash-account-transactions/${uuid}/`,
43
- };
44
- // Country endpoints
45
- export const COUNTRY_ENDPOINTS = {
46
- BASE: '/api/countries/',
47
- DETAIL: (uuid) => `/api/countries/${uuid}/`,
48
- };
49
- // Document endpoints
50
- export const DOCUMENT_ENDPOINTS = {
51
- BASE: '/api/documents/',
52
- DETAIL: (uuid) => `/api/documents/${uuid}/`,
53
- DOWNLOAD: (uuid) => `/api/documents/${uuid}/download/`,
54
- SIGN: (uuid) => `/api/documents/${uuid}/sign/`,
55
- AGREEMENT: '/api/documents/agreement/',
56
- MDA: '/api/documents/mda/',
57
- SOA: '/api/documents/soa/',
58
- };
59
- // Industry endpoints
60
- export const INDUSTRY_ENDPOINTS = {
61
- BASE: '/api/industries/',
62
- DETAIL: (uuid) => `/api/industries/${uuid}/`,
63
- };
64
- // Instrument endpoints
65
- export const INSTRUMENT_ENDPOINTS = {
66
- BASE: '/api/instruments/',
67
- DETAIL: (uuid) => `/api/instruments/${uuid}/`,
68
- PRICES: (uuid) => `/api/instruments/${uuid}/prices/`,
69
- QUOTE: (uuid) => `/api/instruments/${uuid}/quote/`,
70
- };
71
- // Portfolio endpoints
72
- export const PORTFOLIO_ENDPOINTS = {
73
- BASE: '/api/portfolios/',
74
- DETAIL: (uuid) => `/api/portfolios/${uuid}/`,
75
- ALLOCATIONS: (uuid) => `/api/portfolios/${uuid}/allocations/`,
76
- HOLDINGS: (uuid) => `/api/portfolios/${uuid}/holdings/`,
77
- PERFORMANCE: (uuid) => `/api/portfolios/${uuid}/performance/`,
78
- TRANSACTIONS: (uuid) => `/api/portfolios/${uuid}/transactions/`,
79
- };
80
- // Portfolio template endpoints
81
- export const PORTFOLIO_TEMPLATE_ENDPOINTS = {
82
- BASE: '/api/portfolio-templates/',
83
- DETAIL: (uuid) => `/api/portfolio-templates/${uuid}/`,
84
- ALLOCATIONS: (uuid) => `/api/portfolio-templates/${uuid}/allocations/`,
85
- RECOMMENDED: '/api/portfolio-templates/recommended/',
86
- };
87
- // Sector endpoints
88
- export const SECTOR_ENDPOINTS = {
89
- BASE: '/api/sectors/',
90
- DETAIL: (uuid) => `/api/sectors/${uuid}/`,
91
- };
92
- // Stock exchange endpoints
93
- export const STOCK_EXCHANGE_ENDPOINTS = {
94
- BASE: '/api/stock-exchanges/',
95
- DETAIL: (uuid) => `/api/stock-exchanges/${uuid}/`,
96
- };
97
- // Tax residency endpoints
98
- export const TAX_RESIDENCY_ENDPOINTS = {
99
- BASE: '/api/tax-residencies/',
100
- DETAIL: (uuid) => `/api/tax-residencies/${uuid}/`,
101
- };
102
- // Trade endpoints
103
- export const TRADE_ENDPOINTS = {
104
- BASE: '/api/trades/',
105
- DETAIL: (uuid) => `/api/trades/${uuid}/`,
106
- CANCEL: (uuid) => `/api/trades/${uuid}/cancel/`,
107
- CONFIRM: (uuid) => `/api/trades/${uuid}/confirm/`,
108
- };
109
- // Target trade endpoints
110
- export const TARGET_TRADE_ENDPOINTS = {
111
- BASE: '/api/target-trades/',
112
- DETAIL: (uuid) => `/api/target-trades/${uuid}/`,
113
- APPROVE: (uuid) => `/api/target-trades/${uuid}/approve/`,
114
- SUBMIT: (uuid) => `/api/target-trades/${uuid}/submit/`,
115
- };
116
- // Trade sheet endpoints
117
- export const TRADE_SHEET_ENDPOINTS = {
118
- BASE: '/api/trade-sheets/',
119
- DETAIL: (uuid) => `/api/trade-sheets/${uuid}/`,
120
- };
121
- // Target trade sheet endpoints
122
- export const TARGET_TRADE_SHEET_ENDPOINTS = {
123
- BASE: '/api/target-trade-sheets/',
124
- DETAIL: (uuid) => `/api/target-trade-sheets/${uuid}/`,
125
- };
126
- // User endpoints
127
- export const USER_ENDPOINTS = {
128
- BASE: '/api/users/',
129
- DETAIL: (uuid) => `/api/users/${uuid}/`,
130
- PROFILE: '/api/users/profile/',
131
- PREFERENCES: '/api/users/preferences/',
132
- INVESTMENT_PREFERENCES: '/api/users/investment-preferences/',
133
- };
134
- // User profile endpoints (separate collection resource)
135
- export const USER_PROFILE_ENDPOINTS = {
136
- BASE: '/api/user-profiles/',
137
- DETAIL: (uuid) => `/api/user-profiles/${uuid}/`,
138
- };
139
- // Investment preferences endpoints (top-level resource)
140
- export const INVESTMENT_PREFERENCES_ENDPOINTS = {
141
- BASE: '/api/investment-preferences/',
142
- DETAIL: (uuid) => `/api/investment-preferences/${uuid}/`,
143
- };
144
- // Withdrawal endpoints
145
- export const WITHDRAWAL_ENDPOINTS = {
146
- BASE: '/api/withdrawals/',
147
- DETAIL: (uuid) => `/api/withdrawals/${uuid}/`,
148
- CANCEL: (uuid) => `/api/withdrawals/${uuid}/cancel/`,
149
- APPROVE: (uuid) => `/api/withdrawals/${uuid}/approve/`,
150
- REJECT: (uuid) => `/api/withdrawals/${uuid}/reject/`,
151
- };
152
- // Withdrawal request endpoints
153
- export const WITHDRAWAL_REQUEST_ENDPOINTS = {
154
- BASE: '/api/withdrawal-requests/',
155
- DETAIL: (uuid) => `/api/withdrawal-requests/${uuid}/`,
156
- CANCEL: (uuid) => `/api/withdrawal-requests/${uuid}/cancel/`,
157
- APPROVE: (uuid) => `/api/withdrawal-requests/${uuid}/approve/`,
158
- REJECT: (uuid) => `/api/withdrawal-requests/${uuid}/reject/`,
159
- };
160
- // Withdrawal liquidation endpoints
161
- export const WITHDRAWAL_LIQUIDATION_ENDPOINTS = {
162
- BASE: '/api/withdrawal-liquidations/',
163
- DETAIL: (uuid) => `/api/withdrawal-liquidations/${uuid}/`,
164
- };
165
- // Transaction endpoints (cash account transactions)
166
- export const TRANSACTION_ENDPOINTS = {
167
- BASE: '/api/transactions/',
168
- DETAIL: (uuid) => `/api/transactions/${uuid}/`,
169
- };
170
- // Asset allocation endpoints
171
- export const ASSET_ALLOCATION_ENDPOINTS = {
172
- BASE: '/api/asset-allocations/',
173
- DETAIL: (uuid) => `/api/asset-allocations/${uuid}/`,
174
- };
175
- // Asset holding endpoints
176
- export const ASSET_HOLDING_ENDPOINTS = {
177
- BASE: '/api/asset-holdings/',
178
- DETAIL: (uuid) => `/api/asset-holdings/${uuid}/`,
179
- };
180
- // Asset holding snapshot endpoints
181
- export const ASSET_HOLDING_SNAPSHOT_ENDPOINTS = {
182
- BASE: '/api/asset-holding-snapshots/',
183
- DETAIL: (id) => `/api/asset-holding-snapshots/${id}/`,
184
- };
@@ -1,57 +0,0 @@
1
- /**
2
- * HTTP-related constants
3
- */
4
- export declare const HTTP_STATUS: {
5
- readonly OK: 200;
6
- readonly CREATED: 201;
7
- readonly ACCEPTED: 202;
8
- readonly NO_CONTENT: 204;
9
- readonly MOVED_PERMANENTLY: 301;
10
- readonly FOUND: 302;
11
- readonly NOT_MODIFIED: 304;
12
- readonly BAD_REQUEST: 400;
13
- readonly UNAUTHORIZED: 401;
14
- readonly FORBIDDEN: 403;
15
- readonly NOT_FOUND: 404;
16
- readonly METHOD_NOT_ALLOWED: 405;
17
- readonly CONFLICT: 409;
18
- readonly UNPROCESSABLE_ENTITY: 422;
19
- readonly TOO_MANY_REQUESTS: 429;
20
- readonly INTERNAL_SERVER_ERROR: 500;
21
- readonly BAD_GATEWAY: 502;
22
- readonly SERVICE_UNAVAILABLE: 503;
23
- readonly GATEWAY_TIMEOUT: 504;
24
- };
25
- export type HttpStatus = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
26
- export declare const HTTP_HEADERS: {
27
- readonly ACCEPT: "Accept";
28
- readonly AUTHORIZATION: "Authorization";
29
- readonly CONTENT_TYPE: "Content-Type";
30
- readonly CACHE_CONTROL: "Cache-Control";
31
- readonly USER_AGENT: "User-Agent";
32
- readonly X_REQUESTED_WITH: "X-Requested-With";
33
- readonly X_CSRF_TOKEN: "X-CSRFToken";
34
- };
35
- export declare const CONTENT_TYPES: {
36
- readonly JSON: "application/json";
37
- readonly FORM_DATA: "multipart/form-data";
38
- readonly URL_ENCODED: "application/x-www-form-urlencoded";
39
- readonly TEXT: "text/plain";
40
- readonly HTML: "text/html";
41
- readonly XML: "application/xml";
42
- readonly PDF: "application/pdf";
43
- };
44
- export type ContentType = (typeof CONTENT_TYPES)[keyof typeof CONTENT_TYPES];
45
- export declare const HTTP_METHODS: {
46
- readonly GET: "GET";
47
- readonly POST: "POST";
48
- readonly PUT: "PUT";
49
- readonly PATCH: "PATCH";
50
- readonly DELETE: "DELETE";
51
- readonly HEAD: "HEAD";
52
- readonly OPTIONS: "OPTIONS";
53
- };
54
- export type HttpMethod = (typeof HTTP_METHODS)[keyof typeof HTTP_METHODS];
55
- export declare const HTTP_HEADER_CONTENT_TYPE: "Content-Type";
56
- export declare const CONTENT_TYPE_APPLICATION_JSON: "application/json";
57
- //# sourceMappingURL=http.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/api/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CA2Bd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAGxE,eAAO,MAAM,YAAY;;;;;;;;CAQf,CAAC;AAGX,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAG7E,eAAO,MAAM,YAAY;;;;;;;;CAQf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAG1E,eAAO,MAAM,wBAAwB,gBAA4B,CAAC;AAClE,eAAO,MAAM,6BAA6B,oBAAqB,CAAC"}
package/dist/api/http.js DELETED
@@ -1,62 +0,0 @@
1
- /**
2
- * HTTP-related constants
3
- */
4
- // HTTP Status Codes
5
- export const HTTP_STATUS = {
6
- // 2xx Success
7
- OK: 200,
8
- CREATED: 201,
9
- ACCEPTED: 202,
10
- NO_CONTENT: 204,
11
- // 3xx Redirection
12
- MOVED_PERMANENTLY: 301,
13
- FOUND: 302,
14
- NOT_MODIFIED: 304,
15
- // 4xx Client Errors
16
- BAD_REQUEST: 400,
17
- UNAUTHORIZED: 401,
18
- FORBIDDEN: 403,
19
- NOT_FOUND: 404,
20
- METHOD_NOT_ALLOWED: 405,
21
- CONFLICT: 409,
22
- UNPROCESSABLE_ENTITY: 422,
23
- TOO_MANY_REQUESTS: 429,
24
- // 5xx Server Errors
25
- INTERNAL_SERVER_ERROR: 500,
26
- BAD_GATEWAY: 502,
27
- SERVICE_UNAVAILABLE: 503,
28
- GATEWAY_TIMEOUT: 504,
29
- };
30
- // HTTP Headers
31
- export const HTTP_HEADERS = {
32
- ACCEPT: 'Accept',
33
- AUTHORIZATION: 'Authorization',
34
- CONTENT_TYPE: 'Content-Type',
35
- CACHE_CONTROL: 'Cache-Control',
36
- USER_AGENT: 'User-Agent',
37
- X_REQUESTED_WITH: 'X-Requested-With',
38
- X_CSRF_TOKEN: 'X-CSRFToken',
39
- };
40
- // Content Types
41
- export const CONTENT_TYPES = {
42
- JSON: 'application/json',
43
- FORM_DATA: 'multipart/form-data',
44
- URL_ENCODED: 'application/x-www-form-urlencoded',
45
- TEXT: 'text/plain',
46
- HTML: 'text/html',
47
- XML: 'application/xml',
48
- PDF: 'application/pdf',
49
- };
50
- // HTTP Methods
51
- export const HTTP_METHODS = {
52
- GET: 'GET',
53
- POST: 'POST',
54
- PUT: 'PUT',
55
- PATCH: 'PATCH',
56
- DELETE: 'DELETE',
57
- HEAD: 'HEAD',
58
- OPTIONS: 'OPTIONS',
59
- };
60
- // Blueberry compatibility exports
61
- export const HTTP_HEADER_CONTENT_TYPE = HTTP_HEADERS.CONTENT_TYPE;
62
- export const CONTENT_TYPE_APPLICATION_JSON = CONTENT_TYPES.JSON;
@@ -1,9 +0,0 @@
1
- /**
2
- * API-related constants
3
- */
4
- export * from './endpoints';
5
- export * from './http';
6
- export * from './config';
7
- export * from './auth';
8
- export * from './services';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
package/dist/api/index.js DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * API-related constants
3
- */
4
- export * from './endpoints';
5
- export * from './http';
6
- export * from './config';
7
- export * from './auth';
8
- export * from './services';
@@ -1,9 +0,0 @@
1
- /**
2
- * Service-layer constants for the MyPortfolio platform
3
- */
4
- export declare const DOCUMENT_SERVICE: {
5
- readonly RESPONSE_TYPE_BLOB: "blob";
6
- readonly CONTENT_TYPE_ANY: "*/*";
7
- };
8
- export type DocumentService = typeof DOCUMENT_SERVICE;
9
- //# sourceMappingURL=services.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/api/services.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAGX,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC"}