All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.src.internal.leaderboard.js Maven / Gradle / Ivy

The newest version!
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Leaderboard = void 0;
const sdk_core_1 = require("@gomomento/sdk-core");
const leaderboard_1 = require("@gomomento/sdk-core/dist/src/internal/clients/leaderboard");
const utils_1 = require("@gomomento/sdk-core/dist/src/internal/utils");
class Leaderboard extends leaderboard_1.AbstractLeaderboard {
    constructor(dataClient, cacheName, leaderboardName) {
        try {
            (0, utils_1.validateCacheName)(cacheName);
            (0, utils_1.validateLeaderboardName)(leaderboardName);
        }
        catch (err) {
            throw new sdk_core_1.InvalidArgumentError('cache name and leaderboard name must not be empty strings');
        }
        super(cacheName, leaderboardName, dataClient);
    }
}
exports.Leaderboard = Leaderboard;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVhZGVyYm9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvbGVhZGVyYm9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsa0RBQXlEO0FBQ3pELDJGQUdtRTtBQUVuRSx1RUFHcUQ7QUFFckQsTUFBYSxXQUFZLFNBQVEsaUNBQW1CO0lBQ2xELFlBQ0UsVUFBa0MsRUFDbEMsU0FBaUIsRUFDakIsZUFBdUI7UUFFdkIsSUFBSTtZQUNGLElBQUEseUJBQWlCLEVBQUMsU0FBUyxDQUFDLENBQUM7WUFDN0IsSUFBQSwrQkFBdUIsRUFBQyxlQUFlLENBQUMsQ0FBQztTQUMxQztRQUFDLE9BQU8sR0FBRyxFQUFFO1lBQ1osTUFBTSxJQUFJLCtCQUFvQixDQUM1QiwyREFBMkQsQ0FDNUQsQ0FBQztTQUNIO1FBQ0QsS0FBSyxDQUFDLFNBQVMsRUFBRSxlQUFlLEVBQUUsVUFBVSxDQUFDLENBQUM7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