@cfxlabsinc/b2b-services
    Preparing search index...

    Bank-dashboard logo upload + persistence, shared by admin-dashboard and bank-dashboard (where bank staff edit their own bank's logos). Both upload to the shared static-assets CDN bucket, re-encoded as WebP, and stamp the resulting path onto the bank's theme jsonb.

    Index
    bankAdminService: BankAdminService
    s3Client: S3Client
    instance: (...args: []) => BankBrandingService = ...
    • Sets or, with file: null, removes one variant's logo, and deletes the object it replaces. bankAdminService.update publishes bank.bank.logoUpdated for the save.

      Parameters

      • __namedParameters: {
            bankId: string;
            file: Uint8Array<ArrayBufferLike> | null;
            variant: "light" | "dark";
        }

      Returns Promise<
          | { ok: true; value: void }
          | { error: ImageUploadError | ServiceError<"BANK_NOT_FOUND">; ok: false },
      >