@smplkit/sdk 3.0.53 → 3.0.55

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.cjs CHANGED
@@ -16926,6 +16926,9 @@ function _eventBodyFromInput(input) {
16926
16926
  if (input.occurredAt !== void 0) {
16927
16927
  attrs.occurred_at = input.occurredAt instanceof Date ? input.occurredAt.toISOString() : input.occurredAt;
16928
16928
  }
16929
+ if (input.actorType !== void 0) attrs.actor_type = input.actorType;
16930
+ if (input.actorId !== void 0) attrs.actor_id = input.actorId;
16931
+ if (input.actorLabel !== void 0) attrs.actor_label = input.actorLabel;
16929
16932
  if (input.data !== void 0) {
16930
16933
  attrs.data = input.data;
16931
16934
  }
@@ -16940,9 +16943,9 @@ function _eventFromResource(resource) {
16940
16943
  resourceId: String(attrs.resource_id ?? ""),
16941
16944
  occurredAt: String(attrs.occurred_at ?? ""),
16942
16945
  createdAt: String(attrs.created_at ?? ""),
16943
- actorType: String(attrs.actor_type ?? ""),
16946
+ actorType: attrs.actor_type ?? null,
16944
16947
  actorId: attrs.actor_id ?? null,
16945
- actorLabel: String(attrs.actor_label ?? ""),
16948
+ actorLabel: attrs.actor_label ?? null,
16946
16949
  data: attrs.data ?? {},
16947
16950
  idempotencyKey: String(attrs.idempotency_key ?? ""),
16948
16951
  doNotForward: Boolean(attrs.do_not_forward ?? false)