@forge/util 1.4.1-next.0 → 1.4.1
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 +8 -0
- package/package.json +1 -1
- 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 +111 -0
- package/packages/ari/chunk-A5KZESJG.mjs +76 -0
- package/packages/ari/chunk-GHVFX7QU.mjs +80 -0
- package/packages/ari/chunk-IQPZXRAE.mjs +69 -0
- package/packages/ari/chunk-PF3FHNQU.mjs +7 -0
- package/packages/ari/chunk-QO2BQQRK.mjs +7 -0
- package/packages/ari/chunk-RYGO66NC.mjs +7 -0
- package/packages/ari/index.js +1 -1
- package/packages/ari/index.mjs +197 -191
- package/packages/ari/jira/index.d.ts +2 -0
- package/packages/ari/jira/index.js +131 -0
- package/packages/ari/jira/index.mjs +79 -69
- 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/measurement/index.mjs +4 -4
- package/packages/ari/mercury/index.mjs +8 -8
- package/packages/ari/opsgenie/index.mjs +38 -38
- package/packages/ari/package.json +1 -1
- package/packages/ari/papi/index.mjs +4 -4
- package/packages/ari/people-perftool/index.mjs +4 -4
- package/packages/ari/platform/index.mjs +16 -16
- 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/statuspage/index.mjs +4 -4
- package/packages/ari/townsquare/index.mjs +11 -11
- package/packages/ari/trello/index.mjs +4 -4
- 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 +6 -1
- package/packages/metrics-interface/CHANGELOG.md +42 -0
- package/packages/metrics-interface/README.md +13 -15
- package/packages/metrics-interface/dist/metrics.d.ts +2 -0
- package/packages/metrics-interface/dist/metrics.d.ts.map +1 -1
- package/packages/metrics-interface/dist/metrics.js +11 -1
- package/packages/metrics-interface/dist/metrics.js.map +1 -1
- package/packages/metrics-interface/dist/mocks/index.d.ts +3 -1
- package/packages/metrics-interface/dist/mocks/index.d.ts.map +1 -1
- package/packages/metrics-interface/dist/mocks/index.js +3 -1
- package/packages/metrics-interface/dist/mocks/index.js.map +1 -1
- package/packages/metrics-interface/package.json +3 -2
- /package/packages/ari/{chunk-VZUAPXXZ.mjs → chunk-GH4RGVNE.mjs} +0 -0
- /package/packages/ari/{chunk-WRVV7GZO.mjs → chunk-NZ5QEVUV.mjs} +0 -0
|
@@ -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/jira/notification-user-preference/index.ts
|
|
18
|
+
var notification_user_preference_exports = {};
|
|
19
|
+
__export(notification_user_preference_exports, {
|
|
20
|
+
JiraNotificationUserPreferenceAri: () => JiraNotificationUserPreferenceAri,
|
|
21
|
+
JiraNotificationUserPreferenceAriResourceOwner: () => JiraNotificationUserPreferenceAriResourceOwner,
|
|
22
|
+
JiraNotificationUserPreferenceAriResourceType: () => JiraNotificationUserPreferenceAriResourceType
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(notification_user_preference_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/jira/notification-user-preference/types.ts
|
|
281
|
+
var JiraNotificationUserPreferenceAriResourceOwner = "jira", JiraNotificationUserPreferenceAriResourceType = "notification-user-preference";
|
|
282
|
+
|
|
283
|
+
// src/jira/notification-user-preference/manifest.ts
|
|
284
|
+
var jiraNotificationUserPreferenceAriStaticOpts = {
|
|
285
|
+
qualifier: "ari",
|
|
286
|
+
platformQualifier: "cloud",
|
|
287
|
+
cloudId: new RegExp("^$"),
|
|
288
|
+
resourceOwner: JiraNotificationUserPreferenceAriResourceOwner,
|
|
289
|
+
resourceType: JiraNotificationUserPreferenceAriResourceType,
|
|
290
|
+
resourceIdSlug: "activation/{activationId}/{notificationUserPreferenceId}",
|
|
291
|
+
resourceIdSegmentFormats: {
|
|
292
|
+
activationId: /[a-zA-Z0-9\-]+/,
|
|
293
|
+
// eslint-disable-line no-useless-escape
|
|
294
|
+
notificationUserPreferenceId: /[0-9]+/
|
|
295
|
+
// eslint-disable-line no-useless-escape
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
// src/jira/notification-user-preference/index.ts
|
|
300
|
+
var JiraNotificationUserPreferenceAri = class _JiraNotificationUserPreferenceAri extends RegisteredAri {
|
|
301
|
+
constructor(opts) {
|
|
302
|
+
super(opts);
|
|
303
|
+
this._activationId = opts.resourceIdSegmentValues.activationId, this._notificationUserPreferenceId = opts.resourceIdSegmentValues.notificationUserPreferenceId;
|
|
304
|
+
}
|
|
305
|
+
get activationId() {
|
|
306
|
+
return this._activationId;
|
|
307
|
+
}
|
|
308
|
+
get notificationUserPreferenceId() {
|
|
309
|
+
return this._notificationUserPreferenceId;
|
|
310
|
+
}
|
|
311
|
+
static create(opts) {
|
|
312
|
+
let derivedOpts = {
|
|
313
|
+
qualifier: jiraNotificationUserPreferenceAriStaticOpts.qualifier,
|
|
314
|
+
platformQualifier: jiraNotificationUserPreferenceAriStaticOpts.platformQualifier,
|
|
315
|
+
cloudId: void 0,
|
|
316
|
+
resourceOwner: jiraNotificationUserPreferenceAriStaticOpts.resourceOwner,
|
|
317
|
+
resourceType: jiraNotificationUserPreferenceAriStaticOpts.resourceType,
|
|
318
|
+
resourceId: `activation/${opts.activationId}/${opts.notificationUserPreferenceId}`,
|
|
319
|
+
resourceIdSegmentValues: {
|
|
320
|
+
activationId: opts.activationId,
|
|
321
|
+
notificationUserPreferenceId: opts.notificationUserPreferenceId
|
|
322
|
+
}
|
|
323
|
+
}, ariOpts = AriParser.fromOpts(derivedOpts, jiraNotificationUserPreferenceAriStaticOpts);
|
|
324
|
+
return new _JiraNotificationUserPreferenceAri(ariOpts);
|
|
325
|
+
}
|
|
326
|
+
static parse(maybeAri) {
|
|
327
|
+
let opts = AriParser.fromString(maybeAri, jiraNotificationUserPreferenceAriStaticOpts);
|
|
328
|
+
return new _JiraNotificationUserPreferenceAri(opts);
|
|
329
|
+
}
|
|
330
|
+
getVariables() {
|
|
331
|
+
return {
|
|
332
|
+
activationId: this.activationId,
|
|
333
|
+
notificationUserPreferenceId: this.notificationUserPreferenceId
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
338
|
+
0 && (module.exports = {
|
|
339
|
+
JiraNotificationUserPreferenceAri,
|
|
340
|
+
JiraNotificationUserPreferenceAriResourceOwner,
|
|
341
|
+
JiraNotificationUserPreferenceAriResourceType
|
|
342
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
JiraNotificationUserPreferenceAri
|
|
3
|
+
} from "../../chunk-IQPZXRAE.mjs";
|
|
4
|
+
import {
|
|
5
|
+
JiraNotificationUserPreferenceAriResourceOwner,
|
|
6
|
+
JiraNotificationUserPreferenceAriResourceType
|
|
7
|
+
} from "../../chunk-RYGO66NC.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
|
+
JiraNotificationUserPreferenceAri,
|
|
15
|
+
JiraNotificationUserPreferenceAriResourceOwner,
|
|
16
|
+
JiraNotificationUserPreferenceAriResourceType
|
|
17
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { JiraNotificationUserPreferenceAriOpts } from '../../_tsup-dts-rollup';
|
|
2
|
+
export { JiraNotificationUserPreferenceAriResourceOwner_alias_1 as JiraNotificationUserPreferenceAriResourceOwner } from '../../_tsup-dts-rollup';
|
|
3
|
+
export { JiraNotificationUserPreferenceAriResourceType_alias_1 as JiraNotificationUserPreferenceAriResourceType } from '../../_tsup-dts-rollup';
|
|
@@ -0,0 +1,29 @@
|
|
|
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/jira/notification-user-preference/types.ts
|
|
18
|
+
var types_exports = {};
|
|
19
|
+
__export(types_exports, {
|
|
20
|
+
JiraNotificationUserPreferenceAriResourceOwner: () => JiraNotificationUserPreferenceAriResourceOwner,
|
|
21
|
+
JiraNotificationUserPreferenceAriResourceType: () => JiraNotificationUserPreferenceAriResourceType
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
var JiraNotificationUserPreferenceAriResourceOwner = "jira", JiraNotificationUserPreferenceAriResourceType = "notification-user-preference";
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
JiraNotificationUserPreferenceAriResourceOwner,
|
|
28
|
+
JiraNotificationUserPreferenceAriResourceType
|
|
29
|
+
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import "../chunk-ZNQVUOOQ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
MeasurementEmailUuidAri
|
|
4
|
+
} from "../chunk-I36GCRAQ.mjs";
|
|
5
|
+
import "../chunk-TZWB442U.mjs";
|
|
2
6
|
import {
|
|
3
7
|
MeasurementSiteUserAri
|
|
4
8
|
} from "../chunk-VX4V753Y.mjs";
|
|
@@ -7,10 +11,6 @@ import {
|
|
|
7
11
|
MeasurementUserAri
|
|
8
12
|
} from "../chunk-OHRVWON3.mjs";
|
|
9
13
|
import "../chunk-G4CB4RQJ.mjs";
|
|
10
|
-
import {
|
|
11
|
-
MeasurementEmailUuidAri
|
|
12
|
-
} from "../chunk-I36GCRAQ.mjs";
|
|
13
|
-
import "../chunk-TZWB442U.mjs";
|
|
14
14
|
import "../chunk-PA4Y7TWI.mjs";
|
|
15
15
|
import "../chunk-NCC2UXNN.mjs";
|
|
16
16
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import "../chunk-SV3OSS6S.mjs";
|
|
2
|
-
import {
|
|
3
|
-
MercurySiteAri
|
|
4
|
-
} from "../chunk-CRBTDEBI.mjs";
|
|
5
|
-
import "../chunk-SEACGWCF.mjs";
|
|
6
|
-
import {
|
|
7
|
-
MercuryProgramStatusUpdateAri
|
|
8
|
-
} from "../chunk-MFJQT7EB.mjs";
|
|
9
|
-
import "../chunk-DXGTR4X7.mjs";
|
|
10
2
|
import {
|
|
11
3
|
MercuryProgramAri
|
|
12
4
|
} from "../chunk-BPZ52OPF.mjs";
|
|
@@ -15,10 +7,18 @@ import {
|
|
|
15
7
|
MercuryRoleAri
|
|
16
8
|
} from "../chunk-E3EIKCY3.mjs";
|
|
17
9
|
import "../chunk-2CIDR5KT.mjs";
|
|
10
|
+
import {
|
|
11
|
+
MercurySiteAri
|
|
12
|
+
} from "../chunk-CRBTDEBI.mjs";
|
|
13
|
+
import "../chunk-SEACGWCF.mjs";
|
|
18
14
|
import {
|
|
19
15
|
MercuryCommentAri
|
|
20
16
|
} from "../chunk-EXQVDUWK.mjs";
|
|
21
17
|
import "../chunk-IP7NNLNW.mjs";
|
|
18
|
+
import {
|
|
19
|
+
MercuryProgramStatusUpdateAri
|
|
20
|
+
} from "../chunk-MFJQT7EB.mjs";
|
|
21
|
+
import "../chunk-DXGTR4X7.mjs";
|
|
22
22
|
import "../chunk-PA4Y7TWI.mjs";
|
|
23
23
|
import "../chunk-NCC2UXNN.mjs";
|
|
24
24
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import "../chunk-UW7FK2QY.mjs";
|
|
2
|
-
import {
|
|
3
|
-
OpsgenieTeamAri
|
|
4
|
-
} from "../chunk-QNAAHRUK.mjs";
|
|
5
|
-
import "../chunk-5GDLDNUH.mjs";
|
|
6
|
-
import {
|
|
7
|
-
OpsgenieTimelineAri
|
|
8
|
-
} from "../chunk-DVQF75RB.mjs";
|
|
9
|
-
import "../chunk-T4JHTCBL.mjs";
|
|
10
2
|
import {
|
|
11
3
|
OpsgenieWorkspaceAri
|
|
12
4
|
} from "../chunk-UY2MEVZC.mjs";
|
|
13
5
|
import "../chunk-Y2SQLTAK.mjs";
|
|
14
|
-
import {
|
|
15
|
-
OpsgenieRoleAri
|
|
16
|
-
} from "../chunk-HVJJ22MX.mjs";
|
|
17
|
-
import "../chunk-7ZPWMXWE.mjs";
|
|
18
|
-
import {
|
|
19
|
-
OpsgenieScheduleRotationAri
|
|
20
|
-
} from "../chunk-MSLIULJD.mjs";
|
|
21
|
-
import "../chunk-ILPXSBCV.mjs";
|
|
22
6
|
import {
|
|
23
7
|
OpsgenieScheduleAri
|
|
24
8
|
} from "../chunk-OFQY7N2T.mjs";
|
|
@@ -28,9 +12,13 @@ import {
|
|
|
28
12
|
} from "../chunk-RJHR4WH5.mjs";
|
|
29
13
|
import "../chunk-3A7NUHDU.mjs";
|
|
30
14
|
import {
|
|
31
|
-
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
15
|
+
OpsgenieTeamAri
|
|
16
|
+
} from "../chunk-QNAAHRUK.mjs";
|
|
17
|
+
import "../chunk-5GDLDNUH.mjs";
|
|
18
|
+
import {
|
|
19
|
+
OpsgenieTimelineAri
|
|
20
|
+
} from "../chunk-DVQF75RB.mjs";
|
|
21
|
+
import "../chunk-T4JHTCBL.mjs";
|
|
34
22
|
import {
|
|
35
23
|
OpsgenieIntegrationAri
|
|
36
24
|
} from "../chunk-6IRGDEA2.mjs";
|
|
@@ -40,13 +28,13 @@ import {
|
|
|
40
28
|
} from "../chunk-VOGU5CWY.mjs";
|
|
41
29
|
import "../chunk-WBXUDE5Y.mjs";
|
|
42
30
|
import {
|
|
43
|
-
|
|
44
|
-
} from "../chunk-
|
|
45
|
-
import "../chunk-
|
|
31
|
+
OpsgenieRoleAri
|
|
32
|
+
} from "../chunk-HVJJ22MX.mjs";
|
|
33
|
+
import "../chunk-7ZPWMXWE.mjs";
|
|
46
34
|
import {
|
|
47
|
-
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
35
|
+
OpsgenieScheduleRotationAri
|
|
36
|
+
} from "../chunk-MSLIULJD.mjs";
|
|
37
|
+
import "../chunk-ILPXSBCV.mjs";
|
|
50
38
|
import {
|
|
51
39
|
OpsgenieIncidentStatusUpdateAri
|
|
52
40
|
} from "../chunk-SQP5CMSO.mjs";
|
|
@@ -56,13 +44,9 @@ import {
|
|
|
56
44
|
} from "../chunk-QBUGZDEX.mjs";
|
|
57
45
|
import "../chunk-TLNXXINJ.mjs";
|
|
58
46
|
import {
|
|
59
|
-
|
|
60
|
-
} from "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import {
|
|
63
|
-
OpsgenieDeploymentServiceLinkAri
|
|
64
|
-
} from "../chunk-GOVJSWIB.mjs";
|
|
65
|
-
import "../chunk-VYEUWCEP.mjs";
|
|
47
|
+
OpsgenieIncomingCallHistoryAri
|
|
48
|
+
} from "../chunk-IMBFQDTD.mjs";
|
|
49
|
+
import "../chunk-W4G5P22J.mjs";
|
|
66
50
|
import {
|
|
67
51
|
OpsgenieDeploymentAri
|
|
68
52
|
} from "../chunk-XSIBGA2X.mjs";
|
|
@@ -72,13 +56,13 @@ import {
|
|
|
72
56
|
} from "../chunk-W3TCFCU4.mjs";
|
|
73
57
|
import "../chunk-C3Q7ZVPL.mjs";
|
|
74
58
|
import {
|
|
75
|
-
|
|
76
|
-
} from "../chunk-
|
|
77
|
-
import "../chunk-
|
|
59
|
+
OpsgenieEventAri
|
|
60
|
+
} from "../chunk-EONGG2SD.mjs";
|
|
61
|
+
import "../chunk-PW5GVXRG.mjs";
|
|
78
62
|
import {
|
|
79
|
-
|
|
80
|
-
} from "../chunk-
|
|
81
|
-
import "../chunk-
|
|
63
|
+
OpsgenieIncidentAlertLinkAri
|
|
64
|
+
} from "../chunk-TTP2F7T2.mjs";
|
|
65
|
+
import "../chunk-JCLOAQNZ.mjs";
|
|
82
66
|
import {
|
|
83
67
|
OpsgenieApiRequestMetricAri
|
|
84
68
|
} from "../chunk-44ER4CCS.mjs";
|
|
@@ -87,6 +71,14 @@ import {
|
|
|
87
71
|
OpsgenieCallRoutingAri
|
|
88
72
|
} from "../chunk-TXNPCYZ5.mjs";
|
|
89
73
|
import "../chunk-P2OBBGSQ.mjs";
|
|
74
|
+
import {
|
|
75
|
+
OpsgenieCustomRoleAri
|
|
76
|
+
} from "../chunk-4VI4FOQT.mjs";
|
|
77
|
+
import "../chunk-RW54AUFT.mjs";
|
|
78
|
+
import {
|
|
79
|
+
OpsgenieDeploymentServiceLinkAri
|
|
80
|
+
} from "../chunk-GOVJSWIB.mjs";
|
|
81
|
+
import "../chunk-VYEUWCEP.mjs";
|
|
90
82
|
import {
|
|
91
83
|
OpsgenieAccountLoginAri
|
|
92
84
|
} from "../chunk-YSKELIVG.mjs";
|
|
@@ -95,6 +87,14 @@ import {
|
|
|
95
87
|
OpsgenieAccountSettingsAri
|
|
96
88
|
} from "../chunk-DB67C5D5.mjs";
|
|
97
89
|
import "../chunk-OZDNDKVC.mjs";
|
|
90
|
+
import {
|
|
91
|
+
OpsgenieAlertRecipientLinkAri
|
|
92
|
+
} from "../chunk-QBOS25EO.mjs";
|
|
93
|
+
import "../chunk-JXI5TFG4.mjs";
|
|
94
|
+
import {
|
|
95
|
+
OpsgenieAlertAri
|
|
96
|
+
} from "../chunk-YNGBANCC.mjs";
|
|
97
|
+
import "../chunk-PZKFI7JM.mjs";
|
|
98
98
|
import "../chunk-PA4Y7TWI.mjs";
|
|
99
99
|
import "../chunk-NCC2UXNN.mjs";
|
|
100
100
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-P6ODAFPN.mjs";
|
|
2
|
-
import {
|
|
3
|
-
PapiRoleAri
|
|
4
|
-
} from "../chunk-ZM3GPI7D.mjs";
|
|
5
|
-
import "../chunk-NLJJ6GJ4.mjs";
|
|
6
2
|
import {
|
|
7
3
|
PapiApiAri
|
|
8
4
|
} from "../chunk-GWT4UNXI.mjs";
|
|
9
5
|
import "../chunk-5IDHPJZF.mjs";
|
|
6
|
+
import {
|
|
7
|
+
PapiRoleAri
|
|
8
|
+
} from "../chunk-ZM3GPI7D.mjs";
|
|
9
|
+
import "../chunk-NLJJ6GJ4.mjs";
|
|
10
10
|
import "../chunk-PA4Y7TWI.mjs";
|
|
11
11
|
import "../chunk-NCC2UXNN.mjs";
|
|
12
12
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import "../chunk-WL6TPSYP.mjs";
|
|
2
|
+
import {
|
|
3
|
+
PeoplePerftoolCalibrationAri
|
|
4
|
+
} from "../chunk-GGJRQUJU.mjs";
|
|
5
|
+
import "../chunk-YFDO5OIQ.mjs";
|
|
2
6
|
import {
|
|
3
7
|
PeoplePerftoolFeedbackAri
|
|
4
8
|
} from "../chunk-BDHBO5CO.mjs";
|
|
@@ -7,10 +11,6 @@ import {
|
|
|
7
11
|
PeoplePerftoolPerformanceAri
|
|
8
12
|
} from "../chunk-WTXSCS6P.mjs";
|
|
9
13
|
import "../chunk-BBPB2HIH.mjs";
|
|
10
|
-
import {
|
|
11
|
-
PeoplePerftoolCalibrationAri
|
|
12
|
-
} from "../chunk-GGJRQUJU.mjs";
|
|
13
|
-
import "../chunk-YFDO5OIQ.mjs";
|
|
14
14
|
import "../chunk-PA4Y7TWI.mjs";
|
|
15
15
|
import "../chunk-NCC2UXNN.mjs";
|
|
16
16
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import "../chunk-EHBNQJ47.mjs";
|
|
2
|
-
import {
|
|
3
|
-
PlatformOrgUserAri
|
|
4
|
-
} from "../chunk-J7CQFIR2.mjs";
|
|
5
|
-
import "../chunk-REH6WMJF.mjs";
|
|
6
|
-
import {
|
|
7
|
-
PlatformOrgAri
|
|
8
|
-
} from "../chunk-NVDJASQK.mjs";
|
|
9
|
-
import "../chunk-ON6PRZUL.mjs";
|
|
10
2
|
import {
|
|
11
3
|
PlatformSecureTunnelAri
|
|
12
4
|
} from "../chunk-DRV2ZYTW.mjs";
|
|
@@ -15,14 +7,6 @@ import {
|
|
|
15
7
|
PlatformSiteAri
|
|
16
8
|
} from "../chunk-WG2XWYSC.mjs";
|
|
17
9
|
import "../chunk-QGU7KDYS.mjs";
|
|
18
|
-
import {
|
|
19
|
-
PlatformClassificationTagAri
|
|
20
|
-
} from "../chunk-LP2XJ5J2.mjs";
|
|
21
|
-
import "../chunk-JOF4WRFT.mjs";
|
|
22
|
-
import {
|
|
23
|
-
PlatformLifecycleResourcePackageTypeAri
|
|
24
|
-
} from "../chunk-ZTWFSSSP.mjs";
|
|
25
|
-
import "../chunk-YUROJJWW.mjs";
|
|
26
10
|
import {
|
|
27
11
|
PlatformLifecycleResourcePackageAri
|
|
28
12
|
} from "../chunk-PS3C2TAU.mjs";
|
|
@@ -31,6 +15,22 @@ import {
|
|
|
31
15
|
PlatformLifecycleResourceAri
|
|
32
16
|
} from "../chunk-W3B3Y4FO.mjs";
|
|
33
17
|
import "../chunk-T36754GS.mjs";
|
|
18
|
+
import {
|
|
19
|
+
PlatformOrgUserAri
|
|
20
|
+
} from "../chunk-J7CQFIR2.mjs";
|
|
21
|
+
import "../chunk-REH6WMJF.mjs";
|
|
22
|
+
import {
|
|
23
|
+
PlatformOrgAri
|
|
24
|
+
} from "../chunk-NVDJASQK.mjs";
|
|
25
|
+
import "../chunk-ON6PRZUL.mjs";
|
|
26
|
+
import {
|
|
27
|
+
PlatformClassificationTagAri
|
|
28
|
+
} from "../chunk-LP2XJ5J2.mjs";
|
|
29
|
+
import "../chunk-JOF4WRFT.mjs";
|
|
30
|
+
import {
|
|
31
|
+
PlatformLifecycleResourcePackageTypeAri
|
|
32
|
+
} from "../chunk-ZTWFSSSP.mjs";
|
|
33
|
+
import "../chunk-YUROJJWW.mjs";
|
|
34
34
|
import "../chunk-PA4Y7TWI.mjs";
|
|
35
35
|
import "../chunk-NCC2UXNN.mjs";
|
|
36
36
|
import "../chunk-2UUYVBKT.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EpicType } from '../_tsup-dts-rollup';
|