@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-MDYKMBBS.mjs−
packages/ari/chunk-MDYKMBBS.mjsDeleted−67
Index: package/packages/ari/chunk-MDYKMBBS.mjs
===================================================================
--- package/packages/ari/chunk-MDYKMBBS.mjs
+++ package/packages/ari/chunk-MDYKMBBS.mjs
@@ -1,67 +0,0 @@
-import {
- CommerceShipToPartyAriResourceOwner,
- CommerceShipToPartyAriResourceType
-} from "./chunk-MR7K6E3K.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/commerce/ship-to-party/manifest.ts
-var commerceShipToPartyAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9\\-]+$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: CommerceShipToPartyAriResourceOwner,
- resourceType: CommerceShipToPartyAriResourceType,
- resourceIdSlug: "{shipToPartyId}",
- resourceIdSegmentFormats: {
- shipToPartyId: /[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/commerce/ship-to-party/index.ts
-var CommerceShipToPartyAri = class _CommerceShipToPartyAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._txaId = opts.cloudId || "", this._shipToPartyId = opts.resourceIdSegmentValues.shipToPartyId;
- }
- get txaId() {
- return this._txaId;
- }
- get shipToPartyId() {
- return this._shipToPartyId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: commerceShipToPartyAriStaticOpts.qualifier,
- platformQualifier: commerceShipToPartyAriStaticOpts.platformQualifier,
- cloudId: opts.txaId,
- resourceOwner: commerceShipToPartyAriStaticOpts.resourceOwner,
- resourceType: commerceShipToPartyAriStaticOpts.resourceType,
- resourceId: `${opts.shipToPartyId}`,
- resourceIdSegmentValues: {
- shipToPartyId: opts.shipToPartyId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, commerceShipToPartyAriStaticOpts);
- return new _CommerceShipToPartyAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, commerceShipToPartyAriStaticOpts);
- return new _CommerceShipToPartyAri(opts);
- }
- getVariables() {
- return {
- txaId: this.txaId,
- shipToPartyId: this.shipToPartyId
- };
- }
-};
-
-export {
- CommerceShipToPartyAri
-};