@forge/util 2.0.0-next.0 → 2.0.0-next.0-experimental-42e3178
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 +6 -0
- package/package.json +1 -1
- package/packages/ari/_tsup-dts-rollup.d.ts +330 -0
- package/packages/ari/chunk-5Q5UL6WL.mjs +7 -0
- package/packages/ari/chunk-63SGYTKK.mjs +7 -0
- package/packages/ari/chunk-6SGR4JWH.mjs +70 -0
- package/packages/ari/chunk-7DTHPART.mjs +0 -0
- package/packages/ari/chunk-A35RPAYV.mjs +70 -0
- package/packages/ari/chunk-CS6RQC3V.mjs +7 -0
- package/packages/ari/chunk-CSESCAWL.mjs +7 -0
- package/packages/ari/chunk-CZTKEESF.mjs +0 -0
- package/packages/ari/chunk-EBM6ALFK.mjs +7 -0
- package/packages/ari/chunk-FDNQJ433.mjs +70 -0
- package/packages/ari/chunk-FDSHXPYJ.mjs +7 -0
- package/packages/ari/chunk-GGIQW4Z4.mjs +70 -0
- package/packages/ari/chunk-H42OOLXG.mjs +0 -0
- package/packages/ari/chunk-NTIQPGKA.mjs +70 -0
- package/packages/ari/chunk-OMSDF73F.mjs +74 -0
- package/packages/ari/chunk-Q623MFIX.mjs +70 -0
- package/packages/ari/chunk-QVEWE3BL.mjs +70 -0
- package/packages/ari/chunk-SWE627ZW.mjs +63 -0
- package/packages/ari/chunk-T2BO3UPO.mjs +7 -0
- package/packages/ari/chunk-TTDPBFH7.mjs +7 -0
- package/packages/ari/chunk-TV27GVTO.mjs +7 -0
- package/packages/ari/chunk-UDET3NPV.mjs +7 -0
- package/packages/ari/chunk-YHIXSUC3.mjs +70 -0
- package/packages/ari/chunk-YZ6V66ML.mjs +0 -0
- package/packages/ari/index.d.ts +10 -0
- package/packages/ari/index.js +609 -2
- package/packages/ari/index.mjs +462 -408
- package/packages/ari/jira/index.mjs +86 -86
- package/packages/ari/jira-dc-secondary.jira-dc/comment/index.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/comment/index.js +343 -0
- package/packages/ari/jira-dc-secondary.jira-dc/comment/index.mjs +17 -0
- package/packages/ari/jira-dc-secondary.jira-dc/comment/types.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/comment/types.js +29 -0
- package/packages/ari/jira-dc-secondary.jira-dc/comment/types.mjs +8 -0
- package/packages/ari/jira-dc-secondary.jira-dc/index.d.ts +4 -0
- package/packages/ari/jira-dc-secondary.jira-dc/index.js +522 -0
- package/packages/ari/jira-dc-secondary.jira-dc/index.mjs +28 -0
- package/packages/ari/jira-dc-secondary.jira-dc/project/index.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/project/index.js +343 -0
- package/packages/ari/jira-dc-secondary.jira-dc/project/index.mjs +17 -0
- package/packages/ari/jira-dc-secondary.jira-dc/project/types.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/project/types.js +29 -0
- package/packages/ari/jira-dc-secondary.jira-dc/project/types.mjs +8 -0
- package/packages/ari/jira-dc-secondary.jira-dc/space/index.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/space/index.js +343 -0
- package/packages/ari/jira-dc-secondary.jira-dc/space/index.mjs +17 -0
- package/packages/ari/jira-dc-secondary.jira-dc/space/types.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/space/types.js +29 -0
- package/packages/ari/jira-dc-secondary.jira-dc/space/types.mjs +8 -0
- package/packages/ari/jira-dc-secondary.jira-dc/work-item/index.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/work-item/index.js +343 -0
- package/packages/ari/jira-dc-secondary.jira-dc/work-item/index.mjs +17 -0
- package/packages/ari/jira-dc-secondary.jira-dc/work-item/types.d.ts +3 -0
- package/packages/ari/jira-dc-secondary.jira-dc/work-item/types.js +29 -0
- package/packages/ari/jira-dc-secondary.jira-dc/work-item/types.mjs +8 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/comment/index.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/comment/index.js +343 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/comment/index.mjs +17 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/comment/types.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/comment/types.js +29 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/comment/types.mjs +8 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/index.d.ts +4 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/index.js +522 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/index.mjs +28 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/project/index.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/project/index.js +343 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/project/index.mjs +17 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/project/types.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/project/types.js +29 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/project/types.mjs +8 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/space/index.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/space/index.js +343 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/space/index.mjs +17 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/space/types.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/space/types.js +29 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/space/types.mjs +8 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/work-item/index.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/work-item/index.js +343 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/work-item/index.mjs +17 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/work-item/types.d.ts +3 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/work-item/types.js +29 -0
- package/packages/ari/jira-dc-tertiary.jira-dc/work-item/types.mjs +8 -0
- package/packages/ari/jira-dc.jira-dc/index.mjs +4 -4
- package/packages/ari/jira-servicedesk/index.mjs +11 -11
- package/packages/ari/jira-software/index.mjs +14 -14
- package/packages/ari/knowledge-discovery/bookmark/index.d.ts +3 -0
- package/packages/ari/knowledge-discovery/bookmark/index.js +347 -0
- package/packages/ari/knowledge-discovery/bookmark/index.mjs +17 -0
- package/packages/ari/knowledge-discovery/bookmark/types.d.ts +3 -0
- package/packages/ari/knowledge-discovery/bookmark/types.js +29 -0
- package/packages/ari/knowledge-discovery/bookmark/types.mjs +8 -0
- package/packages/ari/knowledge-discovery/index.d.ts +1 -0
- package/packages/ari/knowledge-discovery/index.js +343 -0
- package/packages/ari/knowledge-discovery/index.mjs +13 -0
- package/packages/ari/loom/index.mjs +15 -15
- package/packages/ari/lucid.lucidchart/index.mjs +4 -4
- package/packages/ari/measurement/index.mjs +4 -4
- package/packages/ari/mercury/index.mjs +22 -22
- package/packages/ari/microsoft/index.mjs +8 -8
- package/packages/ari/microsoft.teams/index.mjs +4 -4
- package/packages/ari/miro.miro/index.mjs +4 -4
- package/packages/ari/opsgenie/index.mjs +28 -28
- package/packages/ari/package.json +1 -1
- package/packages/ari/papi/index.mjs +4 -4
- package/packages/ari/passionfruit/index.mjs +15 -15
- package/packages/ari/people-data/index.mjs +4 -4
- package/packages/ari/people-perftool/index.mjs +4 -4
- package/packages/ari/platform/index.mjs +11 -11
- package/packages/ari/proforma/index.mjs +8 -8
- package/packages/ari/pure/index.mjs +4 -4
- package/packages/ari/radar/index.mjs +4 -4
- package/packages/ari/resource-types/bookmark.d.ts +1 -0
- package/packages/ari/resource-types/bookmark.js +27 -0
- package/packages/ari/resource-types/bookmark.mjs +5 -0
- package/packages/ari/resource-types/usage.d.ts +1 -0
- package/packages/ari/resource-types/usage.js +27 -0
- package/packages/ari/resource-types/usage.mjs +5 -0
- package/packages/ari/rovo/index.mjs +4 -4
- package/packages/ari/search/index.mjs +4 -4
- package/packages/ari/slack/index.mjs +4 -4
- package/packages/ari/smartsheet.smartsheet/index.mjs +4 -4
- package/packages/ari/statuspage/index.mjs +4 -4
- package/packages/ari/townsquare/index.mjs +8 -8
- package/packages/ari/trello/index.mjs +8 -8
- package/packages/ari/unified-help/index.mjs +4 -4
- package/packages/ari/usage-tracking/index.d.ts +1 -0
- package/packages/ari/usage-tracking/index.js +332 -0
- package/packages/ari/usage-tracking/index.mjs +13 -0
- package/packages/ari/usage-tracking/usage/index.d.ts +3 -0
- package/packages/ari/usage-tracking/usage/index.js +336 -0
- package/packages/ari/usage-tracking/usage/index.mjs +17 -0
- package/packages/ari/usage-tracking/usage/types.d.ts +3 -0
- package/packages/ari/usage-tracking/usage/types.js +29 -0
- package/packages/ari/usage-tracking/usage/types.mjs +8 -0
- package/packages/ari/virtual-agent/index.mjs +8 -8
- package/packages/ari/workato/index.mjs +4 -4
- package/packages/ari/workday/index.mjs +4 -4
- package/packages/ari/workday.workday/index.mjs +4 -4
- package/packages/ari/zendesk.zendesk/index.mjs +4 -4
|
@@ -0,0 +1,343 @@
|
|
|
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/knowledge-discovery/index.ts
|
|
18
|
+
var knowledge_discovery_exports = {};
|
|
19
|
+
__export(knowledge_discovery_exports, {
|
|
20
|
+
KnowledgeDiscoveryBookmarkAri: () => KnowledgeDiscoveryBookmarkAri
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(knowledge_discovery_exports);
|
|
23
|
+
|
|
24
|
+
// src/errors.ts
|
|
25
|
+
var ValidationError = class extends Error {
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/core/rules/cloud-id.ts
|
|
29
|
+
function validateCloudId(cloudId, format = new RegExp("^[a-zA-Z0-9_\\-.]{0,255}$")) {
|
|
30
|
+
if (!cloudId.match(format))
|
|
31
|
+
throw new ValidationError(`Invalid cloud ID, expected ID of format ${format}.`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// src/core/rules/platform-qualifier.ts
|
|
35
|
+
function validatePlatformQualifier(qualifier) {
|
|
36
|
+
if (qualifier !== "cloud" && qualifier !== "third-party")
|
|
37
|
+
throw new ValidationError(`Identifier must have a qualifier of 'cloud' or 'third-party'. Received: ${qualifier}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// src/core/rules/qualifier.ts
|
|
41
|
+
function validateAtiQualifier(qualifier) {
|
|
42
|
+
if (qualifier !== "ati")
|
|
43
|
+
throw new ValidationError(`ATI must have a qualifier of 'ati'. Received: ${qualifier}`);
|
|
44
|
+
}
|
|
45
|
+
function validateAriQualifier(qualifier) {
|
|
46
|
+
if (qualifier !== "ari")
|
|
47
|
+
throw new ValidationError(`ARI must have a qualifier of 'ari'. Received: ${qualifier}`);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// src/core/rules/resource-id.ts
|
|
51
|
+
function validateResourceId(id, format = new RegExp("[!a-zA-Z0-9\\-_.~@:;{}=]+(/[!a-zA-Z0-9\\-_.~@:;{}=]+)*" /* ANY_RESOURCE_ID */), key = "resourceId") {
|
|
52
|
+
let formatWithCarets = new RegExp(`^${format.source}$`);
|
|
53
|
+
if (!id.match(formatWithCarets))
|
|
54
|
+
throw new ValidationError(`Invalid ${key} - ${id}, expected ID of format ${formatWithCarets}.`);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// src/core/rules/resource-id-segments.ts
|
|
58
|
+
function validateResourceIdSegments(resourceIdSegmentValues, resourceIdSegmentFormats) {
|
|
59
|
+
Object.entries(resourceIdSegmentValues).forEach(([resourceIdKey, resourceIdValue]) => {
|
|
60
|
+
validateResourceId(resourceIdValue, resourceIdSegmentFormats == null ? void 0 : resourceIdSegmentFormats[resourceIdKey], resourceIdKey);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// src/core/rules/resource-owner.ts
|
|
65
|
+
function validateResourceOwner(owner, expectedResourceOwner) {
|
|
66
|
+
if (expectedResourceOwner && owner !== expectedResourceOwner)
|
|
67
|
+
throw new ValidationError(`Invalid resource owner - ${owner}, expected ${expectedResourceOwner}.`);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// src/core/rules/resource-type.ts
|
|
71
|
+
function validateResourceType(type, expectedResourceType) {
|
|
72
|
+
if (expectedResourceType && type !== expectedResourceType)
|
|
73
|
+
throw new ValidationError(`Invalid resource type - ${type}, expected ${expectedResourceType}.`);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// src/core/parser/base.ts
|
|
77
|
+
var NUMBER_OF_BASE_SEGMENTS = 5, SEGMENT_SEPARATOR = ":", BaseParser = class {
|
|
78
|
+
static getIdentifierSegments(inputStr, numberOfSegmentsRequired) {
|
|
79
|
+
let allSegments = inputStr.split(SEGMENT_SEPARATOR);
|
|
80
|
+
if (allSegments.length < numberOfSegmentsRequired)
|
|
81
|
+
throw new ValidationError(`Input string must have ${numberOfSegmentsRequired} segments.`);
|
|
82
|
+
if (allSegments.length > numberOfSegmentsRequired) {
|
|
83
|
+
let segments = allSegments.slice(0, NUMBER_OF_BASE_SEGMENTS - 1), segmentsForResourceId = allSegments.slice(NUMBER_OF_BASE_SEGMENTS - 1, allSegments.length);
|
|
84
|
+
return [...segments, segmentsForResourceId.join(SEGMENT_SEPARATOR)];
|
|
85
|
+
}
|
|
86
|
+
return allSegments;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/core/parser/ari.ts
|
|
91
|
+
var NUMBER_OF_ARI_SEGMENTS = 5, AriParser = class extends BaseParser {
|
|
92
|
+
static fromString(maybeAri, ariProperties) {
|
|
93
|
+
let segments = this.getIdentifierSegments(maybeAri, NUMBER_OF_ARI_SEGMENTS), [qualifier, platformQualifier, resourceOwner, cloudId, resourceTypeAndId] = segments, [resourceType, ...resourceIdSegments] = resourceTypeAndId.split("/"), maybeAriDerivedProperties = {
|
|
94
|
+
qualifier,
|
|
95
|
+
platformQualifier,
|
|
96
|
+
cloudId,
|
|
97
|
+
resourceOwner,
|
|
98
|
+
resourceType,
|
|
99
|
+
resourceId: resourceIdSegments.join("/"),
|
|
100
|
+
resourceIdSegmentValues: ariProperties != null && ariProperties.resourceIdSlug ? this.ariSegmentValuesFromSlug(
|
|
101
|
+
ariProperties.resourceIdSlug,
|
|
102
|
+
resourceIdSegments.join("/"),
|
|
103
|
+
Object.keys(ariProperties.resourceIdSegmentFormats)
|
|
104
|
+
) : {}
|
|
105
|
+
};
|
|
106
|
+
return this.fromOpts(maybeAriDerivedProperties, ariProperties);
|
|
107
|
+
}
|
|
108
|
+
static fromOpts(maybeAriOpts, ariProperties) {
|
|
109
|
+
let {
|
|
110
|
+
qualifier = "ari",
|
|
111
|
+
platformQualifier = "cloud",
|
|
112
|
+
resourceOwner,
|
|
113
|
+
cloudId,
|
|
114
|
+
resourceId,
|
|
115
|
+
resourceIdSegmentValues,
|
|
116
|
+
resourceType
|
|
117
|
+
} = maybeAriOpts;
|
|
118
|
+
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), {
|
|
119
|
+
qualifier,
|
|
120
|
+
resourceOwner,
|
|
121
|
+
resourceType,
|
|
122
|
+
platformQualifier,
|
|
123
|
+
cloudId,
|
|
124
|
+
resourceId,
|
|
125
|
+
resourceIdSegmentValues
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
static ariSegmentValuesFromSlug(slug, incomingSegments, expectedKeys) {
|
|
129
|
+
let regexpResult = new RegExp("^" + slug.replace(/\{(.*?)\}/g, "(?<$1>.*?)") + "$").exec(incomingSegments);
|
|
130
|
+
if (!regexpResult)
|
|
131
|
+
throw new ValidationError(`Segment '${incomingSegments}' don't match expected slug: ${slug}`);
|
|
132
|
+
return expectedKeys.forEach((expectedKey) => {
|
|
133
|
+
var _a;
|
|
134
|
+
if (!((_a = regexpResult.groups) != null && _a[expectedKey]))
|
|
135
|
+
throw new ValidationError(`No value supplied for '${expectedKey}' based on slug ${slug}`);
|
|
136
|
+
}), regexpResult.groups || {};
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/core/parser/ati.ts
|
|
141
|
+
var NUMBER_OF_ATI_SEGMENTS = 4, AtiParser = class extends BaseParser {
|
|
142
|
+
static fromString(inputStr, atiOpts) {
|
|
143
|
+
let segments = this.getIdentifierSegments(inputStr, NUMBER_OF_ATI_SEGMENTS), [qualifier = "ati", platformQualifier = "cloud", resourceOwner, resourceType] = segments;
|
|
144
|
+
return validateAtiQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateResourceOwner(resourceOwner, atiOpts == null ? void 0 : atiOpts.resourceOwner), validateResourceType(resourceType, atiOpts == null ? void 0 : atiOpts.resourceType), { platformQualifier, resourceOwner, resourceType };
|
|
145
|
+
}
|
|
146
|
+
static fromOpts(maybeAtiOpts, atiOpts) {
|
|
147
|
+
let { qualifier, platformQualifier, resourceOwner, resourceType } = maybeAtiOpts;
|
|
148
|
+
return validateAtiQualifier(qualifier), validatePlatformQualifier(platformQualifier), validateResourceOwner(resourceOwner, atiOpts == null ? void 0 : atiOpts.resourceOwner), validateResourceType(resourceType, atiOpts == null ? void 0 : atiOpts.resourceType), {
|
|
149
|
+
platformQualifier,
|
|
150
|
+
resourceOwner,
|
|
151
|
+
resourceType
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// src/ati.ts
|
|
157
|
+
var Ati = class _Ati {
|
|
158
|
+
constructor(platformQualifier, resourceOwner, resourceType) {
|
|
159
|
+
this._platformQualifier = platformQualifier, this._resourceOwner = resourceOwner, this._resourceType = resourceType;
|
|
160
|
+
}
|
|
161
|
+
get platformQualifier() {
|
|
162
|
+
return this._platformQualifier;
|
|
163
|
+
}
|
|
164
|
+
get resourceOwner() {
|
|
165
|
+
return this._resourceOwner;
|
|
166
|
+
}
|
|
167
|
+
get resourceType() {
|
|
168
|
+
return this._resourceType;
|
|
169
|
+
}
|
|
170
|
+
static create(opts) {
|
|
171
|
+
return new _Ati(opts.platformQualifier || "cloud", opts.resourceOwner, opts.resourceType);
|
|
172
|
+
}
|
|
173
|
+
static parse(maybeAti, atiOpts) {
|
|
174
|
+
let opts = AtiParser.fromString(maybeAti, atiOpts);
|
|
175
|
+
return new _Ati(opts.platformQualifier, opts.resourceOwner, opts.resourceType);
|
|
176
|
+
}
|
|
177
|
+
toString() {
|
|
178
|
+
return `ati:${this.platformQualifier}:${this.resourceOwner}:${this.resourceType}`;
|
|
179
|
+
}
|
|
180
|
+
toJSON() {
|
|
181
|
+
return this.toString();
|
|
182
|
+
}
|
|
183
|
+
toOpts() {
|
|
184
|
+
return {
|
|
185
|
+
platformQualifier: this._platformQualifier,
|
|
186
|
+
resourceOwner: this._resourceOwner,
|
|
187
|
+
resourceType: this._resourceType
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// src/core/ari.ts
|
|
193
|
+
var Ari = class {
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
this._ati = Ati.create({
|
|
196
|
+
platformQualifier: opts.platformQualifier || "cloud",
|
|
197
|
+
resourceOwner: opts.resourceOwner,
|
|
198
|
+
resourceType: opts.resourceType
|
|
199
|
+
}), this._cloudId = opts.cloudId !== "" ? opts.cloudId : void 0, this._resourceId = opts.resourceId;
|
|
200
|
+
}
|
|
201
|
+
get platformQualifier() {
|
|
202
|
+
return this._ati.platformQualifier;
|
|
203
|
+
}
|
|
204
|
+
get cloudId() {
|
|
205
|
+
return this._cloudId;
|
|
206
|
+
}
|
|
207
|
+
get resourceOwner() {
|
|
208
|
+
return this._ati.resourceOwner;
|
|
209
|
+
}
|
|
210
|
+
get resourceType() {
|
|
211
|
+
return this._ati.resourceType;
|
|
212
|
+
}
|
|
213
|
+
get resourceId() {
|
|
214
|
+
return this._resourceId;
|
|
215
|
+
}
|
|
216
|
+
get ati() {
|
|
217
|
+
return this._ati;
|
|
218
|
+
}
|
|
219
|
+
equals(other) {
|
|
220
|
+
return this.toString() === other.toString();
|
|
221
|
+
}
|
|
222
|
+
toString() {
|
|
223
|
+
return `ari:${this.platformQualifier}:${this.resourceOwner}:${this.cloudId || ""}:${this.resourceType}/${this.resourceId}`;
|
|
224
|
+
}
|
|
225
|
+
toJSON() {
|
|
226
|
+
return this.toString();
|
|
227
|
+
}
|
|
228
|
+
toOpts() {
|
|
229
|
+
return {
|
|
230
|
+
platformQualifier: this.platformQualifier,
|
|
231
|
+
resourceOwner: this.resourceOwner,
|
|
232
|
+
cloudId: this.cloudId,
|
|
233
|
+
resourceType: this.resourceType,
|
|
234
|
+
resourceId: this.resourceId
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
// src/any-ari.ts
|
|
240
|
+
var AnyAri = class _AnyAri extends Ari {
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super(opts);
|
|
243
|
+
}
|
|
244
|
+
static create(ariOpts, ariStaticOpts) {
|
|
245
|
+
let ariOptsWithDefaults = { ...ariOpts, resourceIdSegmentValues: {} }, validatedOpts = AriParser.fromOpts(ariOptsWithDefaults, ariStaticOpts);
|
|
246
|
+
return new _AnyAri(validatedOpts);
|
|
247
|
+
}
|
|
248
|
+
static parse(maybeAri, ariStaticOpts) {
|
|
249
|
+
let validatedOpts = AriParser.fromString(maybeAri, ariStaticOpts);
|
|
250
|
+
return new _AnyAri(validatedOpts);
|
|
251
|
+
}
|
|
252
|
+
static check(maybeAri) {
|
|
253
|
+
try {
|
|
254
|
+
return _AnyAri.parse(maybeAri.toString()), !0;
|
|
255
|
+
} catch (err) {
|
|
256
|
+
return !1;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
asAnyAri() {
|
|
260
|
+
return this;
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// src/core/registered-ari.ts
|
|
265
|
+
var RegisteredAri = class extends Ari {
|
|
266
|
+
static check(maybeAri) {
|
|
267
|
+
try {
|
|
268
|
+
return this.parse(maybeAri.toString()), !0;
|
|
269
|
+
} catch (err) {
|
|
270
|
+
return !1;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
asAnyAri() {
|
|
274
|
+
return AnyAri.parse(this.toString());
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// src/knowledge-discovery/bookmark/types.ts
|
|
279
|
+
var KnowledgeDiscoveryBookmarkAriResourceOwner = "knowledge-discovery", KnowledgeDiscoveryBookmarkAriResourceType = "bookmark";
|
|
280
|
+
|
|
281
|
+
// src/knowledge-discovery/bookmark/manifest.ts
|
|
282
|
+
var knowledgeDiscoveryBookmarkAriStaticOpts = {
|
|
283
|
+
qualifier: "ari",
|
|
284
|
+
platformQualifier: "cloud",
|
|
285
|
+
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
|
|
286
|
+
// eslint-disable-line no-useless-escape
|
|
287
|
+
resourceOwner: KnowledgeDiscoveryBookmarkAriResourceOwner,
|
|
288
|
+
resourceType: KnowledgeDiscoveryBookmarkAriResourceType,
|
|
289
|
+
resourceIdSlug: "activation/{activationId}/{bookmarkId}",
|
|
290
|
+
resourceIdSegmentFormats: {
|
|
291
|
+
activationId: /[a-zA-Z0-9\-]+/,
|
|
292
|
+
// eslint-disable-line no-useless-escape
|
|
293
|
+
bookmarkId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
|
|
294
|
+
// eslint-disable-line no-useless-escape
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
// src/knowledge-discovery/bookmark/index.ts
|
|
299
|
+
var KnowledgeDiscoveryBookmarkAri = class _KnowledgeDiscoveryBookmarkAri extends RegisteredAri {
|
|
300
|
+
constructor(opts) {
|
|
301
|
+
super(opts);
|
|
302
|
+
this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._bookmarkId = opts.resourceIdSegmentValues.bookmarkId;
|
|
303
|
+
}
|
|
304
|
+
get siteId() {
|
|
305
|
+
return this._siteId;
|
|
306
|
+
}
|
|
307
|
+
get activationId() {
|
|
308
|
+
return this._activationId;
|
|
309
|
+
}
|
|
310
|
+
get bookmarkId() {
|
|
311
|
+
return this._bookmarkId;
|
|
312
|
+
}
|
|
313
|
+
static create(opts) {
|
|
314
|
+
let derivedOpts = {
|
|
315
|
+
qualifier: knowledgeDiscoveryBookmarkAriStaticOpts.qualifier,
|
|
316
|
+
platformQualifier: knowledgeDiscoveryBookmarkAriStaticOpts.platformQualifier,
|
|
317
|
+
cloudId: opts.siteId,
|
|
318
|
+
resourceOwner: knowledgeDiscoveryBookmarkAriStaticOpts.resourceOwner,
|
|
319
|
+
resourceType: knowledgeDiscoveryBookmarkAriStaticOpts.resourceType,
|
|
320
|
+
resourceId: `activation/${opts.activationId}/${opts.bookmarkId}`,
|
|
321
|
+
resourceIdSegmentValues: {
|
|
322
|
+
activationId: opts.activationId,
|
|
323
|
+
bookmarkId: opts.bookmarkId
|
|
324
|
+
}
|
|
325
|
+
}, ariOpts = AriParser.fromOpts(derivedOpts, knowledgeDiscoveryBookmarkAriStaticOpts);
|
|
326
|
+
return new _KnowledgeDiscoveryBookmarkAri(ariOpts);
|
|
327
|
+
}
|
|
328
|
+
static parse(maybeAri) {
|
|
329
|
+
let opts = AriParser.fromString(maybeAri, knowledgeDiscoveryBookmarkAriStaticOpts);
|
|
330
|
+
return new _KnowledgeDiscoveryBookmarkAri(opts);
|
|
331
|
+
}
|
|
332
|
+
getVariables() {
|
|
333
|
+
return {
|
|
334
|
+
siteId: this.siteId,
|
|
335
|
+
activationId: this.activationId,
|
|
336
|
+
bookmarkId: this.bookmarkId
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
341
|
+
0 && (module.exports = {
|
|
342
|
+
KnowledgeDiscoveryBookmarkAri
|
|
343
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../chunk-CZTKEESF.mjs";
|
|
2
|
+
import {
|
|
3
|
+
KnowledgeDiscoveryBookmarkAri
|
|
4
|
+
} from "../chunk-OMSDF73F.mjs";
|
|
5
|
+
import "../chunk-CSESCAWL.mjs";
|
|
6
|
+
import "../chunk-AB4PPISI.mjs";
|
|
7
|
+
import "../chunk-YFR5EBRK.mjs";
|
|
8
|
+
import "../chunk-S7RIZVFI.mjs";
|
|
9
|
+
import "../chunk-GAA5ADPB.mjs";
|
|
10
|
+
import "../chunk-FAZYALZ2.mjs";
|
|
11
|
+
export {
|
|
12
|
+
KnowledgeDiscoveryBookmarkAri
|
|
13
|
+
};
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import "../chunk-7DNBZ34Y.mjs";
|
|
2
|
-
import {
|
|
3
|
-
LoomWorkspaceAri
|
|
4
|
-
} from "../chunk-RPIEJOVB.mjs";
|
|
5
|
-
import "../chunk-B775R3QQ.mjs";
|
|
6
|
-
import {
|
|
7
|
-
LoomSiteAri
|
|
8
|
-
} from "../chunk-IRNE2HPF.mjs";
|
|
9
|
-
import "../chunk-T5DWCQIN.mjs";
|
|
10
|
-
import {
|
|
11
|
-
LoomSpaceAri
|
|
12
|
-
} from "../chunk-X2CU2FQF.mjs";
|
|
13
|
-
import "../chunk-PZ4WNDYC.mjs";
|
|
14
2
|
import {
|
|
15
3
|
LoomStandaloneWorkspaceAri
|
|
16
4
|
} from "../chunk-SPQY2JGE.mjs";
|
|
@@ -20,9 +8,9 @@ import {
|
|
|
20
8
|
} from "../chunk-MWMOPTQE.mjs";
|
|
21
9
|
import "../chunk-HNYYKJLO.mjs";
|
|
22
10
|
import {
|
|
23
|
-
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
11
|
+
LoomWorkspaceAri
|
|
12
|
+
} from "../chunk-RPIEJOVB.mjs";
|
|
13
|
+
import "../chunk-B775R3QQ.mjs";
|
|
26
14
|
import {
|
|
27
15
|
LoomMeetingRecurrenceAri
|
|
28
16
|
} from "../chunk-PIBY7ZE3.mjs";
|
|
@@ -31,10 +19,22 @@ import {
|
|
|
31
19
|
LoomMeetingAri
|
|
32
20
|
} from "../chunk-EK3PSSRF.mjs";
|
|
33
21
|
import "../chunk-M5DHKYFA.mjs";
|
|
22
|
+
import {
|
|
23
|
+
LoomSiteAri
|
|
24
|
+
} from "../chunk-IRNE2HPF.mjs";
|
|
25
|
+
import "../chunk-T5DWCQIN.mjs";
|
|
26
|
+
import {
|
|
27
|
+
LoomSpaceAri
|
|
28
|
+
} from "../chunk-X2CU2FQF.mjs";
|
|
29
|
+
import "../chunk-PZ4WNDYC.mjs";
|
|
34
30
|
import {
|
|
35
31
|
LoomCommentAri
|
|
36
32
|
} from "../chunk-WUYTABO6.mjs";
|
|
37
33
|
import "../chunk-KBPT7WSP.mjs";
|
|
34
|
+
import {
|
|
35
|
+
LoomFolderAri
|
|
36
|
+
} from "../chunk-ZSXBO2NU.mjs";
|
|
37
|
+
import "../chunk-TEUWIQME.mjs";
|
|
38
38
|
import "../chunk-AB4PPISI.mjs";
|
|
39
39
|
import "../chunk-YFR5EBRK.mjs";
|
|
40
40
|
import "../chunk-S7RIZVFI.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-E4QOAXOS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
LucidLucidchartDesignAri
|
|
4
|
-
} from "../chunk-YTKEQOWN.mjs";
|
|
5
|
-
import "../chunk-JCHNYGGY.mjs";
|
|
6
2
|
import {
|
|
7
3
|
LucidLucidchartRemoteLinkAri
|
|
8
4
|
} from "../chunk-KMVTHTHM.mjs";
|
|
9
5
|
import "../chunk-SCXWFMLG.mjs";
|
|
6
|
+
import {
|
|
7
|
+
LucidLucidchartDesignAri
|
|
8
|
+
} from "../chunk-YTKEQOWN.mjs";
|
|
9
|
+
import "../chunk-JCHNYGGY.mjs";
|
|
10
10
|
import "../chunk-AB4PPISI.mjs";
|
|
11
11
|
import "../chunk-YFR5EBRK.mjs";
|
|
12
12
|
import "../chunk-S7RIZVFI.mjs";
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import "../chunk-ZNQVUOOQ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
MeasurementUserAri
|
|
4
|
-
} from "../chunk-WGZVKVAW.mjs";
|
|
5
|
-
import "../chunk-G4CB4RQJ.mjs";
|
|
6
2
|
import {
|
|
7
3
|
MeasurementEmailUuidAri
|
|
8
4
|
} from "../chunk-FKAT6PLF.mjs";
|
|
@@ -11,6 +7,10 @@ import {
|
|
|
11
7
|
MeasurementSiteUserAri
|
|
12
8
|
} from "../chunk-JTLJWWFY.mjs";
|
|
13
9
|
import "../chunk-CHIUNEWO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
MeasurementUserAri
|
|
12
|
+
} from "../chunk-WGZVKVAW.mjs";
|
|
13
|
+
import "../chunk-G4CB4RQJ.mjs";
|
|
14
14
|
import "../chunk-AB4PPISI.mjs";
|
|
15
15
|
import "../chunk-YFR5EBRK.mjs";
|
|
16
16
|
import "../chunk-S7RIZVFI.mjs";
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
import "../chunk-UXR4UICM.mjs";
|
|
2
|
-
import {
|
|
3
|
-
MercuryViewAri
|
|
4
|
-
} from "../chunk-ZXJEKNUX.mjs";
|
|
5
|
-
import "../chunk-SW47DL6N.mjs";
|
|
6
|
-
import {
|
|
7
|
-
MercuryWorkspaceAri
|
|
8
|
-
} from "../chunk-5PEI2OCP.mjs";
|
|
9
|
-
import "../chunk-IRPKQZGM.mjs";
|
|
10
|
-
import {
|
|
11
|
-
MercuryRoleAri
|
|
12
|
-
} from "../chunk-MPSZKE7H.mjs";
|
|
13
|
-
import "../chunk-2CIDR5KT.mjs";
|
|
14
|
-
import {
|
|
15
|
-
MercurySiteAri
|
|
16
|
-
} from "../chunk-LA3MIML6.mjs";
|
|
17
|
-
import "../chunk-SEACGWCF.mjs";
|
|
18
2
|
import {
|
|
19
3
|
MercuryStrategicEventStatusAri
|
|
20
4
|
} from "../chunk-HUQCQ4JQ.mjs";
|
|
@@ -24,9 +8,13 @@ import {
|
|
|
24
8
|
} from "../chunk-5TD7LKMY.mjs";
|
|
25
9
|
import "../chunk-AQRHDNVH.mjs";
|
|
26
10
|
import {
|
|
27
|
-
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
11
|
+
MercuryViewAri
|
|
12
|
+
} from "../chunk-ZXJEKNUX.mjs";
|
|
13
|
+
import "../chunk-SW47DL6N.mjs";
|
|
14
|
+
import {
|
|
15
|
+
MercuryWorkspaceAri
|
|
16
|
+
} from "../chunk-5PEI2OCP.mjs";
|
|
17
|
+
import "../chunk-IRPKQZGM.mjs";
|
|
30
18
|
import {
|
|
31
19
|
MercuryProgramStatusUpdateAri
|
|
32
20
|
} from "../chunk-RTOTM3FZ.mjs";
|
|
@@ -36,9 +24,13 @@ import {
|
|
|
36
24
|
} from "../chunk-ZVDHNU5H.mjs";
|
|
37
25
|
import "../chunk-YNUAOINR.mjs";
|
|
38
26
|
import {
|
|
39
|
-
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
27
|
+
MercuryRoleAri
|
|
28
|
+
} from "../chunk-MPSZKE7H.mjs";
|
|
29
|
+
import "../chunk-2CIDR5KT.mjs";
|
|
30
|
+
import {
|
|
31
|
+
MercurySiteAri
|
|
32
|
+
} from "../chunk-LA3MIML6.mjs";
|
|
33
|
+
import "../chunk-SEACGWCF.mjs";
|
|
42
34
|
import {
|
|
43
35
|
MercuryCommentAri
|
|
44
36
|
} from "../chunk-VMDV35HO.mjs";
|
|
@@ -51,6 +43,10 @@ import {
|
|
|
51
43
|
MercuryFocusAreaTypeAri
|
|
52
44
|
} from "../chunk-6KZLQFI3.mjs";
|
|
53
45
|
import "../chunk-QPQE5MQK.mjs";
|
|
46
|
+
import {
|
|
47
|
+
MercuryFocusAreaAri
|
|
48
|
+
} from "../chunk-PRFYCS27.mjs";
|
|
49
|
+
import "../chunk-3SEGWH74.mjs";
|
|
54
50
|
import {
|
|
55
51
|
MercuryChangeProposalStatusAri
|
|
56
52
|
} from "../chunk-ZRSB7XHK.mjs";
|
|
@@ -59,6 +55,10 @@ import {
|
|
|
59
55
|
MercuryChangeProposalAri
|
|
60
56
|
} from "../chunk-XNAISYEC.mjs";
|
|
61
57
|
import "../chunk-P7WJCT2Q.mjs";
|
|
58
|
+
import {
|
|
59
|
+
MercuryChangeAri
|
|
60
|
+
} from "../chunk-5XKGVM5M.mjs";
|
|
61
|
+
import "../chunk-ZVFPKZ5M.mjs";
|
|
62
62
|
import "../chunk-AB4PPISI.mjs";
|
|
63
63
|
import "../chunk-YFR5EBRK.mjs";
|
|
64
64
|
import "../chunk-S7RIZVFI.mjs";
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import "../chunk-X7MVEKLR.mjs";
|
|
2
|
-
import {
|
|
3
|
-
MicrosoftSharepointDocumentAri
|
|
4
|
-
} from "../chunk-GYBIMR5G.mjs";
|
|
5
|
-
import "../chunk-N2H36TJ6.mjs";
|
|
6
|
-
import {
|
|
7
|
-
MicrosoftCalendarEventAri
|
|
8
|
-
} from "../chunk-XCGYZTQK.mjs";
|
|
9
|
-
import "../chunk-KRNGEAQB.mjs";
|
|
10
2
|
import {
|
|
11
3
|
MicrosoftChannelAri
|
|
12
4
|
} from "../chunk-6XRBE35V.mjs";
|
|
@@ -15,10 +7,18 @@ import {
|
|
|
15
7
|
MicrosoftChatAri
|
|
16
8
|
} from "../chunk-QKXY4FYK.mjs";
|
|
17
9
|
import "../chunk-TEIQ5OS2.mjs";
|
|
10
|
+
import {
|
|
11
|
+
MicrosoftSharepointDocumentAri
|
|
12
|
+
} from "../chunk-GYBIMR5G.mjs";
|
|
13
|
+
import "../chunk-N2H36TJ6.mjs";
|
|
18
14
|
import {
|
|
19
15
|
MicrosoftAccountAri
|
|
20
16
|
} from "../chunk-GP2M3LG5.mjs";
|
|
21
17
|
import "../chunk-YIHJDIS5.mjs";
|
|
18
|
+
import {
|
|
19
|
+
MicrosoftCalendarEventAri
|
|
20
|
+
} from "../chunk-XCGYZTQK.mjs";
|
|
21
|
+
import "../chunk-KRNGEAQB.mjs";
|
|
22
22
|
import "../chunk-AB4PPISI.mjs";
|
|
23
23
|
import "../chunk-YFR5EBRK.mjs";
|
|
24
24
|
import "../chunk-S7RIZVFI.mjs";
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import "../chunk-4TBZMI6W.mjs";
|
|
2
|
-
import {
|
|
3
|
-
MicrosoftTeamsConversationAri
|
|
4
|
-
} from "../chunk-F5CSQIKL.mjs";
|
|
5
|
-
import "../chunk-WU5T7JXE.mjs";
|
|
6
2
|
import {
|
|
7
3
|
MicrosoftTeamsMessageAri
|
|
8
4
|
} from "../chunk-O7SO6OWR.mjs";
|
|
@@ -11,6 +7,10 @@ import {
|
|
|
11
7
|
MicrosoftTeamsRemoteLinkAri
|
|
12
8
|
} from "../chunk-TP7IYRNY.mjs";
|
|
13
9
|
import "../chunk-XYSLL7ZT.mjs";
|
|
10
|
+
import {
|
|
11
|
+
MicrosoftTeamsConversationAri
|
|
12
|
+
} from "../chunk-F5CSQIKL.mjs";
|
|
13
|
+
import "../chunk-WU5T7JXE.mjs";
|
|
14
14
|
import "../chunk-AB4PPISI.mjs";
|
|
15
15
|
import "../chunk-YFR5EBRK.mjs";
|
|
16
16
|
import "../chunk-S7RIZVFI.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-XKE76CNH.mjs";
|
|
2
|
-
import {
|
|
3
|
-
MiroMiroRemoteLinkAri
|
|
4
|
-
} from "../chunk-EPLRVJSL.mjs";
|
|
5
|
-
import "../chunk-O3FMW3NZ.mjs";
|
|
6
2
|
import {
|
|
7
3
|
MiroMiroDesignAri
|
|
8
4
|
} from "../chunk-HXNKYMT5.mjs";
|
|
9
5
|
import "../chunk-7BX3X4ZX.mjs";
|
|
6
|
+
import {
|
|
7
|
+
MiroMiroRemoteLinkAri
|
|
8
|
+
} from "../chunk-EPLRVJSL.mjs";
|
|
9
|
+
import "../chunk-O3FMW3NZ.mjs";
|
|
10
10
|
import "../chunk-AB4PPISI.mjs";
|
|
11
11
|
import "../chunk-YFR5EBRK.mjs";
|
|
12
12
|
import "../chunk-S7RIZVFI.mjs";
|