@ductape/sdk 0.1.90 → 0.1.92

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.
@@ -4338,7 +4338,7 @@ class ProcessorService {
4338
4338
  if (!topic) {
4339
4339
  throw new Error(`Topic ${topicTag} not found in broker ${brokerTag}`);
4340
4340
  }
4341
- let url = topic.name;
4341
+ let url = topic.tag;
4342
4342
  if (brokerEnv.type === types_1.MessageBrokerTypes.AWS_SQS) {
4343
4343
  const queueUrl = topic.queueUrls.find((el) => el.env_slug == env.slug);
4344
4344
  if (!queueUrl) {
@@ -4349,6 +4349,14 @@ class ProcessorService {
4349
4349
  }
4350
4350
  url = queueUrl.url;
4351
4351
  }
4352
+ else if (brokerEnv.type === types_1.MessageBrokerTypes.GOOGLE_PUBSUB) {
4353
+ const cfg = brokerEnv.config;
4354
+ url = String((cfg === null || cfg === void 0 ? void 0 : cfg.topicName) || topic.tag);
4355
+ }
4356
+ else if (brokerEnv.type === types_1.MessageBrokerTypes.AZURE_SERVICE_BUS) {
4357
+ const cfg = brokerEnv.config;
4358
+ url = String((cfg === null || cfg === void 0 ? void 0 : cfg.queueName) || topic.tag);
4359
+ }
4352
4360
  /*this.logService.add({
4353
4361
  ...this.baseLogs,
4354
4362
  ...additional_logs,
@@ -4404,7 +4412,7 @@ class ProcessorService {
4404
4412
  if (!topic) {
4405
4413
  throw new Error(`Topic ${topicTag} not found in broker ${brokerTag}`);
4406
4414
  }
4407
- let url = topic.name;
4415
+ let url = topic.tag;
4408
4416
  if (brokerEnv.type === types_1.MessageBrokerTypes.AWS_SQS) {
4409
4417
  const queueUrl = topic.queueUrls.find((el) => el.env_slug == env.slug);
4410
4418
  if (!queueUrl) {
@@ -4415,6 +4423,14 @@ class ProcessorService {
4415
4423
  }
4416
4424
  url = queueUrl.url;
4417
4425
  }
4426
+ else if (brokerEnv.type === types_1.MessageBrokerTypes.GOOGLE_PUBSUB) {
4427
+ const cfg = brokerEnv.config;
4428
+ url = String((cfg === null || cfg === void 0 ? void 0 : cfg.topicName) || topic.tag);
4429
+ }
4430
+ else if (brokerEnv.type === types_1.MessageBrokerTypes.AZURE_SERVICE_BUS) {
4431
+ const cfg = brokerEnv.config;
4432
+ url = String((cfg === null || cfg === void 0 ? void 0 : cfg.queueName) || topic.tag);
4433
+ }
4418
4434
  /* this.logService.add({
4419
4435
  ...this.baseLogs,
4420
4436
  ...additional_logs,