@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-GCYCNSFD.mjs+
packages/ari/chunk-GCYCNSFD.mjsNew file+60
Index: package/packages/ari/chunk-GCYCNSFD.mjs
===================================================================
--- package/packages/ari/chunk-GCYCNSFD.mjs
+++ package/packages/ari/chunk-GCYCNSFD.mjs
@@ -0,0 +1,60 @@
+import {
+ WorkdayWorkdayWorkerAriResourceOwner,
+ WorkdayWorkdayWorkerAriResourceType
+} from "./chunk-AT3AV22J.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/workday.workday/worker/manifest.ts
+var workdayWorkdayWorkerAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "third-party",
+ cloudId: new RegExp("^$"),
+ resourceOwner: WorkdayWorkdayWorkerAriResourceOwner,
+ resourceType: WorkdayWorkdayWorkerAriResourceType,
+ resourceIdSlug: "{workdayId}",
+ resourceIdSegmentFormats: {
+ workdayId: /[a-zA-Z0-9_-]+/
+ }
+};
+
+// src/workday.workday/worker/index.ts
+var WorkdayWorkdayWorkerAri = class _WorkdayWorkdayWorkerAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._workdayId = opts.resourceIdSegmentValues.workdayId;
+ }
+ get workdayId() {
+ return this._workdayId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: workdayWorkdayWorkerAriStaticOpts.qualifier,
+ platformQualifier: workdayWorkdayWorkerAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: workdayWorkdayWorkerAriStaticOpts.resourceOwner,
+ resourceType: workdayWorkdayWorkerAriStaticOpts.resourceType,
+ resourceId: `${opts.workdayId}`,
+ resourceIdSegmentValues: {
+ workdayId: opts.workdayId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, workdayWorkdayWorkerAriStaticOpts);
+ return new _WorkdayWorkdayWorkerAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, workdayWorkdayWorkerAriStaticOpts);
+ return new _WorkdayWorkdayWorkerAri(opts);
+ }
+ getVariables() {
+ return {
+ workdayId: this.workdayId
+ };
+ }
+};
+
+export {
+ WorkdayWorkdayWorkerAri
+};