@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-BT3G6JDY.mjs+
packages/ari/chunk-BT3G6JDY.mjsNew file+66
Index: package/packages/ari/chunk-BT3G6JDY.mjs
===================================================================
--- package/packages/ari/chunk-BT3G6JDY.mjs
+++ package/packages/ari/chunk-BT3G6JDY.mjs
@@ -0,0 +1,66 @@
+import {
+ MicrosoftSharepointDataTableAriResourceOwner,
+ MicrosoftSharepointDataTableAriResourceType
+} from "./chunk-UG6KC4SF.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/microsoft.sharepoint/data-table/manifest.ts
+var microsoftSharepointDataTableAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "third-party",
+ cloudId: new RegExp("^$"),
+ resourceOwner: MicrosoftSharepointDataTableAriResourceOwner,
+ resourceType: MicrosoftSharepointDataTableAriResourceType,
+ resourceIdSlug: "siteId/{siteId}/listId/{listId}",
+ resourceIdSegmentFormats: {
+ siteId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
+ listId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+ }
+};
+
+// src/microsoft.sharepoint/data-table/index.ts
+var MicrosoftSharepointDataTableAri = class _MicrosoftSharepointDataTableAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.resourceIdSegmentValues.siteId, this._listId = opts.resourceIdSegmentValues.listId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get listId() {
+ return this._listId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: microsoftSharepointDataTableAriStaticOpts.qualifier,
+ platformQualifier: microsoftSharepointDataTableAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: microsoftSharepointDataTableAriStaticOpts.resourceOwner,
+ resourceType: microsoftSharepointDataTableAriStaticOpts.resourceType,
+ resourceId: `siteId/${opts.siteId}/listId/${opts.listId}`,
+ resourceIdSegmentValues: {
+ siteId: opts.siteId,
+ listId: opts.listId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, microsoftSharepointDataTableAriStaticOpts);
+ return new _MicrosoftSharepointDataTableAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, microsoftSharepointDataTableAriStaticOpts);
+ return new _MicrosoftSharepointDataTableAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ listId: this.listId
+ };
+ }
+};
+
+export {
+ MicrosoftSharepointDataTableAri
+};