@colijnit/mainapi 1.0.30 → 1.0.32
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/build/enum/activities-object-name.enum.d.ts +3 -0
- package/build/enum/activities-object-name.enum.js +7 -0
- package/build/enum/activities-operation-name.enum.d.ts +5 -0
- package/build/enum/activities-operation-name.enum.js +9 -0
- package/build/enum/activity-type.d.ts +9 -0
- package/build/enum/activity-type.js +13 -0
- package/build/enum/document-method.enum.d.ts +6 -0
- package/build/enum/document-method.enum.js +10 -0
- package/build/enum/internal-param.enum.d.ts +2 -1
- package/build/enum/internal-param.enum.js +1 -0
- package/build/enum/ione-module-name.enum.d.ts +39 -0
- package/build/enum/ione-module-name.enum.js +55 -0
- package/build/enum/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/module-navigation-link.d.ts +5 -0
- package/build/enum/module-navigation-link.js +2 -0
- package/build/enum/relation-kind.d.ts +10 -0
- package/build/enum/relation-kind.js +14 -0
- package/build/enum/relman-complete-name.d.ts +5 -0
- package/build/enum/relman-complete-name.js +2 -0
- package/build/enum/transaction-kind.d.ts +13 -0
- package/build/enum/transaction-kind.js +17 -0
- package/build/enum/workflow-category.enum.d.ts +18 -0
- package/build/enum/workflow-category.enum.js +22 -0
- package/build/enum/workflow-trigger-type.enum.d.ts +8 -0
- package/build/enum/workflow-trigger-type.enum.js +12 -0
- package/build/main-api-connection.d.ts +13 -0
- package/build/main-api.d.ts +13 -0
- package/build/main-api.js +32 -0
- package/build/main-auth.d.ts +13 -0
- package/build/main-auth.js +159 -0
- package/build/main-public.d.ts +13 -0
- package/build/main-public.js +42 -0
- package/build/model/activity-workflow.d.ts +24 -0
- package/build/model/activity-workflow.js +66 -0
- package/build/model/activity.bo.d.ts +58 -0
- package/build/model/activity.bo.js +484 -0
- package/build/model/co-document.d.ts +2 -0
- package/build/model/co-document.js +4 -0
- package/build/model/form-question-response.bo.d.ts +10 -0
- package/build/model/form-question-response.bo.js +31 -0
- package/build/model/form.bo.d.ts +16 -0
- package/build/model/form.bo.js +13 -0
- package/build/model/relation-small-object.bo.d.ts +28 -0
- package/build/model/relation-small-object.bo.js +63 -0
- package/build/model/remark.bo.d.ts +17 -0
- package/build/model/remark.bo.js +52 -0
- package/build/model/task.bo.d.ts +83 -0
- package/build/model/task.bo.js +257 -0
- package/build/model/transition.bo.d.ts +5 -0
- package/build/model/transition.bo.js +21 -0
- package/build/model/work.bo.d.ts +19 -0
- package/build/model/work.bo.js +53 -0
- package/build/model/workflow-generic-transition.bo.d.ts +22 -0
- package/build/model/workflow-generic-transition.bo.js +28 -0
- package/build/model/workflow-process.d.ts +13 -0
- package/build/model/workflow-process.js +7 -0
- package/build/model/workflow-trigger.bo.d.ts +44 -0
- package/build/model/workflow-trigger.bo.js +52 -0
- package/build/model/workflow.bo.d.ts +36 -0
- package/build/model/workflow.bo.js +151 -0
- package/build/utils/time-utils.d.ts +6 -0
- package/build/utils/time-utils.js +44 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivitiesObjectName = void 0;
|
|
4
|
+
var ActivitiesObjectName;
|
|
5
|
+
(function (ActivitiesObjectName) {
|
|
6
|
+
ActivitiesObjectName["Activity"] = "Activity";
|
|
7
|
+
})(ActivitiesObjectName = exports.ActivitiesObjectName || (exports.ActivitiesObjectName = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivitiesOperationName = void 0;
|
|
4
|
+
var ActivitiesOperationName;
|
|
5
|
+
(function (ActivitiesOperationName) {
|
|
6
|
+
ActivitiesOperationName["GetHistoricActivities"] = "getHistoricActivities";
|
|
7
|
+
ActivitiesOperationName["GetComponentActivities"] = "getComponentActivities";
|
|
8
|
+
ActivitiesOperationName["GetComponentActivitiesWithoutRelationFiltering"] = "getComponentActivitiesWithoutRelationFiltering";
|
|
9
|
+
})(ActivitiesOperationName = exports.ActivitiesOperationName || (exports.ActivitiesOperationName = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityType = void 0;
|
|
4
|
+
var ActivityType;
|
|
5
|
+
(function (ActivityType) {
|
|
6
|
+
ActivityType["StateChange"] = "STATE_CHANGE";
|
|
7
|
+
ActivityType["Task"] = "TASK";
|
|
8
|
+
ActivityType["Remark"] = "REMARK";
|
|
9
|
+
ActivityType["Work"] = "WORK";
|
|
10
|
+
ActivityType["WorkflowStatus"] = "WORKFLOW_STATUS";
|
|
11
|
+
ActivityType["WorkflowTask"] = "WORKFLOW_TASK";
|
|
12
|
+
ActivityType["Form"] = "FORM";
|
|
13
|
+
})(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentMethod = void 0;
|
|
4
|
+
var DocumentMethod;
|
|
5
|
+
(function (DocumentMethod) {
|
|
6
|
+
DocumentMethod["MergeDocument"] = "mergeDocument";
|
|
7
|
+
DocumentMethod["SelectDocsByTableKey"] = "selectDocsByTableKey";
|
|
8
|
+
DocumentMethod["DeleteTransactionLine"] = "deleteTransactionLine";
|
|
9
|
+
DocumentMethod["GetDocumentContent"] = "getDocumentContent";
|
|
10
|
+
})(DocumentMethod = exports.DocumentMethod || (exports.DocumentMethod = {}));
|
|
@@ -9,4 +9,5 @@ var InternalParam;
|
|
|
9
9
|
InternalParam["GeneralAssetUrl"] = "3D_GENERAL_ASSET_URL";
|
|
10
10
|
InternalParam["AssetUrl"] = "3D_ASSET_URL";
|
|
11
11
|
InternalParam["MLocat"] = "VOOR_LOCATIE";
|
|
12
|
+
InternalParam["StockBeforeDelivery"] = "VOOR_AFLEVER";
|
|
12
13
|
})(InternalParam = exports.InternalParam || (exports.InternalParam = {}));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare enum IOneModuleName {
|
|
2
|
+
AbsenceFile = "absencefile",
|
|
3
|
+
AbsenceStatistics = "absencestatistics",
|
|
4
|
+
Activity = "activity",
|
|
5
|
+
ArticleManagement = "articlemanagement",
|
|
6
|
+
Charts = "charts",
|
|
7
|
+
Checkout = "checkout",
|
|
8
|
+
ComponentTest = "componenttest",
|
|
9
|
+
Configuration = "configuration",
|
|
10
|
+
ControlWms = "controlwms",
|
|
11
|
+
ExportQuery = "exports",
|
|
12
|
+
FastTrack = "fasttrack",
|
|
13
|
+
Formbuilder = "formbuilder",
|
|
14
|
+
Financial = "financial",
|
|
15
|
+
FinancialDashboard = "dashboard",
|
|
16
|
+
Gridtest = "gridtest",
|
|
17
|
+
Home = "home",
|
|
18
|
+
ImportExport = "importexport",
|
|
19
|
+
MasterData = "masterdata",
|
|
20
|
+
OrderAdvice = "orderadvice",
|
|
21
|
+
OutstandingFinances = "outstandingfinances",
|
|
22
|
+
BookingJournals = "bookingjournals",
|
|
23
|
+
PointOfSale = "pointofsale",
|
|
24
|
+
PurchaseConfirmation = "purchaseconfirmation",
|
|
25
|
+
RelationManagement = "relationmanagement",
|
|
26
|
+
RenderFarm = "renderfarm",
|
|
27
|
+
RetailTransaction = "orders",
|
|
28
|
+
Selector = "selector",
|
|
29
|
+
Statistics = "statistics",
|
|
30
|
+
Styleguide = "styleguide",
|
|
31
|
+
SystemManagement = "systemManagement",
|
|
32
|
+
ClientPortalTransaction = "cptransaction",
|
|
33
|
+
Transaction = "transaction",
|
|
34
|
+
TransactionV12 = "transactionV12",
|
|
35
|
+
Warehouse3D = "warehouse3d",
|
|
36
|
+
Wms = "wms",
|
|
37
|
+
AssetLibrary = "assetlibrary"
|
|
38
|
+
}
|
|
39
|
+
export declare function IsModulePath(path?: string): boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IsModulePath = exports.IOneModuleName = void 0;
|
|
4
|
+
const object_utils_1 = require("@colijnit/ioneconnector/build/utils/object-utils");
|
|
5
|
+
var IOneModuleName;
|
|
6
|
+
(function (IOneModuleName) {
|
|
7
|
+
IOneModuleName["AbsenceFile"] = "absencefile";
|
|
8
|
+
IOneModuleName["AbsenceStatistics"] = "absencestatistics";
|
|
9
|
+
IOneModuleName["Activity"] = "activity";
|
|
10
|
+
IOneModuleName["ArticleManagement"] = "articlemanagement";
|
|
11
|
+
IOneModuleName["Charts"] = "charts";
|
|
12
|
+
IOneModuleName["Checkout"] = "checkout";
|
|
13
|
+
IOneModuleName["ComponentTest"] = "componenttest";
|
|
14
|
+
IOneModuleName["Configuration"] = "configuration";
|
|
15
|
+
IOneModuleName["ControlWms"] = "controlwms";
|
|
16
|
+
IOneModuleName["ExportQuery"] = "exports";
|
|
17
|
+
IOneModuleName["FastTrack"] = "fasttrack";
|
|
18
|
+
IOneModuleName["Formbuilder"] = "formbuilder";
|
|
19
|
+
IOneModuleName["Financial"] = "financial";
|
|
20
|
+
IOneModuleName["FinancialDashboard"] = "dashboard";
|
|
21
|
+
IOneModuleName["Gridtest"] = "gridtest";
|
|
22
|
+
IOneModuleName["Home"] = "home";
|
|
23
|
+
IOneModuleName["ImportExport"] = "importexport";
|
|
24
|
+
IOneModuleName["MasterData"] = "masterdata";
|
|
25
|
+
IOneModuleName["OrderAdvice"] = "orderadvice";
|
|
26
|
+
IOneModuleName["OutstandingFinances"] = "outstandingfinances";
|
|
27
|
+
IOneModuleName["BookingJournals"] = "bookingjournals";
|
|
28
|
+
IOneModuleName["PointOfSale"] = "pointofsale";
|
|
29
|
+
IOneModuleName["PurchaseConfirmation"] = "purchaseconfirmation";
|
|
30
|
+
IOneModuleName["RelationManagement"] = "relationmanagement";
|
|
31
|
+
IOneModuleName["RenderFarm"] = "renderfarm";
|
|
32
|
+
IOneModuleName["RetailTransaction"] = "orders";
|
|
33
|
+
IOneModuleName["Selector"] = "selector";
|
|
34
|
+
IOneModuleName["Statistics"] = "statistics";
|
|
35
|
+
IOneModuleName["Styleguide"] = "styleguide";
|
|
36
|
+
IOneModuleName["SystemManagement"] = "systemManagement";
|
|
37
|
+
IOneModuleName["ClientPortalTransaction"] = "cptransaction";
|
|
38
|
+
IOneModuleName["Transaction"] = "transaction";
|
|
39
|
+
IOneModuleName["TransactionV12"] = "transactionV12";
|
|
40
|
+
IOneModuleName["Warehouse3D"] = "warehouse3d";
|
|
41
|
+
IOneModuleName["Wms"] = "wms";
|
|
42
|
+
IOneModuleName["AssetLibrary"] = "assetlibrary";
|
|
43
|
+
})(IOneModuleName = exports.IOneModuleName || (exports.IOneModuleName = {}));
|
|
44
|
+
function IsModulePath(path = "") {
|
|
45
|
+
let isModulePath = false;
|
|
46
|
+
const modulePathPart = (path.split("/")[1] || "").toLowerCase();
|
|
47
|
+
object_utils_1.ObjectUtils.ForOwnProperty(IOneModuleName, (val, key) => {
|
|
48
|
+
if (val.toString().toLowerCase() === modulePathPart) {
|
|
49
|
+
isModulePath = true;
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
return isModulePath;
|
|
54
|
+
}
|
|
55
|
+
exports.IsModulePath = IsModulePath;
|
|
@@ -13,4 +13,5 @@ var ModuleName;
|
|
|
13
13
|
ModuleName["ReportingDocuments"] = "ReportingDocuments";
|
|
14
14
|
ModuleName["SimpleBaseData"] = "SimpleBaseData";
|
|
15
15
|
ModuleName["Tags"] = "Tags";
|
|
16
|
+
ModuleName["Activities"] = "Activities";
|
|
16
17
|
})(ModuleName = exports.ModuleName || (exports.ModuleName = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationKind = void 0;
|
|
4
|
+
var RelationKind;
|
|
5
|
+
(function (RelationKind) {
|
|
6
|
+
RelationKind["Company"] = "B";
|
|
7
|
+
RelationKind["ContactPerson"] = "C";
|
|
8
|
+
RelationKind["Branch"] = "F";
|
|
9
|
+
RelationKind["Customer"] = "K";
|
|
10
|
+
RelationKind["Supplier"] = "L";
|
|
11
|
+
RelationKind["Personnel"] = "P";
|
|
12
|
+
RelationKind["System"] = "S";
|
|
13
|
+
RelationKind["Department"] = "D";
|
|
14
|
+
})(RelationKind = exports.RelationKind || (exports.RelationKind = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum TransactionKind {
|
|
2
|
+
PurchaseConfirmation = "B",
|
|
3
|
+
SalesInvoice = "F",
|
|
4
|
+
PurchaseInvoice = "G",
|
|
5
|
+
PurchaseOrder = "I",
|
|
6
|
+
POSOrder = "K",
|
|
7
|
+
InternalSupply = "L",
|
|
8
|
+
SalesQuotation = "O",
|
|
9
|
+
PurchaseQuotation = "P",
|
|
10
|
+
ServiceOrder = "S",
|
|
11
|
+
TermSalesOrder = "T",
|
|
12
|
+
SalesOrder = "V"
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionKind = void 0;
|
|
4
|
+
var TransactionKind;
|
|
5
|
+
(function (TransactionKind) {
|
|
6
|
+
TransactionKind["PurchaseConfirmation"] = "B";
|
|
7
|
+
TransactionKind["SalesInvoice"] = "F";
|
|
8
|
+
TransactionKind["PurchaseInvoice"] = "G";
|
|
9
|
+
TransactionKind["PurchaseOrder"] = "I";
|
|
10
|
+
TransactionKind["POSOrder"] = "K";
|
|
11
|
+
TransactionKind["InternalSupply"] = "L";
|
|
12
|
+
TransactionKind["SalesQuotation"] = "O";
|
|
13
|
+
TransactionKind["PurchaseQuotation"] = "P";
|
|
14
|
+
TransactionKind["ServiceOrder"] = "S";
|
|
15
|
+
TransactionKind["TermSalesOrder"] = "T";
|
|
16
|
+
TransactionKind["SalesOrder"] = "V";
|
|
17
|
+
})(TransactionKind = exports.TransactionKind || (exports.TransactionKind = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum WorkflowCategoryType {
|
|
2
|
+
Article = "ARTICLE",
|
|
3
|
+
SalesOrder = "SALES_ORDER",
|
|
4
|
+
PurchaseOrder = "PURCHASE_ORDER",
|
|
5
|
+
ServiceOrder = "SERVICE_ORDER",
|
|
6
|
+
Quotation = "QUOTATION",
|
|
7
|
+
AbsenceFile = "ABSENCE_FILE",
|
|
8
|
+
Task = "TASK",
|
|
9
|
+
CustomerEmployer = "CUSTOMER_EMPLOYER",
|
|
10
|
+
Personnel = "PERSONNEL",
|
|
11
|
+
ContactpersonEmployee = "CONTACTPERSON_EMPLOYEE",
|
|
12
|
+
PreventiveAbsenceFile = "PREVENTIVE_ABSENCE_FILE",
|
|
13
|
+
StructuralFunctionalLimited = "STRUCTURAL_FUNCTIONAL_LIMITED",
|
|
14
|
+
Branch = "BRANCH",
|
|
15
|
+
Company = "COMPANY",
|
|
16
|
+
Supplier = "SUPPLIER",
|
|
17
|
+
None = "NONE"
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowCategoryType = void 0;
|
|
4
|
+
var WorkflowCategoryType;
|
|
5
|
+
(function (WorkflowCategoryType) {
|
|
6
|
+
WorkflowCategoryType["Article"] = "ARTICLE";
|
|
7
|
+
WorkflowCategoryType["SalesOrder"] = "SALES_ORDER";
|
|
8
|
+
WorkflowCategoryType["PurchaseOrder"] = "PURCHASE_ORDER";
|
|
9
|
+
WorkflowCategoryType["ServiceOrder"] = "SERVICE_ORDER";
|
|
10
|
+
WorkflowCategoryType["Quotation"] = "QUOTATION";
|
|
11
|
+
WorkflowCategoryType["AbsenceFile"] = "ABSENCE_FILE";
|
|
12
|
+
WorkflowCategoryType["Task"] = "TASK";
|
|
13
|
+
WorkflowCategoryType["CustomerEmployer"] = "CUSTOMER_EMPLOYER";
|
|
14
|
+
WorkflowCategoryType["Personnel"] = "PERSONNEL";
|
|
15
|
+
WorkflowCategoryType["ContactpersonEmployee"] = "CONTACTPERSON_EMPLOYEE";
|
|
16
|
+
WorkflowCategoryType["PreventiveAbsenceFile"] = "PREVENTIVE_ABSENCE_FILE";
|
|
17
|
+
WorkflowCategoryType["StructuralFunctionalLimited"] = "STRUCTURAL_FUNCTIONAL_LIMITED";
|
|
18
|
+
WorkflowCategoryType["Branch"] = "BRANCH";
|
|
19
|
+
WorkflowCategoryType["Company"] = "COMPANY";
|
|
20
|
+
WorkflowCategoryType["Supplier"] = "SUPPLIER";
|
|
21
|
+
WorkflowCategoryType["None"] = "NONE";
|
|
22
|
+
})(WorkflowCategoryType = exports.WorkflowCategoryType || (exports.WorkflowCategoryType = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowTriggerType = void 0;
|
|
4
|
+
var WorkflowTriggerType;
|
|
5
|
+
(function (WorkflowTriggerType) {
|
|
6
|
+
WorkflowTriggerType["MaximumDuration"] = "M";
|
|
7
|
+
WorkflowTriggerType["Condition"] = "C";
|
|
8
|
+
WorkflowTriggerType["Form"] = "F";
|
|
9
|
+
WorkflowTriggerType["Task"] = "T";
|
|
10
|
+
WorkflowTriggerType["Manual"] = "H";
|
|
11
|
+
WorkflowTriggerType["Event"] = "E";
|
|
12
|
+
})(WorkflowTriggerType = exports.WorkflowTriggerType || (exports.WorkflowTriggerType = {}));
|
|
@@ -9,6 +9,9 @@ import { TagTreeItem } from "./model/tag-tree-item.bo";
|
|
|
9
9
|
import { Preset } from "./model/preset.bo";
|
|
10
10
|
import { ReportType } from './enum/report-type.enum';
|
|
11
11
|
import { ModuleName } from './enum/module-name.enum';
|
|
12
|
+
import { TableName } from "./enum/table-name.enum";
|
|
13
|
+
import { CoDocument } from "./model/co-document";
|
|
14
|
+
import { Activity } from "./model/activity.bo";
|
|
12
15
|
export declare abstract class MainApiConnection {
|
|
13
16
|
readonly showLoader: Subject<boolean>;
|
|
14
17
|
readonly connectionAborted: Subject<void>;
|
|
@@ -22,6 +25,10 @@ export declare abstract class MainApiConnection {
|
|
|
22
25
|
abstract listPrinters(showAll: boolean): Promise<DataServiceResponseData>;
|
|
23
26
|
abstract getSendMethods(): Promise<DataServiceResponseData>;
|
|
24
27
|
abstract getDocumentContent(id: number, thumbnail: boolean): Promise<DataServiceResponseData>;
|
|
28
|
+
abstract loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
29
|
+
abstract loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
30
|
+
abstract deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
31
|
+
abstract upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
25
32
|
abstract getCurrencies(active: boolean): Promise<DataServiceResponseData>;
|
|
26
33
|
abstract getPaymentConditions(name: string): Promise<DataServiceResponseData>;
|
|
27
34
|
abstract getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
@@ -44,6 +51,12 @@ export declare abstract class MainApiConnection {
|
|
|
44
51
|
abstract updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
45
52
|
abstract getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
46
53
|
abstract getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
54
|
+
abstract getHistoricActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
55
|
+
abstract getComponentActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
56
|
+
abstract getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
57
|
+
abstract insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
58
|
+
abstract updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
59
|
+
abstract deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
47
60
|
abstract selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
48
61
|
protected endPoint: string;
|
|
49
62
|
}
|
package/build/main-api.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ import { Preset } from "./model/preset.bo";
|
|
|
11
11
|
import { ServerResponseData } from '@colijnit/ioneconnector/build/model/server-response-data';
|
|
12
12
|
import { ReportType } from './enum/report-type.enum';
|
|
13
13
|
import { ModuleName } from './enum/module-name.enum';
|
|
14
|
+
import { TableName } from "./enum/table-name.enum";
|
|
15
|
+
import { CoDocument } from "./model/co-document";
|
|
16
|
+
import { Activity } from "./model/activity.bo";
|
|
14
17
|
export declare class MainApi {
|
|
15
18
|
readonly showLoader: Subject<boolean>;
|
|
16
19
|
readonly connectionAborted: Subject<void>;
|
|
@@ -35,6 +38,10 @@ export declare class MainApi {
|
|
|
35
38
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
36
39
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
37
40
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
41
|
+
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
42
|
+
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
43
|
+
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
44
|
+
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
38
45
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
39
46
|
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
40
47
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
@@ -58,6 +65,12 @@ export declare class MainApi {
|
|
|
58
65
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
59
66
|
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
60
67
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
68
|
+
getHistoricActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
69
|
+
getComponentActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
70
|
+
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
71
|
+
insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
72
|
+
updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
73
|
+
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
61
74
|
static createConnector(options: Options, sessionExists: boolean): MainApiConnection;
|
|
62
75
|
private _handleConnectionReset;
|
|
63
76
|
}
|
package/build/main-api.js
CHANGED
|
@@ -75,6 +75,20 @@ class MainApi {
|
|
|
75
75
|
getDocumentContent(id, thumbnail = true) {
|
|
76
76
|
return this.mainApi.getDocumentContent(id, thumbnail);
|
|
77
77
|
}
|
|
78
|
+
loadDocuments(key, table) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return this.mainApi.loadDocuments(key, table);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
loadDocumentContent(docId) {
|
|
84
|
+
return this.mainApi.loadDocumentContent(docId);
|
|
85
|
+
}
|
|
86
|
+
deleteDocument(documentId) {
|
|
87
|
+
return this.mainApi.deleteDocument(documentId);
|
|
88
|
+
}
|
|
89
|
+
upsertDocument(key, table, document) {
|
|
90
|
+
return this.mainApi.upsertDocument(key, table, document);
|
|
91
|
+
}
|
|
78
92
|
getCurrencies(active = true) {
|
|
79
93
|
return this.mainApi.getCurrencies(active);
|
|
80
94
|
}
|
|
@@ -158,6 +172,24 @@ class MainApi {
|
|
|
158
172
|
getPostalCodeRetrieval(postalCode, houseNumber, showLoader) {
|
|
159
173
|
return this.mainApi.getPostalCodeRetrieval(postalCode, houseNumber, showLoader);
|
|
160
174
|
}
|
|
175
|
+
getHistoricActivities(table, key) {
|
|
176
|
+
return this.mainApi.getHistoricActivities(table, key);
|
|
177
|
+
}
|
|
178
|
+
getComponentActivities(table, key) {
|
|
179
|
+
return this.mainApi.getComponentActivities(table, key);
|
|
180
|
+
}
|
|
181
|
+
getComponentActivitiesWithoutRelationFiltering(table, key) {
|
|
182
|
+
return this.mainApi.getComponentActivitiesWithoutRelationFiltering(table, key);
|
|
183
|
+
}
|
|
184
|
+
insertActivity(activity) {
|
|
185
|
+
return this.mainApi.insertActivity(activity);
|
|
186
|
+
}
|
|
187
|
+
updateActivity(activity) {
|
|
188
|
+
return this.mainApi.updateActivity(activity);
|
|
189
|
+
}
|
|
190
|
+
deleteActivity(activity) {
|
|
191
|
+
return this.mainApi.deleteActivity(activity);
|
|
192
|
+
}
|
|
161
193
|
static createConnector(options, sessionExists) {
|
|
162
194
|
if ((options.username && options.password) || sessionExists) {
|
|
163
195
|
return new main_auth_1.MainAuth();
|
package/build/main-auth.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ import { Preset } from './model/preset.bo';
|
|
|
8
8
|
import { TagCategory } from './enum/tab-category.enum';
|
|
9
9
|
import { TagTreeItem } from './model/tag-tree-item.bo';
|
|
10
10
|
import { ReportType } from './enum/report-type.enum';
|
|
11
|
+
import { TableName } from "./enum/table-name.enum";
|
|
12
|
+
import { CoDocument } from "./model/co-document";
|
|
13
|
+
import { Activity } from "./model/activity.bo";
|
|
11
14
|
export declare class MainAuth extends MainApiConnection {
|
|
12
15
|
private _boSerializer;
|
|
13
16
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -16,6 +19,10 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
16
19
|
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
17
20
|
getSendMethods(): Promise<DataServiceResponseData>;
|
|
18
21
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
22
|
+
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
23
|
+
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
24
|
+
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
25
|
+
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
19
26
|
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
20
27
|
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
21
28
|
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
@@ -38,6 +45,12 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
38
45
|
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
39
46
|
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
40
47
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
48
|
+
getHistoricActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
49
|
+
getComponentActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
50
|
+
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
51
|
+
insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
52
|
+
updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
53
|
+
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
41
54
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
42
55
|
private _call;
|
|
43
56
|
}
|