@eway-crm/connector 1.0.117 → 1.0.119
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TFolderName } from "./FolderNames";
|
|
1
2
|
export default class FieldNames {
|
|
2
3
|
static readonly Common: {
|
|
3
4
|
readonly CreatedByGUID: "CreatedByGUID";
|
|
@@ -24,7 +25,7 @@ export default class FieldNames {
|
|
|
24
25
|
readonly StateEn: "StateEn";
|
|
25
26
|
};
|
|
26
27
|
static readonly Companies: {
|
|
27
|
-
readonly
|
|
28
|
+
readonly ID: "ID";
|
|
28
29
|
readonly CompanyName: "CompanyName";
|
|
29
30
|
readonly Department: "Department";
|
|
30
31
|
readonly AccountNumber: "AccountNumber";
|
|
@@ -159,6 +160,7 @@ export default class FieldNames {
|
|
|
159
160
|
readonly ItemVersion: "ItemVersion";
|
|
160
161
|
readonly EstimatedRevenue: "EstimatedRevenue";
|
|
161
162
|
readonly EstimatedRevenueDefaultCurrency: "EstimatedRevenueDefaultCurrency";
|
|
163
|
+
readonly CompletedDate: "CompletedDate";
|
|
162
164
|
};
|
|
163
165
|
static readonly Documents: {
|
|
164
166
|
readonly FileAs: "FileAs";
|
|
@@ -383,4 +385,5 @@ export default class FieldNames {
|
|
|
383
385
|
readonly IsSystem: "IsSystem";
|
|
384
386
|
};
|
|
385
387
|
static allTypeEnNames: string[];
|
|
388
|
+
static getFolderFileAs: (folderName: TFolderName) => "FileAs" | "TypeEn" | "CompanyName" | "DocName" | "Subject" | "ProjectName";
|
|
386
389
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var FolderNames_1 = require("./FolderNames");
|
|
3
4
|
var FieldNames = /** @class */ (function () {
|
|
4
5
|
function FieldNames() {
|
|
5
6
|
}
|
|
@@ -28,7 +29,7 @@ var FieldNames = /** @class */ (function () {
|
|
|
28
29
|
StateEn: 'StateEn',
|
|
29
30
|
};
|
|
30
31
|
FieldNames.Companies = {
|
|
31
|
-
|
|
32
|
+
ID: 'ID',
|
|
32
33
|
CompanyName: 'CompanyName',
|
|
33
34
|
Department: 'Department',
|
|
34
35
|
AccountNumber: 'AccountNumber',
|
|
@@ -162,7 +163,8 @@ var FieldNames = /** @class */ (function () {
|
|
|
162
163
|
LastActivity: 'LastActivity',
|
|
163
164
|
ItemVersion: 'ItemVersion',
|
|
164
165
|
EstimatedRevenue: 'EstimatedRevenue',
|
|
165
|
-
EstimatedRevenueDefaultCurrency: 'EstimatedRevenueDefaultCurrency'
|
|
166
|
+
EstimatedRevenueDefaultCurrency: 'EstimatedRevenueDefaultCurrency',
|
|
167
|
+
CompletedDate: 'CompletedDate',
|
|
166
168
|
};
|
|
167
169
|
FieldNames.Documents = {
|
|
168
170
|
FileAs: 'FileAs',
|
|
@@ -387,6 +389,39 @@ var FieldNames = /** @class */ (function () {
|
|
|
387
389
|
IsSystem: 'IsSystem',
|
|
388
390
|
};
|
|
389
391
|
FieldNames.allTypeEnNames = ['TypeEn', FieldNames.Documents.DocTypeEn, FieldNames.WorkReports.WorkReportEn, 'TitleEn'];
|
|
392
|
+
FieldNames.getFolderFileAs = function (folderName) {
|
|
393
|
+
switch (folderName) {
|
|
394
|
+
case FolderNames_1.FolderNames.leads:
|
|
395
|
+
return FieldNames.Common.FileAs;
|
|
396
|
+
case FolderNames_1.FolderNames.projects:
|
|
397
|
+
return FieldNames.Projects.ProjectName;
|
|
398
|
+
case FolderNames_1.FolderNames.documents:
|
|
399
|
+
return FieldNames.Documents.DocName;
|
|
400
|
+
case FolderNames_1.FolderNames.companies:
|
|
401
|
+
return FieldNames.Companies.CompanyName;
|
|
402
|
+
case FolderNames_1.FolderNames.contacts:
|
|
403
|
+
return FieldNames.Common.FileAs;
|
|
404
|
+
case FolderNames_1.FolderNames.users:
|
|
405
|
+
return FieldNames.Common.FileAs;
|
|
406
|
+
case FolderNames_1.FolderNames.emails:
|
|
407
|
+
return FieldNames.Emails.Subject;
|
|
408
|
+
case FolderNames_1.FolderNames.journal:
|
|
409
|
+
return FieldNames.Journal.FileAs;
|
|
410
|
+
case FolderNames_1.FolderNames.tasks:
|
|
411
|
+
return FieldNames.Tasks.Subject;
|
|
412
|
+
case FolderNames_1.FolderNames.workReports:
|
|
413
|
+
return FieldNames.WorkReports.Subject;
|
|
414
|
+
case FolderNames_1.FolderNames.vacation:
|
|
415
|
+
return FieldNames.Vacation.TypeEn;
|
|
416
|
+
case FolderNames_1.FolderNames.carts:
|
|
417
|
+
return FieldNames.Common.FileAs;
|
|
418
|
+
case FolderNames_1.FolderNames.goods:
|
|
419
|
+
return FieldNames.Common.FileAs;
|
|
420
|
+
default:
|
|
421
|
+
console.warn("FileAs col name not defined for folderName ".concat(folderName));
|
|
422
|
+
return FieldNames.Common.FileAs;
|
|
423
|
+
}
|
|
424
|
+
};
|
|
390
425
|
return FieldNames;
|
|
391
426
|
}());
|
|
392
427
|
exports.default = FieldNames;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eway-crm/connector",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.119",
|
|
4
4
|
"description": "eWay-CRM API JavaScript connector library.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
"jwt-decode": "^3.1.2",
|
|
54
54
|
"universal-base64url": "^1.1.0"
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|