@eway-crm/connector 1.0.247 → 1.0.249
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/lib/cjs/data/IApiXsltTransformation.d.ts +1 -1
- package/lib/cjs/data/IApiXsltTransformationsModel.d.ts +1 -1
- package/lib/cjs/helpers/EwayOpenLinkHelper.d.ts +98 -0
- package/lib/cjs/helpers/OpenItemLinkHelper.d.ts +98 -0
- package/lib/cjs/index.d.ts +2 -1
- package/lib/cjs/index.js +2 -2
- package/lib/esm/data/IApiXsltTransformation.d.ts +1 -1
- package/lib/esm/data/IApiXsltTransformationsModel.d.ts +1 -1
- package/lib/esm/helpers/EwayOpenLinkHelper.d.ts +98 -0
- package/lib/esm/helpers/OpenItemLinkHelper.d.ts +98 -0
- package/lib/esm/index.d.ts +2 -1
- package/lib/esm/index.js +2 -2
- package/lib/index.d.ts +96 -1
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type TFolderName } from '../constants/FolderNames';
|
|
2
|
+
export type TItemInfo = Partial<{
|
|
3
|
+
[key in TFolderName]: string[];
|
|
4
|
+
}>;
|
|
5
|
+
export declare class EwayOpenLinkHelper {
|
|
6
|
+
private static readonly openEwayLinkRegEx;
|
|
7
|
+
static readonly ewayItemLinkParamName = "l";
|
|
8
|
+
static readonly ewayLinkDomainLength = 7;
|
|
9
|
+
static readonly getEwayOpenDomain: (isDevEnvironment: boolean) => "open.eway-crm.dev" | "open.eway-crm.com";
|
|
10
|
+
static readonly isEwayOpenLinkInString: (text: string) => boolean;
|
|
11
|
+
static readonly getOpenLinksFromString: (text: string) => RegExpMatchArray | null;
|
|
12
|
+
static readonly getItemLinksFromOpenLinks: (openLinks: RegExpMatchArray) => (string | null)[] | undefined;
|
|
13
|
+
static readonly getItemInfoFromLink: (link: string) => {
|
|
14
|
+
folderName: TFolderName;
|
|
15
|
+
itemGuid: string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
static readonly getAllItemsFromTextWithLinks: (text: string) => Partial<{
|
|
18
|
+
Actions: string[];
|
|
19
|
+
AdditionalFields: string[];
|
|
20
|
+
Bonuses: string[];
|
|
21
|
+
Calendar: string[];
|
|
22
|
+
CapacityNotes: string[];
|
|
23
|
+
CapacityNoteTypes: string[];
|
|
24
|
+
Carts: string[];
|
|
25
|
+
ColumnPermissions: string[];
|
|
26
|
+
Companies: string[];
|
|
27
|
+
Contacts: string[];
|
|
28
|
+
ContactsSuggestions: string[];
|
|
29
|
+
CurrencyExchangeRates: string[];
|
|
30
|
+
Documents: string[];
|
|
31
|
+
Emails: string[];
|
|
32
|
+
EnumTypes: string[];
|
|
33
|
+
EnumValues: string[];
|
|
34
|
+
EnumValuesRelations: string[];
|
|
35
|
+
Features: string[];
|
|
36
|
+
Flows: string[];
|
|
37
|
+
GlobalSettings: string[];
|
|
38
|
+
Goals: string[];
|
|
39
|
+
Goods: string[];
|
|
40
|
+
GoodsInCart: string[];
|
|
41
|
+
GoodsInSet: string[];
|
|
42
|
+
Groups: string[];
|
|
43
|
+
History: string[];
|
|
44
|
+
Holidays: string[];
|
|
45
|
+
Children: string[];
|
|
46
|
+
IndividualDiscounts: string[];
|
|
47
|
+
InvoiceItems: string[];
|
|
48
|
+
Invoices: string[];
|
|
49
|
+
ItemCopyRelations: string[];
|
|
50
|
+
Journal: string[];
|
|
51
|
+
Knowledge: string[];
|
|
52
|
+
Layouts: string[];
|
|
53
|
+
LayoutsModels: string[];
|
|
54
|
+
Leads: string[];
|
|
55
|
+
Ledger: string[];
|
|
56
|
+
Mappings: string[];
|
|
57
|
+
Marketing: string[];
|
|
58
|
+
MarketingList: string[];
|
|
59
|
+
MarketingListSources: string[];
|
|
60
|
+
Models: string[];
|
|
61
|
+
ModulePermissions: string[];
|
|
62
|
+
ObjectTypesOptions: string[];
|
|
63
|
+
Payments: string[];
|
|
64
|
+
PriceListGroups: string[];
|
|
65
|
+
ProjectAssignments: string[];
|
|
66
|
+
ProjectAssignmentsPerUserProject: string[];
|
|
67
|
+
ProjectAssignmentsTotal: string[];
|
|
68
|
+
ProjectAssignmentsTotalUserProject: string[];
|
|
69
|
+
ProjectList: string[];
|
|
70
|
+
Projects: string[];
|
|
71
|
+
ProjectUsersInCaPlan: string[];
|
|
72
|
+
RelationData: string[];
|
|
73
|
+
Relations: string[];
|
|
74
|
+
Reports: string[];
|
|
75
|
+
RevisionsHistory: string[];
|
|
76
|
+
Salaries: string[];
|
|
77
|
+
SalePrices: string[];
|
|
78
|
+
Prices: string[];
|
|
79
|
+
SqlObjects: string[];
|
|
80
|
+
Tasks: string[];
|
|
81
|
+
RecurrencePatterns: string[];
|
|
82
|
+
TeamRoles: string[];
|
|
83
|
+
Templates: string[];
|
|
84
|
+
Training: string[];
|
|
85
|
+
UnifiedRelations: string[];
|
|
86
|
+
Users: string[];
|
|
87
|
+
UserSettings: string[];
|
|
88
|
+
Vacation: string[];
|
|
89
|
+
WebAccess2Options: string[];
|
|
90
|
+
WebAccessOptions: string[];
|
|
91
|
+
WorkCommitments: string[];
|
|
92
|
+
WorkflowHistory: string[];
|
|
93
|
+
WorkReports: string[];
|
|
94
|
+
WrongClientVersions: string[];
|
|
95
|
+
XsltTransformations: string[];
|
|
96
|
+
XsltTransformationsModels: string[];
|
|
97
|
+
}> | undefined;
|
|
98
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type TFolderName } from '../constants/FolderNames';
|
|
2
|
+
export type TItemInfo = Partial<{
|
|
3
|
+
[key in TFolderName]: string[];
|
|
4
|
+
}>;
|
|
5
|
+
export declare class OpenItemLinkHelper {
|
|
6
|
+
private static readonly openItemLinkRegEx;
|
|
7
|
+
static readonly itemParamName = "l";
|
|
8
|
+
static readonly openLinkDomainLength = 7;
|
|
9
|
+
static readonly getOpenLinkDomain: (isDevEnvironment: boolean) => "open.eway-crm.dev" | "open.eway-crm.com";
|
|
10
|
+
static readonly isOpenItemLinkInText: (text: string) => boolean;
|
|
11
|
+
static readonly getOpenLinksFromString: (text: string) => RegExpMatchArray | null;
|
|
12
|
+
static readonly getItemLinksFromOpenLinks: (openLinks: RegExpMatchArray) => (string | null)[] | undefined;
|
|
13
|
+
static readonly getItemInfoFromLink: (link: string) => {
|
|
14
|
+
folderName: TFolderName;
|
|
15
|
+
itemGuid: string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
static readonly getAllItemsFromTextWithLinks: (text: string) => Partial<{
|
|
18
|
+
Actions: string[];
|
|
19
|
+
AdditionalFields: string[];
|
|
20
|
+
Bonuses: string[];
|
|
21
|
+
Calendar: string[];
|
|
22
|
+
CapacityNotes: string[];
|
|
23
|
+
CapacityNoteTypes: string[];
|
|
24
|
+
Carts: string[];
|
|
25
|
+
ColumnPermissions: string[];
|
|
26
|
+
Companies: string[];
|
|
27
|
+
Contacts: string[];
|
|
28
|
+
ContactsSuggestions: string[];
|
|
29
|
+
CurrencyExchangeRates: string[];
|
|
30
|
+
Documents: string[];
|
|
31
|
+
Emails: string[];
|
|
32
|
+
EnumTypes: string[];
|
|
33
|
+
EnumValues: string[];
|
|
34
|
+
EnumValuesRelations: string[];
|
|
35
|
+
Features: string[];
|
|
36
|
+
Flows: string[];
|
|
37
|
+
GlobalSettings: string[];
|
|
38
|
+
Goals: string[];
|
|
39
|
+
Goods: string[];
|
|
40
|
+
GoodsInCart: string[];
|
|
41
|
+
GoodsInSet: string[];
|
|
42
|
+
Groups: string[];
|
|
43
|
+
History: string[];
|
|
44
|
+
Holidays: string[];
|
|
45
|
+
Children: string[];
|
|
46
|
+
IndividualDiscounts: string[];
|
|
47
|
+
InvoiceItems: string[];
|
|
48
|
+
Invoices: string[];
|
|
49
|
+
ItemCopyRelations: string[];
|
|
50
|
+
Journal: string[];
|
|
51
|
+
Knowledge: string[];
|
|
52
|
+
Layouts: string[];
|
|
53
|
+
LayoutsModels: string[];
|
|
54
|
+
Leads: string[];
|
|
55
|
+
Ledger: string[];
|
|
56
|
+
Mappings: string[];
|
|
57
|
+
Marketing: string[];
|
|
58
|
+
MarketingList: string[];
|
|
59
|
+
MarketingListSources: string[];
|
|
60
|
+
Models: string[];
|
|
61
|
+
ModulePermissions: string[];
|
|
62
|
+
ObjectTypesOptions: string[];
|
|
63
|
+
Payments: string[];
|
|
64
|
+
PriceListGroups: string[];
|
|
65
|
+
ProjectAssignments: string[];
|
|
66
|
+
ProjectAssignmentsPerUserProject: string[];
|
|
67
|
+
ProjectAssignmentsTotal: string[];
|
|
68
|
+
ProjectAssignmentsTotalUserProject: string[];
|
|
69
|
+
ProjectList: string[];
|
|
70
|
+
Projects: string[];
|
|
71
|
+
ProjectUsersInCaPlan: string[];
|
|
72
|
+
RelationData: string[];
|
|
73
|
+
Relations: string[];
|
|
74
|
+
Reports: string[];
|
|
75
|
+
RevisionsHistory: string[];
|
|
76
|
+
Salaries: string[];
|
|
77
|
+
SalePrices: string[];
|
|
78
|
+
Prices: string[];
|
|
79
|
+
SqlObjects: string[];
|
|
80
|
+
Tasks: string[];
|
|
81
|
+
RecurrencePatterns: string[];
|
|
82
|
+
TeamRoles: string[];
|
|
83
|
+
Templates: string[];
|
|
84
|
+
Training: string[];
|
|
85
|
+
UnifiedRelations: string[];
|
|
86
|
+
Users: string[];
|
|
87
|
+
UserSettings: string[];
|
|
88
|
+
Vacation: string[];
|
|
89
|
+
WebAccess2Options: string[];
|
|
90
|
+
WebAccessOptions: string[];
|
|
91
|
+
WorkCommitments: string[];
|
|
92
|
+
WorkflowHistory: string[];
|
|
93
|
+
WorkReports: string[];
|
|
94
|
+
WrongClientVersions: string[];
|
|
95
|
+
XsltTransformations: string[];
|
|
96
|
+
XsltTransformationsModels: string[];
|
|
97
|
+
}> | undefined;
|
|
98
|
+
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ import type { ImportResult } from './constants/ImportResult';
|
|
|
42
42
|
import { TransformItemFormats } from './enumerations/TransformItemFormats';
|
|
43
43
|
import type QuerySources from './helpers/QueryHelper/QuerySources';
|
|
44
44
|
import { ApiFetchClient } from './ApiFetchClient';
|
|
45
|
+
import { OpenItemLinkHelper } from './helpers/OpenItemLinkHelper';
|
|
45
46
|
export default ApiConnection;
|
|
46
47
|
export * from './data/EWItem';
|
|
47
48
|
export * from './data/IApiAdditionalField';
|
|
@@ -111,4 +112,4 @@ export * from './data/query/IApiQueryFilters';
|
|
|
111
112
|
export * from './constants/ImportResult';
|
|
112
113
|
export * from './interfaces/ITranslatableString';
|
|
113
114
|
export * from './interfaces/ITokenData';
|
|
114
|
-
export { ImportResult, SentimentTone, HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, RelationTypeIds, TRelationType, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase, OAuthSessionHandler, FieldTypes, TFieldType, TNumericValidatorType, IApiEvent, IApiSetFieldValueAction, ObjectTypeIds, IApiHubItemsCountsQueryResponseItem, QueryHelper, QuerySources, IApiServiceAuthSettingsResponse, ApiConnection as ApiConnectionAsNonDefaultExport, IApiUnlinkInquiryResult, TApiUnlinkInquiryResultType, VersionHelper, Version, StringHelper, DateHelper, TransformItemFormats, ApiFetchClient };
|
|
115
|
+
export { OpenItemLinkHelper, ImportResult, SentimentTone, HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, RelationTypeIds, TRelationType, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase, OAuthSessionHandler, FieldTypes, TFieldType, TNumericValidatorType, IApiEvent, IApiSetFieldValueAction, ObjectTypeIds, IApiHubItemsCountsQueryResponseItem, QueryHelper, QuerySources, IApiServiceAuthSettingsResponse, ApiConnection as ApiConnectionAsNonDefaultExport, IApiUnlinkInquiryResult, TApiUnlinkInquiryResultType, VersionHelper, Version, StringHelper, DateHelper, TransformItemFormats, ApiFetchClient };
|