@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-ASHD2EKZ.mjs−
packages/ari/chunk-ASHD2EKZ.mjsDeleted−70
Index: package/packages/ari/chunk-ASHD2EKZ.mjs
===================================================================
--- package/packages/ari/chunk-ASHD2EKZ.mjs
+++ package/packages/ari/chunk-ASHD2EKZ.mjs
@@ -1,70 +0,0 @@
-import {
- WorkdayStaffAriResourceOwner,
- WorkdayStaffAriResourceType
-} from "./chunk-BXN33GTZ.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/workday/staff/manifest.ts
-var workdayStaffAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "third-party",
- cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: WorkdayStaffAriResourceOwner,
- resourceType: WorkdayStaffAriResourceType,
- resourceIdSlug: "{workdayTenantKey}/{staffId}",
- resourceIdSegmentFormats: {
- workdayTenantKey: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
- staffId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
- }
-};
-
-// src/workday/staff/index.ts
-var WorkdayStaffAri = class _WorkdayStaffAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._workdayTenantKey = opts.resourceIdSegmentValues.workdayTenantKey, this._staffId = opts.resourceIdSegmentValues.staffId;
- }
- get workdayTenantKey() {
- return this._workdayTenantKey;
- }
- get staffId() {
- return this._staffId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: workdayStaffAriStaticOpts.qualifier,
- platformQualifier: workdayStaffAriStaticOpts.platformQualifier,
- cloudId: void 0,
- resourceOwner: workdayStaffAriStaticOpts.resourceOwner,
- resourceType: workdayStaffAriStaticOpts.resourceType,
- resourceId: `${opts.workdayTenantKey}/${opts.staffId}`,
- resourceIdSegmentValues: {
- workdayTenantKey: opts.workdayTenantKey,
- staffId: opts.staffId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, workdayStaffAriStaticOpts);
- return new _WorkdayStaffAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, workdayStaffAriStaticOpts);
- return new _WorkdayStaffAri(opts);
- }
- getVariables() {
- return {
- workdayTenantKey: this.workdayTenantKey,
- staffId: this.staffId
- };
- }
-};
-
-export {
- WorkdayStaffAri
-};