@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-HC47VFXN.mjs+
packages/ari/chunk-HC47VFXN.mjsNew file+60
Index: package/packages/ari/chunk-HC47VFXN.mjs
===================================================================
--- package/packages/ari/chunk-HC47VFXN.mjs
+++ package/packages/ari/chunk-HC47VFXN.mjs
@@ -0,0 +1,60 @@
+import {
+ PlatformServicesStreamhubSchemaAriResourceOwner,
+ PlatformServicesStreamhubSchemaAriResourceType
+} from "./chunk-KM3YDOZJ.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/platform-services/streamhub-schema/manifest.ts
+var platformServicesStreamhubSchemaAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: PlatformServicesStreamhubSchemaAriResourceOwner,
+ resourceType: PlatformServicesStreamhubSchemaAriResourceType,
+ resourceIdSlug: "{streamhubSchemaId}",
+ resourceIdSegmentFormats: {
+ streamhubSchemaId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ }
+};
+
+// src/platform-services/streamhub-schema/index.ts
+var PlatformServicesStreamhubSchemaAri = class _PlatformServicesStreamhubSchemaAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._streamhubSchemaId = opts.resourceIdSegmentValues.streamhubSchemaId;
+ }
+ get streamhubSchemaId() {
+ return this._streamhubSchemaId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: platformServicesStreamhubSchemaAriStaticOpts.qualifier,
+ platformQualifier: platformServicesStreamhubSchemaAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: platformServicesStreamhubSchemaAriStaticOpts.resourceOwner,
+ resourceType: platformServicesStreamhubSchemaAriStaticOpts.resourceType,
+ resourceId: `${opts.streamhubSchemaId}`,
+ resourceIdSegmentValues: {
+ streamhubSchemaId: opts.streamhubSchemaId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, platformServicesStreamhubSchemaAriStaticOpts);
+ return new _PlatformServicesStreamhubSchemaAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, platformServicesStreamhubSchemaAriStaticOpts);
+ return new _PlatformServicesStreamhubSchemaAri(opts);
+ }
+ getVariables() {
+ return {
+ streamhubSchemaId: this.streamhubSchemaId
+ };
+ }
+};
+
+export {
+ PlatformServicesStreamhubSchemaAri
+};