@forge/util 1.4.0 → 1.4.1-next.0-experimental-cf84ac7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/packages/analytics-node-client/README.md +65 -1
- package/packages/analytics-node-client/package.json +10 -5
- package/packages/analytics-node-client/src/index.js +1 -1
- package/packages/ari/_tsup-dts-rollup.d.ts +442 -0
- package/packages/ari/beacon/custom-detection/index.d.ts +3 -0
- package/packages/ari/beacon/custom-detection/index.js +346 -0
- package/packages/ari/beacon/custom-detection/index.mjs +17 -0
- package/packages/ari/beacon/custom-detection/types.d.ts +3 -0
- package/packages/ari/beacon/custom-detection/types.js +29 -0
- package/packages/ari/beacon/custom-detection/types.mjs +8 -0
- package/packages/ari/beacon/index.d.ts +1 -0
- package/packages/ari/beacon/index.js +64 -0
- package/packages/ari/beacon/index.mjs +13 -8
- package/packages/ari/bitbucket/index.mjs +8 -8
- package/packages/ari/brie/index.mjs +4 -4
- package/packages/ari/canvas/index.mjs +4 -4
- package/packages/ari/chunk-5DRIX3CB.mjs +7 -0
- package/packages/ari/chunk-6YGOGAWM.mjs +7 -0
- package/packages/ari/chunk-A5KZESJG.mjs +76 -0
- package/packages/ari/chunk-AWSUWYDF.mjs +80 -0
- package/packages/ari/chunk-BGUJ6GY2.mjs +62 -0
- package/packages/ari/chunk-D5S55TXO.mjs +7 -0
- package/packages/ari/chunk-DFCDGB7O.mjs +80 -0
- package/packages/ari/chunk-GHVFX7QU.mjs +80 -0
- package/packages/ari/chunk-IQPZXRAE.mjs +69 -0
- package/packages/ari/chunk-IUUUDGF6.mjs +7 -0
- package/packages/ari/chunk-OWEX3L44.mjs +7 -0
- package/packages/ari/chunk-PF3FHNQU.mjs +7 -0
- package/packages/ari/chunk-PVBPUKXI.mjs +7 -0
- package/packages/ari/chunk-PXLAHM4C.mjs +73 -0
- package/packages/ari/chunk-QO2BQQRK.mjs +7 -0
- package/packages/ari/chunk-QSH6F5SY.mjs +7 -0
- package/packages/ari/chunk-RYGO66NC.mjs +7 -0
- package/packages/ari/chunk-SCWWMMV2.mjs +80 -0
- package/packages/ari/chunk-SNAPC4SA.mjs +7 -0
- package/packages/ari/chunk-T3KJWGQY.mjs +73 -0
- package/packages/ari/chunk-TULGFGJW.mjs +69 -0
- package/packages/ari/chunk-WLBIOO7O.mjs +76 -0
- package/packages/ari/chunk-XB3V3IB3.mjs +66 -0
- package/packages/ari/chunk-XL2VWTF2.mjs +7 -0
- package/packages/ari/chunk-YNVYZG5X.mjs +0 -0
- package/packages/ari/cmdb/index.mjs +4 -4
- package/packages/ari/commerce/index.mjs +14 -14
- package/packages/ari/compass/index.mjs +14 -14
- package/packages/ari/confluence/index.mjs +17 -17
- package/packages/ari/conversational-help/index.mjs +4 -4
- package/packages/ari/devops/index.mjs +4 -4
- package/packages/ari/ecosystem/index.mjs +4 -4
- package/packages/ari/google/index.mjs +4 -4
- package/packages/ari/graph/index.d.ts +2 -0
- package/packages/ari/graph/index.js +127 -0
- package/packages/ari/graph/index.mjs +48 -38
- package/packages/ari/graph/post-incident-review/index.d.ts +3 -0
- package/packages/ari/graph/post-incident-review/index.js +342 -0
- package/packages/ari/graph/post-incident-review/index.mjs +17 -0
- package/packages/ari/graph/post-incident-review/types.d.ts +3 -0
- package/packages/ari/graph/post-incident-review/types.js +29 -0
- package/packages/ari/graph/post-incident-review/types.mjs +8 -0
- package/packages/ari/graph/post-incident-review-history/index.d.ts +3 -0
- package/packages/ari/graph/post-incident-review-history/index.js +349 -0
- package/packages/ari/graph/post-incident-review-history/index.mjs +17 -0
- package/packages/ari/graph/post-incident-review-history/types.d.ts +3 -0
- package/packages/ari/graph/post-incident-review-history/types.js +29 -0
- package/packages/ari/graph/post-incident-review-history/types.mjs +8 -0
- package/packages/ari/help/index.mjs +8 -8
- package/packages/ari/identity/index.mjs +11 -11
- package/packages/ari/index.d.ts +1 -0
- package/packages/ari/index.js +55 -2
- package/packages/ari/index.mjs +369 -341
- package/packages/ari/jira/index.d.ts +4 -0
- package/packages/ari/jira/index.js +266 -0
- package/packages/ari/jira/index.mjs +128 -108
- package/packages/ari/jira/issue-remote-link/index.d.ts +3 -0
- package/packages/ari/jira/issue-remote-link/index.js +353 -0
- package/packages/ari/jira/issue-remote-link/index.mjs +17 -0
- package/packages/ari/jira/issue-remote-link/types.d.ts +3 -0
- package/packages/ari/jira/issue-remote-link/types.js +29 -0
- package/packages/ari/jira/issue-remote-link/types.mjs +8 -0
- package/packages/ari/jira/notification-user-preference/index.d.ts +3 -0
- package/packages/ari/jira/notification-user-preference/index.js +342 -0
- package/packages/ari/jira/notification-user-preference/index.mjs +17 -0
- package/packages/ari/jira/notification-user-preference/types.d.ts +3 -0
- package/packages/ari/jira/notification-user-preference/types.js +29 -0
- package/packages/ari/jira/notification-user-preference/types.mjs +8 -0
- package/packages/ari/jira/post-incident-review/index.d.ts +3 -0
- package/packages/ari/jira/post-incident-review/index.js +346 -0
- package/packages/ari/jira/post-incident-review/index.mjs +17 -0
- package/packages/ari/jira/post-incident-review/types.d.ts +3 -0
- package/packages/ari/jira/post-incident-review/types.js +29 -0
- package/packages/ari/jira/post-incident-review/types.mjs +8 -0
- package/packages/ari/jira/post-incident-review-history/index.d.ts +3 -0
- package/packages/ari/jira/post-incident-review-history/index.js +353 -0
- package/packages/ari/jira/post-incident-review-history/index.mjs +17 -0
- package/packages/ari/jira/post-incident-review-history/types.d.ts +3 -0
- package/packages/ari/jira/post-incident-review-history/types.js +29 -0
- package/packages/ari/jira/post-incident-review-history/types.mjs +8 -0
- package/packages/ari/jira-align/epic/index.d.ts +3 -0
- package/packages/ari/jira-align/epic/index.js +339 -0
- package/packages/ari/jira-align/epic/index.mjs +17 -0
- package/packages/ari/jira-align/epic/types.d.ts +3 -0
- package/packages/ari/jira-align/epic/types.js +29 -0
- package/packages/ari/jira-align/epic/types.mjs +8 -0
- package/packages/ari/jira-align/index.d.ts +1 -0
- package/packages/ari/jira-align/index.js +57 -0
- package/packages/ari/jira-align/index.mjs +6 -1
- package/packages/ari/jira-software/card-color/index.d.ts +3 -0
- package/packages/ari/jira-software/card-color/index.js +353 -0
- package/packages/ari/jira-software/card-color/index.mjs +17 -0
- package/packages/ari/jira-software/card-color/types.d.ts +3 -0
- package/packages/ari/jira-software/card-color/types.js +29 -0
- package/packages/ari/jira-software/card-color/types.mjs +8 -0
- package/packages/ari/jira-software/card-layout/index.d.ts +3 -0
- package/packages/ari/jira-software/card-layout/index.js +353 -0
- package/packages/ari/jira-software/card-layout/index.mjs +17 -0
- package/packages/ari/jira-software/card-layout/types.d.ts +3 -0
- package/packages/ari/jira-software/card-layout/types.js +29 -0
- package/packages/ari/jira-software/card-layout/types.mjs +8 -0
- package/packages/ari/jira-software/index.d.ts +2 -0
- package/packages/ari/jira-software/index.js +142 -0
- package/packages/ari/jira-software/index.mjs +27 -17
- package/packages/ari/marketplace/index.d.ts +1 -0
- package/packages/ari/marketplace/index.js +331 -0
- package/packages/ari/marketplace/index.mjs +13 -0
- package/packages/ari/marketplace/team/index.d.ts +3 -0
- package/packages/ari/marketplace/team/index.js +335 -0
- package/packages/ari/marketplace/team/index.mjs +17 -0
- package/packages/ari/marketplace/team/types.d.ts +3 -0
- package/packages/ari/marketplace/team/types.js +29 -0
- package/packages/ari/marketplace/team/types.mjs +8 -0
- package/packages/ari/opsgenie/index.mjs +11 -11
- package/packages/ari/package.json +1 -1
- package/packages/ari/people-perftool/index.mjs +4 -4
- package/packages/ari/platform/index.mjs +8 -8
- package/packages/ari/resource-types/card-color.d.ts +1 -0
- package/packages/ari/resource-types/card-color.js +27 -0
- package/packages/ari/resource-types/card-color.mjs +5 -0
- package/packages/ari/resource-types/card-layout.d.ts +1 -0
- package/packages/ari/resource-types/card-layout.js +27 -0
- package/packages/ari/resource-types/card-layout.mjs +5 -0
- package/packages/ari/resource-types/custom-detection.d.ts +1 -0
- package/packages/ari/resource-types/custom-detection.js +27 -0
- package/packages/ari/resource-types/custom-detection.mjs +5 -0
- package/packages/ari/resource-types/embed.d.ts +1 -0
- package/packages/ari/resource-types/embed.js +27 -0
- package/packages/ari/resource-types/embed.mjs +5 -0
- package/packages/ari/resource-types/epic.d.ts +1 -0
- package/packages/ari/resource-types/epic.js +27 -0
- package/packages/ari/resource-types/epic.mjs +5 -0
- package/packages/ari/resource-types/issue-remote-link.d.ts +1 -0
- package/packages/ari/resource-types/issue-remote-link.js +27 -0
- package/packages/ari/resource-types/issue-remote-link.mjs +5 -0
- package/packages/ari/resource-types/post-incident-review-history.d.ts +1 -0
- package/packages/ari/resource-types/post-incident-review-history.js +27 -0
- package/packages/ari/resource-types/post-incident-review-history.mjs +5 -0
- package/packages/ari/resource-types/post-incident-review.d.ts +1 -0
- package/packages/ari/resource-types/post-incident-review.js +27 -0
- package/packages/ari/resource-types/post-incident-review.mjs +5 -0
- package/packages/ari/townsquare/index.mjs +8 -8
- package/packages/ari/unified-help/index.mjs +4 -4
- package/packages/ari/virtual-agent/conversation/index.d.ts +3 -0
- package/packages/ari/virtual-agent/conversation/index.js +349 -0
- package/packages/ari/virtual-agent/conversation/index.mjs +17 -0
- package/packages/ari/virtual-agent/conversation/types.d.ts +3 -0
- package/packages/ari/virtual-agent/conversation/types.js +29 -0
- package/packages/ari/virtual-agent/conversation/types.mjs +8 -0
- package/packages/ari/virtual-agent/index.d.ts +1 -0
- package/packages/ari/virtual-agent/index.js +67 -0
- package/packages/ari/virtual-agent/index.mjs +10 -5
- package/packages/logger-interface/CHANGELOG.md +6 -0
- package/packages/logger-interface/README.md +3 -1
- package/packages/logger-interface/package.json +3 -2
- package/packages/metrics-interface/CHANGELOG.md +57 -0
- package/packages/metrics-interface/README.md +13 -15
- package/packages/metrics-interface/dist/metrics.d.ts +7 -0
- package/packages/metrics-interface/dist/metrics.d.ts.map +1 -1
- package/packages/metrics-interface/dist/metrics.js +16 -1
- package/packages/metrics-interface/dist/metrics.js.map +1 -1
- package/packages/metrics-interface/dist/mocks/index.d.ts +11 -2
- package/packages/metrics-interface/dist/mocks/index.d.ts.map +1 -1
- package/packages/metrics-interface/dist/mocks/index.js +13 -2
- package/packages/metrics-interface/dist/mocks/index.js.map +1 -1
- package/packages/metrics-interface/package.json +3 -2
- /package/packages/ari/{chunk-ENGY2TDF.mjs → chunk-D7D3B454.mjs} +0 -0
- /package/packages/ari/{chunk-KNBR3WSA.mjs → chunk-GH4RGVNE.mjs} +0 -0
- /package/packages/ari/{chunk-PU63LMKI.mjs → chunk-JEDPRILO.mjs} +0 -0
- /package/packages/ari/{chunk-RLLBEQ3Y.mjs → chunk-NZ5QEVUV.mjs} +0 -0
- /package/packages/ari/{chunk-V7XF5L23.mjs → chunk-P2RGZTM3.mjs} +0 -0
- /package/packages/ari/{chunk-WRVV7GZO.mjs → chunk-VPUECY5E.mjs} +0 -0
|
@@ -38,6 +38,8 @@ __export(graph_exports, {
|
|
|
38
38
|
GraphJiraProjectAndVcsRepositoryRelationshipAri: () => GraphJiraProjectAndVcsRepositoryRelationshipAri,
|
|
39
39
|
GraphJiraProjectAndVcsRepositoryRelationshipTempMigrationAri: () => GraphJiraProjectAndVcsRepositoryRelationshipTempMigrationAri,
|
|
40
40
|
GraphOperationsWorkspaceAri: () => GraphOperationsWorkspaceAri,
|
|
41
|
+
GraphPostIncidentReviewAri: () => GraphPostIncidentReviewAri,
|
|
42
|
+
GraphPostIncidentReviewHistoryAri: () => GraphPostIncidentReviewHistoryAri,
|
|
41
43
|
GraphPullRequestAri: () => GraphPullRequestAri,
|
|
42
44
|
GraphPullRequestHistoryAri: () => GraphPullRequestHistoryAri,
|
|
43
45
|
GraphRemoteLinkAri: () => GraphRemoteLinkAri,
|
|
@@ -1601,6 +1603,129 @@ var GraphOperationsWorkspaceAri = class _GraphOperationsWorkspaceAri extends Reg
|
|
|
1601
1603
|
}
|
|
1602
1604
|
};
|
|
1603
1605
|
|
|
1606
|
+
// src/graph/post-incident-review/types.ts
|
|
1607
|
+
var GraphPostIncidentReviewAriResourceOwner = "graph", GraphPostIncidentReviewAriResourceType = "post-incident-review";
|
|
1608
|
+
|
|
1609
|
+
// src/graph/post-incident-review/manifest.ts
|
|
1610
|
+
var graphPostIncidentReviewAriStaticOpts = {
|
|
1611
|
+
qualifier: "ari",
|
|
1612
|
+
platformQualifier: "cloud",
|
|
1613
|
+
cloudId: new RegExp("^$"),
|
|
1614
|
+
resourceOwner: GraphPostIncidentReviewAriResourceOwner,
|
|
1615
|
+
resourceType: GraphPostIncidentReviewAriResourceType,
|
|
1616
|
+
resourceIdSlug: "activation/{activationId}/{postIncidentReviewId}",
|
|
1617
|
+
resourceIdSegmentFormats: {
|
|
1618
|
+
activationId: /[a-zA-Z0-9\-]+/,
|
|
1619
|
+
// eslint-disable-line no-useless-escape
|
|
1620
|
+
postIncidentReviewId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
|
|
1621
|
+
// eslint-disable-line no-useless-escape
|
|
1622
|
+
}
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
// src/graph/post-incident-review/index.ts
|
|
1626
|
+
var GraphPostIncidentReviewAri = class _GraphPostIncidentReviewAri extends RegisteredAri {
|
|
1627
|
+
constructor(opts) {
|
|
1628
|
+
super(opts);
|
|
1629
|
+
this._activationId = opts.resourceIdSegmentValues.activationId, this._postIncidentReviewId = opts.resourceIdSegmentValues.postIncidentReviewId;
|
|
1630
|
+
}
|
|
1631
|
+
get activationId() {
|
|
1632
|
+
return this._activationId;
|
|
1633
|
+
}
|
|
1634
|
+
get postIncidentReviewId() {
|
|
1635
|
+
return this._postIncidentReviewId;
|
|
1636
|
+
}
|
|
1637
|
+
static create(opts) {
|
|
1638
|
+
let derivedOpts = {
|
|
1639
|
+
qualifier: graphPostIncidentReviewAriStaticOpts.qualifier,
|
|
1640
|
+
platformQualifier: graphPostIncidentReviewAriStaticOpts.platformQualifier,
|
|
1641
|
+
cloudId: void 0,
|
|
1642
|
+
resourceOwner: graphPostIncidentReviewAriStaticOpts.resourceOwner,
|
|
1643
|
+
resourceType: graphPostIncidentReviewAriStaticOpts.resourceType,
|
|
1644
|
+
resourceId: `activation/${opts.activationId}/${opts.postIncidentReviewId}`,
|
|
1645
|
+
resourceIdSegmentValues: {
|
|
1646
|
+
activationId: opts.activationId,
|
|
1647
|
+
postIncidentReviewId: opts.postIncidentReviewId
|
|
1648
|
+
}
|
|
1649
|
+
}, ariOpts = AriParser.fromOpts(derivedOpts, graphPostIncidentReviewAriStaticOpts);
|
|
1650
|
+
return new _GraphPostIncidentReviewAri(ariOpts);
|
|
1651
|
+
}
|
|
1652
|
+
static parse(maybeAri) {
|
|
1653
|
+
let opts = AriParser.fromString(maybeAri, graphPostIncidentReviewAriStaticOpts);
|
|
1654
|
+
return new _GraphPostIncidentReviewAri(opts);
|
|
1655
|
+
}
|
|
1656
|
+
getVariables() {
|
|
1657
|
+
return {
|
|
1658
|
+
activationId: this.activationId,
|
|
1659
|
+
postIncidentReviewId: this.postIncidentReviewId
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
// src/graph/post-incident-review-history/types.ts
|
|
1665
|
+
var GraphPostIncidentReviewHistoryAriResourceOwner = "graph", GraphPostIncidentReviewHistoryAriResourceType = "post-incident-review-history";
|
|
1666
|
+
|
|
1667
|
+
// src/graph/post-incident-review-history/manifest.ts
|
|
1668
|
+
var graphPostIncidentReviewHistoryAriStaticOpts = {
|
|
1669
|
+
qualifier: "ari",
|
|
1670
|
+
platformQualifier: "cloud",
|
|
1671
|
+
cloudId: new RegExp("^$"),
|
|
1672
|
+
resourceOwner: GraphPostIncidentReviewHistoryAriResourceOwner,
|
|
1673
|
+
resourceType: GraphPostIncidentReviewHistoryAriResourceType,
|
|
1674
|
+
resourceIdSlug: "activation/{activationId}/{postIncidentReviewId}/{updateSequenceNumber}",
|
|
1675
|
+
resourceIdSegmentFormats: {
|
|
1676
|
+
activationId: /[a-zA-Z0-9\-]+/,
|
|
1677
|
+
// eslint-disable-line no-useless-escape
|
|
1678
|
+
postIncidentReviewId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
|
|
1679
|
+
// eslint-disable-line no-useless-escape
|
|
1680
|
+
updateSequenceNumber: /\d+/
|
|
1681
|
+
// eslint-disable-line no-useless-escape
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
// src/graph/post-incident-review-history/index.ts
|
|
1686
|
+
var GraphPostIncidentReviewHistoryAri = class _GraphPostIncidentReviewHistoryAri extends RegisteredAri {
|
|
1687
|
+
constructor(opts) {
|
|
1688
|
+
super(opts);
|
|
1689
|
+
this._activationId = opts.resourceIdSegmentValues.activationId, this._postIncidentReviewId = opts.resourceIdSegmentValues.postIncidentReviewId, this._updateSequenceNumber = opts.resourceIdSegmentValues.updateSequenceNumber;
|
|
1690
|
+
}
|
|
1691
|
+
get activationId() {
|
|
1692
|
+
return this._activationId;
|
|
1693
|
+
}
|
|
1694
|
+
get postIncidentReviewId() {
|
|
1695
|
+
return this._postIncidentReviewId;
|
|
1696
|
+
}
|
|
1697
|
+
get updateSequenceNumber() {
|
|
1698
|
+
return this._updateSequenceNumber;
|
|
1699
|
+
}
|
|
1700
|
+
static create(opts) {
|
|
1701
|
+
let derivedOpts = {
|
|
1702
|
+
qualifier: graphPostIncidentReviewHistoryAriStaticOpts.qualifier,
|
|
1703
|
+
platformQualifier: graphPostIncidentReviewHistoryAriStaticOpts.platformQualifier,
|
|
1704
|
+
cloudId: void 0,
|
|
1705
|
+
resourceOwner: graphPostIncidentReviewHistoryAriStaticOpts.resourceOwner,
|
|
1706
|
+
resourceType: graphPostIncidentReviewHistoryAriStaticOpts.resourceType,
|
|
1707
|
+
resourceId: `activation/${opts.activationId}/${opts.postIncidentReviewId}/${opts.updateSequenceNumber}`,
|
|
1708
|
+
resourceIdSegmentValues: {
|
|
1709
|
+
activationId: opts.activationId,
|
|
1710
|
+
postIncidentReviewId: opts.postIncidentReviewId,
|
|
1711
|
+
updateSequenceNumber: opts.updateSequenceNumber
|
|
1712
|
+
}
|
|
1713
|
+
}, ariOpts = AriParser.fromOpts(derivedOpts, graphPostIncidentReviewHistoryAriStaticOpts);
|
|
1714
|
+
return new _GraphPostIncidentReviewHistoryAri(ariOpts);
|
|
1715
|
+
}
|
|
1716
|
+
static parse(maybeAri) {
|
|
1717
|
+
let opts = AriParser.fromString(maybeAri, graphPostIncidentReviewHistoryAriStaticOpts);
|
|
1718
|
+
return new _GraphPostIncidentReviewHistoryAri(opts);
|
|
1719
|
+
}
|
|
1720
|
+
getVariables() {
|
|
1721
|
+
return {
|
|
1722
|
+
activationId: this.activationId,
|
|
1723
|
+
postIncidentReviewId: this.postIncidentReviewId,
|
|
1724
|
+
updateSequenceNumber: this.updateSequenceNumber
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1604
1729
|
// src/graph/pull-request/types.ts
|
|
1605
1730
|
var GraphPullRequestAriResourceOwner = "graph", GraphPullRequestAriResourceType = "pull-request";
|
|
1606
1731
|
|
|
@@ -2521,6 +2646,8 @@ var GraphWorkspaceAri = class _GraphWorkspaceAri extends RegisteredAri {
|
|
|
2521
2646
|
GraphJiraProjectAndVcsRepositoryRelationshipAri,
|
|
2522
2647
|
GraphJiraProjectAndVcsRepositoryRelationshipTempMigrationAri,
|
|
2523
2648
|
GraphOperationsWorkspaceAri,
|
|
2649
|
+
GraphPostIncidentReviewAri,
|
|
2650
|
+
GraphPostIncidentReviewHistoryAri,
|
|
2524
2651
|
GraphPullRequestAri,
|
|
2525
2652
|
GraphPullRequestHistoryAri,
|
|
2526
2653
|
GraphRemoteLinkAri,
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
GraphWorkspaceAri
|
|
4
|
-
} from "../chunk-3IPCLHZX.mjs";
|
|
5
|
-
import "../chunk-SQM2NR5M.mjs";
|
|
6
|
-
import {
|
|
7
|
-
GraphServiceRelationshipAri
|
|
8
|
-
} from "../chunk-V3IYIS6Q.mjs";
|
|
9
|
-
import "../chunk-JNGK7AYM.mjs";
|
|
1
|
+
import "../chunk-D7D3B454.mjs";
|
|
10
2
|
import {
|
|
11
3
|
GraphServiceAri
|
|
12
4
|
} from "../chunk-W2BL2AH6.mjs";
|
|
@@ -20,9 +12,9 @@ import {
|
|
|
20
12
|
} from "../chunk-DF53FWVZ.mjs";
|
|
21
13
|
import "../chunk-J7VD66AE.mjs";
|
|
22
14
|
import {
|
|
23
|
-
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
15
|
+
GraphWorkspaceAri
|
|
16
|
+
} from "../chunk-3IPCLHZX.mjs";
|
|
17
|
+
import "../chunk-SQM2NR5M.mjs";
|
|
26
18
|
import {
|
|
27
19
|
GraphServiceAndJiraProjectRelationshipAri
|
|
28
20
|
} from "../chunk-Y3RTRVZV.mjs";
|
|
@@ -36,9 +28,9 @@ import {
|
|
|
36
28
|
} from "../chunk-L6HAERSK.mjs";
|
|
37
29
|
import "../chunk-SYSNNBBE.mjs";
|
|
38
30
|
import {
|
|
39
|
-
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
31
|
+
GraphServiceRelationshipAri
|
|
32
|
+
} from "../chunk-V3IYIS6Q.mjs";
|
|
33
|
+
import "../chunk-JNGK7AYM.mjs";
|
|
42
34
|
import {
|
|
43
35
|
GraphRemoteLinkAri
|
|
44
36
|
} from "../chunk-SGWD7EQZ.mjs";
|
|
@@ -52,13 +44,13 @@ import {
|
|
|
52
44
|
} from "../chunk-ZVUQSFXL.mjs";
|
|
53
45
|
import "../chunk-6HYQV6SW.mjs";
|
|
54
46
|
import {
|
|
55
|
-
|
|
56
|
-
} from "../chunk-
|
|
57
|
-
import "../chunk-
|
|
47
|
+
GraphSecurityWorkspaceAri
|
|
48
|
+
} from "../chunk-AC742ZQS.mjs";
|
|
49
|
+
import "../chunk-4FPKBG6M.mjs";
|
|
58
50
|
import {
|
|
59
|
-
|
|
60
|
-
} from "../chunk-
|
|
61
|
-
import "../chunk-
|
|
51
|
+
GraphPostIncidentReviewAri
|
|
52
|
+
} from "../chunk-TULGFGJW.mjs";
|
|
53
|
+
import "../chunk-SNAPC4SA.mjs";
|
|
62
54
|
import {
|
|
63
55
|
GraphPullRequestHistoryAri
|
|
64
56
|
} from "../chunk-VGQ2PY3T.mjs";
|
|
@@ -67,6 +59,30 @@ import {
|
|
|
67
59
|
GraphPullRequestAri
|
|
68
60
|
} from "../chunk-LS7IS6UB.mjs";
|
|
69
61
|
import "../chunk-Z3FWECDS.mjs";
|
|
62
|
+
import {
|
|
63
|
+
GraphRemoteLinkHistoryAri
|
|
64
|
+
} from "../chunk-IODN6B4N.mjs";
|
|
65
|
+
import "../chunk-2YKXM3UN.mjs";
|
|
66
|
+
import {
|
|
67
|
+
GraphJiraProjectAndVcsRepositoryRelationshipTempMigrationAri
|
|
68
|
+
} from "../chunk-JYQ5JCSW.mjs";
|
|
69
|
+
import "../chunk-IUR7MTIZ.mjs";
|
|
70
|
+
import {
|
|
71
|
+
GraphJiraProjectAndVcsRepositoryRelationshipAri
|
|
72
|
+
} from "../chunk-QF6WLUXE.mjs";
|
|
73
|
+
import "../chunk-XYDSJQO4.mjs";
|
|
74
|
+
import {
|
|
75
|
+
GraphOperationsWorkspaceAri
|
|
76
|
+
} from "../chunk-H7NJT7NT.mjs";
|
|
77
|
+
import "../chunk-5HHNCVXF.mjs";
|
|
78
|
+
import {
|
|
79
|
+
GraphPostIncidentReviewHistoryAri
|
|
80
|
+
} from "../chunk-WLBIOO7O.mjs";
|
|
81
|
+
import "../chunk-PVBPUKXI.mjs";
|
|
82
|
+
import {
|
|
83
|
+
GraphIncidentAri
|
|
84
|
+
} from "../chunk-5G37SQYR.mjs";
|
|
85
|
+
import "../chunk-FKF6Z5DH.mjs";
|
|
70
86
|
import {
|
|
71
87
|
GraphJiraProjectAndDevopsToolRelationshipAri
|
|
72
88
|
} from "../chunk-5Z2QKNXU.mjs";
|
|
@@ -80,9 +96,9 @@ import {
|
|
|
80
96
|
} from "../chunk-4DDRLSRP.mjs";
|
|
81
97
|
import "../chunk-35GRSR7B.mjs";
|
|
82
98
|
import {
|
|
83
|
-
|
|
84
|
-
} from "../chunk-
|
|
85
|
-
import "../chunk-
|
|
99
|
+
GraphDocumentAri
|
|
100
|
+
} from "../chunk-AHUI46I6.mjs";
|
|
101
|
+
import "../chunk-J4TEUSCJ.mjs";
|
|
86
102
|
import {
|
|
87
103
|
GraphFeatureFlagHistoryAri
|
|
88
104
|
} from "../chunk-6EZCVVRT.mjs";
|
|
@@ -96,9 +112,9 @@ import {
|
|
|
96
112
|
} from "../chunk-ZYBRRGV4.mjs";
|
|
97
113
|
import "../chunk-NTBEFMSE.mjs";
|
|
98
114
|
import {
|
|
99
|
-
|
|
100
|
-
} from "../chunk-
|
|
101
|
-
import "../chunk-
|
|
115
|
+
GraphDeploymentAri
|
|
116
|
+
} from "../chunk-ENLF7OFK.mjs";
|
|
117
|
+
import "../chunk-OON2ZRPC.mjs";
|
|
102
118
|
import {
|
|
103
119
|
GraphDesignHistoryAri
|
|
104
120
|
} from "../chunk-UST7DEEU.mjs";
|
|
@@ -112,9 +128,9 @@ import {
|
|
|
112
128
|
} from "../chunk-T7RJ6LYW.mjs";
|
|
113
129
|
import "../chunk-SP4WD2VN.mjs";
|
|
114
130
|
import {
|
|
115
|
-
|
|
116
|
-
} from "../chunk-
|
|
117
|
-
import "../chunk-
|
|
131
|
+
GraphBuildHistoryAri
|
|
132
|
+
} from "../chunk-M6TKNOHJ.mjs";
|
|
133
|
+
import "../chunk-Q4A3TDFH.mjs";
|
|
118
134
|
import {
|
|
119
135
|
GraphBuildAri
|
|
120
136
|
} from "../chunk-BAKXQOM7.mjs";
|
|
@@ -127,10 +143,6 @@ import {
|
|
|
127
143
|
GraphDeploymentHistoryAri
|
|
128
144
|
} from "../chunk-AJZLGKPR.mjs";
|
|
129
145
|
import "../chunk-LCOEZ74N.mjs";
|
|
130
|
-
import {
|
|
131
|
-
GraphDeploymentAri
|
|
132
|
-
} from "../chunk-ENLF7OFK.mjs";
|
|
133
|
-
import "../chunk-OON2ZRPC.mjs";
|
|
134
146
|
import {
|
|
135
147
|
GraphBranchHistoryAri
|
|
136
148
|
} from "../chunk-6OIVMFVC.mjs";
|
|
@@ -139,10 +151,6 @@ import {
|
|
|
139
151
|
GraphBranchAri
|
|
140
152
|
} from "../chunk-QLTAVMFU.mjs";
|
|
141
153
|
import "../chunk-JJHDDJHM.mjs";
|
|
142
|
-
import {
|
|
143
|
-
GraphBuildHistoryAri
|
|
144
|
-
} from "../chunk-M6TKNOHJ.mjs";
|
|
145
|
-
import "../chunk-Q4A3TDFH.mjs";
|
|
146
154
|
import "../chunk-PA4Y7TWI.mjs";
|
|
147
155
|
import "../chunk-NCC2UXNN.mjs";
|
|
148
156
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -170,6 +178,8 @@ export {
|
|
|
170
178
|
GraphJiraProjectAndVcsRepositoryRelationshipAri,
|
|
171
179
|
GraphJiraProjectAndVcsRepositoryRelationshipTempMigrationAri,
|
|
172
180
|
GraphOperationsWorkspaceAri,
|
|
181
|
+
GraphPostIncidentReviewAri,
|
|
182
|
+
GraphPostIncidentReviewHistoryAri,
|
|
173
183
|
GraphPullRequestAri,
|
|
174
184
|
GraphPullRequestHistoryAri,
|
|
175
185
|
GraphRemoteLinkAri,
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
|
|
17
|
+
// src/graph/post-incident-review/index.ts
|
|
18
|
+
var post_incident_review_exports = {};
|
|
19
|
+
__export(post_incident_review_exports, {
|
|
20
|
+
GraphPostIncidentReviewAri: () => GraphPostIncidentReviewAri,
|
|
21
|
+
GraphPostIncidentReviewAriResourceOwner: () => GraphPostIncidentReviewAriResourceOwner,
|
|
22
|
+
GraphPostIncidentReviewAriResourceType: () => GraphPostIncidentReviewAriResourceType
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(post_incident_review_exports);
|
|
25
|
+
|
|
26
|
+
// src/errors.ts
|
|
27
|
+
var ValidationError = class extends Error {
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// src/core/rules/cloud-id.ts
|
|
31
|
+
function validateCloudId(cloudId, format = new RegExp("^[a-zA-Z0-9\\-]*$")) {
|
|
32
|
+
if (!cloudId.match(format))
|
|
33
|
+
throw new ValidationError(`Invalid cloud ID, expected ID of format ${format}.`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// src/core/rules/platform-qualifier.ts
|
|
37
|
+
function validatePlatformQualifier(qualifier) {
|
|
38
|
+
if (qualifier !== "cloud")
|
|
39
|
+
throw new ValidationError(`Identifier must have a qualifier of 'cloud'. Received: ${qualifier}`);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// src/core/rules/qualifier.ts
|
|
43
|
+
function validateAtiQualifier(qualifier) {
|
|
44
|
+
if (qualifier !== "ati")
|
|
45
|
+
throw new ValidationError(`ATI must have a qualifier of 'ati'. Received: ${qualifier}`);
|
|
46
|
+
}
|
|
47
|
+
function validateAriQualifier(qualifier) {
|
|
48
|
+
if (qualifier !== "ari")
|
|
49
|
+
throw new ValidationError(`ARI must have a qualifier of 'ari'. Received: ${qualifier}`);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/core/rules/resource-id.ts
|
|
53
|
+
function validateResourceId(id, format = new RegExp("[a-zA-Z0-9\\-_.~@:{}=]+(/[a-zA-Z0-9\\-_.~@:{}=]+)*" /* ANY_RESOURCE_ID */), key = "resourceId") {
|
|
54
|
+
let formatWithCarets = new RegExp(`^${format.source}$`);
|
|
55
|
+
if (!id.match(formatWithCarets))
|
|
56
|
+
throw new ValidationError(`Invalid ${key} - ${id}, expected ID of format ${formatWithCarets}.`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// src/core/rules/resource-id-segments.ts
|
|
60
|
+
function validateResourceIdSegments(resourceIdSegmentValues, resourceIdSegmentFormats) {
|
|
61
|
+
Object.entries(resourceIdSegmentValues).forEach(([resourceIdKey, resourceIdValue]) => {
|
|
62
|
+
validateResourceId(resourceIdValue, resourceIdSegmentFormats == null ? void 0 : resourceIdSegmentFormats[resourceIdKey], resourceIdKey);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// src/core/rules/resource-owner.ts
|
|
67
|
+
function validateResourceOwner(owner, expectedResourceOwner) {
|
|
68
|
+
if (expectedResourceOwner && owner !== expectedResourceOwner)
|
|
69
|
+
throw new ValidationError(`Invalid resource owner - ${owner}, expected ${expectedResourceOwner}.`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// src/core/rules/resource-type.ts
|
|
73
|
+
function validateResourceType(type, expectedResourceType) {
|
|
74
|
+
if (expectedResourceType && type !== expectedResourceType)
|
|
75
|
+
throw new ValidationError(`Invalid resource type - ${type}, expected ${expectedResourceType}.`);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// src/core/parser/base.ts
|
|
79
|
+
var NUMBER_OF_BASE_SEGMENTS = 5, SEGMENT_SEPARATOR = ":", BaseParser = class {
|
|
80
|
+
static getIdentifierSegments(inputStr, numberOfSegmentsRequired) {
|
|
81
|
+
let allSegments = inputStr.split(SEGMENT_SEPARATOR);
|
|
82
|
+
if (allSegments.length < numberOfSegmentsRequired)
|
|
83
|
+
throw new ValidationError(`Input string must have ${numberOfSegmentsRequired} segments.`);
|
|
84
|
+
if (allSegments.length > numberOfSegmentsRequired) {
|
|
85
|
+
let segments = allSegments.slice(0, NUMBER_OF_BASE_SEGMENTS - 1), segmentsForResourceId = allSegments.slice(NUMBER_OF_BASE_SEGMENTS - 1, allSegments.length);
|
|
86
|
+
return [...segments, segmentsForResourceId.join(SEGMENT_SEPARATOR)];
|
|
87
|
+
}
|
|
88
|
+
return allSegments;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// src/core/parser/ari.ts
|
|
93
|
+
var NUMBER_OF_ARI_SEGMENTS = 5, AriParser = class extends BaseParser {
|
|
94
|
+
static fromString(maybeAri, ariProperties) {
|
|
95
|
+
let segments = this.getIdentifierSegments(maybeAri, NUMBER_OF_ARI_SEGMENTS), [qualifier, platformQualifier, resourceOwner, cloudId, resourceTypeAndId] = segments, [resourceType, ...resourceIdSegments] = resourceTypeAndId.split("/"), maybeAriDerivedProperties = {
|
|
96
|
+
qualifier,
|
|
97
|
+
platformQualifier,
|
|
98
|
+
cloudId,
|
|
99
|
+
resourceOwner,
|
|
100
|
+
resourceType,
|
|
101
|
+
resourceId: resourceIdSegments.join("/"),
|
|
102
|
+
resourceIdSegmentValues: ariProperties != null && ariProperties.resourceIdSlug ? this.ariSegmentValuesFromSlug(
|
|
103
|
+
ariProperties.resourceIdSlug,
|
|
104
|
+
resourceIdSegments.join("/"),
|
|
105
|
+
Object.keys(ariProperties.resourceIdSegmentFormats)
|
|
106
|
+
) : {}
|
|
107
|
+
};
|
|
108
|
+
return this.fromOpts(maybeAriDerivedProperties, ariProperties);
|
|
109
|
+
}
|
|
110
|
+
static fromOpts(maybeAriOpts, ariProperties) {
|
|
111
|
+
let {
|
|
112
|
+
qualifier = "ari",
|
|
113
|
+
platformQualifier = "cloud",
|
|
114
|
+
resourceOwner,
|
|
115
|
+
cloudId,
|
|
116
|
+
resourceId,
|
|
117
|
+
resourceIdSegmentValues,
|
|
118
|
+
resourceType
|
|
119
|
+
} = maybeAriOpts;
|
|
120
|
+
return validateAriQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateCloudId(maybeAriOpts.cloudId || "", ariProperties == null ? void 0 : ariProperties.cloudId), validateResourceOwner(resourceOwner, ariProperties == null ? void 0 : ariProperties.resourceOwner), validateResourceType(resourceType, ariProperties == null ? void 0 : ariProperties.resourceType), validateResourceIdSegments(resourceIdSegmentValues, ariProperties == null ? void 0 : ariProperties.resourceIdSegmentFormats), {
|
|
121
|
+
qualifier,
|
|
122
|
+
resourceOwner,
|
|
123
|
+
resourceType,
|
|
124
|
+
platformQualifier,
|
|
125
|
+
cloudId,
|
|
126
|
+
resourceId,
|
|
127
|
+
resourceIdSegmentValues
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
static ariSegmentValuesFromSlug(slug, incomingSegments, expectedKeys) {
|
|
131
|
+
let regexpResult = new RegExp("^" + slug.replace(/\{(.*?)\}/g, "(?<$1>.*?)") + "$").exec(incomingSegments);
|
|
132
|
+
if (!regexpResult)
|
|
133
|
+
throw new ValidationError(`Segment '${incomingSegments}' don't match expected slug: ${slug}`);
|
|
134
|
+
return expectedKeys.forEach((expectedKey) => {
|
|
135
|
+
var _a;
|
|
136
|
+
if (!((_a = regexpResult.groups) != null && _a[expectedKey]))
|
|
137
|
+
throw new ValidationError(`No value supplied for '${expectedKey}' based on slug ${slug}`);
|
|
138
|
+
}), regexpResult.groups || {};
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// src/core/parser/ati.ts
|
|
143
|
+
var NUMBER_OF_ATI_SEGMENTS = 4, AtiParser = class extends BaseParser {
|
|
144
|
+
static fromString(inputStr, atiOpts) {
|
|
145
|
+
let segments = this.getIdentifierSegments(inputStr, NUMBER_OF_ATI_SEGMENTS), [qualifier = "ati", platformQualifier = "cloud", resourceOwner, resourceType] = segments;
|
|
146
|
+
return validateAtiQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateResourceOwner(resourceOwner, atiOpts == null ? void 0 : atiOpts.resourceOwner), validateResourceType(resourceType, atiOpts == null ? void 0 : atiOpts.resourceType), { platformQualifier, resourceOwner, resourceType };
|
|
147
|
+
}
|
|
148
|
+
static fromOpts(maybeAtiOpts, atiOpts) {
|
|
149
|
+
let { qualifier, platformQualifier, resourceOwner, resourceType } = maybeAtiOpts;
|
|
150
|
+
return validateAtiQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateResourceOwner(resourceOwner, atiOpts == null ? void 0 : atiOpts.resourceOwner), validateResourceType(resourceType, atiOpts == null ? void 0 : atiOpts.resourceType), {
|
|
151
|
+
platformQualifier,
|
|
152
|
+
resourceOwner,
|
|
153
|
+
resourceType
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/ati.ts
|
|
159
|
+
var Ati = class _Ati {
|
|
160
|
+
constructor(platformQualifier, resourceOwner, resourceType) {
|
|
161
|
+
this._platformQualifier = platformQualifier, this._resourceOwner = resourceOwner, this._resourceType = resourceType;
|
|
162
|
+
}
|
|
163
|
+
get platformQualifier() {
|
|
164
|
+
return this._platformQualifier;
|
|
165
|
+
}
|
|
166
|
+
get resourceOwner() {
|
|
167
|
+
return this._resourceOwner;
|
|
168
|
+
}
|
|
169
|
+
get resourceType() {
|
|
170
|
+
return this._resourceType;
|
|
171
|
+
}
|
|
172
|
+
static create(opts) {
|
|
173
|
+
return new _Ati(opts.platformQualifier || "cloud", opts.resourceOwner, opts.resourceType);
|
|
174
|
+
}
|
|
175
|
+
static parse(maybeAti, atiOpts) {
|
|
176
|
+
let opts = AtiParser.fromString(maybeAti, atiOpts);
|
|
177
|
+
return new _Ati(opts.platformQualifier, opts.resourceOwner, opts.resourceType);
|
|
178
|
+
}
|
|
179
|
+
toString() {
|
|
180
|
+
return `ati:${this.platformQualifier}:${this.resourceOwner}:${this.resourceType}`;
|
|
181
|
+
}
|
|
182
|
+
toJSON() {
|
|
183
|
+
return this.toString();
|
|
184
|
+
}
|
|
185
|
+
toOpts() {
|
|
186
|
+
return {
|
|
187
|
+
platformQualifier: this._platformQualifier,
|
|
188
|
+
resourceOwner: this._resourceOwner,
|
|
189
|
+
resourceType: this._resourceType
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// src/core/ari.ts
|
|
195
|
+
var Ari = class {
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
this._ati = Ati.create({
|
|
198
|
+
platformQualifier: "cloud",
|
|
199
|
+
resourceOwner: opts.resourceOwner,
|
|
200
|
+
resourceType: opts.resourceType
|
|
201
|
+
}), this._cloudId = opts.cloudId !== "" ? opts.cloudId : void 0, this._resourceId = opts.resourceId;
|
|
202
|
+
}
|
|
203
|
+
get platformQualifier() {
|
|
204
|
+
return this._ati.platformQualifier;
|
|
205
|
+
}
|
|
206
|
+
get cloudId() {
|
|
207
|
+
return this._cloudId;
|
|
208
|
+
}
|
|
209
|
+
get resourceOwner() {
|
|
210
|
+
return this._ati.resourceOwner;
|
|
211
|
+
}
|
|
212
|
+
get resourceType() {
|
|
213
|
+
return this._ati.resourceType;
|
|
214
|
+
}
|
|
215
|
+
get resourceId() {
|
|
216
|
+
return this._resourceId;
|
|
217
|
+
}
|
|
218
|
+
get ati() {
|
|
219
|
+
return this._ati;
|
|
220
|
+
}
|
|
221
|
+
equals(other) {
|
|
222
|
+
return this.toString() === other.toString();
|
|
223
|
+
}
|
|
224
|
+
toString() {
|
|
225
|
+
return `ari:${this.platformQualifier}:${this.resourceOwner}:${this.cloudId || ""}:${this.resourceType}/${this.resourceId}`;
|
|
226
|
+
}
|
|
227
|
+
toJSON() {
|
|
228
|
+
return this.toString();
|
|
229
|
+
}
|
|
230
|
+
toOpts() {
|
|
231
|
+
return {
|
|
232
|
+
platformQualifier: this.platformQualifier,
|
|
233
|
+
resourceOwner: this.resourceOwner,
|
|
234
|
+
cloudId: this.cloudId,
|
|
235
|
+
resourceType: this.resourceType,
|
|
236
|
+
resourceId: this.resourceId
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
// src/any-ari.ts
|
|
242
|
+
var AnyAri = class _AnyAri extends Ari {
|
|
243
|
+
constructor(opts) {
|
|
244
|
+
super(opts);
|
|
245
|
+
}
|
|
246
|
+
static create(ariOpts, ariStaticOpts) {
|
|
247
|
+
let ariOptsWithDefaults = { ...ariOpts, resourceIdSegmentValues: {} }, validatedOpts = AriParser.fromOpts(ariOptsWithDefaults, ariStaticOpts);
|
|
248
|
+
return new _AnyAri(validatedOpts);
|
|
249
|
+
}
|
|
250
|
+
static parse(maybeAri, ariStaticOpts) {
|
|
251
|
+
let validatedOpts = AriParser.fromString(maybeAri, ariStaticOpts);
|
|
252
|
+
return new _AnyAri(validatedOpts);
|
|
253
|
+
}
|
|
254
|
+
static check(maybeAri) {
|
|
255
|
+
try {
|
|
256
|
+
return _AnyAri.parse(maybeAri.toString()), !0;
|
|
257
|
+
} catch (err) {
|
|
258
|
+
return !1;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
asAnyAri() {
|
|
262
|
+
return this;
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
// src/core/registered-ari.ts
|
|
267
|
+
var RegisteredAri = class extends Ari {
|
|
268
|
+
static check(maybeAri) {
|
|
269
|
+
try {
|
|
270
|
+
return this.parse(maybeAri.toString()), !0;
|
|
271
|
+
} catch (err) {
|
|
272
|
+
return !1;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
asAnyAri() {
|
|
276
|
+
return AnyAri.parse(this.toString());
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
// src/graph/post-incident-review/types.ts
|
|
281
|
+
var GraphPostIncidentReviewAriResourceOwner = "graph", GraphPostIncidentReviewAriResourceType = "post-incident-review";
|
|
282
|
+
|
|
283
|
+
// src/graph/post-incident-review/manifest.ts
|
|
284
|
+
var graphPostIncidentReviewAriStaticOpts = {
|
|
285
|
+
qualifier: "ari",
|
|
286
|
+
platformQualifier: "cloud",
|
|
287
|
+
cloudId: new RegExp("^$"),
|
|
288
|
+
resourceOwner: GraphPostIncidentReviewAriResourceOwner,
|
|
289
|
+
resourceType: GraphPostIncidentReviewAriResourceType,
|
|
290
|
+
resourceIdSlug: "activation/{activationId}/{postIncidentReviewId}",
|
|
291
|
+
resourceIdSegmentFormats: {
|
|
292
|
+
activationId: /[a-zA-Z0-9\-]+/,
|
|
293
|
+
// eslint-disable-line no-useless-escape
|
|
294
|
+
postIncidentReviewId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
|
|
295
|
+
// eslint-disable-line no-useless-escape
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
// src/graph/post-incident-review/index.ts
|
|
300
|
+
var GraphPostIncidentReviewAri = class _GraphPostIncidentReviewAri extends RegisteredAri {
|
|
301
|
+
constructor(opts) {
|
|
302
|
+
super(opts);
|
|
303
|
+
this._activationId = opts.resourceIdSegmentValues.activationId, this._postIncidentReviewId = opts.resourceIdSegmentValues.postIncidentReviewId;
|
|
304
|
+
}
|
|
305
|
+
get activationId() {
|
|
306
|
+
return this._activationId;
|
|
307
|
+
}
|
|
308
|
+
get postIncidentReviewId() {
|
|
309
|
+
return this._postIncidentReviewId;
|
|
310
|
+
}
|
|
311
|
+
static create(opts) {
|
|
312
|
+
let derivedOpts = {
|
|
313
|
+
qualifier: graphPostIncidentReviewAriStaticOpts.qualifier,
|
|
314
|
+
platformQualifier: graphPostIncidentReviewAriStaticOpts.platformQualifier,
|
|
315
|
+
cloudId: void 0,
|
|
316
|
+
resourceOwner: graphPostIncidentReviewAriStaticOpts.resourceOwner,
|
|
317
|
+
resourceType: graphPostIncidentReviewAriStaticOpts.resourceType,
|
|
318
|
+
resourceId: `activation/${opts.activationId}/${opts.postIncidentReviewId}`,
|
|
319
|
+
resourceIdSegmentValues: {
|
|
320
|
+
activationId: opts.activationId,
|
|
321
|
+
postIncidentReviewId: opts.postIncidentReviewId
|
|
322
|
+
}
|
|
323
|
+
}, ariOpts = AriParser.fromOpts(derivedOpts, graphPostIncidentReviewAriStaticOpts);
|
|
324
|
+
return new _GraphPostIncidentReviewAri(ariOpts);
|
|
325
|
+
}
|
|
326
|
+
static parse(maybeAri) {
|
|
327
|
+
let opts = AriParser.fromString(maybeAri, graphPostIncidentReviewAriStaticOpts);
|
|
328
|
+
return new _GraphPostIncidentReviewAri(opts);
|
|
329
|
+
}
|
|
330
|
+
getVariables() {
|
|
331
|
+
return {
|
|
332
|
+
activationId: this.activationId,
|
|
333
|
+
postIncidentReviewId: this.postIncidentReviewId
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
338
|
+
0 && (module.exports = {
|
|
339
|
+
GraphPostIncidentReviewAri,
|
|
340
|
+
GraphPostIncidentReviewAriResourceOwner,
|
|
341
|
+
GraphPostIncidentReviewAriResourceType
|
|
342
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GraphPostIncidentReviewAri
|
|
3
|
+
} from "../../chunk-TULGFGJW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
GraphPostIncidentReviewAriResourceOwner,
|
|
6
|
+
GraphPostIncidentReviewAriResourceType
|
|
7
|
+
} from "../../chunk-SNAPC4SA.mjs";
|
|
8
|
+
import "../../chunk-PA4Y7TWI.mjs";
|
|
9
|
+
import "../../chunk-NCC2UXNN.mjs";
|
|
10
|
+
import "../../chunk-2UUYVBKT.mjs";
|
|
11
|
+
import "../../chunk-GDQPXUOZ.mjs";
|
|
12
|
+
import "../../chunk-FAZYALZ2.mjs";
|
|
13
|
+
export {
|
|
14
|
+
GraphPostIncidentReviewAri,
|
|
15
|
+
GraphPostIncidentReviewAriResourceOwner,
|
|
16
|
+
GraphPostIncidentReviewAriResourceType
|
|
17
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GraphPostIncidentReviewAriOpts } from '../../_tsup-dts-rollup';
|
|
2
|
+
export { GraphPostIncidentReviewAriResourceOwner_alias_1 as GraphPostIncidentReviewAriResourceOwner } from '../../_tsup-dts-rollup';
|
|
3
|
+
export { GraphPostIncidentReviewAriResourceType_alias_1 as GraphPostIncidentReviewAriResourceType } from '../../_tsup-dts-rollup';
|