@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-IB2GRZMD.mjs+
packages/ari/chunk-IB2GRZMD.mjsNew file+66
Index: package/packages/ari/chunk-IB2GRZMD.mjs
===================================================================
--- package/packages/ari/chunk-IB2GRZMD.mjs
+++ package/packages/ari/chunk-IB2GRZMD.mjs
@@ -0,0 +1,66 @@
+import {
+ WorkdayCostCenterAriResourceOwner,
+ WorkdayCostCenterAriResourceType
+} from "./chunk-4UYKCLC2.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/workday/cost-center/manifest.ts
+var workdayCostCenterAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "third-party",
+ cloudId: new RegExp("^$"),
+ resourceOwner: WorkdayCostCenterAriResourceOwner,
+ resourceType: WorkdayCostCenterAriResourceType,
+ resourceIdSlug: "{workdayTenantKey}/{costCenterWorkdayId}",
+ resourceIdSegmentFormats: {
+ workdayTenantKey: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
+ costCenterWorkdayId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ }
+};
+
+// src/workday/cost-center/index.ts
+var WorkdayCostCenterAri = class _WorkdayCostCenterAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._workdayTenantKey = opts.resourceIdSegmentValues.workdayTenantKey, this._costCenterWorkdayId = opts.resourceIdSegmentValues.costCenterWorkdayId;
+ }
+ get workdayTenantKey() {
+ return this._workdayTenantKey;
+ }
+ get costCenterWorkdayId() {
+ return this._costCenterWorkdayId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: workdayCostCenterAriStaticOpts.qualifier,
+ platformQualifier: workdayCostCenterAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: workdayCostCenterAriStaticOpts.resourceOwner,
+ resourceType: workdayCostCenterAriStaticOpts.resourceType,
+ resourceId: `${opts.workdayTenantKey}/${opts.costCenterWorkdayId}`,
+ resourceIdSegmentValues: {
+ workdayTenantKey: opts.workdayTenantKey,
+ costCenterWorkdayId: opts.costCenterWorkdayId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, workdayCostCenterAriStaticOpts);
+ return new _WorkdayCostCenterAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, workdayCostCenterAriStaticOpts);
+ return new _WorkdayCostCenterAri(opts);
+ }
+ getVariables() {
+ return {
+ workdayTenantKey: this.workdayTenantKey,
+ costCenterWorkdayId: this.costCenterWorkdayId
+ };
+ }
+};
+
+export {
+ WorkdayCostCenterAri
+};