bruce-models 6.4.8 → 6.5.0
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.
- package/dist/bruce-models.es5.js +126 -43
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +126 -43
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +29 -15
- package/dist/lib/account/account.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +41 -3
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/user/user.js +55 -24
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account.d.ts +3 -2
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/user/user.d.ts +8 -5
- package/package.json +1 -1
|
@@ -160,11 +160,12 @@ export declare namespace Account {
|
|
|
160
160
|
* const key = GetCacheKey(1);
|
|
161
161
|
* api.Cache.Remove(key);
|
|
162
162
|
* }
|
|
163
|
+
* @param sessionId
|
|
163
164
|
* @param accountId
|
|
164
165
|
* @param appSettingsId
|
|
165
166
|
* @returns
|
|
166
167
|
*/
|
|
167
|
-
function GetCacheKey(accountId: string, appSettingsId?: string): string;
|
|
168
|
+
function GetCacheKey(sessionId: string, accountId: string, appSettingsId?: string): string;
|
|
168
169
|
/**
|
|
169
170
|
* Returns cache identifier for a list of accounts by session ID.
|
|
170
171
|
* Example: {
|
|
@@ -175,7 +176,7 @@ export declare namespace Account {
|
|
|
175
176
|
* @param ssid
|
|
176
177
|
* @returns
|
|
177
178
|
*/
|
|
178
|
-
function GetListCacheKey(ssid
|
|
179
|
+
function GetListCacheKey(ssid?: string, userId?: string, owned?: boolean): string;
|
|
179
180
|
/**
|
|
180
181
|
* Returns cache identifier for a list of database regions.
|
|
181
182
|
* Example: {
|
|
@@ -143,7 +143,7 @@ export declare namespace User {
|
|
|
143
143
|
* @param search
|
|
144
144
|
* @returns
|
|
145
145
|
*/
|
|
146
|
-
function GetListCacheKey(accountId
|
|
146
|
+
function GetListCacheKey(sessionId?: string, accountId?: string, exclusive?: boolean, search?: string): string;
|
|
147
147
|
/**
|
|
148
148
|
* Returns a user by their email address.
|
|
149
149
|
* @param params
|
|
@@ -241,10 +241,11 @@ export declare namespace User {
|
|
|
241
241
|
* const key = GetListCacheKey("abc");
|
|
242
242
|
* api.Cache.Remove(key);
|
|
243
243
|
* }
|
|
244
|
+
* @param sessionId
|
|
244
245
|
* @param accountId
|
|
245
246
|
* @returns
|
|
246
247
|
*/
|
|
247
|
-
function GetListCacheKey(accountId: string): string;
|
|
248
|
+
function GetListCacheKey(sessionId: string, accountId: string): string;
|
|
248
249
|
/**
|
|
249
250
|
* Returns a list of access tokens for an account.
|
|
250
251
|
* @param params
|
|
@@ -297,11 +298,12 @@ export declare namespace User {
|
|
|
297
298
|
* const key = GetCacheKey("abc", "def");
|
|
298
299
|
* api.Cache.Remove(key);
|
|
299
300
|
* }
|
|
301
|
+
* @param sessionId
|
|
300
302
|
* @param userId
|
|
301
303
|
* @param accountId
|
|
302
304
|
* @returns
|
|
303
305
|
*/
|
|
304
|
-
function GetCacheKey(userId: string, accountId?: string): string;
|
|
306
|
+
function GetCacheKey(sessionId: string, userId: string, accountId?: string): string;
|
|
305
307
|
/**
|
|
306
308
|
* Returns cache identifier for a user.
|
|
307
309
|
* Example: {
|
|
@@ -313,7 +315,7 @@ export declare namespace User {
|
|
|
313
315
|
* @param accountId
|
|
314
316
|
* @returns
|
|
315
317
|
*/
|
|
316
|
-
function GetEmailCacheKey(email
|
|
318
|
+
function GetEmailCacheKey(sessionId?: string, email?: string, accountId?: string): string;
|
|
317
319
|
/**
|
|
318
320
|
* Returns cache identifier for a user's settings.
|
|
319
321
|
* Example: {
|
|
@@ -321,9 +323,10 @@ export declare namespace User {
|
|
|
321
323
|
* const key = GetCacheKey("abc", "def");
|
|
322
324
|
* api.Cache.Remove(key);
|
|
323
325
|
* }
|
|
326
|
+
* @param sessionId
|
|
324
327
|
* @param userId
|
|
325
328
|
* @param appId
|
|
326
329
|
* @returns
|
|
327
330
|
*/
|
|
328
|
-
function GetSettingsCacheKey(userId: string, appId: string): string;
|
|
331
|
+
function GetSettingsCacheKey(sessionId: string, userId: string, appId: string): string;
|
|
329
332
|
}
|