griddo-sdk 2.0.2 → 2.0.3
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/dist/index.js +38 -38
- package/package.json +1 -1
- package/dist/SDKBuilder.d.ts +0 -14
- package/dist/SDKBuilder.d.ts.map +0 -1
- package/dist/adapters/PLimitConcurrencyLimiter.d.ts +0 -27
- package/dist/adapters/PLimitConcurrencyLimiter.d.ts.map +0 -1
- package/dist/clients/FetchHttpClient.d.ts +0 -11
- package/dist/clients/FetchHttpClient.d.ts.map +0 -1
- package/dist/clients/NodeFetchHttpClient.d.ts +0 -11
- package/dist/clients/NodeFetchHttpClient.d.ts.map +0 -1
- package/dist/clients/UndiciHttpClient.d.ts +0 -13
- package/dist/clients/UndiciHttpClient.d.ts.map +0 -1
- package/dist/clients/decorators/HttpClientErrorHandler.d.ts +0 -12
- package/dist/clients/decorators/HttpClientErrorHandler.d.ts.map +0 -1
- package/dist/clients/decorators/HttpClientLogger.d.ts +0 -13
- package/dist/clients/decorators/HttpClientLogger.d.ts.map +0 -1
- package/dist/clients/decorators/HttpClientRetry.d.ts +0 -17
- package/dist/clients/decorators/HttpClientRetry.d.ts.map +0 -1
- package/dist/clients/decorators/HttpClientWithTimeout.d.ts +0 -13
- package/dist/clients/decorators/HttpClientWithTimeout.d.ts.map +0 -1
- package/dist/config/Environment.d.ts +0 -9
- package/dist/config/Environment.d.ts.map +0 -1
- package/dist/exception/AlertException.d.ts +0 -49
- package/dist/exception/AlertException.d.ts.map +0 -1
- package/dist/exception/ApiException.d.ts +0 -75
- package/dist/exception/ApiException.d.ts.map +0 -1
- package/dist/exception/AuthException.d.ts +0 -39
- package/dist/exception/AuthException.d.ts.map +0 -1
- package/dist/exception/BaseException.d.ts +0 -8
- package/dist/exception/BaseException.d.ts.map +0 -1
- package/dist/exception/ConfigException.d.ts +0 -37
- package/dist/exception/ConfigException.d.ts.map +0 -1
- package/dist/exception/CustomException.d.ts +0 -22
- package/dist/exception/CustomException.d.ts.map +0 -1
- package/dist/exception/ErrorHandlingExceptions.d.ts +0 -21
- package/dist/exception/ErrorHandlingExceptions.d.ts.map +0 -1
- package/dist/exception/ImageException.d.ts +0 -111
- package/dist/exception/ImageException.d.ts.map +0 -1
- package/dist/exception/LanguageException.d.ts +0 -51
- package/dist/exception/LanguageException.d.ts.map +0 -1
- package/dist/exception/LiveStatusException.d.ts +0 -51
- package/dist/exception/LiveStatusException.d.ts.map +0 -1
- package/dist/exception/LoggingException.d.ts +0 -39
- package/dist/exception/LoggingException.d.ts.map +0 -1
- package/dist/exception/PageException.d.ts +0 -111
- package/dist/exception/PageException.d.ts.map +0 -1
- package/dist/exception/StructuredDataException.d.ts +0 -99
- package/dist/exception/StructuredDataException.d.ts.map +0 -1
- package/dist/exception/ValidationException.d.ts +0 -51
- package/dist/exception/ValidationException.d.ts.map +0 -1
- package/dist/exception/index.d.ts +0 -13
- package/dist/exception/index.d.ts.map +0 -1
- package/dist/facades/AlertFacade.d.ts +0 -24
- package/dist/facades/AlertFacade.d.ts.map +0 -1
- package/dist/facades/AuthFacade.d.ts +0 -36
- package/dist/facades/AuthFacade.d.ts.map +0 -1
- package/dist/facades/ImageFacade.d.ts +0 -107
- package/dist/facades/ImageFacade.d.ts.map +0 -1
- package/dist/facades/LanguageFacade.d.ts +0 -44
- package/dist/facades/LanguageFacade.d.ts.map +0 -1
- package/dist/facades/LiveStatusFacade.d.ts +0 -59
- package/dist/facades/LiveStatusFacade.d.ts.map +0 -1
- package/dist/facades/PageFacade.d.ts +0 -82
- package/dist/facades/PageFacade.d.ts.map +0 -1
- package/dist/facades/StructuredDataFacade.d.ts +0 -47
- package/dist/facades/StructuredDataFacade.d.ts.map +0 -1
- package/dist/factories/HttpClientFactory.d.ts +0 -13
- package/dist/factories/HttpClientFactory.d.ts.map +0 -1
- package/dist/factories/LoggerFactory.d.ts +0 -13
- package/dist/factories/LoggerFactory.d.ts.map +0 -1
- package/dist/factories/ServiceFactory.d.ts +0 -105
- package/dist/factories/ServiceFactory.d.ts.map +0 -1
- package/dist/index.d.ts +0 -41
- package/dist/index.d.ts.map +0 -1
- package/dist/interfaces/Alert.d.ts +0 -25
- package/dist/interfaces/Alert.d.ts.map +0 -1
- package/dist/interfaces/Api.d.ts +0 -36
- package/dist/interfaces/Api.d.ts.map +0 -1
- package/dist/interfaces/Auth.d.ts +0 -17
- package/dist/interfaces/Auth.d.ts.map +0 -1
- package/dist/interfaces/ConcurrencyLimiter.d.ts +0 -18
- package/dist/interfaces/ConcurrencyLimiter.d.ts.map +0 -1
- package/dist/interfaces/Config.d.ts +0 -24
- package/dist/interfaces/Config.d.ts.map +0 -1
- package/dist/interfaces/EnvironmentManager.d.ts +0 -12
- package/dist/interfaces/EnvironmentManager.d.ts.map +0 -1
- package/dist/interfaces/ErrorHandling.d.ts +0 -22
- package/dist/interfaces/ErrorHandling.d.ts.map +0 -1
- package/dist/interfaces/GriddoSDK.d.ts +0 -47
- package/dist/interfaces/GriddoSDK.d.ts.map +0 -1
- package/dist/interfaces/HttpClient.d.ts +0 -49
- package/dist/interfaces/HttpClient.d.ts.map +0 -1
- package/dist/interfaces/ImageManager.d.ts +0 -74
- package/dist/interfaces/ImageManager.d.ts.map +0 -1
- package/dist/interfaces/LanguageManager.d.ts +0 -17
- package/dist/interfaces/LanguageManager.d.ts.map +0 -1
- package/dist/interfaces/LiveStatusManager.d.ts +0 -17
- package/dist/interfaces/LiveStatusManager.d.ts.map +0 -1
- package/dist/interfaces/Logger.d.ts +0 -31
- package/dist/interfaces/Logger.d.ts.map +0 -1
- package/dist/interfaces/PageUpdateHelpers.d.ts +0 -17
- package/dist/interfaces/PageUpdateHelpers.d.ts.map +0 -1
- package/dist/interfaces/Pageable.d.ts +0 -64
- package/dist/interfaces/Pageable.d.ts.map +0 -1
- package/dist/interfaces/StructuredData.d.ts +0 -48
- package/dist/interfaces/StructuredData.d.ts.map +0 -1
- package/dist/sdk.d.ts +0 -497
- package/dist/sdk.d.ts.map +0 -1
- package/dist/services/AlertService.d.ts +0 -10
- package/dist/services/AlertService.d.ts.map +0 -1
- package/dist/services/ApiService.d.ts +0 -15
- package/dist/services/ApiService.d.ts.map +0 -1
- package/dist/services/AuthService.d.ts +0 -10
- package/dist/services/AuthService.d.ts.map +0 -1
- package/dist/services/ConfigService.d.ts +0 -9
- package/dist/services/ConfigService.d.ts.map +0 -1
- package/dist/services/ImageService.d.ts +0 -33
- package/dist/services/ImageService.d.ts.map +0 -1
- package/dist/services/LanguageService.d.ts +0 -9
- package/dist/services/LanguageService.d.ts.map +0 -1
- package/dist/services/LiveStatusService.d.ts +0 -9
- package/dist/services/LiveStatusService.d.ts.map +0 -1
- package/dist/services/LoggingService.d.ts +0 -10
- package/dist/services/LoggingService.d.ts.map +0 -1
- package/dist/services/PageService.d.ts +0 -22
- package/dist/services/PageService.d.ts.map +0 -1
- package/dist/services/StructuredDataService.d.ts +0 -14
- package/dist/services/StructuredDataService.d.ts.map +0 -1
- package/dist/services/logging/FileLogger.d.ts +0 -18
- package/dist/services/logging/FileLogger.d.ts.map +0 -1
- package/dist/services/logging/StdoutLogger.d.ts +0 -15
- package/dist/services/logging/StdoutLogger.d.ts.map +0 -1
- package/dist/utils/validator.d.ts +0 -10
- package/dist/utils/validator.d.ts.map +0 -1
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ExceptionErrors } from "../interfaces/ErrorHandling";
|
|
2
|
-
import { SeverityError } from "../interfaces/ErrorHandling";
|
|
3
|
-
import { BaseException } from "./BaseException";
|
|
4
|
-
export type LanguageExceptionsErrors = ExceptionErrors;
|
|
5
|
-
export declare const LanguageErrors: {
|
|
6
|
-
INVALID_STRUCTURE_RESPONSE: {
|
|
7
|
-
code: number;
|
|
8
|
-
message: string;
|
|
9
|
-
severity: SeverityError.WARNING;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
13
|
-
code: number;
|
|
14
|
-
message: string;
|
|
15
|
-
severity: SeverityError.WARNING;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
interface LanguageErrorParams {
|
|
20
|
-
context: string;
|
|
21
|
-
error: string | object;
|
|
22
|
-
detail: (typeof LanguageErrors)[keyof typeof LanguageErrors];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents a validation error that occurs when input data is invalid.
|
|
26
|
-
*/
|
|
27
|
-
export declare class LanguageException extends BaseException {
|
|
28
|
-
static internalErrors: {
|
|
29
|
-
INVALID_STRUCTURE_RESPONSE: {
|
|
30
|
-
code: number;
|
|
31
|
-
message: string;
|
|
32
|
-
severity: SeverityError.WARNING;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
36
|
-
code: number;
|
|
37
|
-
message: string;
|
|
38
|
-
severity: SeverityError.WARNING;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Creates an instance of LanguageError.
|
|
44
|
-
* @param message - The error message.
|
|
45
|
-
* @param error
|
|
46
|
-
* @param detail
|
|
47
|
-
*/
|
|
48
|
-
constructor({ context, error, detail }: LanguageErrorParams);
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
51
|
-
//# sourceMappingURL=LanguageException.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageException.d.ts","sourceRoot":"","sources":["../../src/exception/LanguageException.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;AAEvD,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAaS,CAAC;AAErC,UAAU,mBAAmB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;CAC7D;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;IACnD,MAAM,CAAC,cAAc;;;;;;;;;;;;;MAAkB;IACvC;;;;;OAKG;gBACS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,mBAAmB;CAI3D"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ExceptionErrors } from "../interfaces/ErrorHandling";
|
|
2
|
-
import { SeverityError } from "../interfaces/ErrorHandling";
|
|
3
|
-
import { BaseException } from "./BaseException";
|
|
4
|
-
export type LiveStatusExceptionsErrors = ExceptionErrors;
|
|
5
|
-
export declare const LiveStatusErrors: {
|
|
6
|
-
INVALID_ARRAY_RESPONSE: {
|
|
7
|
-
code: number;
|
|
8
|
-
message: string;
|
|
9
|
-
severity: SeverityError.WARNING;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
13
|
-
code: number;
|
|
14
|
-
message: string;
|
|
15
|
-
severity: SeverityError.WARNING;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
interface LiveStatusErrorParams {
|
|
20
|
-
context: string;
|
|
21
|
-
error: string | object;
|
|
22
|
-
detail: (typeof LiveStatusErrors)[keyof typeof LiveStatusErrors];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents a validation error that occurs when input data is invalid.
|
|
26
|
-
*/
|
|
27
|
-
export declare class LiveStatusException extends BaseException {
|
|
28
|
-
static internalErrors: {
|
|
29
|
-
INVALID_ARRAY_RESPONSE: {
|
|
30
|
-
code: number;
|
|
31
|
-
message: string;
|
|
32
|
-
severity: SeverityError.WARNING;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
36
|
-
code: number;
|
|
37
|
-
message: string;
|
|
38
|
-
severity: SeverityError.WARNING;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Creates an instance of LiveStatusError.
|
|
44
|
-
* @param message - The error message.
|
|
45
|
-
* @param error
|
|
46
|
-
* @param detail
|
|
47
|
-
*/
|
|
48
|
-
constructor({ context, error, detail }: LiveStatusErrorParams);
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
51
|
-
//# sourceMappingURL=LiveStatusException.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiveStatusException.d.ts","sourceRoot":"","sources":["../../src/exception/LiveStatusException.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC;AAEzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAaS,CAAC;AAEvC,UAAU,qBAAqB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;CACjE;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACrD,MAAM,CAAC,cAAc;;;;;;;;;;;;;MAAoB;IACzC;;;;;OAKG;gBACS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAI7D"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ExceptionErrors } from "../interfaces/ErrorHandling";
|
|
2
|
-
import { SeverityError } from "../interfaces/ErrorHandling";
|
|
3
|
-
import { BaseException } from "./BaseException";
|
|
4
|
-
export type LoggingExceptionsErrors = ExceptionErrors;
|
|
5
|
-
export declare const LoggingErrors: {
|
|
6
|
-
INVALID_ARRAY_RESPONSE: {
|
|
7
|
-
code: number;
|
|
8
|
-
message: string;
|
|
9
|
-
severity: SeverityError.WARNING;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
interface LoggingErrorParams {
|
|
14
|
-
context: string;
|
|
15
|
-
error: string | object;
|
|
16
|
-
detail: (typeof LoggingErrors)[keyof typeof LoggingErrors];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Represents a validation error that occurs when input data is invalid.
|
|
20
|
-
*/
|
|
21
|
-
export declare class LoggingException extends BaseException {
|
|
22
|
-
static internalErrors: {
|
|
23
|
-
INVALID_ARRAY_RESPONSE: {
|
|
24
|
-
code: number;
|
|
25
|
-
message: string;
|
|
26
|
-
severity: SeverityError.WARNING;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Creates an instance of LoggingError.
|
|
32
|
-
* @param message - The error message.
|
|
33
|
-
* @param error
|
|
34
|
-
* @param detail
|
|
35
|
-
*/
|
|
36
|
-
constructor({ context, error, detail }: LoggingErrorParams);
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
39
|
-
//# sourceMappingURL=LoggingException.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoggingException.d.ts","sourceRoot":"","sources":["../../src/exception/LoggingException.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC;AAEtD,eAAO,MAAM,aAAa;;;;;;;CAOS,CAAC;AAEpC,UAAU,kBAAkB;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;CAC3D;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;IAClD,MAAM,CAAC,cAAc;;;;;;;MAAiB;IACtC;;;;;OAKG;gBACS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,kBAAkB;CAI1D"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import type { ExceptionErrors } from "../interfaces/ErrorHandling";
|
|
2
|
-
import { SeverityError } from "../interfaces/ErrorHandling";
|
|
3
|
-
import { BaseException } from "./BaseException";
|
|
4
|
-
export type PageExceptionsErrors = ExceptionErrors;
|
|
5
|
-
export declare const PageExceptionsErrors: {
|
|
6
|
-
EXPECTED_PAGE_OBJECT: {
|
|
7
|
-
code: number;
|
|
8
|
-
message: string;
|
|
9
|
-
severity: SeverityError.WARNING;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
REQUIRED_PAGE_PROPERTIES: {
|
|
13
|
-
code: number;
|
|
14
|
-
message: string;
|
|
15
|
-
severity: SeverityError.WARNING;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
REQUIRED_MODULE_NAME: {
|
|
19
|
-
code: number;
|
|
20
|
-
severity: SeverityError.WARNING;
|
|
21
|
-
message: string;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
REQUIRED_PAGE: {
|
|
25
|
-
code: number;
|
|
26
|
-
message: string;
|
|
27
|
-
severity: SeverityError.WARNING;
|
|
28
|
-
description: string;
|
|
29
|
-
};
|
|
30
|
-
REQUIRED_TEMPLATE_NAME: {
|
|
31
|
-
code: number;
|
|
32
|
-
message: string;
|
|
33
|
-
severity: SeverityError.WARNING;
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
REQUIRED_ID_PARAM: {
|
|
37
|
-
code: number;
|
|
38
|
-
message: string;
|
|
39
|
-
severity: SeverityError.WARNING;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
43
|
-
code: number;
|
|
44
|
-
message: string;
|
|
45
|
-
severity: SeverityError.WARNING;
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
interface PageErrorParams {
|
|
50
|
-
context: string;
|
|
51
|
-
error: string | object;
|
|
52
|
-
detail: (typeof PageExceptionsErrors)[keyof typeof PageExceptionsErrors];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Represents a validation error that occurs when input data is invalid.
|
|
56
|
-
*/
|
|
57
|
-
export declare class PageException extends BaseException {
|
|
58
|
-
static internalErrors: {
|
|
59
|
-
EXPECTED_PAGE_OBJECT: {
|
|
60
|
-
code: number;
|
|
61
|
-
message: string;
|
|
62
|
-
severity: SeverityError.WARNING;
|
|
63
|
-
description: string;
|
|
64
|
-
};
|
|
65
|
-
REQUIRED_PAGE_PROPERTIES: {
|
|
66
|
-
code: number;
|
|
67
|
-
message: string;
|
|
68
|
-
severity: SeverityError.WARNING;
|
|
69
|
-
description: string;
|
|
70
|
-
};
|
|
71
|
-
REQUIRED_MODULE_NAME: {
|
|
72
|
-
code: number;
|
|
73
|
-
severity: SeverityError.WARNING;
|
|
74
|
-
message: string;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
REQUIRED_PAGE: {
|
|
78
|
-
code: number;
|
|
79
|
-
message: string;
|
|
80
|
-
severity: SeverityError.WARNING;
|
|
81
|
-
description: string;
|
|
82
|
-
};
|
|
83
|
-
REQUIRED_TEMPLATE_NAME: {
|
|
84
|
-
code: number;
|
|
85
|
-
message: string;
|
|
86
|
-
severity: SeverityError.WARNING;
|
|
87
|
-
description: string;
|
|
88
|
-
};
|
|
89
|
-
REQUIRED_ID_PARAM: {
|
|
90
|
-
code: number;
|
|
91
|
-
message: string;
|
|
92
|
-
severity: SeverityError.WARNING;
|
|
93
|
-
description: string;
|
|
94
|
-
};
|
|
95
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
96
|
-
code: number;
|
|
97
|
-
message: string;
|
|
98
|
-
severity: SeverityError.WARNING;
|
|
99
|
-
description: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Creates an instance of PageError.
|
|
104
|
-
* @param message - The error message.
|
|
105
|
-
* @param error
|
|
106
|
-
* @param detail
|
|
107
|
-
*/
|
|
108
|
-
constructor({ context, error, detail }: PageErrorParams);
|
|
109
|
-
}
|
|
110
|
-
export {};
|
|
111
|
-
//# sourceMappingURL=PageException.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageException.d.ts","sourceRoot":"","sources":["../../src/exception/PageException.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAEnD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDD,CAAC;AAEjC,UAAU,eAAe;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;CACzE;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,aAAa;IAC/C,MAAM,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAwB;IAE7C;;;;;OAKG;gBACS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,eAAe;CAIvD"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { ExceptionErrors } from "../interfaces/ErrorHandling";
|
|
2
|
-
import { SeverityError } from "../interfaces/ErrorHandling";
|
|
3
|
-
import { BaseException } from "./BaseException";
|
|
4
|
-
export type StructuredDataExceptionsErrors = ExceptionErrors;
|
|
5
|
-
export declare const StructuredDataErrors: {
|
|
6
|
-
REQUIRED_STRUCTURE_DATA_PROPERTIES: {
|
|
7
|
-
code: number;
|
|
8
|
-
message: string;
|
|
9
|
-
severity: SeverityError.WARNING;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
REQUIRED_PAGINATION_PROPERTIES: {
|
|
13
|
-
code: number;
|
|
14
|
-
message: string;
|
|
15
|
-
severity: SeverityError.WARNING;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
INVALID_PROPERTIES: {
|
|
19
|
-
code: number;
|
|
20
|
-
message: string;
|
|
21
|
-
severity: SeverityError.WARNING;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
REQUIRED_ID_PARAM: {
|
|
25
|
-
code: number;
|
|
26
|
-
message: string;
|
|
27
|
-
severity: SeverityError.WARNING;
|
|
28
|
-
description: string;
|
|
29
|
-
};
|
|
30
|
-
REQUIRED_CONTENT_TYPE_PARAM: {
|
|
31
|
-
code: number;
|
|
32
|
-
message: string;
|
|
33
|
-
severity: SeverityError.WARNING;
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
37
|
-
code: number;
|
|
38
|
-
message: string;
|
|
39
|
-
severity: SeverityError.WARNING;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
interface StructuredDataErrorParams {
|
|
44
|
-
context: string;
|
|
45
|
-
error: string | object;
|
|
46
|
-
detail: (typeof StructuredDataErrors)[keyof typeof StructuredDataErrors];
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Represents a validation error that occurs when input data is invalid.
|
|
50
|
-
*/
|
|
51
|
-
export declare class StructuredDataException extends BaseException {
|
|
52
|
-
static internalErrors: {
|
|
53
|
-
REQUIRED_STRUCTURE_DATA_PROPERTIES: {
|
|
54
|
-
code: number;
|
|
55
|
-
message: string;
|
|
56
|
-
severity: SeverityError.WARNING;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
REQUIRED_PAGINATION_PROPERTIES: {
|
|
60
|
-
code: number;
|
|
61
|
-
message: string;
|
|
62
|
-
severity: SeverityError.WARNING;
|
|
63
|
-
description: string;
|
|
64
|
-
};
|
|
65
|
-
INVALID_PROPERTIES: {
|
|
66
|
-
code: number;
|
|
67
|
-
message: string;
|
|
68
|
-
severity: SeverityError.WARNING;
|
|
69
|
-
description: string;
|
|
70
|
-
};
|
|
71
|
-
REQUIRED_ID_PARAM: {
|
|
72
|
-
code: number;
|
|
73
|
-
message: string;
|
|
74
|
-
severity: SeverityError.WARNING;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
REQUIRED_CONTENT_TYPE_PARAM: {
|
|
78
|
-
code: number;
|
|
79
|
-
message: string;
|
|
80
|
-
severity: SeverityError.WARNING;
|
|
81
|
-
description: string;
|
|
82
|
-
};
|
|
83
|
-
REQUIRED_API_SERVICE_PROPERTY: {
|
|
84
|
-
code: number;
|
|
85
|
-
message: string;
|
|
86
|
-
severity: SeverityError.WARNING;
|
|
87
|
-
description: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Creates an instance of StructuredDataError.
|
|
92
|
-
* @param message - The error message.
|
|
93
|
-
* @param error
|
|
94
|
-
* @param detail
|
|
95
|
-
*/
|
|
96
|
-
constructor({ context, error, detail }: StructuredDataErrorParams);
|
|
97
|
-
}
|
|
98
|
-
export {};
|
|
99
|
-
//# sourceMappingURL=StructuredDataException.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StructuredDataException.d.ts","sourceRoot":"","sources":["../../src/exception/StructuredDataException.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,8BAA8B,GAAG,eAAe,CAAC;AAE7D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCS,CAAC;AAE3C,UAAU,yBAAyB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;CACzE;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IACzD,MAAM,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAwB;IAC7C;;;;;OAKG;gBACS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,yBAAyB;CAIjE"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ExceptionErrors } from "../interfaces/ErrorHandling";
|
|
2
|
-
import { SeverityError } from "../interfaces/ErrorHandling";
|
|
3
|
-
import { BaseException } from "./BaseException";
|
|
4
|
-
export type ValidationExceptionsErrors = ExceptionErrors;
|
|
5
|
-
export declare const ValidationExceptionsErrors: {
|
|
6
|
-
EXPECTED_AN_ARRAY_OF_NUMBERS: {
|
|
7
|
-
code: number;
|
|
8
|
-
message: string;
|
|
9
|
-
severity: SeverityError.WARNING;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
REQUIRED_CALLBACK_FUNCTION: {
|
|
13
|
-
code: number;
|
|
14
|
-
message: string;
|
|
15
|
-
severity: SeverityError.WARNING;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
interface ValidationErrorParams {
|
|
20
|
-
context: string;
|
|
21
|
-
error: string | object;
|
|
22
|
-
detail: (typeof ValidationExceptionsErrors)[keyof typeof ValidationExceptionsErrors];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents a validation error that occurs when input data is invalid.
|
|
26
|
-
*/
|
|
27
|
-
export declare class ValidationException extends BaseException {
|
|
28
|
-
static internalErrors: {
|
|
29
|
-
EXPECTED_AN_ARRAY_OF_NUMBERS: {
|
|
30
|
-
code: number;
|
|
31
|
-
message: string;
|
|
32
|
-
severity: SeverityError.WARNING;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
REQUIRED_CALLBACK_FUNCTION: {
|
|
36
|
-
code: number;
|
|
37
|
-
message: string;
|
|
38
|
-
severity: SeverityError.WARNING;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Creates an instance of ValidationError.
|
|
44
|
-
* @param message - The error message.
|
|
45
|
-
* @param error
|
|
46
|
-
* @param detail
|
|
47
|
-
*/
|
|
48
|
-
constructor({ context, error, detail }: ValidationErrorParams);
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
51
|
-
//# sourceMappingURL=ValidationException.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationException.d.ts","sourceRoot":"","sources":["../../src/exception/ValidationException.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC;AAEzD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAcD,CAAC;AAEvC,UAAU,qBAAqB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;CACrF;AAED;;GAEG;AAEH,qBAAa,mBAAoB,SAAQ,aAAa;IACrD,MAAM,CAAC,cAAc;;;;;;;;;;;;;MAA8B;IAEnD;;;;;OAKG;gBACS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAI7D"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from "./AlertException";
|
|
2
|
-
export * from "./ApiException";
|
|
3
|
-
export * from "./AuthException";
|
|
4
|
-
export * from "./ConfigException";
|
|
5
|
-
export * from "./CustomException";
|
|
6
|
-
export * from "./ImageException";
|
|
7
|
-
export * from "./LanguageException";
|
|
8
|
-
export * from "./LiveStatusException";
|
|
9
|
-
export * from "./LoggingException";
|
|
10
|
-
export * from "./PageException";
|
|
11
|
-
export * from "./StructuredDataException";
|
|
12
|
-
export * from "./ValidationException";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exception/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ApiResponse, PaginatedLogsResponse, PaginateParamsAlert, RequestAlert } from "../sdk";
|
|
2
|
-
import type { Alertable } from "../interfaces/Alert";
|
|
3
|
-
import { AlertService } from "../services/AlertService";
|
|
4
|
-
import type { LoggingService } from "../services/LoggingService";
|
|
5
|
-
/**
|
|
6
|
-
* Facade for managing alerts.
|
|
7
|
-
*
|
|
8
|
-
* This facade provides a simplified interface for sending alerts,
|
|
9
|
-
* delegating the actual logic to the `AlertService`.
|
|
10
|
-
*/
|
|
11
|
-
export declare class AlertFacade implements Alertable {
|
|
12
|
-
private readonly alertService;
|
|
13
|
-
private readonly loggingService;
|
|
14
|
-
/**
|
|
15
|
-
* Constructs an instance of AlertFacade.
|
|
16
|
-
*
|
|
17
|
-
* @param alertService - The service used to send alerts.
|
|
18
|
-
* @param loggingService - The service used to manager log.
|
|
19
|
-
*/
|
|
20
|
-
constructor(alertService: AlertService, loggingService: LoggingService);
|
|
21
|
-
send(alert: RequestAlert): Promise<ApiResponse>;
|
|
22
|
-
paginate<TAlert>(params: PaginateParamsAlert): Promise<PaginatedLogsResponse<TAlert>>;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=AlertFacade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertFacade.d.ts","sourceRoot":"","sources":["../../src/facades/AlertFacade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK/D;;;;;GAKG;AACH,qBAAa,WAAY,YAAW,SAAS;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEhD;;;;;OAKG;gBACS,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAazD,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAqB/C,QAAQ,CAAC,MAAM,EAC3B,MAAM,EAAE,mBAAmB,GACzB,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;CAGzC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Auth } from "../interfaces/Auth";
|
|
2
|
-
import type { AuthService } from "../services/AuthService";
|
|
3
|
-
import type { ConfigService } from "../services/ConfigService";
|
|
4
|
-
import type { LoggingService } from "../services/LoggingService";
|
|
5
|
-
import { TokenResponse } from "../sdk";
|
|
6
|
-
/**
|
|
7
|
-
* Facade for handling authentication and initial setup.
|
|
8
|
-
*
|
|
9
|
-
* This facade simplifies the process of authenticating and connecting
|
|
10
|
-
* to the service by orchestrating multiple underlying services.
|
|
11
|
-
*/
|
|
12
|
-
export declare class AuthFacade implements Auth {
|
|
13
|
-
private readonly authService;
|
|
14
|
-
private readonly configService;
|
|
15
|
-
private readonly loggingService;
|
|
16
|
-
/**
|
|
17
|
-
* Constructs an instance of AuthFacade.
|
|
18
|
-
*
|
|
19
|
-
* @param authService - The service responsible for authentication.
|
|
20
|
-
* @param configService - The service for managing configuration and environment settings.
|
|
21
|
-
* @param loggingService
|
|
22
|
-
*/
|
|
23
|
-
constructor(authService: AuthService, configService: ConfigService, loggingService: LoggingService);
|
|
24
|
-
authenticate(): Promise<TokenResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Connects to the service and retrieves initial data.
|
|
27
|
-
*
|
|
28
|
-
* This method authenticates the user, configures the environment, and fetches
|
|
29
|
-
* the available languages and live statuses from the service.
|
|
30
|
-
*
|
|
31
|
-
* @returns A promise that resolves to an object containing available languages and live statuses.
|
|
32
|
-
* @throws Will throw an error if any of the operations (authentication, fetching languages, or fetching live statuses) fail.
|
|
33
|
-
*/
|
|
34
|
-
connect(): Promise<void>;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=AuthFacade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthFacade.d.ts","sourceRoot":"","sources":["../../src/facades/AuthFacade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C;;;;;GAKG;AACH,qBAAa,UAAW,YAAW,IAAI;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEhD;;;;;;OAMG;gBAEF,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc;IAelB,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC;IAiBnD;;;;;;;;OAQG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAerC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { ApiResponse, ImageDetail, ImageDetailParams, ImageList, ImagePagePaginateParams, ImageUpdateData } from "../sdk";
|
|
2
|
-
import { Readable } from "stream";
|
|
3
|
-
import type { ImageManager } from "../interfaces/ImageManager";
|
|
4
|
-
import type { ImageService } from "../services/ImageService";
|
|
5
|
-
import type { LoggingService } from "../services/LoggingService";
|
|
6
|
-
/**
|
|
7
|
-
* Facade class for managing images.
|
|
8
|
-
* Implements the ImageManager interface and provides methods for image manipulation
|
|
9
|
-
* such as retrieval, addition, update, deletion, and replacement.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ImageFacade implements ImageManager {
|
|
12
|
-
private readonly imageService;
|
|
13
|
-
private readonly loggingService;
|
|
14
|
-
/**
|
|
15
|
-
* Constructs an instance of the ImageFacade.
|
|
16
|
-
*
|
|
17
|
-
* @param imageService - Service for handling image operations.
|
|
18
|
-
* @param loggingService - Service for logging operations.
|
|
19
|
-
* @throws {ImageException} Throws an error if the required ImageService is not provided.
|
|
20
|
-
*/
|
|
21
|
-
constructor(imageService: ImageService, loggingService: LoggingService);
|
|
22
|
-
/**
|
|
23
|
-
* Validates that the provided ID is valid.
|
|
24
|
-
*
|
|
25
|
-
* @param id - The ID to be validated.
|
|
26
|
-
* @throws {ImageException} Throws an error if the ID is invalid or missing.
|
|
27
|
-
*/
|
|
28
|
-
private validateID;
|
|
29
|
-
/**
|
|
30
|
-
* Validates that the provided image is a readable stream.
|
|
31
|
-
*
|
|
32
|
-
* @param image - The image stream to validate.
|
|
33
|
-
* @throws {ImageException} Throws an error if the image is not a readable stream or is missing.
|
|
34
|
-
*/
|
|
35
|
-
private validateImage;
|
|
36
|
-
/**
|
|
37
|
-
* Adds a new image to the system.
|
|
38
|
-
*
|
|
39
|
-
* @param image - The image data as a readable stream.
|
|
40
|
-
* @param imageName - The name of the image.
|
|
41
|
-
* @param site - The site identifier to which the image belongs.
|
|
42
|
-
* @param mimetype - The MIME type of the image.
|
|
43
|
-
* @returns A Promise resolving to the detailed information of the newly added image.
|
|
44
|
-
* @throws {ImageException} Throws an error if the image or mimetype are invalid.
|
|
45
|
-
*/
|
|
46
|
-
add({ image, imageName, site, mimetype, }: {
|
|
47
|
-
image: Readable;
|
|
48
|
-
imageName: string;
|
|
49
|
-
site?: number | "global";
|
|
50
|
-
mimetype?: string;
|
|
51
|
-
}): Promise<ImageDetail>;
|
|
52
|
-
/**
|
|
53
|
-
* Retrieves image details by its ID.
|
|
54
|
-
*
|
|
55
|
-
* @param id - The unique identifier of the image.
|
|
56
|
-
* @param params - Optional parameters to retrieve the image details.
|
|
57
|
-
* @returns A Promise resolving to the detailed image information.
|
|
58
|
-
* @throws {ImageException} Throws an error if the ID is invalid.
|
|
59
|
-
*/
|
|
60
|
-
byID(id: number, params?: ImageDetailParams): Promise<ImageDetail>;
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves a paginated list of images based on query parameters.
|
|
63
|
-
*
|
|
64
|
-
* @param queryParams - The query parameters for pagination and filtering.
|
|
65
|
-
* @param site - The site identifier to filter the images.
|
|
66
|
-
* @param language - The language code to filter the images.
|
|
67
|
-
* @returns A Promise resolving to a paginated list of images.
|
|
68
|
-
* @throws {ImageException} Throws an error if required query parameters are missing.
|
|
69
|
-
*/
|
|
70
|
-
paginate({ queryParams, site, language, }: ImagePagePaginateParams): Promise<ImageList>;
|
|
71
|
-
/**
|
|
72
|
-
* Replaces an existing image with a new one.
|
|
73
|
-
*
|
|
74
|
-
* @param id - The unique identifier of the image to be replaced.
|
|
75
|
-
* @param image - The new image data as a readable stream.
|
|
76
|
-
* @param mimetype - The MIME type of the new image.
|
|
77
|
-
* @param site
|
|
78
|
-
* @returns A Promise resolving to the updated image details after replacement.
|
|
79
|
-
* @throws {ImageException} Throws an error if the ID, image, or mimetype are invalid.
|
|
80
|
-
*/
|
|
81
|
-
replace({ id, image, site, }: {
|
|
82
|
-
id: number;
|
|
83
|
-
image: Readable;
|
|
84
|
-
site?: number | "global";
|
|
85
|
-
}): Promise<ImageDetail>;
|
|
86
|
-
/**
|
|
87
|
-
* Updates metadata of an existing image.
|
|
88
|
-
*
|
|
89
|
-
* @param id - The unique identifier of the image to be updated.
|
|
90
|
-
* @param params - The updated data for the image.
|
|
91
|
-
* @returns A Promise resolving to the updated image details.
|
|
92
|
-
* @throws {ImageException} Throws an error if required parameters are missing.
|
|
93
|
-
*/
|
|
94
|
-
updateData({ id, params, }: {
|
|
95
|
-
id: number;
|
|
96
|
-
params: ImageUpdateData;
|
|
97
|
-
}): Promise<ImageDetail>;
|
|
98
|
-
/**
|
|
99
|
-
* Deletes an image by its ID.
|
|
100
|
-
*
|
|
101
|
-
* @param id - The unique identifier of the image to be deleted.
|
|
102
|
-
* @returns A Promise resolving to the API response after deletion.
|
|
103
|
-
* @throws {ImageException} Throws an error if the ID is invalid.
|
|
104
|
-
*/
|
|
105
|
-
delete(id: number): Promise<ApiResponse>;
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=ImageFacade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageFacade.d.ts","sourceRoot":"","sources":["../../src/facades/ImageFacade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,uBAAuB,EACvB,eAAe,EACf,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D;;;;GAIG;AACH,qBAAa,WAAY,YAAW,YAAY;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEhD;;;;;;OAMG;gBACS,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAqBtE;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAYlB;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAYrB;;;;;;;;;OASG;IACU,GAAG,CAAC,EAChB,KAAK,EACL,SAAS,EACT,IAAe,EACf,QAAQ,GACR,EAAE;QACF,KAAK,EAAE,QAAQ,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,WAAW,CAAC;IAexB;;;;;;;OAOG;IACU,IAAI,CAChB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,WAAW,CAAC;IAMvB;;;;;;;;OAQG;IACU,QAAQ,CAAC,EACrB,WAAW,EACX,IAAI,EACJ,QAAQ,GACR,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC;IAuB/C;;;;;;;;;OASG;IACU,OAAO,CAAC,EACpB,EAAE,EACF,KAAK,EACL,IAAe,GACf,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,QAAQ,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;KACzB,GAAG,OAAO,CAAC,WAAW,CAAC;IAexB;;;;;;;OAOG;IACU,UAAU,CAAC,EACvB,EAAE,EACF,MAAM,GACN,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,eAAe,CAAC;KACxB,GAAG,OAAO,CAAC,WAAW,CAAC;IAsBxB;;;;;;OAMG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAQrD"}
|