@qrunio/qqq-frontend-core 1.0.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/LICENSE +619 -0
- package/README.md +35 -0
- package/lib/controllers/QController.d.ts +217 -0
- package/lib/controllers/QController.js +1026 -0
- package/lib/controllers/QController.js.map +1 -0
- package/lib/controllers/QControllerV1.d.ts +213 -0
- package/lib/controllers/QControllerV1.js +992 -0
- package/lib/controllers/QControllerV1.js.map +1 -0
- package/lib/exceptions/QException.d.ts +12 -0
- package/lib/exceptions/QException.js +54 -0
- package/lib/exceptions/QException.js.map +1 -0
- package/lib/model/QPossibleValue.d.ts +9 -0
- package/lib/model/QPossibleValue.js +33 -0
- package/lib/model/QPossibleValue.js.map +1 -0
- package/lib/model/QRecord.d.ts +14 -0
- package/lib/model/QRecord.js +64 -0
- package/lib/model/QRecord.js.map +1 -0
- package/lib/model/metaData/AdornmentType.d.ts +16 -0
- package/lib/model/metaData/AdornmentType.js +41 -0
- package/lib/model/metaData/AdornmentType.js.map +1 -0
- package/lib/model/metaData/Banner.d.ts +15 -0
- package/lib/model/metaData/Banner.js +37 -0
- package/lib/model/metaData/Banner.js.map +1 -0
- package/lib/model/metaData/Capability.d.ts +12 -0
- package/lib/model/metaData/Capability.js +37 -0
- package/lib/model/metaData/Capability.js.map +1 -0
- package/lib/model/metaData/FieldAdornment.d.ts +11 -0
- package/lib/model/metaData/FieldAdornment.js +44 -0
- package/lib/model/metaData/FieldAdornment.js.map +1 -0
- package/lib/model/metaData/ProcessMetaDataAdjustment.d.ts +11 -0
- package/lib/model/metaData/ProcessMetaDataAdjustment.js +45 -0
- package/lib/model/metaData/ProcessMetaDataAdjustment.js.map +1 -0
- package/lib/model/metaData/QAppMetaData.d.ts +17 -0
- package/lib/model/metaData/QAppMetaData.js +57 -0
- package/lib/model/metaData/QAppMetaData.js.map +1 -0
- package/lib/model/metaData/QAppNodeType.d.ts +10 -0
- package/lib/model/metaData/QAppNodeType.js +32 -0
- package/lib/model/metaData/QAppNodeType.js.map +1 -0
- package/lib/model/metaData/QAppSection.d.ts +14 -0
- package/lib/model/metaData/QAppSection.js +46 -0
- package/lib/model/metaData/QAppSection.js.map +1 -0
- package/lib/model/metaData/QAppTreeNode.d.ts +16 -0
- package/lib/model/metaData/QAppTreeNode.js +46 -0
- package/lib/model/metaData/QAppTreeNode.js.map +1 -0
- package/lib/model/metaData/QAuthenticationMetaData.d.ts +10 -0
- package/lib/model/metaData/QAuthenticationMetaData.js +44 -0
- package/lib/model/metaData/QAuthenticationMetaData.js.map +1 -0
- package/lib/model/metaData/QBrandingMetaData.d.ts +17 -0
- package/lib/model/metaData/QBrandingMetaData.js +46 -0
- package/lib/model/metaData/QBrandingMetaData.js.map +1 -0
- package/lib/model/metaData/QComponentType.d.ts +20 -0
- package/lib/model/metaData/QComponentType.js +45 -0
- package/lib/model/metaData/QComponentType.js.map +1 -0
- package/lib/model/metaData/QExposedJoin.d.ts +14 -0
- package/lib/model/metaData/QExposedJoin.js +41 -0
- package/lib/model/metaData/QExposedJoin.js.map +1 -0
- package/lib/model/metaData/QFieldMetaData.d.ts +42 -0
- package/lib/model/metaData/QFieldMetaData.js +98 -0
- package/lib/model/metaData/QFieldMetaData.js.map +1 -0
- package/lib/model/metaData/QFieldType.d.ts +18 -0
- package/lib/model/metaData/QFieldType.js +43 -0
- package/lib/model/metaData/QFieldType.js.map +1 -0
- package/lib/model/metaData/QFrontendComponent.d.ts +10 -0
- package/lib/model/metaData/QFrontendComponent.js +35 -0
- package/lib/model/metaData/QFrontendComponent.js.map +1 -0
- package/lib/model/metaData/QFrontendStepMetaData.d.ts +18 -0
- package/lib/model/metaData/QFrontendStepMetaData.js +62 -0
- package/lib/model/metaData/QFrontendStepMetaData.js.map +1 -0
- package/lib/model/metaData/QHelpContent.d.ts +23 -0
- package/lib/model/metaData/QHelpContent.js +82 -0
- package/lib/model/metaData/QHelpContent.js.map +1 -0
- package/lib/model/metaData/QIcon.d.ts +10 -0
- package/lib/model/metaData/QIcon.js +34 -0
- package/lib/model/metaData/QIcon.js.map +1 -0
- package/lib/model/metaData/QInstance.d.ts +41 -0
- package/lib/model/metaData/QInstance.js +145 -0
- package/lib/model/metaData/QInstance.js.map +1 -0
- package/lib/model/metaData/QJoinMetaData.d.ts +11 -0
- package/lib/model/metaData/QJoinMetaData.js +35 -0
- package/lib/model/metaData/QJoinMetaData.js.map +1 -0
- package/lib/model/metaData/QProcessMetaData.d.ts +18 -0
- package/lib/model/metaData/QProcessMetaData.js +52 -0
- package/lib/model/metaData/QProcessMetaData.js.map +1 -0
- package/lib/model/metaData/QReportMetaData.d.ts +13 -0
- package/lib/model/metaData/QReportMetaData.js +38 -0
- package/lib/model/metaData/QReportMetaData.js.map +1 -0
- package/lib/model/metaData/QTableMetaData.d.ts +29 -0
- package/lib/model/metaData/QTableMetaData.js +85 -0
- package/lib/model/metaData/QTableMetaData.js.map +1 -0
- package/lib/model/metaData/QTableSection.d.ts +20 -0
- package/lib/model/metaData/QTableSection.js +46 -0
- package/lib/model/metaData/QTableSection.js.map +1 -0
- package/lib/model/metaData/QTableVariant.d.ts +10 -0
- package/lib/model/metaData/QTableVariant.js +34 -0
- package/lib/model/metaData/QTableVariant.js.map +1 -0
- package/lib/model/metaData/QWidgetMetaData.d.ts +32 -0
- package/lib/model/metaData/QWidgetMetaData.js +63 -0
- package/lib/model/metaData/QWidgetMetaData.js.map +1 -0
- package/lib/model/processes/QJobComplete.d.ts +15 -0
- package/lib/model/processes/QJobComplete.js +39 -0
- package/lib/model/processes/QJobComplete.js.map +1 -0
- package/lib/model/processes/QJobError.d.ts +10 -0
- package/lib/model/processes/QJobError.js +34 -0
- package/lib/model/processes/QJobError.js.map +1 -0
- package/lib/model/processes/QJobRunning.d.ts +11 -0
- package/lib/model/processes/QJobRunning.js +35 -0
- package/lib/model/processes/QJobRunning.js.map +1 -0
- package/lib/model/processes/QJobStarted.d.ts +9 -0
- package/lib/model/processes/QJobStarted.js +33 -0
- package/lib/model/processes/QJobStarted.js.map +1 -0
- package/lib/model/query/FilterVariableExpression.d.ts +11 -0
- package/lib/model/query/FilterVariableExpression.js +37 -0
- package/lib/model/query/FilterVariableExpression.js.map +1 -0
- package/lib/model/query/NowExpression.d.ts +9 -0
- package/lib/model/query/NowExpression.js +35 -0
- package/lib/model/query/NowExpression.js.map +1 -0
- package/lib/model/query/NowWithOffsetExpression.d.ts +14 -0
- package/lib/model/query/NowWithOffsetExpression.js +43 -0
- package/lib/model/query/NowWithOffsetExpression.js.map +1 -0
- package/lib/model/query/QCriteriaOperator.d.ts +25 -0
- package/lib/model/query/QCriteriaOperator.js +47 -0
- package/lib/model/query/QCriteriaOperator.js.map +1 -0
- package/lib/model/query/QFilterCriteria.d.ts +12 -0
- package/lib/model/query/QFilterCriteria.js +34 -0
- package/lib/model/query/QFilterCriteria.js.map +1 -0
- package/lib/model/query/QFilterOrderBy.d.ts +9 -0
- package/lib/model/query/QFilterOrderBy.js +33 -0
- package/lib/model/query/QFilterOrderBy.js.map +1 -0
- package/lib/model/query/QQueryFilter.d.ts +26 -0
- package/lib/model/query/QQueryFilter.js +86 -0
- package/lib/model/query/QQueryFilter.js.map +1 -0
- package/lib/model/query/QueryJoin.d.ts +13 -0
- package/lib/model/query/QueryJoin.js +42 -0
- package/lib/model/query/QueryJoin.js.map +1 -0
- package/lib/model/query/ThisOrLastPeriodExpression.d.ts +13 -0
- package/lib/model/query/ThisOrLastPeriodExpression.js +43 -0
- package/lib/model/query/ThisOrLastPeriodExpression.js.map +1 -0
- package/lib/qqq-frontend-core.d.ts +1 -0
- package/lib/qqq-frontend-core.js +31 -0
- package/lib/qqq-frontend-core.js.map +1 -0
- package/package.json +51 -0
|
@@ -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,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 criteria in a QQQ instance.
|
|
23
|
+
**
|
|
24
|
+
*******************************************************************************/
|
|
25
|
+
var QFilterCriteria = /** @class */ (function () {
|
|
26
|
+
function QFilterCriteria(fieldName, operator, values) {
|
|
27
|
+
this.fieldName = fieldName;
|
|
28
|
+
this.operator = operator;
|
|
29
|
+
this.values = values;
|
|
30
|
+
}
|
|
31
|
+
return QFilterCriteria;
|
|
32
|
+
}());
|
|
33
|
+
export { QFilterCriteria };
|
|
34
|
+
//# 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;IACJ,sBAAC;AAAD,CAAC,AAbD,IAaC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -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
|
+
** 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
|
+
return QFilterOrderBy;
|
|
31
|
+
}());
|
|
32
|
+
export { QFilterOrderBy };
|
|
33
|
+
//# 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;IACJ,qBAAC;AAAD,CAAC,AAVD,IAUC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
return QQueryFilter;
|
|
84
|
+
}());
|
|
85
|
+
export { QQueryFilter };
|
|
86
|
+
//# 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
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 QueryJoin, as part of a query input
|
|
23
|
+
**
|
|
24
|
+
*******************************************************************************/
|
|
25
|
+
var QueryJoin = /** @class */ (function () {
|
|
26
|
+
function QueryJoin(joinTable, select, type, baseTableOrAlias, alias, joinName) {
|
|
27
|
+
if (select === void 0) { select = false; }
|
|
28
|
+
if (type === void 0) { type = "INNER"; }
|
|
29
|
+
if (baseTableOrAlias === void 0) { baseTableOrAlias = null; }
|
|
30
|
+
if (alias === void 0) { alias = null; }
|
|
31
|
+
if (joinName === void 0) { joinName = null; }
|
|
32
|
+
this.joinTable = joinTable;
|
|
33
|
+
this.select = select;
|
|
34
|
+
this.type = type;
|
|
35
|
+
this.baseTableOrAlias = baseTableOrAlias;
|
|
36
|
+
this.alias = alias;
|
|
37
|
+
this.joinName = joinName;
|
|
38
|
+
}
|
|
39
|
+
return QueryJoin;
|
|
40
|
+
}());
|
|
41
|
+
export { QueryJoin };
|
|
42
|
+
//# sourceMappingURL=QueryJoin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryJoin.js","sourceRoot":"","sources":["../../../src/model/query/QueryJoin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;iFAGiF;AACjF;IASG,mBACG,SAAiB,EACjB,MAAuB,EACvB,IAAmD,EACnD,gBAAsC,EACtC,KAA2B,EAC3B,QAA8B;QAJ9B,uBAAA,EAAA,cAAuB;QACvB,qBAAA,EAAA,cAAmD;QACnD,iCAAA,EAAA,uBAAsC;QACtC,sBAAA,EAAA,YAA2B;QAC3B,yBAAA,EAAA,eAA8B;QAG9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC5B,CAAC;IACJ,gBAAC;AAAD,CAAC,AAzBD,IAyBC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ThisOrLastPeriodOperator = "THIS" | "LAST";
|
|
2
|
+
export type ThisOrLastPeriodUnit = "HOURS" | "DAYS" | "WEEKS" | "MONTHS" | "YEARS";
|
|
3
|
+
/*******************************************************************************
|
|
4
|
+
** Define a "this or last period" type expression, as part of a criteria in a QQQ instance.
|
|
5
|
+
**
|
|
6
|
+
*******************************************************************************/
|
|
7
|
+
export declare class ThisOrLastPeriodExpression {
|
|
8
|
+
operator?: ThisOrLastPeriodOperator;
|
|
9
|
+
timeUnit?: ThisOrLastPeriodUnit;
|
|
10
|
+
type: "ThisOrLastPeriod";
|
|
11
|
+
constructor(object?: any);
|
|
12
|
+
toString(): string;
|
|
13
|
+
}
|
|
@@ -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 "this or last period" type expression, as part of a criteria in a QQQ instance.
|
|
23
|
+
**
|
|
24
|
+
*******************************************************************************/
|
|
25
|
+
var ThisOrLastPeriodExpression = /** @class */ (function () {
|
|
26
|
+
function ThisOrLastPeriodExpression(object) {
|
|
27
|
+
this.operator = object === null || object === void 0 ? void 0 : object.operator;
|
|
28
|
+
this.timeUnit = object === null || object === void 0 ? void 0 : object.timeUnit;
|
|
29
|
+
this.type = "ThisOrLastPeriod";
|
|
30
|
+
}
|
|
31
|
+
ThisOrLastPeriodExpression.prototype.toString = function () {
|
|
32
|
+
var _a, _b, _c, _d;
|
|
33
|
+
if (this.timeUnit == "DAYS") {
|
|
34
|
+
return this.operator == "THIS" ? "today" : "yesterday";
|
|
35
|
+
}
|
|
36
|
+
var operatorString = (_b = (_a = this.operator) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
|
|
37
|
+
var timeUnitString = ((_d = (_c = this.timeUnit) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== null && _d !== void 0 ? _d : "").replace(/s$/, "");
|
|
38
|
+
return "".concat(operatorString, " ").concat(timeUnitString);
|
|
39
|
+
};
|
|
40
|
+
return ThisOrLastPeriodExpression;
|
|
41
|
+
}());
|
|
42
|
+
export { ThisOrLastPeriodExpression };
|
|
43
|
+
//# sourceMappingURL=ThisOrLastPeriodExpression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThisOrLastPeriodExpression.js","sourceRoot":"","sources":["../../../src/model/query/ThisOrLastPeriodExpression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH;;;iFAGiF;AACjF;IAMG,oCAAY,MAAY;QAErB,IAAI,CAAC,QAAQ,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IAClC,CAAC;IAED,6CAAQ,GAAR;;QAEG,IAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,EAC1B;YACG,OAAO,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC;SACzD;QAED,IAAI,cAAc,GAAG,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,WAAW,EAAE,mCAAI,EAAE,CAAC;QACxD,IAAI,cAAc,GAAG,CAAC,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,WAAW,EAAE,mCAAI,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5E,OAAO,UAAG,cAAc,cAAI,cAAc,CAAE,CAAC;IAChD,CAAC;IACJ,iCAAC;AAAD,CAAC,AAxBD,IAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|