@adobe-commerce/aio-toolkit 1.0.7 → 1.0.8
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/CHANGELOG.md +47 -0
- package/dist/index.js +5 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -479,7 +479,6 @@ var _FileRepository = class _FileRepository {
|
|
|
479
479
|
const existingData = JSON.parse(buffer.toString());
|
|
480
480
|
payload = { ...existingData, ...payload };
|
|
481
481
|
}
|
|
482
|
-
await filesLib.delete(filepath);
|
|
483
482
|
} else {
|
|
484
483
|
payload = {
|
|
485
484
|
id: fileId,
|
|
@@ -4360,9 +4359,7 @@ var _CreateProviders = class _CreateProviders {
|
|
|
4360
4359
|
}
|
|
4361
4360
|
try {
|
|
4362
4361
|
const providerInput = this.preparePayload(providerData, enhancedLabel);
|
|
4363
|
-
this.logger.debug(
|
|
4364
|
-
`[NEW] Creating new provider with payload: ${JSON.stringify(providerInput)}`
|
|
4365
|
-
);
|
|
4362
|
+
this.logger.debug(`[NEW] Creating new provider: ${enhancedLabel}`);
|
|
4366
4363
|
const createdProvider = await this.getProviderManager().create(providerInput);
|
|
4367
4364
|
this.logger.debug(
|
|
4368
4365
|
`[INFO] Provider created successfully! ID: ${createdProvider.id}, Instance ID: ${createdProvider.instance_id}`
|
|
@@ -4881,7 +4878,7 @@ var _CreateRegistrations = class _CreateRegistrations {
|
|
|
4881
4878
|
registrationName,
|
|
4882
4879
|
firstEvent
|
|
4883
4880
|
);
|
|
4884
|
-
this.logger.debug(`[INFO]
|
|
4881
|
+
this.logger.debug(`[INFO] Creating registration: ${registrationName}`);
|
|
4885
4882
|
const registrationSDK = this.getRegistrationManager();
|
|
4886
4883
|
const createdRegistration = await registrationSDK.create(registrationInput);
|
|
4887
4884
|
this.logger.debug("[SUCCESS] Registration created successfully!");
|
|
@@ -5447,10 +5444,7 @@ var _ConfigureProvider = class _ConfigureProvider {
|
|
|
5447
5444
|
description: provider.description,
|
|
5448
5445
|
workspace_configuration: JSON.stringify(workspaceConfig)
|
|
5449
5446
|
};
|
|
5450
|
-
this.customLogger.debug(
|
|
5451
|
-
`[DEBUG] Creating event provider:
|
|
5452
|
-
${JSON.stringify(providerData, null, 2)}`
|
|
5453
|
-
);
|
|
5447
|
+
this.customLogger.debug(`[DEBUG] Creating event provider: ${provider.label} (${provider.id})`);
|
|
5454
5448
|
const createResult = await this.eventProviderService.create(providerData);
|
|
5455
5449
|
if (!createResult.success) {
|
|
5456
5450
|
const errorMsg = `Failed to create event provider: ${createResult.error}`;
|
|
@@ -5488,8 +5482,7 @@ ${JSON.stringify(providerData, null, 2)}`
|
|
|
5488
5482
|
workspace_configuration: JSON.stringify(workspaceConfig)
|
|
5489
5483
|
};
|
|
5490
5484
|
this.customLogger.debug(
|
|
5491
|
-
`[DEBUG] Updating configuration
|
|
5492
|
-
${JSON.stringify(updateConfigPayload, null, 2)}`
|
|
5485
|
+
`[DEBUG] Updating workspace configuration for merchant: ${this.merchantId}`
|
|
5493
5486
|
);
|
|
5494
5487
|
const updateResult = await this.eventConfigurationService.update(updateConfigPayload);
|
|
5495
5488
|
if (!updateResult.success) {
|
|
@@ -5667,10 +5660,7 @@ var _OnboardCommerce = class _OnboardCommerce {
|
|
|
5667
5660
|
for (const commerceEvent of needsSubscription) {
|
|
5668
5661
|
try {
|
|
5669
5662
|
const preparedEvent = this.prepareEventPayload(commerceEvent, provider.id);
|
|
5670
|
-
this.customLogger.debug(
|
|
5671
|
-
`[DEBUG] Subscribing to event with payload:
|
|
5672
|
-
${JSON.stringify(preparedEvent.event, null, 2)}`
|
|
5673
|
-
);
|
|
5663
|
+
this.customLogger.debug(`[DEBUG] Subscribing to event: ${commerceEvent.event.name}`);
|
|
5674
5664
|
const eventSubscribeResult = await this.eventSubscriptionService.create(
|
|
5675
5665
|
preparedEvent.event
|
|
5676
5666
|
);
|