bruce-models 7.1.113 → 7.1.115

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.
@@ -96,6 +96,12 @@ export declare namespace Calculator {
96
96
  * Returns null if the string is null, empty, or does not match the expected format.
97
97
  */
98
98
  function DecodeEffective(effective: string | null): IDecodedEffective | null;
99
+ /**
100
+ * Lists every attribute path a set of fields could read from an entity record.
101
+ * Returns null when the fields depend on more than attribute values (tags, or a function).
102
+ * @param fields
103
+ */
104
+ function GetFieldPaths(fields: IField | IField[]): string[][] | null;
99
105
  /**
100
106
  * Like Calculate, but also returns an 'effective' key describing how the value
101
107
  * was derived. See ITraceResult for the key format.
@@ -128,12 +128,12 @@ export declare namespace DataLab {
128
128
  };
129
129
  }
130
130
  /**
131
- * Criterion for filtering against Entities that sit inside a specified Entity Type.
131
+ * Criterion for filtering against Entities that sit inside any of the specified Entity Types.
132
132
  */
133
133
  interface ICriterionEntityType extends ICriterion {
134
134
  key: "entityType";
135
135
  EntityType?: {
136
- "EntityType.ID"?: string;
136
+ "EntityType.ID"?: string | string[];
137
137
  };
138
138
  }
139
139
  /**
@@ -212,6 +212,7 @@ export declare namespace Entity {
212
212
  entities?: IEntity[];
213
213
  migrated?: boolean;
214
214
  override: boolean;
215
+ skipSourcePush?: boolean | number[];
215
216
  req?: Api.IReqParams;
216
217
  }): Promise<{
217
218
  entity?: IEntity;
@@ -57,6 +57,7 @@ export declare namespace Markup {
57
57
  fontColor?: string;
58
58
  fontSize?: number;
59
59
  visibleMaxDistance?: number;
60
+ visibleMinDistance?: number;
60
61
  cellSizing?: ECellSizing;
61
62
  }
62
63
  /**
@@ -17,10 +17,24 @@ export declare namespace Tracking {
17
17
  "Created": string;
18
18
  "Amount": number;
19
19
  }
20
+ /**
21
+ * Columns a transaction summary can be grouped by.
22
+ * Guardian groups by App, Account, Type and Count when none are given.
23
+ */
24
+ enum ETransactionGroupBy {
25
+ App = "App",
26
+ Account = "Account",
27
+ User = "User",
28
+ Environment = "Environment",
29
+ Type = "Type",
30
+ Count = "Count",
31
+ Month = "Month"
32
+ }
20
33
  /**
21
34
  * Represents a tracked transaction.
22
35
  * Eg: a specific API endpoint was called.
23
36
  * Used so we can understand what requests should be optimized, removed, etc.
37
+ * A field for a column the summary was not grouped by is left out.
24
38
  */
25
39
  interface ITransaction {
26
40
  "App": string | "BRUCE_API";
@@ -28,6 +42,12 @@ export declare namespace Tracking {
28
42
  "Account.ID"?: string;
29
43
  "Count": string;
30
44
  "Value": number;
45
+ "User.ID"?: string;
46
+ "Environment"?: string;
47
+ "Month"?: string;
48
+ "Last"?: string;
49
+ "AccountCount"?: number;
50
+ "UserCount"?: number;
31
51
  }
32
52
  /**
33
53
  * Returns tracking data based on provided parameters.
@@ -37,11 +57,17 @@ export declare namespace Tracking {
37
57
  function GetData(params: {
38
58
  select?: "C" | "T";
39
59
  cType?: string;
60
+ tType?: string;
40
61
  tCount?: string;
41
62
  accountId?: string;
42
63
  app?: string;
64
+ environment?: string;
65
+ includeDeleted?: boolean;
43
66
  year?: number;
44
67
  month?: number;
68
+ fromYear?: number;
69
+ fromMonth?: number;
70
+ groupBy?: ETransactionGroupBy[];
45
71
  api?: GuardianApi.Api;
46
72
  req?: Api.IReqParams;
47
73
  }): Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "7.1.113",
3
+ "version": "7.1.115",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",