@qrunio/qqq-frontend-core 0.36.1-SNAPSHOT

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 (144) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +155 -0
  3. package/lib/controllers/QController.d.ts +235 -0
  4. package/lib/controllers/QController.js +1106 -0
  5. package/lib/controllers/QController.js.map +1 -0
  6. package/lib/controllers/QControllerV1.d.ts +213 -0
  7. package/lib/controllers/QControllerV1.js +992 -0
  8. package/lib/controllers/QControllerV1.js.map +1 -0
  9. package/lib/exceptions/QException.d.ts +12 -0
  10. package/lib/exceptions/QException.js +54 -0
  11. package/lib/exceptions/QException.js.map +1 -0
  12. package/lib/model/QPossibleValue.d.ts +13 -0
  13. package/lib/model/QPossibleValue.js +51 -0
  14. package/lib/model/QPossibleValue.js.map +1 -0
  15. package/lib/model/QRecord.d.ts +14 -0
  16. package/lib/model/QRecord.js +64 -0
  17. package/lib/model/QRecord.js.map +1 -0
  18. package/lib/model/metaData/AdornmentType.d.ts +17 -0
  19. package/lib/model/metaData/AdornmentType.js +42 -0
  20. package/lib/model/metaData/AdornmentType.js.map +1 -0
  21. package/lib/model/metaData/Banner.d.ts +15 -0
  22. package/lib/model/metaData/Banner.js +37 -0
  23. package/lib/model/metaData/Banner.js.map +1 -0
  24. package/lib/model/metaData/Capability.d.ts +13 -0
  25. package/lib/model/metaData/Capability.js +38 -0
  26. package/lib/model/metaData/Capability.js.map +1 -0
  27. package/lib/model/metaData/FieldAdornment.d.ts +15 -0
  28. package/lib/model/metaData/FieldAdornment.js +58 -0
  29. package/lib/model/metaData/FieldAdornment.js.map +1 -0
  30. package/lib/model/metaData/ProcessMetaDataAdjustment.d.ts +11 -0
  31. package/lib/model/metaData/ProcessMetaDataAdjustment.js +45 -0
  32. package/lib/model/metaData/ProcessMetaDataAdjustment.js.map +1 -0
  33. package/lib/model/metaData/QAppMetaData.d.ts +17 -0
  34. package/lib/model/metaData/QAppMetaData.js +57 -0
  35. package/lib/model/metaData/QAppMetaData.js.map +1 -0
  36. package/lib/model/metaData/QAppNodeType.d.ts +10 -0
  37. package/lib/model/metaData/QAppNodeType.js +32 -0
  38. package/lib/model/metaData/QAppNodeType.js.map +1 -0
  39. package/lib/model/metaData/QAppSection.d.ts +14 -0
  40. package/lib/model/metaData/QAppSection.js +46 -0
  41. package/lib/model/metaData/QAppSection.js.map +1 -0
  42. package/lib/model/metaData/QAppTreeNode.d.ts +16 -0
  43. package/lib/model/metaData/QAppTreeNode.js +46 -0
  44. package/lib/model/metaData/QAppTreeNode.js.map +1 -0
  45. package/lib/model/metaData/QAuthenticationMetaData.d.ts +10 -0
  46. package/lib/model/metaData/QAuthenticationMetaData.js +44 -0
  47. package/lib/model/metaData/QAuthenticationMetaData.js.map +1 -0
  48. package/lib/model/metaData/QBrandingMetaData.d.ts +17 -0
  49. package/lib/model/metaData/QBrandingMetaData.js +46 -0
  50. package/lib/model/metaData/QBrandingMetaData.js.map +1 -0
  51. package/lib/model/metaData/QComponentType.d.ts +20 -0
  52. package/lib/model/metaData/QComponentType.js +45 -0
  53. package/lib/model/metaData/QComponentType.js.map +1 -0
  54. package/lib/model/metaData/QExposedJoin.d.ts +18 -0
  55. package/lib/model/metaData/QExposedJoin.js +65 -0
  56. package/lib/model/metaData/QExposedJoin.js.map +1 -0
  57. package/lib/model/metaData/QFieldMetaData.d.ts +46 -0
  58. package/lib/model/metaData/QFieldMetaData.js +157 -0
  59. package/lib/model/metaData/QFieldMetaData.js.map +1 -0
  60. package/lib/model/metaData/QFieldType.d.ts +18 -0
  61. package/lib/model/metaData/QFieldType.js +43 -0
  62. package/lib/model/metaData/QFieldType.js.map +1 -0
  63. package/lib/model/metaData/QFrontendComponent.d.ts +10 -0
  64. package/lib/model/metaData/QFrontendComponent.js +35 -0
  65. package/lib/model/metaData/QFrontendComponent.js.map +1 -0
  66. package/lib/model/metaData/QFrontendStepMetaData.d.ts +18 -0
  67. package/lib/model/metaData/QFrontendStepMetaData.js +62 -0
  68. package/lib/model/metaData/QFrontendStepMetaData.js.map +1 -0
  69. package/lib/model/metaData/QHelpContent.d.ts +27 -0
  70. package/lib/model/metaData/QHelpContent.js +108 -0
  71. package/lib/model/metaData/QHelpContent.js.map +1 -0
  72. package/lib/model/metaData/QIcon.d.ts +10 -0
  73. package/lib/model/metaData/QIcon.js +34 -0
  74. package/lib/model/metaData/QIcon.js.map +1 -0
  75. package/lib/model/metaData/QInstance.d.ts +43 -0
  76. package/lib/model/metaData/QInstance.js +149 -0
  77. package/lib/model/metaData/QInstance.js.map +1 -0
  78. package/lib/model/metaData/QJoinMetaData.d.ts +15 -0
  79. package/lib/model/metaData/QJoinMetaData.js +53 -0
  80. package/lib/model/metaData/QJoinMetaData.js.map +1 -0
  81. package/lib/model/metaData/QProcessMetaData.d.ts +18 -0
  82. package/lib/model/metaData/QProcessMetaData.js +52 -0
  83. package/lib/model/metaData/QProcessMetaData.js.map +1 -0
  84. package/lib/model/metaData/QReportMetaData.d.ts +13 -0
  85. package/lib/model/metaData/QReportMetaData.js +38 -0
  86. package/lib/model/metaData/QReportMetaData.js.map +1 -0
  87. package/lib/model/metaData/QTableMetaData.d.ts +34 -0
  88. package/lib/model/metaData/QTableMetaData.js +165 -0
  89. package/lib/model/metaData/QTableMetaData.js.map +1 -0
  90. package/lib/model/metaData/QTableSection.d.ts +25 -0
  91. package/lib/model/metaData/QTableSection.js +99 -0
  92. package/lib/model/metaData/QTableSection.js.map +1 -0
  93. package/lib/model/metaData/QTableVariant.d.ts +10 -0
  94. package/lib/model/metaData/QTableVariant.js +34 -0
  95. package/lib/model/metaData/QTableVariant.js.map +1 -0
  96. package/lib/model/metaData/QThemeMetaData.d.ts +106 -0
  97. package/lib/model/metaData/QThemeMetaData.js +151 -0
  98. package/lib/model/metaData/QThemeMetaData.js.map +1 -0
  99. package/lib/model/metaData/QWidgetMetaData.d.ts +32 -0
  100. package/lib/model/metaData/QWidgetMetaData.js +63 -0
  101. package/lib/model/metaData/QWidgetMetaData.js.map +1 -0
  102. package/lib/model/processes/QJobComplete.d.ts +15 -0
  103. package/lib/model/processes/QJobComplete.js +39 -0
  104. package/lib/model/processes/QJobComplete.js.map +1 -0
  105. package/lib/model/processes/QJobError.d.ts +10 -0
  106. package/lib/model/processes/QJobError.js +34 -0
  107. package/lib/model/processes/QJobError.js.map +1 -0
  108. package/lib/model/processes/QJobRunning.d.ts +11 -0
  109. package/lib/model/processes/QJobRunning.js +35 -0
  110. package/lib/model/processes/QJobRunning.js.map +1 -0
  111. package/lib/model/processes/QJobStarted.d.ts +9 -0
  112. package/lib/model/processes/QJobStarted.js +33 -0
  113. package/lib/model/processes/QJobStarted.js.map +1 -0
  114. package/lib/model/query/FilterVariableExpression.d.ts +11 -0
  115. package/lib/model/query/FilterVariableExpression.js +37 -0
  116. package/lib/model/query/FilterVariableExpression.js.map +1 -0
  117. package/lib/model/query/NowExpression.d.ts +9 -0
  118. package/lib/model/query/NowExpression.js +35 -0
  119. package/lib/model/query/NowExpression.js.map +1 -0
  120. package/lib/model/query/NowWithOffsetExpression.d.ts +14 -0
  121. package/lib/model/query/NowWithOffsetExpression.js +43 -0
  122. package/lib/model/query/NowWithOffsetExpression.js.map +1 -0
  123. package/lib/model/query/QCriteriaOperator.d.ts +25 -0
  124. package/lib/model/query/QCriteriaOperator.js +47 -0
  125. package/lib/model/query/QCriteriaOperator.js.map +1 -0
  126. package/lib/model/query/QFilterCriteria.d.ts +16 -0
  127. package/lib/model/query/QFilterCriteria.js +52 -0
  128. package/lib/model/query/QFilterCriteria.js.map +1 -0
  129. package/lib/model/query/QFilterOrderBy.d.ts +13 -0
  130. package/lib/model/query/QFilterOrderBy.js +40 -0
  131. package/lib/model/query/QFilterOrderBy.js.map +1 -0
  132. package/lib/model/query/QQueryFilter.d.ts +30 -0
  133. package/lib/model/query/QQueryFilter.js +114 -0
  134. package/lib/model/query/QQueryFilter.js.map +1 -0
  135. package/lib/model/query/QueryJoin.d.ts +13 -0
  136. package/lib/model/query/QueryJoin.js +42 -0
  137. package/lib/model/query/QueryJoin.js.map +1 -0
  138. package/lib/model/query/ThisOrLastPeriodExpression.d.ts +13 -0
  139. package/lib/model/query/ThisOrLastPeriodExpression.js +43 -0
  140. package/lib/model/query/ThisOrLastPeriodExpression.js.map +1 -0
  141. package/lib/qqq-frontend-core.d.ts +1 -0
  142. package/lib/qqq-frontend-core.js +31 -0
  143. package/lib/qqq-frontend-core.js.map +1 -0
  144. package/package.json +51 -0
@@ -0,0 +1,35 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Indication that a process step is still running.
23
+ **
24
+ *******************************************************************************/
25
+ var QJobRunning = /** @class */ (function () {
26
+ function QJobRunning(object) {
27
+ this.processUUID = object.processUUID;
28
+ this.message = object.message;
29
+ this.current = object.current;
30
+ this.total = object.total;
31
+ }
32
+ return QJobRunning;
33
+ }());
34
+ export { QJobRunning };
35
+ //# sourceMappingURL=QJobRunning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QJobRunning.js","sourceRoot":"","sources":["../../../src/model/processes/QJobRunning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;iFAGiF;AACjF;IAOG,qBAAY,MAAW;QAEpB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,CAAC;IACJ,kBAAC;AAAD,CAAC,AAdD,IAcC"}
@@ -0,0 +1,9 @@
1
+ /*******************************************************************************
2
+ ** Indication that a process step has started running an async job.
3
+ **
4
+ *******************************************************************************/
5
+ export declare class QJobStarted {
6
+ processUUID: string;
7
+ jobUUID: string;
8
+ constructor(object: any);
9
+ }
@@ -0,0 +1,33 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Indication that a process step has started running an async job.
23
+ **
24
+ *******************************************************************************/
25
+ var QJobStarted = /** @class */ (function () {
26
+ function QJobStarted(object) {
27
+ this.processUUID = object.processUUID;
28
+ this.jobUUID = object.jobUUID;
29
+ }
30
+ return QJobStarted;
31
+ }());
32
+ export { QJobStarted };
33
+ //# sourceMappingURL=QJobStarted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QJobStarted.js","sourceRoot":"","sources":["../../../src/model/processes/QJobStarted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;iFAGiF;AACjF;IAKG,qBAAY,MAAW;QAEpB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IACjC,CAAC;IACJ,kBAAC;AAAD,CAAC,AAVD,IAUC"}
@@ -0,0 +1,11 @@
1
+ /*******************************************************************************
2
+ ** Define a "filter variable" type expression, as part of a criteria in a QQQ instance.
3
+ **
4
+ *******************************************************************************/
5
+ export declare class FilterVariableExpression {
6
+ fieldName?: string;
7
+ valueIndex?: number;
8
+ type: "FilterVariableExpression";
9
+ constructor(object?: any);
10
+ toString(): string;
11
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Define a "filter variable" type expression, as part of a criteria in a QQQ instance.
23
+ **
24
+ *******************************************************************************/
25
+ var FilterVariableExpression = /** @class */ (function () {
26
+ function FilterVariableExpression(object) {
27
+ this.fieldName = object === null || object === void 0 ? void 0 : object.fieldName;
28
+ this.valueIndex = object === null || object === void 0 ? void 0 : object.valueIndex;
29
+ this.type = "FilterVariableExpression";
30
+ }
31
+ FilterVariableExpression.prototype.toString = function () {
32
+ return "${VARIABLE}";
33
+ };
34
+ return FilterVariableExpression;
35
+ }());
36
+ export { FilterVariableExpression };
37
+ //# sourceMappingURL=FilterVariableExpression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterVariableExpression.js","sourceRoot":"","sources":["../../../src/model/query/FilterVariableExpression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH;;;iFAGiF;AACjF;IAMG,kCAAY,MAAY;QAErB,IAAI,CAAC,SAAS,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IAC1C,CAAC;IAED,2CAAQ,GAAR;QAEG,OAAO,aAAa,CAAC;IACxB,CAAC;IACJ,+BAAC;AAAD,CAAC,AAjBD,IAiBC"}
@@ -0,0 +1,9 @@
1
+ /*******************************************************************************
2
+ ** Define a "now" type expression, as part of a criteria in a QQQ instance.
3
+ **
4
+ *******************************************************************************/
5
+ export declare class NowExpression {
6
+ type: "Now";
7
+ constructor(_object?: any);
8
+ toString(): string;
9
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Define a "now" type expression, as part of a criteria in a QQQ instance.
23
+ **
24
+ *******************************************************************************/
25
+ var NowExpression = /** @class */ (function () {
26
+ function NowExpression(_object) {
27
+ this.type = "Now";
28
+ }
29
+ NowExpression.prototype.toString = function () {
30
+ return "now";
31
+ };
32
+ return NowExpression;
33
+ }());
34
+ export { NowExpression };
35
+ //# sourceMappingURL=NowExpression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NowExpression.js","sourceRoot":"","sources":["../../../src/model/query/NowExpression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH;;;iFAGiF;AACjF;IAIG,uBAAY,OAAa;QAEtB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,gCAAQ,GAAR;QAEG,OAAO,KAAK,CAAC;IAChB,CAAC;IACJ,oBAAC;AAAD,CAAC,AAbD,IAaC"}
@@ -0,0 +1,14 @@
1
+ export type NowWithOffsetOperator = "PLUS" | "MINUS";
2
+ export type NowWithOffsetUnit = "SECONDS" | "MINUTES" | "HOURS" | "DAYS" | "WEEKS" | "MONTHS" | "YEARS";
3
+ /*******************************************************************************
4
+ ** Define a "now with offset" type expression, as part of a criteria in a QQQ instance.
5
+ **
6
+ *******************************************************************************/
7
+ export declare class NowWithOffsetExpression {
8
+ operator?: NowWithOffsetOperator;
9
+ amount?: number;
10
+ timeUnit?: NowWithOffsetUnit;
11
+ type: "NowWithOffset";
12
+ constructor(object?: any);
13
+ toString(): string;
14
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Define a "now with offset" type expression, as part of a criteria in a QQQ instance.
23
+ **
24
+ *******************************************************************************/
25
+ var NowWithOffsetExpression = /** @class */ (function () {
26
+ function NowWithOffsetExpression(object) {
27
+ this.operator = object === null || object === void 0 ? void 0 : object.operator;
28
+ this.amount = object === null || object === void 0 ? void 0 : object.amount;
29
+ this.timeUnit = object === null || object === void 0 ? void 0 : object.timeUnit;
30
+ this.type = "NowWithOffset";
31
+ }
32
+ NowWithOffsetExpression.prototype.toString = function () {
33
+ var _a, _b;
34
+ var timeUnitString = (_b = (_a = this.timeUnit) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
35
+ if (this.amount == 1 && timeUnitString.endsWith("s")) {
36
+ timeUnitString = timeUnitString.substring(0, timeUnitString.length - 1);
37
+ }
38
+ return "".concat(this.amount, " ").concat(timeUnitString, " ").concat(this.operator == "PLUS" ? "from now" : "ago");
39
+ };
40
+ return NowWithOffsetExpression;
41
+ }());
42
+ export { NowWithOffsetExpression };
43
+ //# sourceMappingURL=NowWithOffsetExpression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NowWithOffsetExpression.js","sourceRoot":"","sources":["../../../src/model/query/NowWithOffsetExpression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH;;;iFAGiF;AACjF;IAOG,iCAAY,MAAY;QAErB,IAAI,CAAC,QAAQ,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC/B,CAAC;IAED,0CAAQ,GAAR;;QAEG,IAAI,cAAc,GAAG,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,WAAW,EAAE,mCAAI,EAAE,CAAC;QACxD,IAAG,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,EACnD;YACG,cAAc,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC1E;QACD,OAAO,UAAG,IAAI,CAAC,MAAM,cAAI,cAAc,cAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAE,CAAC;IAC7F,CAAC;IACJ,8BAAC;AAAD,CAAC,AAxBD,IAwBC"}
@@ -0,0 +1,25 @@
1
+ /*******************************************************************************
2
+ ** Possible criteria operators for Q-filters.
3
+ **
4
+ *******************************************************************************/
5
+ export declare enum QCriteriaOperator {
6
+ EQUALS = "EQUALS",
7
+ NOT_EQUALS = "NOT_EQUALS",
8
+ NOT_EQUALS_OR_IS_NULL = "NOT_EQUALS_OR_IS_NULL",
9
+ IN = "IN",
10
+ NOT_IN = "NOT_IN",
11
+ STARTS_WITH = "STARTS_WITH",
12
+ ENDS_WITH = "ENDS_WITH",
13
+ CONTAINS = "CONTAINS",
14
+ NOT_STARTS_WITH = "NOT_STARTS_WITH",
15
+ NOT_ENDS_WITH = "NOT_ENDS_WITH",
16
+ NOT_CONTAINS = "NOT_CONTAINS",
17
+ LESS_THAN = "LESS_THAN",
18
+ LESS_THAN_OR_EQUALS = "LESS_THAN_OR_EQUALS",
19
+ GREATER_THAN = "GREATER_THAN",
20
+ GREATER_THAN_OR_EQUALS = "GREATER_THAN_OR_EQUALS",
21
+ IS_BLANK = "IS_BLANK",
22
+ IS_NOT_BLANK = "IS_NOT_BLANK",
23
+ BETWEEN = "BETWEEN",
24
+ NOT_BETWEEN = "NOT_BETWEEN"
25
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Possible criteria operators for Q-filters.
23
+ **
24
+ *******************************************************************************/
25
+ export var QCriteriaOperator;
26
+ (function (QCriteriaOperator) {
27
+ QCriteriaOperator["EQUALS"] = "EQUALS";
28
+ QCriteriaOperator["NOT_EQUALS"] = "NOT_EQUALS";
29
+ QCriteriaOperator["NOT_EQUALS_OR_IS_NULL"] = "NOT_EQUALS_OR_IS_NULL";
30
+ QCriteriaOperator["IN"] = "IN";
31
+ QCriteriaOperator["NOT_IN"] = "NOT_IN";
32
+ QCriteriaOperator["STARTS_WITH"] = "STARTS_WITH";
33
+ QCriteriaOperator["ENDS_WITH"] = "ENDS_WITH";
34
+ QCriteriaOperator["CONTAINS"] = "CONTAINS";
35
+ QCriteriaOperator["NOT_STARTS_WITH"] = "NOT_STARTS_WITH";
36
+ QCriteriaOperator["NOT_ENDS_WITH"] = "NOT_ENDS_WITH";
37
+ QCriteriaOperator["NOT_CONTAINS"] = "NOT_CONTAINS";
38
+ QCriteriaOperator["LESS_THAN"] = "LESS_THAN";
39
+ QCriteriaOperator["LESS_THAN_OR_EQUALS"] = "LESS_THAN_OR_EQUALS";
40
+ QCriteriaOperator["GREATER_THAN"] = "GREATER_THAN";
41
+ QCriteriaOperator["GREATER_THAN_OR_EQUALS"] = "GREATER_THAN_OR_EQUALS";
42
+ QCriteriaOperator["IS_BLANK"] = "IS_BLANK";
43
+ QCriteriaOperator["IS_NOT_BLANK"] = "IS_NOT_BLANK";
44
+ QCriteriaOperator["BETWEEN"] = "BETWEEN";
45
+ QCriteriaOperator["NOT_BETWEEN"] = "NOT_BETWEEN";
46
+ })(QCriteriaOperator || (QCriteriaOperator = {}));
47
+ //# sourceMappingURL=QCriteriaOperator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QCriteriaOperator.js","sourceRoot":"","sources":["../../../src/model/query/QCriteriaOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;iFAGiF;AACjF,MAAM,CAAN,IAAY,iBAqBX;AArBD,WAAY,iBAAiB;IAE1B,sCAAiB,CAAA;IACjB,8CAAyB,CAAA;IACzB,oEAA+C,CAAA;IAC/C,8BAAS,CAAA;IACT,sCAAiB,CAAA;IACjB,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;IACrB,wDAAmC,CAAA;IACnC,oDAA+B,CAAA;IAC/B,kDAA6B,CAAA;IAC7B,4CAAuB,CAAA;IACvB,gEAA2C,CAAA;IAC3C,kDAA6B,CAAA;IAC7B,sEAAiD,CAAA;IACjD,0CAAqB,CAAA;IACrB,kDAA6B,CAAA;IAC7B,wCAAmB,CAAA;IACnB,gDAA2B,CAAA;AAC9B,CAAC,EArBW,iBAAiB,KAAjB,iBAAiB,QAqB5B"}
@@ -0,0 +1,16 @@
1
+ import { QCriteriaOperator } from "./QCriteriaOperator";
2
+ /*******************************************************************************
3
+ ** Define a filter criteria in a QQQ instance.
4
+ **
5
+ *******************************************************************************/
6
+ export declare class QFilterCriteria {
7
+ fieldName: string;
8
+ operator: QCriteriaOperator;
9
+ values: any[];
10
+ otherFieldName?: string;
11
+ constructor(fieldName: string, operator: QCriteriaOperator, values: any[]);
12
+ /***************************************************************************
13
+ *
14
+ ***************************************************************************/
15
+ clone(): QFilterCriteria;
16
+ }
@@ -0,0 +1,52 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
22
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
23
+ if (ar || !(i in from)) {
24
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
25
+ ar[i] = from[i];
26
+ }
27
+ }
28
+ return to.concat(ar || Array.prototype.slice.call(from));
29
+ };
30
+ /*******************************************************************************
31
+ ** Define a filter criteria in a QQQ instance.
32
+ **
33
+ *******************************************************************************/
34
+ var QFilterCriteria = /** @class */ (function () {
35
+ function QFilterCriteria(fieldName, operator, values) {
36
+ this.fieldName = fieldName;
37
+ this.operator = operator;
38
+ this.values = values;
39
+ }
40
+ /***************************************************************************
41
+ *
42
+ ***************************************************************************/
43
+ QFilterCriteria.prototype.clone = function () {
44
+ var cloneValues = (this.values === null ? null : this.values === undefined ? undefined : __spreadArray([], this.values, true));
45
+ var clone = new QFilterCriteria(this.fieldName, this.operator, cloneValues);
46
+ clone.otherFieldName = this.otherFieldName;
47
+ return (clone);
48
+ };
49
+ return QFilterCriteria;
50
+ }());
51
+ export { QFilterCriteria };
52
+ //# sourceMappingURL=QFilterCriteria.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QFilterCriteria.js","sourceRoot":"","sources":["../../../src/model/query/QFilterCriteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAIH;;;iFAGiF;AACjF;IAOG,yBAAY,SAAiB,EAAE,QAA2B,EAAE,MAAa;QAEtE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;iFAE6E;IACtE,+BAAK,GAAZ;QAEG,IAAM,WAAW,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,mBAAK,IAAI,CAAC,MAAM,OAAC,CAAU,CAAC;QAEtH,IAAM,KAAK,GAAG,IAAI,eAAe,CAC9B,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,QAAQ,EACb,WAAW,CACb,CAAC;QACF,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC3C,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IACJ,sBAAC;AAAD,CAAC,AA7BD,IA6BC"}
@@ -0,0 +1,13 @@
1
+ /*******************************************************************************
2
+ ** Define a filter order by in a QQQ instance.
3
+ **
4
+ *******************************************************************************/
5
+ export declare class QFilterOrderBy {
6
+ fieldName: string;
7
+ isAscending?: boolean;
8
+ constructor(fieldName: string, isAscending?: boolean);
9
+ /***************************************************************************
10
+ *
11
+ ***************************************************************************/
12
+ clone(): QFilterOrderBy;
13
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ /*******************************************************************************
22
+ ** Define a filter order by in a QQQ instance.
23
+ **
24
+ *******************************************************************************/
25
+ var QFilterOrderBy = /** @class */ (function () {
26
+ function QFilterOrderBy(fieldName, isAscending) {
27
+ this.fieldName = fieldName;
28
+ this.isAscending = isAscending;
29
+ }
30
+ /***************************************************************************
31
+ *
32
+ ***************************************************************************/
33
+ QFilterOrderBy.prototype.clone = function () {
34
+ var clone = new QFilterOrderBy(this.fieldName, this.isAscending);
35
+ return (clone);
36
+ };
37
+ return QFilterOrderBy;
38
+ }());
39
+ export { QFilterOrderBy };
40
+ //# sourceMappingURL=QFilterOrderBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QFilterOrderBy.js","sourceRoot":"","sources":["../../../src/model/query/QFilterOrderBy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;iFAGiF;AACjF;IAKG,wBAAY,SAAiB,EAAE,WAAqB;QAEjD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IAClC,CAAC;IAED;;iFAE6E;IACtE,8BAAK,GAAZ;QAEG,IAAM,KAAK,GAAG,IAAI,cAAc,CAC7B,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,WAAW,CAClB,CAAC;QACF,OAAO,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IACJ,qBAAC;AAAD,CAAC,AAtBD,IAsBC"}
@@ -0,0 +1,30 @@
1
+ import { QFilterCriteria } from "./QFilterCriteria";
2
+ import { QFilterOrderBy } from "./QFilterOrderBy";
3
+ /*******************************************************************************
4
+ ** Define a filter in a QQQ instance.
5
+ **
6
+ *******************************************************************************/
7
+ export declare class QQueryFilter {
8
+ criteria?: QFilterCriteria[];
9
+ orderBys?: QFilterOrderBy[];
10
+ subFilters?: QQueryFilter[];
11
+ booleanOperator: "AND" | "OR";
12
+ skip?: number;
13
+ limit?: number;
14
+ /***************************************************************************
15
+ *
16
+ ***************************************************************************/
17
+ constructor(criteria?: QFilterCriteria[], orderBys?: QFilterOrderBy[], subFilters?: QQueryFilter[], booleanOperator?: "AND" | "OR", skip?: number, limit?: number);
18
+ /***************************************************************************
19
+ * factory method to build a QQueryFilter from an object containing all of
20
+ * its component parts.
21
+ ***************************************************************************/
22
+ static makeFromObject(object: any): QQueryFilter;
23
+ addOrderBy(orderBy: QFilterOrderBy): void;
24
+ addCriteria(criteria: QFilterCriteria): void;
25
+ addSubFilter(subFilter: QQueryFilter): void;
26
+ /***************************************************************************
27
+ *
28
+ ***************************************************************************/
29
+ clone(): QQueryFilter;
30
+ }
@@ -0,0 +1,114 @@
1
+ /*
2
+ * QQQ - Low-code Application Framework for Engineers.
3
+ * Copyright (C) 2021-2022. Kingsrook, LLC
4
+ * 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
5
+ * contact@kingsrook.com
6
+ * https://github.com/Kingsrook/
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ import { QFilterCriteria } from "./QFilterCriteria";
22
+ import { QFilterOrderBy } from "./QFilterOrderBy";
23
+ /*******************************************************************************
24
+ ** Define a filter in a QQQ instance.
25
+ **
26
+ *******************************************************************************/
27
+ var QQueryFilter = /** @class */ (function () {
28
+ /***************************************************************************
29
+ *
30
+ ***************************************************************************/
31
+ function QQueryFilter(criteria, orderBys, subFilters, booleanOperator, skip, limit) {
32
+ if (booleanOperator === void 0) { booleanOperator = "AND"; }
33
+ this.criteria = criteria;
34
+ this.orderBys = orderBys;
35
+ this.subFilters = subFilters;
36
+ this.booleanOperator = booleanOperator;
37
+ this.skip = skip;
38
+ this.limit = limit;
39
+ }
40
+ /***************************************************************************
41
+ * factory method to build a QQueryFilter from an object containing all of
42
+ * its component parts.
43
+ ***************************************************************************/
44
+ QQueryFilter.makeFromObject = function (object) {
45
+ var _a, _b, _c, _d;
46
+ var criteria = [];
47
+ var orderBys = [];
48
+ var subFilters = [];
49
+ var booleanOperator = (_a = object.booleanOperator) !== null && _a !== void 0 ? _a : "AND";
50
+ var skip = object.skip;
51
+ var limit = object.limit;
52
+ for (var i = 0; i < ((_b = object.criteria) === null || _b === void 0 ? void 0 : _b.length); i++) {
53
+ var subObject = object.criteria[i];
54
+ criteria.push(new QFilterCriteria(subObject.fieldName, subObject.operator, subObject.values));
55
+ }
56
+ for (var i = 0; i < ((_c = object.orderBys) === null || _c === void 0 ? void 0 : _c.length); i++) {
57
+ var subObject = object.orderBys[i];
58
+ orderBys.push(new QFilterOrderBy(subObject.fieldName, subObject.isAscending));
59
+ }
60
+ for (var i = 0; i < ((_d = object.subFilters) === null || _d === void 0 ? void 0 : _d.length); i++) {
61
+ subFilters.push(QQueryFilter.makeFromObject(object.subFilters[i]));
62
+ }
63
+ return (new QQueryFilter(criteria, orderBys, subFilters, booleanOperator, skip, limit));
64
+ };
65
+ QQueryFilter.prototype.addOrderBy = function (orderBy) {
66
+ if (!this.orderBys) {
67
+ this.orderBys = [];
68
+ }
69
+ this.orderBys.push(orderBy);
70
+ };
71
+ QQueryFilter.prototype.addCriteria = function (criteria) {
72
+ if (!this.criteria) {
73
+ this.criteria = [];
74
+ }
75
+ this.criteria.push(criteria);
76
+ };
77
+ QQueryFilter.prototype.addSubFilter = function (subFilter) {
78
+ if (!this.subFilters) {
79
+ this.subFilters = [];
80
+ }
81
+ this.subFilters.push(subFilter);
82
+ };
83
+ /***************************************************************************
84
+ *
85
+ ***************************************************************************/
86
+ QQueryFilter.prototype.clone = function () {
87
+ var criteriaClone = this.criteria ? [] : undefined;
88
+ if (this.criteria && criteriaClone) {
89
+ for (var _i = 0, _a = this.criteria; _i < _a.length; _i++) {
90
+ var criteria = _a[_i];
91
+ criteriaClone.push(criteria.clone());
92
+ }
93
+ }
94
+ var orderBysClone = this.orderBys ? [] : undefined;
95
+ if (this.orderBys && orderBysClone) {
96
+ for (var _b = 0, _c = this.orderBys; _b < _c.length; _b++) {
97
+ var orderBy = _c[_b];
98
+ orderBysClone.push(orderBy.clone());
99
+ }
100
+ }
101
+ var subFiltersClone = this.subFilters ? [] : undefined;
102
+ if (this.subFilters && subFiltersClone) {
103
+ for (var _d = 0, _e = this.subFilters; _d < _e.length; _d++) {
104
+ var subFilter = _e[_d];
105
+ subFiltersClone.push(subFilter.clone());
106
+ }
107
+ }
108
+ var clone = new QQueryFilter(criteriaClone, orderBysClone, subFiltersClone, this.booleanOperator, this.skip, this.limit);
109
+ return (clone);
110
+ };
111
+ return QQueryFilter;
112
+ }());
113
+ export { QQueryFilter };
114
+ //# sourceMappingURL=QQueryFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QQueryFilter.js","sourceRoot":"","sources":["../../../src/model/query/QQueryFilter.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,13 @@
1
+ /*******************************************************************************
2
+ ** Define a QueryJoin, as part of a query input
3
+ **
4
+ *******************************************************************************/
5
+ export declare class QueryJoin {
6
+ joinTable: string;
7
+ select: boolean;
8
+ type: "INNER" | "LEFT" | "RIGHT" | "FULL";
9
+ baseTableOrAlias: string | null;
10
+ alias: string | null;
11
+ joinName: string | null;
12
+ constructor(joinTable: string, select?: boolean, type?: "INNER" | "LEFT" | "RIGHT" | "FULL", baseTableOrAlias?: string | null, alias?: string | null, joinName?: string | null);
13
+ }