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.
@@ -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: string, owned?: boolean): string;
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: {
@@ -95,4 +95,4 @@ export * from "./environment";
95
95
  export * from "./data-source/data-source";
96
96
  export * from "./scenario/scenario";
97
97
  export * from "./tracking/tracking";
98
- export declare const VERSION = "6.4.8";
98
+ export declare const VERSION = "6.5.0";
@@ -143,7 +143,7 @@ export declare namespace User {
143
143
  * @param search
144
144
  * @returns
145
145
  */
146
- function GetListCacheKey(accountId: string, exclusive?: boolean, search?: string): string;
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: string, accountId?: string): string;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "6.4.8",
3
+ "version": "6.5.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",