@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-SDIRXMWH.mjs−
packages/ari/chunk-SDIRXMWH.mjsDeleted−67
Index: package/packages/ari/chunk-SDIRXMWH.mjs
===================================================================
--- package/packages/ari/chunk-SDIRXMWH.mjs
+++ package/packages/ari/chunk-SDIRXMWH.mjs
@@ -1,67 +0,0 @@
-import {
- TownsquareTagAriResourceOwner,
- TownsquareTagAriResourceType
-} from "./chunk-7QVDZS4D.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/townsquare/tag/manifest.ts
-var townsquareTagAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: TownsquareTagAriResourceOwner,
- resourceType: TownsquareTagAriResourceType,
- resourceIdSlug: "{tagUuid}",
- resourceIdSegmentFormats: {
- tagUuid: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
- }
-};
-
-// src/townsquare/tag/index.ts
-var TownsquareTagAri = class _TownsquareTagAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._tagUuid = opts.resourceIdSegmentValues.tagUuid;
- }
- get siteId() {
- return this._siteId;
- }
- get tagUuid() {
- return this._tagUuid;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: townsquareTagAriStaticOpts.qualifier,
- platformQualifier: townsquareTagAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: townsquareTagAriStaticOpts.resourceOwner,
- resourceType: townsquareTagAriStaticOpts.resourceType,
- resourceId: `${opts.tagUuid}`,
- resourceIdSegmentValues: {
- tagUuid: opts.tagUuid
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, townsquareTagAriStaticOpts);
- return new _TownsquareTagAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, townsquareTagAriStaticOpts);
- return new _TownsquareTagAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- tagUuid: this.tagUuid
- };
- }
-};
-
-export {
- TownsquareTagAri
-};