@eway-crm/connector 1.0.132 → 1.0.133

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.
@@ -26,6 +26,8 @@ import ErrorHelper from './helpers/ErrorHelper';
26
26
  import VersionHelperBase from './helpers/VersionHelperBase';
27
27
  import { OAuthSessionHandlerBase } from './OAuthSessionHandlerBase';
28
28
  import FieldTypes, { TFieldType } from './constants/FieldTypes';
29
+ import { TNumericValidatorType } from './interfaces/TNumericValidatorType';
30
+ import { IApiEvent, IApiSetFieldValueAction } from './data/workflowActions/IApiAction';
29
31
  export default ApiConnection;
30
32
  export * from './data/EWItem';
31
33
  export * from './data/IApiAdditionalField';
@@ -83,4 +85,4 @@ export * from './data/IApiWorkReport';
83
85
  export * from './data/query/IApiQuery';
84
86
  export * from './data/query/IApiQueryFilters';
85
87
  export * from './interfaces/ITranslatableString';
86
- export { HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, TRelationType, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase, FieldTypes, TFieldType };
88
+ export { HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, TRelationType, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase, FieldTypes, TFieldType, TNumericValidatorType, IApiEvent, IApiSetFieldValueAction };
@@ -26,6 +26,8 @@ import ErrorHelper from './helpers/ErrorHelper';
26
26
  import VersionHelperBase from './helpers/VersionHelperBase';
27
27
  import { OAuthSessionHandlerBase } from './OAuthSessionHandlerBase';
28
28
  import FieldTypes, { TFieldType } from './constants/FieldTypes';
29
+ import { TNumericValidatorType } from './interfaces/TNumericValidatorType';
30
+ import { IApiEvent, IApiSetFieldValueAction } from './data/workflowActions/IApiAction';
29
31
  export default ApiConnection;
30
32
  export * from './data/EWItem';
31
33
  export * from './data/IApiAdditionalField';
@@ -83,4 +85,4 @@ export * from './data/IApiWorkReport';
83
85
  export * from './data/query/IApiQuery';
84
86
  export * from './data/query/IApiQueryFilters';
85
87
  export * from './interfaces/ITranslatableString';
86
- export { HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, TRelationType, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase, FieldTypes, TFieldType };
88
+ export { HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, TRelationType, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase, FieldTypes, TFieldType, TNumericValidatorType, IApiEvent, IApiSetFieldValueAction };
package/lib/index.d.ts CHANGED
@@ -1003,6 +1003,113 @@ declare class FieldTypes {
1003
1003
  static readonly multiSelectRelation: TFieldType;
1004
1004
  }
1005
1005
 
1006
+ type TNumericValidatorType = 'None' | 'Double' | 'Currency' | 'Int' | 'Percent' | 'FileSize';
1007
+
1008
+ interface IApiEvent {
1009
+ TypeName: TActionEventType;
1010
+ Actions: TApiAction[];
1011
+ }
1012
+ type TActionEventType = 'OnValueChanging' | 'OnValueChanged' | 'OnSaving' | 'OnSaved' | 'OnLoad' | 'OnLoading';
1013
+ type TApiAction = IApiAreEqualAction | IApiCreateRelationAction | IApiCreateTaskAction | IApiDatabaseFieldIsNotEmptyAction | IApiCheckPresenceOfRelationAction | IApiLockFieldAction | IApiLockFormAction | IApiSendEmailAction | IApiSetFieldValueAction | IApiSetItemOwnerAction | IApiWriteJournalEntryAction;
1014
+ interface IApiAction {
1015
+ Name: string | null;
1016
+ ExecuteOnlyOnce: boolean;
1017
+ Relevance: TApiActionRelevant[];
1018
+ }
1019
+ type TApiActionRelevant = ({
1020
+ GroupName: null;
1021
+ IsForAllGroups: true;
1022
+ } | {
1023
+ GroupName: string;
1024
+ IsForAllGroups: false;
1025
+ }) & {
1026
+ CompletionLevelName: TCompletionLevel;
1027
+ };
1028
+ type TCompletionLevel = 'DoNothing' | 'CanIgnore' | 'CannotIgnore';
1029
+ interface IApiAreEqualAction extends IApiAction {
1030
+ __type: 'AreEqualAction:#EA';
1031
+ ComparisonParameters: {
1032
+ ExpectedValue: string | null;
1033
+ ActualValue: string | null;
1034
+ NotEqualMessage: string | null;
1035
+ };
1036
+ }
1037
+ interface IApiCreateRelationAction extends IApiAction {
1038
+ __type: 'CreateRelationAction:#EA';
1039
+ NewRelationParameters: {
1040
+ RelatedItemFileAs: string | null;
1041
+ RelatedFolderName: TFolderName | null;
1042
+ CreateItemCopy: boolean | null;
1043
+ };
1044
+ }
1045
+ interface IApiCreateTaskAction extends IApiAction {
1046
+ __type: 'CreateTaskAction:#EA';
1047
+ TaskData: {
1048
+ TypeEn: string | null;
1049
+ Subject: string | null;
1050
+ Delegator: string | null;
1051
+ Solver: string | null;
1052
+ DueDate: string | null;
1053
+ ReminderDate: string | null;
1054
+ ImportanceEn: string | null;
1055
+ SuperiorItem: string | null;
1056
+ Company: string | null;
1057
+ Contact: string | null;
1058
+ Relations: string[] | null;
1059
+ OpenWindowWhenPossible: boolean | null;
1060
+ };
1061
+ }
1062
+ interface IApiDatabaseFieldIsNotEmptyAction extends IApiAction {
1063
+ __type: 'DatabaseFieldIsNotEmptyAction:#EA';
1064
+ FieldName: string | null;
1065
+ }
1066
+ interface IApiCheckPresenceOfRelationAction extends IApiAction {
1067
+ __type: 'CheckPresenceOfRelationAction:#EA';
1068
+ CheckParameters: {
1069
+ RelationType: string | null;
1070
+ RelatedFolderName: TFolderName | null;
1071
+ RelationMissingMessage: string | null;
1072
+ RelatedItemConditions: {
1073
+ FieldName: string;
1074
+ Value: string | null;
1075
+ }[] | null;
1076
+ };
1077
+ }
1078
+ interface IApiLockFieldAction extends IApiAction {
1079
+ __type: 'LockFieldAction:#EA';
1080
+ FieldName: string | null;
1081
+ }
1082
+ interface IApiLockFormAction extends IApiAction {
1083
+ __type: 'LockFormAction:#EA';
1084
+ }
1085
+ interface IApiSendEmailAction extends IApiAction {
1086
+ __type: 'SendEmailAction:#EA';
1087
+ EmailData: {
1088
+ Body: string | null;
1089
+ Subject: string | null;
1090
+ RecipientGroups: string | null;
1091
+ RecipientUsers: string | null;
1092
+ };
1093
+ }
1094
+ interface IApiSetFieldValueAction extends IApiAction {
1095
+ __type: 'SetFieldValueAction:#EA';
1096
+ FieldName: string | null;
1097
+ NewValue: string | null;
1098
+ }
1099
+ interface IApiSetItemOwnerAction extends IApiAction {
1100
+ __type: 'SetItemOwnerAction:#EA';
1101
+ Message: string | null;
1102
+ }
1103
+ interface IApiWriteJournalEntryAction extends IApiAction {
1104
+ __type: 'WriteJournalEntryAction:#EA';
1105
+ JournalData: {
1106
+ TypeEn: string | null;
1107
+ FileAs: string | null;
1108
+ Note: string | null;
1109
+ ImportanceEn: string | null;
1110
+ };
1111
+ }
1112
+
1006
1113
  interface IItemPreview {
1007
1114
  imageData: string;
1008
1115
  width: number;
@@ -1019,8 +1126,6 @@ declare class EWItem<T extends IApiItemBase> {
1019
1126
  getItemPreview(): IItemPreview | null;
1020
1127
  }
1021
1128
 
1022
- type TNumericValidatorType = 'None' | 'Double' | 'Currency' | 'Int' | 'Percent' | 'FileSize';
1023
-
1024
1129
  interface IApiAdditionalField extends IApiItemBase {
1025
1130
  ObjectTypeFolderName: string;
1026
1131
  FieldId: number;
@@ -1358,111 +1463,6 @@ interface IApiEmail extends IApiItemBase {
1358
1463
  Tasks_TaskOriginGuid: string | null;
1359
1464
  }
1360
1465
 
1361
- interface IApiEvent {
1362
- TypeName: TActionEventType;
1363
- Actions: TApiAction[];
1364
- }
1365
- type TActionEventType = 'OnValueChanging' | 'OnValueChanged' | 'OnSaving' | 'OnSaved' | 'OnLoad' | 'OnLoading';
1366
- type TApiAction = IApiAreEqualAction | IApiCreateRelationAction | IApiCreateTaskAction | IApiDatabaseFieldIsNotEmptyAction | IApiCheckPresenceOfRelationAction | IApiLockFieldAction | IApiLockFormAction | IApiSendEmailAction | IApiSetFieldValueAction | IApiSetItemOwnerAction | IApiWriteJournalEntryAction;
1367
- interface IApiAction {
1368
- Name: string | null;
1369
- ExecuteOnlyOnce: boolean;
1370
- Relevance: TApiActionRelevant[];
1371
- }
1372
- type TApiActionRelevant = ({
1373
- GroupName: null;
1374
- IsForAllGroups: true;
1375
- } | {
1376
- GroupName: string;
1377
- IsForAllGroups: false;
1378
- }) & {
1379
- CompletionLevelName: TCompletionLevel;
1380
- };
1381
- type TCompletionLevel = 'DoNothing' | 'CanIgnore' | 'CannotIgnore';
1382
- interface IApiAreEqualAction extends IApiAction {
1383
- __type: 'AreEqualAction:#EA';
1384
- ComparisonParameters: {
1385
- ExpectedValue: string | null;
1386
- ActualValue: string | null;
1387
- NotEqualMessage: string | null;
1388
- };
1389
- }
1390
- interface IApiCreateRelationAction extends IApiAction {
1391
- __type: 'CreateRelationAction:#EA';
1392
- NewRelationParameters: {
1393
- RelatedItemFileAs: string | null;
1394
- RelatedFolderName: TFolderName | null;
1395
- CreateItemCopy: boolean | null;
1396
- };
1397
- }
1398
- interface IApiCreateTaskAction extends IApiAction {
1399
- __type: 'CreateTaskAction:#EA';
1400
- TaskData: {
1401
- TypeEn: string | null;
1402
- Subject: string | null;
1403
- Delegator: string | null;
1404
- Solver: string | null;
1405
- DueDate: string | null;
1406
- ReminderDate: string | null;
1407
- ImportanceEn: string | null;
1408
- SuperiorItem: string | null;
1409
- Company: string | null;
1410
- Contact: string | null;
1411
- Relations: string[] | null;
1412
- OpenWindowWhenPossible: boolean | null;
1413
- };
1414
- }
1415
- interface IApiDatabaseFieldIsNotEmptyAction extends IApiAction {
1416
- __type: 'DatabaseFieldIsNotEmptyAction:#EA';
1417
- FieldName: string | null;
1418
- }
1419
- interface IApiCheckPresenceOfRelationAction extends IApiAction {
1420
- __type: 'CheckPresenceOfRelationAction:#EA';
1421
- CheckParameters: {
1422
- RelationType: string | null;
1423
- RelatedFolderName: TFolderName | null;
1424
- RelationMissingMessage: string | null;
1425
- RelatedItemConditions: {
1426
- FieldName: string;
1427
- Value: string | null;
1428
- }[] | null;
1429
- };
1430
- }
1431
- interface IApiLockFieldAction extends IApiAction {
1432
- __type: 'LockFieldAction:#EA';
1433
- FieldName: string | null;
1434
- }
1435
- interface IApiLockFormAction extends IApiAction {
1436
- __type: 'LockFormAction:#EA';
1437
- }
1438
- interface IApiSendEmailAction extends IApiAction {
1439
- __type: 'SendEmailAction:#EA';
1440
- EmailData: {
1441
- Body: string | null;
1442
- Subject: string | null;
1443
- RecipientGroups: string | null;
1444
- RecipientUsers: string | null;
1445
- };
1446
- }
1447
- interface IApiSetFieldValueAction extends IApiAction {
1448
- __type: 'SetFieldValueAction:#EA';
1449
- FieldName: string | null;
1450
- NewValue: string | null;
1451
- }
1452
- interface IApiSetItemOwnerAction extends IApiAction {
1453
- __type: 'SetItemOwnerAction:#EA';
1454
- Message: string | null;
1455
- }
1456
- interface IApiWriteJournalEntryAction extends IApiAction {
1457
- __type: 'WriteJournalEntryAction:#EA';
1458
- JournalData: {
1459
- TypeEn: string | null;
1460
- FileAs: string | null;
1461
- Note: string | null;
1462
- ImportanceEn: string | null;
1463
- };
1464
- }
1465
-
1466
1466
  interface IApiEnumValue extends IApiItemBase {
1467
1467
  EnumType: string;
1468
1468
  EnumTypeName: string;
@@ -2178,4 +2178,4 @@ interface IApiQueryOrFilterExpressionOperator {
2178
2178
  Children: TApiQueryFilterExpression[];
2179
2179
  }
2180
2180
 
2181
- export { ApiMethods, ColumnPermissionMandatoryRules, ColumnPermissionPermissionRules, CommonDataConnection, CustomizationStatsItemKeys, EWItem, Edition, EnumTypeEditMode, EnumTypes, ErrorHelper, ExpirationReason, Feature, FieldNames, FieldTypes, FolderNames, Functionality, GlobalSettingsNames, HttpMethod, HttpRequestError, IApiAdditionalField, IApiAvailableBundle, IApiAvailableVersionResponse, IApiBooleanResponse, IApiBoundRelation, IApiCapacityAvailableBundle, IApiCart, IApiColumn, IApiColumnPermission, IApiCompany, IApiContact, IApiCurrencyExchangeRate, IApiCurrentUserLicenseInfo, IApiCustomizationStatsItem, IApiDataResponse, IApiDatumResponse, IApiDocument, IApiEmail, IApiEnumType, IApiEnumValue, IApiEnumValuesRelation, IApiFeature, IApiFeaturesLicenseBundle, IApiFlow, IApiGlobalSetting, IApiGoal, IApiGood, IApiGoodInCart, IApiGroup, IApiItemBase, IApiItemIdentifier, IApiItemUsageStatus, IApiJournal, IApiLead, IApiLicense, IApiLicenseBundleBase, IApiLicenseDbSizeModel, IApiLicenseExpiration, IApiLicenseKeyInvoice, IApiLocalizedLicenseBundle, IApiLoginResponse, IApiMarketingList, IApiModulePermission, IApiObjectType, IApiPasswordStrength, IApiPayment, IApiProject, IApiQueryAndFilterExpressionOperator, IApiQueryColumn, IApiQueryColumnVariation, IApiQueryEqualsFilterExpressionPredicate, IApiQueryGreaterFilterExpressionPredicate, IApiQueryGreaterOrEqualFilterExpressionPredicate, IApiQueryInFilterExpressionPredicate, IApiQueryLessFilterExpressionPredicate, IApiQueryLessOrEqualFilterExpressionPredicate, IApiQueryLikeFilterExpressionPredicate, IApiQueryNotFilterExpression, IApiQueryOrFilterExpressionOperator, IApiQuerySubstituableColumn, IApiQueryToken, IApiQueryVariatedColumn, IApiRecurrencePattern, IApiResult, IApiSaveResponse, IApiTask, IApiUser, IApiUserSetting, IApiWebServiceTaskStatus, IApiWorkReport, IApiWorkflowActionDerivedItem, IApiWorkflowModel, ISessionHandler, ITokenizedApiResult, ITranslatableString, LicenseKeyInvoiceSeverity, LicenseRestrictionKeys, OAuthHelper, OAuthSessionHandlerBase, RelationTypes, ReturnCodes, TApiColumnPermissionMandatoryRuleOptions, TApiColumnPermissionPermissionRuleOptions, TApiItemWithReleations, TApiModulePermissionOptions, TApiQueryField, TApiQueryFilterExpression, TFeatureWithEdition, TFieldType, TFolderName, TInputData, TRelationType, TUnionError, TokenizedServiceConnection, VersionHelperBase, ApiConnection as default };
2181
+ export { ApiMethods, ColumnPermissionMandatoryRules, ColumnPermissionPermissionRules, CommonDataConnection, CustomizationStatsItemKeys, EWItem, Edition, EnumTypeEditMode, EnumTypes, ErrorHelper, ExpirationReason, Feature, FieldNames, FieldTypes, FolderNames, Functionality, GlobalSettingsNames, HttpMethod, HttpRequestError, IApiAdditionalField, IApiAvailableBundle, IApiAvailableVersionResponse, IApiBooleanResponse, IApiBoundRelation, IApiCapacityAvailableBundle, IApiCart, IApiColumn, IApiColumnPermission, IApiCompany, IApiContact, IApiCurrencyExchangeRate, IApiCurrentUserLicenseInfo, IApiCustomizationStatsItem, IApiDataResponse, IApiDatumResponse, IApiDocument, IApiEmail, IApiEnumType, IApiEnumValue, IApiEnumValuesRelation, IApiEvent, IApiFeature, IApiFeaturesLicenseBundle, IApiFlow, IApiGlobalSetting, IApiGoal, IApiGood, IApiGoodInCart, IApiGroup, IApiItemBase, IApiItemIdentifier, IApiItemUsageStatus, IApiJournal, IApiLead, IApiLicense, IApiLicenseBundleBase, IApiLicenseDbSizeModel, IApiLicenseExpiration, IApiLicenseKeyInvoice, IApiLocalizedLicenseBundle, IApiLoginResponse, IApiMarketingList, IApiModulePermission, IApiObjectType, IApiPasswordStrength, IApiPayment, IApiProject, IApiQueryAndFilterExpressionOperator, IApiQueryColumn, IApiQueryColumnVariation, IApiQueryEqualsFilterExpressionPredicate, IApiQueryGreaterFilterExpressionPredicate, IApiQueryGreaterOrEqualFilterExpressionPredicate, IApiQueryInFilterExpressionPredicate, IApiQueryLessFilterExpressionPredicate, IApiQueryLessOrEqualFilterExpressionPredicate, IApiQueryLikeFilterExpressionPredicate, IApiQueryNotFilterExpression, IApiQueryOrFilterExpressionOperator, IApiQuerySubstituableColumn, IApiQueryToken, IApiQueryVariatedColumn, IApiRecurrencePattern, IApiResult, IApiSaveResponse, IApiSetFieldValueAction, IApiTask, IApiUser, IApiUserSetting, IApiWebServiceTaskStatus, IApiWorkReport, IApiWorkflowActionDerivedItem, IApiWorkflowModel, ISessionHandler, ITokenizedApiResult, ITranslatableString, LicenseKeyInvoiceSeverity, LicenseRestrictionKeys, OAuthHelper, OAuthSessionHandlerBase, RelationTypes, ReturnCodes, TApiColumnPermissionMandatoryRuleOptions, TApiColumnPermissionPermissionRuleOptions, TApiItemWithReleations, TApiModulePermissionOptions, TApiQueryField, TApiQueryFilterExpression, TFeatureWithEdition, TFieldType, TFolderName, TInputData, TNumericValidatorType, TRelationType, TUnionError, TokenizedServiceConnection, VersionHelperBase, ApiConnection as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eway-crm/connector",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "description": "eWay-CRM API JavaScript connector library.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",