@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
45 lines • 2.27 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaAppTokenStatus } from './KalturaAppTokenStatus';
import { KalturaSessionType } from './KalturaSessionType';
import { KalturaAppTokenHashType } from './KalturaAppTokenHashType';
import { KalturaObjectBase } from '../kaltura-object-base';
var KalturaAppToken = (function (_super) {
__extends(KalturaAppToken, _super);
function KalturaAppToken(data) {
return _super.call(this, data) || this;
}
KalturaAppToken.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
objectType: { type: 'c', default: 'KalturaAppToken' },
id: { type: 's', readOnly: true },
token: { type: 's', readOnly: true },
partnerId: { type: 'n', readOnly: true },
createdAt: { type: 'd', readOnly: true },
updatedAt: { type: 'd', readOnly: true },
status: { type: 'en', readOnly: true, subTypeConstructor: KalturaAppTokenStatus, subType: 'KalturaAppTokenStatus' },
expiry: { type: 'n' },
sessionType: { type: 'en', subTypeConstructor: KalturaSessionType, subType: 'KalturaSessionType' },
sessionUserId: { type: 's' },
sessionDuration: { type: 'n' },
sessionPrivileges: { type: 's' },
hashType: { type: 'es', subTypeConstructor: KalturaAppTokenHashType, subType: 'KalturaAppTokenHashType' },
description: { type: 's' }
});
return result;
};
return KalturaAppToken;
}(KalturaObjectBase));
export { KalturaAppToken };
KalturaTypesFactory.registerType('KalturaAppToken', KalturaAppToken);
//# sourceMappingURL=KalturaAppToken.js.map