@eway-crm/connector 1.0.182 → 1.0.183
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/AnonymousSessionHandler.d.ts +1 -2
- package/lib/cjs/ApiConnection.d.ts +6 -1
- package/lib/cjs/CredentialsSessionHandler.d.ts +1 -2
- package/lib/cjs/OAuthSessionHandlerBase.d.ts +1 -2
- package/lib/cjs/constants/ImportResult.d.ts +8 -0
- package/lib/cjs/data/EWItem.d.ts +1 -1
- package/lib/cjs/data/IApiDataImportResponse.d.ts +5 -0
- package/lib/cjs/index.d.ts +2 -2
- package/lib/esm/AnonymousSessionHandler.d.ts +1 -2
- package/lib/esm/ApiConnection.d.ts +6 -1
- package/lib/esm/CredentialsSessionHandler.d.ts +1 -2
- package/lib/esm/OAuthSessionHandlerBase.d.ts +1 -2
- package/lib/esm/constants/ImportResult.d.ts +8 -0
- package/lib/esm/data/EWItem.d.ts +1 -1
- package/lib/esm/data/IApiDataImportResponse.d.ts +5 -0
- package/lib/esm/index.d.ts +2 -2
- package/lib/index.d.ts +28 -16
- package/package.json +1 -1
- package/lib/cjs/ISessionHandler.d.ts +0 -7
- package/lib/esm/ISessionHandler.d.ts +0 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ISessionHandler } from './ISessionHandler';
|
|
1
|
+
import type { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
3
2
|
export declare class AnonymousSessionHandler implements ISessionHandler {
|
|
4
3
|
readonly getSessionId: (connection: ApiConnection, callback: (sessionId: string) => void) => void;
|
|
5
4
|
readonly invalidateSessionId: (sessionId: string, callback: () => void) => void;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import type { IApiResult } from './data/IApiResult';
|
|
3
|
-
import type { ISessionHandler } from './ISessionHandler';
|
|
4
3
|
import { HttpMethod } from './HttpMethod';
|
|
5
4
|
import type { TUnionError } from './exceptions/HttpRequestError';
|
|
6
5
|
import type { ITokenData, TInputData } from './interfaces/ITokenData';
|
|
7
6
|
import type { TFolderName } from './constants/FolderNames';
|
|
7
|
+
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
8
|
+
export interface ISessionHandler {
|
|
9
|
+
invalidateSessionId(sessionId: string, callback: () => void): void;
|
|
10
|
+
getSessionId(connection: ApiConnection, callback: (sessionId: string) => void): void;
|
|
11
|
+
lastSuccessfulLoginResponse?: IApiLoginResponse;
|
|
12
|
+
}
|
|
8
13
|
export declare class ApiConnection {
|
|
9
14
|
private readonly svcUri;
|
|
10
15
|
private readonly baseUri;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ISessionHandler } from './
|
|
2
|
-
import type { ApiConnection } from './ApiConnection';
|
|
1
|
+
import type { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
3
2
|
import type { TUnionError } from './exceptions/HttpRequestError';
|
|
4
3
|
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
5
4
|
export declare class CredentialsSessionHandler implements ISessionHandler {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ISessionHandler } from './
|
|
2
|
-
import type { ApiConnection } from './ApiConnection';
|
|
1
|
+
import type { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
3
2
|
import type { TUnionError } from './exceptions/HttpRequestError';
|
|
4
3
|
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
5
4
|
export declare abstract class OAuthSessionHandlerBase implements ISessionHandler {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum ImportResult {
|
|
2
|
+
Success = "Success",
|
|
3
|
+
SuccessNoAction = "Success_NoAction",
|
|
4
|
+
Failure = "Failed",
|
|
5
|
+
FailurePermissionForbiden = "Failed_PermissionForbiden",
|
|
6
|
+
FailureDuplicityFound = "Failed_DuplicityFound",
|
|
7
|
+
FailureItemAlreadyRemoved = "Failed_ItemAlreadyRemoved"
|
|
8
|
+
}
|
package/lib/cjs/data/EWItem.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TFolderName } from "../constants/FolderNames";
|
|
2
2
|
import type { IItemPreview } from "../interfaces/IItemPreview";
|
|
3
3
|
import type { IApiItemBase } from "./IApiItemBase";
|
|
4
4
|
export declare class EWItem<T extends IApiItemBase> {
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApiConnection } from './ApiConnection';
|
|
1
|
+
import { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
2
2
|
import { HttpMethod } from './HttpMethod';
|
|
3
|
-
import { ISessionHandler } from './ISessionHandler';
|
|
4
3
|
import { ReturnCodes } from './ReturnCodes';
|
|
5
4
|
import { ITokenizedApiResult } from './tokenizedServices/ITokenizedApiResult';
|
|
6
5
|
import { TokenizedServiceConnection } from './tokenizedServices/TokenizedServiceConnection';
|
|
@@ -53,6 +52,7 @@ export * from './data/IApiCustomizationStatsItem';
|
|
|
53
52
|
export * from './data/IApiCurrencyExchangeRate';
|
|
54
53
|
export * from './data/IApiBooleanResponse';
|
|
55
54
|
export * from './data/IApiDataResponse';
|
|
55
|
+
export * from './data/IApiDataImportResponse';
|
|
56
56
|
export * from './data/IApiDatumResponse';
|
|
57
57
|
export * from './data/IApiDocument';
|
|
58
58
|
export * from './data/IApiEmail';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ISessionHandler } from './ISessionHandler';
|
|
1
|
+
import type { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
3
2
|
export declare class AnonymousSessionHandler implements ISessionHandler {
|
|
4
3
|
readonly getSessionId: (connection: ApiConnection, callback: (sessionId: string) => void) => void;
|
|
5
4
|
readonly invalidateSessionId: (sessionId: string, callback: () => void) => void;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import type { IApiResult } from './data/IApiResult';
|
|
3
|
-
import type { ISessionHandler } from './ISessionHandler';
|
|
4
3
|
import { HttpMethod } from './HttpMethod';
|
|
5
4
|
import type { TUnionError } from './exceptions/HttpRequestError';
|
|
6
5
|
import type { ITokenData, TInputData } from './interfaces/ITokenData';
|
|
7
6
|
import type { TFolderName } from './constants/FolderNames';
|
|
7
|
+
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
8
|
+
export interface ISessionHandler {
|
|
9
|
+
invalidateSessionId(sessionId: string, callback: () => void): void;
|
|
10
|
+
getSessionId(connection: ApiConnection, callback: (sessionId: string) => void): void;
|
|
11
|
+
lastSuccessfulLoginResponse?: IApiLoginResponse;
|
|
12
|
+
}
|
|
8
13
|
export declare class ApiConnection {
|
|
9
14
|
private readonly svcUri;
|
|
10
15
|
private readonly baseUri;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ISessionHandler } from './
|
|
2
|
-
import type { ApiConnection } from './ApiConnection';
|
|
1
|
+
import type { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
3
2
|
import type { TUnionError } from './exceptions/HttpRequestError';
|
|
4
3
|
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
5
4
|
export declare class CredentialsSessionHandler implements ISessionHandler {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ISessionHandler } from './
|
|
2
|
-
import type { ApiConnection } from './ApiConnection';
|
|
1
|
+
import type { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
3
2
|
import type { TUnionError } from './exceptions/HttpRequestError';
|
|
4
3
|
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
5
4
|
export declare abstract class OAuthSessionHandlerBase implements ISessionHandler {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum ImportResult {
|
|
2
|
+
Success = "Success",
|
|
3
|
+
SuccessNoAction = "Success_NoAction",
|
|
4
|
+
Failure = "Failed",
|
|
5
|
+
FailurePermissionForbiden = "Failed_PermissionForbiden",
|
|
6
|
+
FailureDuplicityFound = "Failed_DuplicityFound",
|
|
7
|
+
FailureItemAlreadyRemoved = "Failed_ItemAlreadyRemoved"
|
|
8
|
+
}
|
package/lib/esm/data/EWItem.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TFolderName } from "../constants/FolderNames";
|
|
2
2
|
import type { IItemPreview } from "../interfaces/IItemPreview";
|
|
3
3
|
import type { IApiItemBase } from "./IApiItemBase";
|
|
4
4
|
export declare class EWItem<T extends IApiItemBase> {
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ApiConnection } from './ApiConnection';
|
|
1
|
+
import { ApiConnection, ISessionHandler } from './ApiConnection';
|
|
2
2
|
import { HttpMethod } from './HttpMethod';
|
|
3
|
-
import { ISessionHandler } from './ISessionHandler';
|
|
4
3
|
import { ReturnCodes } from './ReturnCodes';
|
|
5
4
|
import { ITokenizedApiResult } from './tokenizedServices/ITokenizedApiResult';
|
|
6
5
|
import { TokenizedServiceConnection } from './tokenizedServices/TokenizedServiceConnection';
|
|
@@ -53,6 +52,7 @@ export * from './data/IApiCustomizationStatsItem';
|
|
|
53
52
|
export * from './data/IApiCurrencyExchangeRate';
|
|
54
53
|
export * from './data/IApiBooleanResponse';
|
|
55
54
|
export * from './data/IApiDataResponse';
|
|
55
|
+
export * from './data/IApiDataImportResponse';
|
|
56
56
|
export * from './data/IApiDatumResponse';
|
|
57
57
|
export * from './data/IApiDocument';
|
|
58
58
|
export * from './data/IApiEmail';
|
package/lib/index.d.ts
CHANGED
|
@@ -6,21 +6,6 @@ interface IApiResult {
|
|
|
6
6
|
Description: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
interface IApiLoginResponse extends IApiResult {
|
|
10
|
-
SessionId: string | null;
|
|
11
|
-
UserItemGuid: string | null;
|
|
12
|
-
IsAdmin: boolean | null;
|
|
13
|
-
WcfVersion: string;
|
|
14
|
-
OutlookClientVersion: string;
|
|
15
|
-
Debug?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface ISessionHandler {
|
|
19
|
-
invalidateSessionId(sessionId: string, callback: () => void): void;
|
|
20
|
-
getSessionId(connection: ApiConnection, callback: (sessionId: string) => void): void;
|
|
21
|
-
lastSuccessfulLoginResponse?: IApiLoginResponse;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
9
|
declare enum HttpMethod {
|
|
25
10
|
get = "get",
|
|
26
11
|
post = "post"
|
|
@@ -133,6 +118,20 @@ declare class FolderNames {
|
|
|
133
118
|
static getFolderNameByEnumTypeName: (enumTypeName?: string) => TFolderName | null;
|
|
134
119
|
}
|
|
135
120
|
|
|
121
|
+
interface IApiLoginResponse extends IApiResult {
|
|
122
|
+
SessionId: string | null;
|
|
123
|
+
UserItemGuid: string | null;
|
|
124
|
+
IsAdmin: boolean | null;
|
|
125
|
+
WcfVersion: string;
|
|
126
|
+
OutlookClientVersion: string;
|
|
127
|
+
Debug?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface ISessionHandler {
|
|
131
|
+
invalidateSessionId(sessionId: string, callback: () => void): void;
|
|
132
|
+
getSessionId(connection: ApiConnection, callback: (sessionId: string) => void): void;
|
|
133
|
+
lastSuccessfulLoginResponse?: IApiLoginResponse;
|
|
134
|
+
}
|
|
136
135
|
declare class ApiConnection {
|
|
137
136
|
private readonly svcUri;
|
|
138
137
|
private readonly baseUri;
|
|
@@ -1727,6 +1726,19 @@ interface IApiDataResponse<T> extends IApiResult {
|
|
|
1727
1726
|
Data: T[];
|
|
1728
1727
|
}
|
|
1729
1728
|
|
|
1729
|
+
declare enum ImportResult {
|
|
1730
|
+
Success = "Success",
|
|
1731
|
+
SuccessNoAction = "Success_NoAction",
|
|
1732
|
+
Failure = "Failed",
|
|
1733
|
+
FailurePermissionForbiden = "Failed_PermissionForbiden",
|
|
1734
|
+
FailureDuplicityFound = "Failed_DuplicityFound",
|
|
1735
|
+
FailureItemAlreadyRemoved = "Failed_ItemAlreadyRemoved"
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
interface IApiDataImportResponse<T> extends IApiDataResponse<T> {
|
|
1739
|
+
ImportResult: ImportResult;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1730
1742
|
interface IApiDatumResponse<T> extends IApiResult {
|
|
1731
1743
|
Datum: T;
|
|
1732
1744
|
}
|
|
@@ -2428,4 +2440,4 @@ interface IApiWorkReport extends IApiItemBase {
|
|
|
2428
2440
|
Projects_ProjectGuid: string | null;
|
|
2429
2441
|
}
|
|
2430
2442
|
|
|
2431
|
-
export { ApiConnection as ApiConnectionAsNonDefaultExport, 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, 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, IApiHubItemsCountsQueryResponseItem, IApiItemBase, IApiItemBaseWithoutPrivate, IApiItemIdentifier, IApiItemUsageStatus, IApiJournal, IApiLayout, IApiLayoutsModel, 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, IApiServiceAuthSettingsResponse, IApiSetFieldValueAction, IApiTask, IApiUnlinkInquiryResult, IApiUser, IApiUserSetting, IApiWebServiceTaskStatus, IApiWorkReport, IApiWorkflowActionDerivedItem, IApiWorkflowModel, ISessionHandler, ITokenizedApiResult, ITranslatableString, LicenseKeyInvoiceSeverity, LicenseRestrictionKeys, OAuthHelper, OAuthSessionHandlerBase, ObjectTypeIds, QueryHelper, RelationTypes, ReturnCodes, SentimentTone, StringHelper, TApiColumnPermissionMandatoryRuleOptions, TApiColumnPermissionPermissionRuleOptions, TApiItemWithReleations, TApiModulePermissionOptions, TApiQueryField, TApiQueryFilterExpression, TApiUnlinkInquiryResultType, TFeatureWithEdition, TFieldType, TFolderName, TInputData, TNumericValidatorType, TRelationType, TUnionError, TokenizedServiceConnection, Version, VersionHelper, VersionHelperBase, ApiConnection as default };
|
|
2443
|
+
export { ApiConnection as ApiConnectionAsNonDefaultExport, 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, IApiCapacityAvailableBundle, IApiCart, IApiColumn, IApiColumnPermission, IApiCompany, IApiContact, IApiCurrencyExchangeRate, IApiCurrentUserLicenseInfo, IApiCustomizationStatsItem, IApiDataImportResponse, IApiDataResponse, IApiDatumResponse, IApiDocument, IApiEmail, IApiEnumType, IApiEnumValue, IApiEnumValuesRelation, IApiEvent, IApiFeature, IApiFeaturesLicenseBundle, IApiFlow, IApiGlobalSetting, IApiGoal, IApiGood, IApiGoodInCart, IApiGroup, IApiHubItemsCountsQueryResponseItem, IApiItemBase, IApiItemBaseWithoutPrivate, IApiItemIdentifier, IApiItemUsageStatus, IApiJournal, IApiLayout, IApiLayoutsModel, 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, IApiServiceAuthSettingsResponse, IApiSetFieldValueAction, IApiTask, IApiUnlinkInquiryResult, IApiUser, IApiUserSetting, IApiWebServiceTaskStatus, IApiWorkReport, IApiWorkflowActionDerivedItem, IApiWorkflowModel, ISessionHandler, ITokenizedApiResult, ITranslatableString, LicenseKeyInvoiceSeverity, LicenseRestrictionKeys, OAuthHelper, OAuthSessionHandlerBase, ObjectTypeIds, QueryHelper, RelationTypes, ReturnCodes, SentimentTone, StringHelper, TApiColumnPermissionMandatoryRuleOptions, TApiColumnPermissionPermissionRuleOptions, TApiItemWithReleations, TApiModulePermissionOptions, TApiQueryField, TApiQueryFilterExpression, TApiUnlinkInquiryResultType, TFeatureWithEdition, TFieldType, TFolderName, TInputData, TNumericValidatorType, TRelationType, TUnionError, TokenizedServiceConnection, Version, VersionHelper, VersionHelperBase, ApiConnection as default };
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ApiConnection } from './ApiConnection';
|
|
2
|
-
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
3
|
-
export interface ISessionHandler {
|
|
4
|
-
invalidateSessionId(sessionId: string, callback: () => void): void;
|
|
5
|
-
getSessionId(connection: ApiConnection, callback: (sessionId: string) => void): void;
|
|
6
|
-
lastSuccessfulLoginResponse?: IApiLoginResponse;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ApiConnection } from './ApiConnection';
|
|
2
|
-
import type { IApiLoginResponse } from './data/IApiLoginResponse';
|
|
3
|
-
export interface ISessionHandler {
|
|
4
|
-
invalidateSessionId(sessionId: string, callback: () => void): void;
|
|
5
|
-
getSessionId(connection: ApiConnection, callback: (sessionId: string) => void): void;
|
|
6
|
-
lastSuccessfulLoginResponse?: IApiLoginResponse;
|
|
7
|
-
}
|