@dasch-swiss/dsp-js
Version:
JavaScript library that handles API requests to Knora
54 lines • 1.79 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { EntityDefinition } from "./EntityDefinition";
/**
* Represents a property's cardinality.
*
* @category Model V2
*/
export var Cardinality;
(function (Cardinality) {
/**
* Cardinality 1 (required).
*/
Cardinality[Cardinality["_1"] = 0] = "_1";
/**
* Cardinality 0-1 (optional).
*/
Cardinality[Cardinality["_0_1"] = 1] = "_0_1";
/**
* Cardinality 0-n (may have many)
*/
Cardinality[Cardinality["_0_n"] = 2] = "_0_n";
/**
* Cardinality 1-n (at least one).
*/
Cardinality[Cardinality["_1_n"] = 3] = "_1_n";
})(Cardinality || (Cardinality = {}));
/**
* Represents a resource class.
*
* @category Internal
*/
var ClassDefinition = /** @class */ (function (_super) {
__extends(ClassDefinition, _super);
function ClassDefinition() {
return _super !== null && _super.apply(this, arguments) || this;
}
return ClassDefinition;
}(EntityDefinition));
export { ClassDefinition };
//# sourceMappingURL=class-definition.js.map