Skip to main content

Class: AnalyticsConfigService

Hierarchy

  • Copy to Clipboard

    Copy to Clipboard

Constructors

constructor

new AnalyticsConfigService(

Copy to Clipboard
)

Parameters

NameType
Copy to Clipboard
Copy to Clipboard

Overrides

TransactionBaseService.constructor

Defined in

packages/medusa/src/services/analytics-config.ts:24

Properties

__configModule__

Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
__configModule__:
Copy to Clipboard
<
Copy to Clipboard
,
Copy to Clipboard
>

Inherited from

TransactionBaseService.__configModule__

Defined in

packages/medusa/src/interfaces/transaction-base-service.ts:10


__container__

Copy to Clipboard
Copy to Clipboard
__container__:
Copy to Clipboard

Inherited from

TransactionBaseService.__container__

Defined in

packages/medusa/src/interfaces/transaction-base-service.ts:9


analyticsConfigRepository_

Copy to Clipboard
Copy to Clipboard
analyticsConfigRepository_: typeof
Copy to Clipboard

Defined in

packages/medusa/src/services/analytics-config.ts:21


manager_

Copy to Clipboard
manager_:
Copy to Clipboard

Overrides

TransactionBaseService.manager_

Defined in

packages/medusa/src/services/analytics-config.ts:18


transactionManager_

Copy to Clipboard
transactionManager_:
Copy to Clipboard
|
Copy to Clipboard

Overrides

TransactionBaseService.transactionManager_

Defined in

packages/medusa/src/services/analytics-config.ts:19


userService_

Copy to Clipboard
Copy to Clipboard
userService_:
Copy to Clipboard

Defined in

packages/medusa/src/services/analytics-config.ts:22

Methods

atomicPhase_

Copy to Clipboard
atomicPhase_<
Copy to Clipboard
,
Copy to Clipboard
>(
Copy to Clipboard
,
Copy to Clipboard
,
Copy to Clipboard
):
Copy to Clipboard
<
Copy to Clipboard
>

Wraps some work within a transactional block. If the service already has a transaction manager attached this will be reused, otherwise a new transaction manager is created.

Type parameters

Name
Copy to Clipboard
Copy to Clipboard

Parameters

NameTypeDescription
Copy to Clipboard
(
Copy to Clipboard
:
Copy to Clipboard
) =>
Copy to Clipboard
<
Copy to Clipboard
>
the transactional work to be done
Copy to Clipboard
Copy to Clipboard
| (
Copy to Clipboard
:
Copy to Clipboard
) =>
Copy to Clipboard
<
Copy to Clipboard
|
Copy to Clipboard
>
the isolation level to be used for the work.
Copy to Clipboard
(
Copy to Clipboard
:
Copy to Clipboard
) =>
Copy to Clipboard
<
Copy to Clipboard
|
Copy to Clipboard
>
Potential error handler

Returns

Copy to Clipboard
<
Copy to Clipboard
>

the result of the transactional work

Inherited from

TransactionBaseService.atomicPhase_

Defined in

packages/medusa/src/interfaces/transaction-base-service.ts:50


create

create(

Copy to Clipboard
,
Copy to Clipboard
):
Copy to Clipboard
<
Copy to Clipboard
>

Creates an analytics config.

Parameters

NameType
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard

Returns

Copy to Clipboard
<
Copy to Clipboard
>

Defined in

packages/medusa/src/services/analytics-config.ts:56


delete

delete(

Copy to Clipboard
):
Copy to Clipboard
<
Copy to Clipboard
>

Deletes an analytics config.

Parameters

NameType
Copy to Clipboard
Copy to Clipboard

Returns

Copy to Clipboard
<
Copy to Clipboard
>

Defined in

packages/medusa/src/services/analytics-config.ts:103


retrieve

retrieve(

Copy to Clipboard
):
Copy to Clipboard
<
Copy to Clipboard
>

Parameters

NameType
Copy to Clipboard
Copy to Clipboard

Returns

Copy to Clipboard
<
Copy to Clipboard
>

Defined in

packages/medusa/src/services/analytics-config.ts:32


shouldRetryTransaction_

Copy to Clipboard
shouldRetryTransaction_(
Copy to Clipboard
):
Copy to Clipboard

Parameters

NameType
Copy to Clipboard
Copy to Clipboard
<
Copy to Clipboard
,
Copy to Clipboard
> | {
Copy to Clipboard
:
Copy to Clipboard
}

Returns

Copy to Clipboard

Inherited from

TransactionBaseService.shouldRetryTransaction_

Defined in

packages/medusa/src/interfaces/transaction-base-service.ts:31


update

update(

Copy to Clipboard
,
Copy to Clipboard
):
Copy to Clipboard
<
Copy to Clipboard
>

Updates an analytics config. If the config does not exist, it will be created instead.

Parameters

NameType
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard

Returns

Copy to Clipboard
<
Copy to Clipboard
>

Defined in

packages/medusa/src/services/analytics-config.ts:72


withTransaction

withTransaction(

Copy to Clipboard
):
Copy to Clipboard

Parameters

NameType
Copy to Clipboard
Copy to Clipboard

Returns

Inherited from

TransactionBaseService.withTransaction

Defined in

packages/medusa/src/interfaces/transaction-base-service.ts:13