@memberjunction/core 0.9.166 → 0.9.167

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 (66) hide show
  1. package/dist/generic/interfaces.d.ts +0 -2
  2. package/dist/generic/interfaces.js.map +1 -1
  3. package/dist/generic/providerBase.d.ts +0 -7
  4. package/dist/generic/providerBase.js +1 -11
  5. package/dist/generic/providerBase.js.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/MJCore/src/generic/applicationInfo.d.ts +0 -26
  8. package/dist/MJCore/src/generic/applicationInfo.js +0 -57
  9. package/dist/MJCore/src/generic/applicationInfo.js.map +0 -1
  10. package/dist/MJCore/src/generic/baseEntity.d.ts +0 -195
  11. package/dist/MJCore/src/generic/baseEntity.js +0 -674
  12. package/dist/MJCore/src/generic/baseEntity.js.map +0 -1
  13. package/dist/MJCore/src/generic/baseInfo.d.ts +0 -8
  14. package/dist/MJCore/src/generic/baseInfo.js +0 -38
  15. package/dist/MJCore/src/generic/baseInfo.js.map +0 -1
  16. package/dist/MJCore/src/generic/entityInfo.d.ts +0 -520
  17. package/dist/MJCore/src/generic/entityInfo.js +0 -801
  18. package/dist/MJCore/src/generic/entityInfo.js.map +0 -1
  19. package/dist/MJCore/src/generic/interfaces.d.ts +0 -288
  20. package/dist/MJCore/src/generic/interfaces.js +0 -50
  21. package/dist/MJCore/src/generic/interfaces.js.map +0 -1
  22. package/dist/MJCore/src/generic/logging.d.ts +0 -4
  23. package/dist/MJCore/src/generic/logging.js +0 -69
  24. package/dist/MJCore/src/generic/logging.js.map +0 -1
  25. package/dist/MJCore/src/generic/metadata.d.ts +0 -201
  26. package/dist/MJCore/src/generic/metadata.js +0 -312
  27. package/dist/MJCore/src/generic/metadata.js.map +0 -1
  28. package/dist/MJCore/src/generic/providerBase.d.ts +0 -183
  29. package/dist/MJCore/src/generic/providerBase.js +0 -640
  30. package/dist/MJCore/src/generic/providerBase.js.map +0 -1
  31. package/dist/MJCore/src/generic/queryInfo.d.ts +0 -64
  32. package/dist/MJCore/src/generic/queryInfo.js +0 -124
  33. package/dist/MJCore/src/generic/queryInfo.js.map +0 -1
  34. package/dist/MJCore/src/generic/runQuery.d.ts +0 -11
  35. package/dist/MJCore/src/generic/runQuery.js +0 -26
  36. package/dist/MJCore/src/generic/runQuery.js.map +0 -1
  37. package/dist/MJCore/src/generic/runReport.d.ts +0 -11
  38. package/dist/MJCore/src/generic/runReport.js +0 -27
  39. package/dist/MJCore/src/generic/runReport.js.map +0 -1
  40. package/dist/MJCore/src/generic/securityInfo.d.ts +0 -100
  41. package/dist/MJCore/src/generic/securityInfo.js +0 -194
  42. package/dist/MJCore/src/generic/securityInfo.js.map +0 -1
  43. package/dist/MJCore/src/generic/transactionGroup.d.ts +0 -24
  44. package/dist/MJCore/src/generic/transactionGroup.js +0 -79
  45. package/dist/MJCore/src/generic/transactionGroup.js.map +0 -1
  46. package/dist/MJCore/src/generic/util.d.ts +0 -16
  47. package/dist/MJCore/src/generic/util.js +0 -151
  48. package/dist/MJCore/src/generic/util.js.map +0 -1
  49. package/dist/MJCore/src/index.d.ts +0 -16
  50. package/dist/MJCore/src/index.js +0 -44
  51. package/dist/MJCore/src/index.js.map +0 -1
  52. package/dist/MJCore/src/views/runView.d.ts +0 -112
  53. package/dist/MJCore/src/views/runView.js +0 -63
  54. package/dist/MJCore/src/views/runView.js.map +0 -1
  55. package/dist/MJCore/src/views/viewInfo.d.ts +0 -59
  56. package/dist/MJCore/src/views/viewInfo.js +0 -121
  57. package/dist/MJCore/src/views/viewInfo.js.map +0 -1
  58. package/dist/MJGlobal/src/ObjectCache.d.ts +0 -26
  59. package/dist/MJGlobal/src/ObjectCache.js +0 -55
  60. package/dist/MJGlobal/src/ObjectCache.js.map +0 -1
  61. package/dist/generic/objectCache.d.ts +0 -26
  62. package/dist/generic/objectCache.js +0 -55
  63. package/dist/generic/objectCache.js.map +0 -1
  64. package/dist/generic/viewInfo.d.ts +0 -59
  65. package/dist/generic/viewInfo.js +0 -121
  66. package/dist/generic/viewInfo.js.map +0 -1
@@ -1,79 +0,0 @@
1
- "use strict";
2
- /* TransactionGroup is a class that handles the bundling of multiple transactions into a single request. The provider handles
3
- the implementation details. If a transaction group is provided to the baseEntity object before either Save() or Delete() is called
4
- instead of just immediately executing its SQL or GQL, it provides the instructions to the TransactionGroup object instead.
5
-
6
- Then, whenever the TransactionGroup object instance has its Submit() method called, all of the requests will be bundled into a single
7
- request and handled. For example in the case of the GraphQLDataProvider, we queue up all of the GQL statements for all of the
8
- mutations and send them across as a single GraphQL request. The GraphQL server handles the actual DB transaction stuff.
9
-
10
- TransactionGroup will call a callback function, if provided, after the transaction has either completed succesfully or failed.
11
- If it is succesful, for Save() method calls, the latest data for that record will be provided back.
12
- For Delete() method calls, the callback will be called with no data.
13
-
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.TransactionGroupBase = exports.TransactionResult = exports.TransactionItem = void 0;
17
- class TransactionItem {
18
- get Vars() {
19
- return this._vars;
20
- }
21
- get ExtraData() {
22
- return this._extraData;
23
- }
24
- get Instruction() {
25
- return this._instruction;
26
- }
27
- get CallBack() {
28
- return this._callBack;
29
- }
30
- constructor(instruction, vars, extraData, callBack) {
31
- this._instruction = instruction;
32
- this._vars = vars;
33
- this._extraData = extraData;
34
- this._callBack = callBack;
35
- }
36
- }
37
- exports.TransactionItem = TransactionItem;
38
- class TransactionResult {
39
- constructor(transaction, result, success) {
40
- this.Transaction = transaction;
41
- this.Result = result;
42
- this.Success = success;
43
- }
44
- }
45
- exports.TransactionResult = TransactionResult;
46
- class TransactionGroupBase {
47
- constructor() {
48
- this._pendingTransactions = [];
49
- }
50
- PendingTransactions() {
51
- return this._pendingTransactions;
52
- }
53
- AddTransaction(transaction) {
54
- this._pendingTransactions.push(transaction);
55
- }
56
- async Submit() {
57
- try {
58
- if (this._pendingTransactions.length > 0) {
59
- // subclass handles the actual submit implementation whatever that does
60
- let results = await this.HandleSubmit(this._pendingTransactions);
61
- // now we have the results back, so we can call the callback functions
62
- for (let i = 0; i < results.length; i++) {
63
- await results[i].Transaction.CallBack(results[i].Result, results[i].Success);
64
- }
65
- }
66
- return true;
67
- }
68
- catch (err) {
69
- console.error(err);
70
- // it failed, so we have to call the callback functions with the error
71
- for (let i = 0; i < this._pendingTransactions.length; i++) {
72
- await this._pendingTransactions[i].CallBack(err, false);
73
- }
74
- return false;
75
- }
76
- }
77
- }
78
- exports.TransactionGroupBase = TransactionGroupBase;
79
- //# sourceMappingURL=transactionGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactionGroup.js","sourceRoot":"","sources":["../../../../src/generic/transactionGroup.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;EAYE;;;AAEF,MAAa,eAAe;IAMxB,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACD,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACD,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACD,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,YAAa,WAAmB,EAAE,IAAS,EAAE,SAAc,EAAE,QAAkB;QAC3E,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC9B,CAAC;CACJ;AAzBD,0CAyBC;AAED,MAAa,iBAAiB;IAK1B,YAAY,WAA4B,EAAE,MAAW,EAAE,OAAgB;QACnE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AAVD,8CAUC;AAED,MAA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;
2
- /**
3
- * Formats a value based on the parameters passed in
4
- * @param sqlType - Required - the base type in SQL Server, for example int, nvarchar, etc. For types that have a length like numeric(28,4) or nvarchar(50) do NOT provide the length, just numeric and nvarchar in those examples
5
- * @param value - Value to format
6
- * @param decimals Number of decimals to show, defaults to 2
7
- * @param currency Currency to use when formatting, defaults to USD
8
- * @param maxLength Maximum length of the string to return, if the formatted value is longer than this length then the string will be truncated and the trailingChars will be appended to the end of the string
9
- * @param trailingChars Only used if maxLength is > 0 and the string being formatted is > maxLength, this is the string that will be appended to the end of the string to indicate that it was truncated, defaults to "..."
10
- * @returns either the original string value or a formatted version. If the format cannot be applied an an exception occurs it is captured and the error is put to the log, and the original value is returned
11
- */
12
- export declare function FormatValue(sqlType: string, value: any, decimals?: number, currency?: string, maxLength?: number, trailingChars?: string): string;
13
- export declare function SQLFullType(baseType: string, length: number, precision: number, scale: number): string;
14
- export declare function SQLMaxLength(sqlBaseType: string, sqlLength: number): number;
15
- export declare function CommonStopWords(): string[];
16
- export declare function StripStopWords(inputString: string): string;
@@ -1,151 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StripStopWords = exports.CommonStopWords = exports.SQLMaxLength = exports.SQLFullType = exports.FormatValue = exports.TypeScriptTypeFromSQLType = void 0;
4
- const logging_1 = require("./logging");
5
- function TypeScriptTypeFromSQLType(sqlType) {
6
- switch (sqlType.trim().toLowerCase()) {
7
- case 'text':
8
- case 'char':
9
- case 'varchar':
10
- case 'ntext':
11
- case 'nchar':
12
- case 'nvarchar':
13
- case 'uniqueidentifier': //treat this as a string
14
- return 'string';
15
- case 'datetime':
16
- case 'datetime2':
17
- case 'datetimeoffset':
18
- case 'date':
19
- case 'time':
20
- return 'Date';
21
- case 'bit':
22
- return 'boolean';
23
- default:
24
- return 'number';
25
- }
26
- }
27
- exports.TypeScriptTypeFromSQLType = TypeScriptTypeFromSQLType;
28
- /**
29
- * Formats a value based on the parameters passed in
30
- * @param sqlType - Required - the base type in SQL Server, for example int, nvarchar, etc. For types that have a length like numeric(28,4) or nvarchar(50) do NOT provide the length, just numeric and nvarchar in those examples
31
- * @param value - Value to format
32
- * @param decimals Number of decimals to show, defaults to 2
33
- * @param currency Currency to use when formatting, defaults to USD
34
- * @param maxLength Maximum length of the string to return, if the formatted value is longer than this length then the string will be truncated and the trailingChars will be appended to the end of the string
35
- * @param trailingChars Only used if maxLength is > 0 and the string being formatted is > maxLength, this is the string that will be appended to the end of the string to indicate that it was truncated, defaults to "..."
36
- * @returns either the original string value or a formatted version. If the format cannot be applied an an exception occurs it is captured and the error is put to the log, and the original value is returned
37
- */
38
- function FormatValue(sqlType, value, decimals = 2, currency = 'USD', maxLength = 0, trailingChars = "...") {
39
- try {
40
- const retVal = FormatValueInternal(sqlType, value, decimals, currency, maxLength, trailingChars);
41
- if (maxLength > 0 && retVal && retVal.length > maxLength)
42
- return retVal.substring(0, maxLength) + trailingChars;
43
- else
44
- return retVal;
45
- }
46
- catch (e) {
47
- (0, logging_1.LogError)(`Error formatting value ${value} of type ${sqlType} with decimals ${decimals} and currency ${currency}`, e);
48
- return value; // just return the value as is if we cant format it
49
- }
50
- }
51
- exports.FormatValue = FormatValue;
52
- // internal only function used by FormatValue() to do the actual formatting
53
- function FormatValueInternal(sqlType, value, decimals = 2, currency = 'USD', maxLength = 0, trailingChars = "...") {
54
- if (value === null || value === undefined) {
55
- return value;
56
- }
57
- switch (sqlType.trim().toLowerCase()) {
58
- case 'money':
59
- if (isNaN(value))
60
- return value;
61
- else
62
- return new Intl.NumberFormat(undefined, { style: 'currency',
63
- currency: currency,
64
- minimumFractionDigits: decimals,
65
- maximumFractionDigits: decimals }).format(value);
66
- case 'date':
67
- case 'datetime':
68
- case 'datetimeoffset':
69
- let date = new Date(value);
70
- return new Intl.DateTimeFormat().format(date);
71
- case 'decimal':
72
- case 'real':
73
- case 'float':
74
- return new Intl.NumberFormat(undefined, { minimumFractionDigits: decimals, maximumFractionDigits: decimals }).format(value);
75
- case 'int':
76
- return new Intl.NumberFormat(undefined, { minimumFractionDigits: 0, maximumFractionDigits: 0 }).format(value);
77
- case 'percent':
78
- return new Intl.NumberFormat(undefined, { style: 'percent',
79
- minimumFractionDigits: decimals,
80
- maximumFractionDigits: decimals }).format(value);
81
- default:
82
- return value;
83
- }
84
- }
85
- function SQLFullType(baseType, length, precision, scale) {
86
- const type = baseType.trim().toLowerCase();
87
- let sOutput = type;
88
- if (type === 'varchar')
89
- sOutput += `(${length > 0 ? length : 'MAX'})`;
90
- else if (type === 'nvarchar')
91
- sOutput += `(${length > 0 ? length / 2 : 'MAX'})`; // nvarchar divide the system length by 2 to get the actual length for the output
92
- else if (type === 'char')
93
- sOutput += `(${length})`;
94
- else if (type === 'nchar')
95
- sOutput += `(${length / 2})`; // nchar divide the system length by 2 to get the actual length for the output
96
- else if (type === 'decimal' || type === 'numeric')
97
- sOutput += `(${precision}, ${scale})`;
98
- else if (type === 'float')
99
- sOutput += `(${precision})`;
100
- return sOutput;
101
- }
102
- exports.SQLFullType = SQLFullType;
103
- function SQLMaxLength(sqlBaseType, sqlLength) {
104
- switch (sqlBaseType.trim().toLowerCase()) {
105
- case 'varchar':
106
- case 'char':
107
- case 'text':
108
- return sqlLength;
109
- case 'nvarchar':
110
- case 'nchar':
111
- case 'ntext':
112
- return sqlLength / 2; // length in the schema is the # of bytes and on unicode fields we divide by 2 to get the # of characters a user is allowed to put in.
113
- default:
114
- return 0;
115
- }
116
- }
117
- exports.SQLMaxLength = SQLMaxLength;
118
- const _stopwords = [
119
- "a", "about", "above", "after", "again", "against", "ain", "all", "am", "an", "and", "any", "are", "aren", "aren't", "as", "at",
120
- "be", "because", "been", "before", "being", "below", "between", "both", "but", "by",
121
- "can", "couldn", "couldn't", "could",
122
- "d", "did", "didn", "didn't", "do", "does", "doesn", "doesn't", "doing", "don", "don't", "down", "during",
123
- "each",
124
- "few", "for", "from", "further",
125
- "had", "hadn", "hadn't", "has", "hasn", "hasn't", "have", "haven", "haven't", "having", "he", "her", "here", "hers", "herself", "him", "himself", "his", "how",
126
- "i", "if", "in", "into", "is", "isn", "isn't", "it", "it's", "its", "itself",
127
- "just",
128
- "ll",
129
- "m", "ma", "me", "mightn", "mightn't", "more", "most", "mustn", "mustn't", "my", "myself",
130
- "needn", "needn't", "no", "nor", "not", "now",
131
- "o", "of", "off", "on", "once", "only", "or", "other", "our", "ours", "ourselves", "out", "over", "own",
132
- "re",
133
- "s", "same", "shan", "shan't", "she", "she's", "should", "should've", "shouldn", "shouldn't", "so", "some", "such",
134
- "t", "than", "that", "that'll", "the", "their", "theirs", "them", "themselves", "then", "there", "these", "they", "this", "those", "through", "to", "too",
135
- "under", "until", "up",
136
- "ve", "very",
137
- "was", "wasn", "wasn't", "we", "were", "weren", "weren't", "what", "when", "where", "which", "while", "who", "whom", "why", "will", "with", "won", "won't", "wouldn", "wouldn't",
138
- "y", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"
139
- ];
140
- function CommonStopWords() {
141
- return _stopwords;
142
- }
143
- exports.CommonStopWords = CommonStopWords;
144
- function StripStopWords(inputString) {
145
- const stopwordPattern = new RegExp(`\\b(${_stopwords.join('|')})\\b`, 'gi');
146
- let outputString = inputString.replace(stopwordPattern, '');
147
- outputString = outputString.replace(/ +/g, ' '); // Replace multiple spaces with a single space
148
- return outputString;
149
- }
150
- exports.StripStopWords = StripStopWords;
151
- //# sourceMappingURL=util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/generic/util.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAErC,SAAgB,yBAAyB,CAAC,OAAe;IACrD,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;QACnC,KAAK,MAAM,CAAC;QACZ,KAAK,MAAM,CAAC;QACZ,KAAK,SAAS,CAAC;QACf,KAAK,OAAO,CAAC;QACb,KAAK,OAAO,CAAC;QACb,KAAK,UAAU,CAAC;QACh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C5E,IAAI,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAC5D,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAE,8CAA8C;IAChG,OAAO,YAAY,CAAC;AACxB,CAAC;AALD,wCAKC"}
@@ -1,16 +0,0 @@
1
- export * from "./generic/metadata";
2
- export * from "./generic/baseInfo";
3
- export * from "./views/runView";
4
- export * from "./generic/runReport";
5
- export * from "./generic/runQuery";
6
- export * from "./generic/interfaces";
7
- export * from "./generic/baseEntity";
8
- export * from "./generic/applicationInfo";
9
- export * from "./generic/providerBase";
10
- export * from "./generic/entityInfo";
11
- export * from "./generic/securityInfo";
12
- export * from "./generic/transactionGroup";
13
- export * from "./generic/util";
14
- export * from "./generic/logging";
15
- export * from "./generic/queryInfo";
16
- export declare function SetProvider(provider: any): void;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SetProvider = void 0;
18
- const baseEntity_1 = require("./generic/baseEntity");
19
- const metadata_1 = require("./generic/metadata");
20
- const runReport_1 = require("./generic/runReport");
21
- const runView_1 = require("./views/runView");
22
- __exportStar(require("./generic/metadata"), exports);
23
- __exportStar(require("./generic/baseInfo"), exports);
24
- __exportStar(require("./views/runView"), exports);
25
- __exportStar(require("./generic/runReport"), exports);
26
- __exportStar(require("./generic/runQuery"), exports);
27
- __exportStar(require("./generic/interfaces"), exports);
28
- __exportStar(require("./generic/baseEntity"), exports);
29
- __exportStar(require("./generic/applicationInfo"), exports);
30
- __exportStar(require("./generic/providerBase"), exports);
31
- __exportStar(require("./generic/entityInfo"), exports);
32
- __exportStar(require("./generic/securityInfo"), exports);
33
- __exportStar(require("./generic/transactionGroup"), exports);
34
- __exportStar(require("./generic/util"), exports);
35
- __exportStar(require("./generic/logging"), exports);
36
- __exportStar(require("./generic/queryInfo"), exports);
37
- function SetProvider(provider) {
38
- metadata_1.Metadata.Provider = provider;
39
- baseEntity_1.BaseEntity.Provider = provider;
40
- runView_1.RunView.Provider = provider;
41
- runReport_1.RunReport.Provider = provider;
42
- }
43
- exports.SetProvider = SetProvider;
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAkD;AAClD,iDAA8C;AAC9C,mDAAgD;AAChD,6CAA0C;AAE1C,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,yDAAuC;AACvC,6DAA2C;AAC3C,iDAA+B;AAC/B,oDAAkC;AAClC,sDAAoC;AAEpC,SAAgB,WAAW,CAAC,QAAQ;IAChC,mBAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,uBAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC/B,iBAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC5B,qBAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAClC,CAAC;AALD,kCAKC"}
@@ -1,112 +0,0 @@
1
- import { IRunViewProvider, RunViewResult } from '../generic/interfaces';
2
- import { UserInfo } from '../generic/securityInfo';
3
- import { BaseEntity } from '../generic/baseEntity';
4
- /**
5
- * Parameters for running either a stored or dynamic view.
6
- * A stored view is a view that is saved in the database and can be run either by ID or Name.
7
- * A dynamic view is one that is not stored in the database and you provide parameters to return data as
8
- * desired programatically.
9
- */
10
- export type RunViewParams = {
11
- /**
12
- * optional - ID of the UserView record to run, if provided, ViewName is ignored
13
- */
14
- ViewID?: number;
15
- /**
16
- * optional - Name of the UserView record to run, if you are using this, make sure to use a naming convention
17
- * so that your view names are unique. For example use a prefix like __Entity_View_ etc so that you're
18
- * likely to have a single result. If more than one view is available that matches a provided view name an
19
- * exception will be thrown.
20
- */
21
- ViewName?: string;
22
- /**
23
- * optional - this is the loaded instance of the BaseEntity (UserViewEntityComplete or a subclass of it).
24
- * This is the preferred parameter to use IF you already have a view entity object loaded up in your code
25
- * becuase by passing this in, the RunView() method doesn't have to lookup all the metadata for the view and it is faster.
26
- * If you provide ViewEntity, ViewID/ViewName are ignored.
27
- */
28
- ViewEntity?: BaseEntity;
29
- /**
30
- * optional - this is only used if ViewID/ViewName/ViewEntity are not provided, it is used for
31
- * Dynamic Views in combination with the optional ExtraFilter
32
- */
33
- EntityName?: string;
34
- /**
35
- * An optional SQL WHERE clause that you can add to the existing filters on a stored view. For dynamic views, you can either
36
- * run a view without a filter (if the entity definition allows it with AllowAllRowsAPI=1) or filter with any valid SQL WHERE clause.
37
- */
38
- ExtraFilter?: string;
39
- /**
40
- * An optional SQL ORDER BY clause that you can use for dynamic views, as well as to OVERRIDE the stored view's sorting order.
41
- */
42
- OrderBy?: string;
43
- /**
44
- * An optional array of field names that you want returned. The RunView() function will always return ID so you don't need to ask for that. If you leave this null then
45
- * for a dynamic view all fields are returned, and for stored views, the fields stored in it view configuration are returned.
46
- */
47
- Fields?: string[];
48
- /**
49
- * optional - string that represents a user "search" - typically from a text search option in a UI somewhere. This field is then used in the view filtering to search whichever fields are configured to be included in search in the Entity Fields definition.
50
- * Search String is combined with the stored view filters as well as ExtraFilter with an AND.
51
- */
52
- UserSearchString?: string;
53
- /**
54
- * optional - if provided, records that were returned in the specified UserViewRunID will NOT be allowed in the result set.
55
- * This is useful if you want to run a particular view over time and exclude a specific prior run's resulting data set. If you
56
- * want to exclude ALL data returned from ALL prior runs, use the ExcludeDataFromAllPriorViewRuns property instead.
57
- */
58
- ExcludeUserViewRunID?: number;
59
- /**
60
- * optional - if set to true, the resulting data will filter out ANY records that were ever returned by this view, when the SaveViewResults property was set to true.
61
- * This is useful if you want to run a particular view over time and make sure the results returned each time are new to the view.
62
- */
63
- ExcludeDataFromAllPriorViewRuns?: boolean;
64
- /**
65
- * optional - if you are providing the optional ExcludeUserViewRunID property, you can also optionally provide
66
- * this filter which will negate the specific list of record IDs that are excluded by the ExcludeUserViewRunID property.
67
- * This can be useful if you want to ensure a certain class of data is always allowed into your view and not filtered out
68
- * by a prior view run.
69
- *
70
- */
71
- OverrideExcludeFilter?: string;
72
- /**
73
- * optional - if set to true, the LIST OF ID values from the view run will be stored in the User View Runs entity and the
74
- * newly created UserViewRun.ID value will be returned in the RunViewResult that the RunView() function sends back to ya.
75
- */
76
- SaveViewResults?: boolean;
77
- /**
78
- * optional - if set to true, if there IS any UserViewMaxRows property set for the entity in question, it will be IGNORED. This is useful in scenarios where you
79
- * want to programmatically run a view and get ALL the data back, regardless of the MaxRows setting on the entity.
80
- */
81
- IgnoreMaxRows?: boolean;
82
- /**
83
- * optional - if set to true, the view run will ALWAYS be logged to the Audit Log, regardless of the entity's property settings for logging view runs.
84
- */
85
- ForceAuditLog?: boolean;
86
- /**
87
- * optional - if provided and either ForceAuditLog is set, or the entity's property settings for logging view runs are set to true, this will be used as the Audit Log Description.
88
- */
89
- AuditLogDescription?: string;
90
- /**
91
- * Result Type is either 'simple' or 'entity_object' and defaults to 'Plain'. If 'EntityObject' is specified, the Results[] array will contain
92
- * BaseEntity-derived objects instead of plain objects. This is useful if you want to work with the data in a more strongly typed manner and/or
93
- * if you plan to do any update/delete operations on the data.
94
- */
95
- ResultType?: 'simple' | 'entity_object';
96
- };
97
- /**
98
- * Class for runnings views in a generic, tier-independent manner - uses a provider model for
99
- * implementation transparently from the viewpoint of the consumer of the class.
100
- */
101
- export declare class RunView {
102
- /**
103
- * Runs a view based on the provided parameters, see documentation for RunViewParams for more
104
- * @param params
105
- * @param contextUser if provided, this user is used for permissions and logging. For server based calls, this is generally required because there is no "Current User" since this object is shared across all requests.
106
- * @returns
107
- */
108
- RunView(params: RunViewParams, contextUser?: UserInfo): Promise<RunViewResult>;
109
- private static _globalProviderKey;
110
- static get Provider(): IRunViewProvider;
111
- static set Provider(value: IRunViewProvider);
112
- }
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RunView = void 0;
4
- const global_1 = require("@memberjunction/global");
5
- const metadata_1 = require("../generic/metadata");
6
- /**
7
- * Class for runnings views in a generic, tier-independent manner - uses a provider model for
8
- * implementation transparently from the viewpoint of the consumer of the class.
9
- */
10
- class RunView {
11
- /**
12
- * Runs a view based on the provided parameters, see documentation for RunViewParams for more
13
- * @param params
14
- * @param contextUser if provided, this user is used for permissions and logging. For server based calls, this is generally required because there is no "Current User" since this object is shared across all requests.
15
- * @returns
16
- */
17
- async RunView(params, contextUser) {
18
- // FIRST, if the resultType is entity_object, we need to run the view with ALL fields in the entity
19
- // so that we can get the data to populate the entity object with.
20
- if (params.ResultType === 'entity_object') {
21
- // we need to get the entity definition and then get all the fields for it
22
- const md = new metadata_1.Metadata();
23
- const entity = md.Entities.find(e => e.Name.trim().toLowerCase() === params.EntityName.trim().toLowerCase());
24
- if (!entity)
25
- throw new Error(`Entity ${params.EntityName} not found in metadata`);
26
- params.Fields = entity.Fields.map(f => f.Name); // just override whatever was passed in with all the fields - or if nothing was passed in, we set it. For loading the entity object, we need ALL the fields.
27
- }
28
- // NOW, run the view
29
- const result = await RunView.Provider.RunView(params, contextUser);
30
- // FINALLY, if needed, transform the result set into BaseEntity-derived objects
31
- if (params.ResultType === 'entity_object' &&
32
- result &&
33
- result.Success) {
34
- // we need to transform each of the items in the result set into a BaseEntity-derived object
35
- const md = new metadata_1.Metadata();
36
- const newItems = [];
37
- for (const item of result.Results) {
38
- const entity = await md.GetEntityObject(params.EntityName);
39
- entity.LoadFromData(item);
40
- newItems.push(entity);
41
- }
42
- result.Results = newItems;
43
- }
44
- return result;
45
- }
46
- static get Provider() {
47
- const g = global_1.MJGlobal.Instance.GetGlobalObjectStore();
48
- if (g)
49
- return g[RunView._globalProviderKey];
50
- else
51
- throw new Error('No global object store, so we cant get the static provider');
52
- }
53
- static set Provider(value) {
54
- const g = global_1.MJGlobal.Instance.GetGlobalObjectStore();
55
- if (g)
56
- g[RunView._globalProviderKey] = value;
57
- else
58
- throw new Error('No global object store, so we cant set the static provider');
59
- }
60
- }
61
- exports.RunView = RunView;
62
- RunView._globalProviderKey = 'MJ_RunViewProvider';
63
- //# sourceMappingURL=runView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runView.js","sourceRoot":"","sources":["../../../../src/views/runView.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAIlD,kDAA+C;AAiG/C;;;GAGG;AACH,MAAa,OAAO;IAChB;;;;;OAKG;IACI,KAAK,CAAC,OAAO,CAAC,MAAqB,EAAE,WAAsB;QAC9D,mGAAmG;QACnG,kEAAkE;QAClE,IAAI,MAAM,CAAC,UAAU,KAAK,eAAe,EAAE,CAAC;YACxC,0EAA0E;YAC1E,MAAM,EAAE,GAAG,IAAI,mBAAQ,EAAE,CAAC;YAC1B,MAAM,MAAM,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;YAC7G,IAAI,CAAC,MAAM;gBACP,MAAM,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AI,CAAC;YACD,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC;;YAEtC,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IACtF,CAAC;;AAxDL,0BA0DC;AAhBkB,0BAAkB,GAAW,oBAAoB,CAAC"}
@@ -1,59 +0,0 @@
1
- import { BaseInfo } from '../generic/baseInfo';
2
- import { EntityFieldInfo, EntityInfo } from '../generic/entityInfo';
3
- import { IMetadataProvider } from '../generic/interfaces';
4
- export declare class ViewColumnInfo extends BaseInfo {
5
- ID: number;
6
- Name: string;
7
- DisplayName: string;
8
- hidden: boolean;
9
- width?: number;
10
- orderIndex?: number;
11
- EntityField: EntityFieldInfo;
12
- constructor(initData?: any);
13
- }
14
- export declare const ViewFilterLogicInfo: {
15
- readonly And: "And";
16
- readonly Or: "Or";
17
- };
18
- export type ViewFilterLogicInfo = typeof ViewFilterLogicInfo[keyof typeof ViewFilterLogicInfo];
19
- export declare class ViewFilterInfo extends BaseInfo {
20
- logicOperator: ViewFilterLogicInfo;
21
- field: string;
22
- operator: string;
23
- value: string;
24
- filters: ViewFilterInfo[];
25
- constructor(initData?: any);
26
- }
27
- export declare class ViewGridState {
28
- sortSettings?: any;
29
- columnSettings?: any;
30
- filter?: any;
31
- }
32
- export declare class ViewInfo extends BaseInfo {
33
- UserID: number;
34
- EntityID: number;
35
- Name: string;
36
- Description: string;
37
- CategoryID: number;
38
- IsShared: boolean;
39
- IsDefault: boolean;
40
- GridState: string;
41
- FilterState: string;
42
- CustomFilterState: string;
43
- WhereClause: string;
44
- CustomWhereClause: string;
45
- CreatedAt: Date;
46
- UpdatedAt: Date;
47
- UserName: string;
48
- UserType: string;
49
- Entity: string;
50
- EntityBaseView: string;
51
- private _Filter;
52
- get Filter(): ViewFilterInfo[];
53
- private _Columns;
54
- get Columns(): ViewColumnInfo[];
55
- private _EntityInfo;
56
- get EntityInfo(): EntityInfo;
57
- InitFromData(md: IMetadataProvider, initData: any): void;
58
- constructor(md: IMetadataProvider, initData?: any);
59
- }