@eway-crm/connector 1.0.254 → 1.0.256
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.
|
@@ -39,7 +39,7 @@ export declare class ApiConnection {
|
|
|
39
39
|
* @param config Optional. Additional config for the request.
|
|
40
40
|
* @param catchGlobally Optional. If true, raises this the global error handler each time the promise is rejected.
|
|
41
41
|
*/
|
|
42
|
-
readonly askCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<
|
|
42
|
+
readonly askCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<TResult>;
|
|
43
43
|
/**
|
|
44
44
|
* Creates a promise for async file upload using binary stream
|
|
45
45
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -59,7 +59,7 @@ export declare class ApiConnection {
|
|
|
59
59
|
* @param errorCallback Optional. Handler callback for any other failures. If not supplied, the global error handler is used.
|
|
60
60
|
* @param config Optional. Additional config for the request.
|
|
61
61
|
*/
|
|
62
|
-
readonly callCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, successCallback: (res:
|
|
62
|
+
readonly callCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, successCallback: (res: TResult) => void, unsuccessCallback?: (e: IApiResult) => void, errorCallback?: (e: TUnionError) => void, config?: AxiosRequestConfig) => void;
|
|
63
63
|
/**
|
|
64
64
|
* Asynchronously uploads file using binary stream
|
|
65
65
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -52,6 +52,7 @@ export interface IApiLicense {
|
|
|
52
52
|
CustomerName: string;
|
|
53
53
|
BusinessType: LicenceBusinessType;
|
|
54
54
|
Features: TFeatureWithEdition[] | null;
|
|
55
|
+
Products?: IApiLicenseProductsModel;
|
|
55
56
|
CurrentUserRestrictions: IApiRestrictionsClass;
|
|
56
57
|
Restrictions: IApiRestrictionsClass;
|
|
57
58
|
CurrentUserLicenseInfo: IApiCurrentUserLicenseInfo;
|
|
@@ -66,4 +67,11 @@ export interface IApiLicenseDbSizeModel {
|
|
|
66
67
|
Used: number | null;
|
|
67
68
|
Licensed: number | null;
|
|
68
69
|
}
|
|
70
|
+
export interface IApiLicenseProductsModel {
|
|
71
|
+
PohodaSync: IApiLicenseSyncLicenseModel;
|
|
72
|
+
QuickBooksSync: IApiLicenseSyncLicenseModel;
|
|
73
|
+
}
|
|
74
|
+
export interface IApiLicenseSyncLicenseModel {
|
|
75
|
+
IsLicensed: boolean;
|
|
76
|
+
}
|
|
69
77
|
export {};
|
|
@@ -39,7 +39,7 @@ export declare class ApiConnection {
|
|
|
39
39
|
* @param config Optional. Additional config for the request.
|
|
40
40
|
* @param catchGlobally Optional. If true, raises this the global error handler each time the promise is rejected.
|
|
41
41
|
*/
|
|
42
|
-
readonly askCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<
|
|
42
|
+
readonly askCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<TResult>;
|
|
43
43
|
/**
|
|
44
44
|
* Creates a promise for async file upload using binary stream
|
|
45
45
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -59,7 +59,7 @@ export declare class ApiConnection {
|
|
|
59
59
|
* @param errorCallback Optional. Handler callback for any other failures. If not supplied, the global error handler is used.
|
|
60
60
|
* @param config Optional. Additional config for the request.
|
|
61
61
|
*/
|
|
62
|
-
readonly callCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, successCallback: (res:
|
|
62
|
+
readonly callCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, successCallback: (res: TResult) => void, unsuccessCallback?: (e: IApiResult) => void, errorCallback?: (e: TUnionError) => void, config?: AxiosRequestConfig) => void;
|
|
63
63
|
/**
|
|
64
64
|
* Asynchronously uploads file using binary stream
|
|
65
65
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -52,6 +52,7 @@ export interface IApiLicense {
|
|
|
52
52
|
CustomerName: string;
|
|
53
53
|
BusinessType: LicenceBusinessType;
|
|
54
54
|
Features: TFeatureWithEdition[] | null;
|
|
55
|
+
Products?: IApiLicenseProductsModel;
|
|
55
56
|
CurrentUserRestrictions: IApiRestrictionsClass;
|
|
56
57
|
Restrictions: IApiRestrictionsClass;
|
|
57
58
|
CurrentUserLicenseInfo: IApiCurrentUserLicenseInfo;
|
|
@@ -66,4 +67,11 @@ export interface IApiLicenseDbSizeModel {
|
|
|
66
67
|
Used: number | null;
|
|
67
68
|
Licensed: number | null;
|
|
68
69
|
}
|
|
70
|
+
export interface IApiLicenseProductsModel {
|
|
71
|
+
PohodaSync: IApiLicenseSyncLicenseModel;
|
|
72
|
+
QuickBooksSync: IApiLicenseSyncLicenseModel;
|
|
73
|
+
}
|
|
74
|
+
export interface IApiLicenseSyncLicenseModel {
|
|
75
|
+
IsLicensed: boolean;
|
|
76
|
+
}
|
|
69
77
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ declare class ApiConnection {
|
|
|
172
172
|
* @param config Optional. Additional config for the request.
|
|
173
173
|
* @param catchGlobally Optional. If true, raises this the global error handler each time the promise is rejected.
|
|
174
174
|
*/
|
|
175
|
-
readonly askCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<
|
|
175
|
+
readonly askCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<TResult>;
|
|
176
176
|
/**
|
|
177
177
|
* Creates a promise for async file upload using binary stream
|
|
178
178
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -192,7 +192,7 @@ declare class ApiConnection {
|
|
|
192
192
|
* @param errorCallback Optional. Handler callback for any other failures. If not supplied, the global error handler is used.
|
|
193
193
|
* @param config Optional. Additional config for the request.
|
|
194
194
|
*/
|
|
195
|
-
readonly callCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, successCallback: (res:
|
|
195
|
+
readonly callCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, successCallback: (res: TResult) => void, unsuccessCallback?: (e: IApiResult) => void, errorCallback?: (e: TUnionError) => void, config?: AxiosRequestConfig) => void;
|
|
196
196
|
/**
|
|
197
197
|
* Asynchronously uploads file using binary stream
|
|
198
198
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -2656,6 +2656,7 @@ interface IApiLicense {
|
|
|
2656
2656
|
CustomerName: string;
|
|
2657
2657
|
BusinessType: LicenceBusinessType;
|
|
2658
2658
|
Features: TFeatureWithEdition[] | null;
|
|
2659
|
+
Products?: IApiLicenseProductsModel;
|
|
2659
2660
|
CurrentUserRestrictions: IApiRestrictionsClass;
|
|
2660
2661
|
Restrictions: IApiRestrictionsClass;
|
|
2661
2662
|
CurrentUserLicenseInfo: IApiCurrentUserLicenseInfo;
|
|
@@ -2670,6 +2671,13 @@ interface IApiLicenseDbSizeModel {
|
|
|
2670
2671
|
Used: number | null;
|
|
2671
2672
|
Licensed: number | null;
|
|
2672
2673
|
}
|
|
2674
|
+
interface IApiLicenseProductsModel {
|
|
2675
|
+
PohodaSync: IApiLicenseSyncLicenseModel;
|
|
2676
|
+
QuickBooksSync: IApiLicenseSyncLicenseModel;
|
|
2677
|
+
}
|
|
2678
|
+
interface IApiLicenseSyncLicenseModel {
|
|
2679
|
+
IsLicensed: boolean;
|
|
2680
|
+
}
|
|
2673
2681
|
|
|
2674
2682
|
interface IApiLocalizedLicenseBundle extends IApiCapacityAvailableBundle {
|
|
2675
2683
|
Name: string;
|
|
@@ -2984,4 +2992,4 @@ interface IApiGoodFinalPrice {
|
|
|
2984
2992
|
AdditionalDiscount: number | null;
|
|
2985
2993
|
}
|
|
2986
2994
|
|
|
2987
|
-
export { ApiConnection as ApiConnectionAsNonDefaultExport, ApiFetchClient, ApiMethods, ColumnPermissionMandatoryRules, ColumnPermissionPermissionRules, CommonDataConnection, CustomizationStatsItemKeys, DateHelper, EWItem, Edition, EnumTypeEditMode, EnumTypes, ErrorHelper, ExpirationReason, Feature, FieldNames, FieldTypes, FolderNames, Functionality, GlobalSettingsNames, HttpMethod, HttpRequestError, IApiAdditionalField, IApiAvailableBundle, IApiAvailableVersionResponse, IApiBooleanResponse, IApiBoundRelation, IApiCalendar, IApiCapacityAvailableBundle, IApiCart, IApiClientVersion, IApiColumn, IApiColumnPermission, IApiCompany, IApiContact, IApiContactsSuggestion, IApiCurrencyExchangeRate, IApiCurrentUserLicenseInfo, IApiCustomizationStatsItem, IApiDataImportResponse, IApiDataResponse, IApiDatumResponse, IApiDocument, IApiEmail, IApiEnumType, IApiEnumValue, IApiEnumValuesRelation, IApiEvent, IApiFeature, IApiFeaturesLicenseBundle, IApiFlow, IApiGlobalSetting, IApiGoal, IApiGood, IApiGoodFinalPrice, IApiGoodInCart, IApiGoodInSet, IApiGroup, IApiHubItemsCountsQueryResponseItem, IApiItemBase, IApiItemBaseWithoutPrivate, IApiItemIdentifier, IApiItemUsageStatus, IApiJournal, IApiLayout, IApiLayoutsModel, IApiLead, IApiLicense, IApiLicenseBundleBase, IApiLicenseDbSizeModel, IApiLicenseExpiration, IApiLicenseKeyInvoice, IApiLocalizedLicenseBundle, IApiLoginResponse, IApiMarketingList, IApiModulePermission, IApiObjectType, IApiPasswordStrength, IApiPayment, IApiProject, IApiQueryAggregateColumn, IApiQueryAndFilterExpressionOperator, IApiQueryColumn, IApiQueryColumnVariation, IApiQueryEqualsFilterExpressionPredicate, IApiQueryGreaterFilterExpressionPredicate, IApiQueryGreaterOrEqualFilterExpressionPredicate, IApiQueryHubRelationSource, IApiQueryInFilterExpressionPredicate, IApiQueryJoinTableSource, IApiQueryLessFilterExpressionPredicate, IApiQueryLessOrEqualFilterExpressionPredicate, IApiQueryLikeFilterExpressionPredicate, IApiQueryMainTableSource, IApiQueryNotFilterExpression, IApiQueryOrFilterExpressionOperator, IApiQueryRelatedToFilterExpressionPredicate, IApiQueryRelationSource, IApiQuerySubstituableColumn, IApiQueryToken, IApiQueryVariatedColumn, IApiRecurrencePattern, IApiResult, IApiSaveResponse, IApiServiceAuthSettingsResponse, IApiSetFieldValueAction, IApiTask, IApiUnlinkInquiryResult, IApiUser, IApiUserSetting, IApiWebServiceTaskStatus, IApiWorkReport, IApiWorkflowActionDerivedItem, IApiWorkflowModel, IApiXsltTransformation, IApiXsltTransformationsModel, ISessionHandler, ITokenData, ITokenError, ITokenSuccess, ITokenizedApiResult, ITranslatableString, ImportResult, LicenseKeyInvoiceSeverity, LicenseRestrictionKeys, OAuthHelper, OAuthSessionHandler, OAuthSessionHandlerBase, ObjectTypeIds, OpenItemLinkHelper, QueryHelper, QuerySources, RelationTypeIds, RelationTypes, ReturnCodes, SentimentTone, StringHelper, TApiColumnPermissionMandatoryRuleOptions, TApiColumnPermissionPermissionRuleOptions, TApiItemWithReleations, TApiModulePermissionOptions, TApiQueryAggregateFunction, TApiQueryField, TApiQueryFilterExpression, TApiUnlinkInquiryResultType, TFeatureWithEdition, TFieldType, TFolderName, TInputData, TNumericValidatorType, TRelationType, TUnionError, TokenizedServiceConnection, TransformItemFormats, Version, VersionHelper, VersionHelperBase, ApiConnection as default };
|
|
2995
|
+
export { ApiConnection as ApiConnectionAsNonDefaultExport, ApiFetchClient, ApiMethods, ColumnPermissionMandatoryRules, ColumnPermissionPermissionRules, CommonDataConnection, CustomizationStatsItemKeys, DateHelper, EWItem, Edition, EnumTypeEditMode, EnumTypes, ErrorHelper, ExpirationReason, Feature, FieldNames, FieldTypes, FolderNames, Functionality, GlobalSettingsNames, HttpMethod, HttpRequestError, IApiAdditionalField, IApiAvailableBundle, IApiAvailableVersionResponse, IApiBooleanResponse, IApiBoundRelation, IApiCalendar, IApiCapacityAvailableBundle, IApiCart, IApiClientVersion, IApiColumn, IApiColumnPermission, IApiCompany, IApiContact, IApiContactsSuggestion, IApiCurrencyExchangeRate, IApiCurrentUserLicenseInfo, IApiCustomizationStatsItem, IApiDataImportResponse, IApiDataResponse, IApiDatumResponse, IApiDocument, IApiEmail, IApiEnumType, IApiEnumValue, IApiEnumValuesRelation, IApiEvent, IApiFeature, IApiFeaturesLicenseBundle, IApiFlow, IApiGlobalSetting, IApiGoal, IApiGood, IApiGoodFinalPrice, IApiGoodInCart, IApiGoodInSet, IApiGroup, IApiHubItemsCountsQueryResponseItem, IApiItemBase, IApiItemBaseWithoutPrivate, IApiItemIdentifier, IApiItemUsageStatus, IApiJournal, IApiLayout, IApiLayoutsModel, IApiLead, IApiLicense, IApiLicenseBundleBase, IApiLicenseDbSizeModel, IApiLicenseExpiration, IApiLicenseKeyInvoice, IApiLicenseProductsModel, IApiLicenseSyncLicenseModel, IApiLocalizedLicenseBundle, IApiLoginResponse, IApiMarketingList, IApiModulePermission, IApiObjectType, IApiPasswordStrength, IApiPayment, IApiProject, IApiQueryAggregateColumn, IApiQueryAndFilterExpressionOperator, IApiQueryColumn, IApiQueryColumnVariation, IApiQueryEqualsFilterExpressionPredicate, IApiQueryGreaterFilterExpressionPredicate, IApiQueryGreaterOrEqualFilterExpressionPredicate, IApiQueryHubRelationSource, IApiQueryInFilterExpressionPredicate, IApiQueryJoinTableSource, IApiQueryLessFilterExpressionPredicate, IApiQueryLessOrEqualFilterExpressionPredicate, IApiQueryLikeFilterExpressionPredicate, IApiQueryMainTableSource, IApiQueryNotFilterExpression, IApiQueryOrFilterExpressionOperator, IApiQueryRelatedToFilterExpressionPredicate, IApiQueryRelationSource, IApiQuerySubstituableColumn, IApiQueryToken, IApiQueryVariatedColumn, IApiRecurrencePattern, IApiResult, IApiSaveResponse, IApiServiceAuthSettingsResponse, IApiSetFieldValueAction, IApiTask, IApiUnlinkInquiryResult, IApiUser, IApiUserSetting, IApiWebServiceTaskStatus, IApiWorkReport, IApiWorkflowActionDerivedItem, IApiWorkflowModel, IApiXsltTransformation, IApiXsltTransformationsModel, ISessionHandler, ITokenData, ITokenError, ITokenSuccess, ITokenizedApiResult, ITranslatableString, ImportResult, LicenseKeyInvoiceSeverity, LicenseRestrictionKeys, OAuthHelper, OAuthSessionHandler, OAuthSessionHandlerBase, ObjectTypeIds, OpenItemLinkHelper, QueryHelper, QuerySources, RelationTypeIds, RelationTypes, ReturnCodes, SentimentTone, StringHelper, TApiColumnPermissionMandatoryRuleOptions, TApiColumnPermissionPermissionRuleOptions, TApiItemWithReleations, TApiModulePermissionOptions, TApiQueryAggregateFunction, TApiQueryField, TApiQueryFilterExpression, TApiUnlinkInquiryResultType, TFeatureWithEdition, TFieldType, TFolderName, TInputData, TNumericValidatorType, TRelationType, TUnionError, TokenizedServiceConnection, TransformItemFormats, Version, VersionHelper, VersionHelperBase, ApiConnection as default };
|