@opentabs-dev/opentabs-plugin-linear 0.0.83 → 0.0.84
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/dist/adapter.iife.js
CHANGED
|
@@ -14672,16 +14672,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14672
14672
|
if (Object.keys(input).length === 0) {
|
|
14673
14673
|
throw ToolError.validation("No update fields specified \u2014 provide at least one field to update");
|
|
14674
14674
|
}
|
|
14675
|
+
const varDefs = params.issue_ids.map((_, i) => `$id${i}: String!`).join(", ");
|
|
14675
14676
|
const aliases = params.issue_ids.map(
|
|
14676
|
-
(
|
|
14677
|
+
(_, i) => `issue${i}: issueUpdate(id: $id${i}, input: $input) {
|
|
14677
14678
|
success
|
|
14678
14679
|
issue { ${ISSUE_FIELDS2} }
|
|
14679
14680
|
}`
|
|
14680
14681
|
);
|
|
14681
|
-
const query = `mutation BatchUpdateIssues($input: IssueUpdateInput
|
|
14682
|
+
const query = `mutation BatchUpdateIssues($input: IssueUpdateInput!, ${varDefs}) {
|
|
14682
14683
|
${aliases.join("\n")}
|
|
14683
14684
|
}`;
|
|
14684
|
-
const
|
|
14685
|
+
const vars = { input };
|
|
14686
|
+
for (let i = 0; i < params.issue_ids.length; i++) {
|
|
14687
|
+
vars[`id${i}`] = params.issue_ids[i];
|
|
14688
|
+
}
|
|
14689
|
+
const data = await graphql(query, vars);
|
|
14685
14690
|
const issues = [];
|
|
14686
14691
|
const failed = [];
|
|
14687
14692
|
for (let i = 0; i < params.issue_ids.length; i++) {
|
|
@@ -17048,7 +17053,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17048
17053
|
};
|
|
17049
17054
|
var src_default = new LinearPlugin();
|
|
17050
17055
|
|
|
17051
|
-
// dist/
|
|
17056
|
+
// dist/_adapter_entry_1977870b-d8e8-49be-bdc6-59997dce32ca.ts
|
|
17052
17057
|
if (!globalThis.__openTabs) {
|
|
17053
17058
|
globalThis.__openTabs = {};
|
|
17054
17059
|
} else {
|
|
@@ -17264,5 +17269,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17264
17269
|
};
|
|
17265
17270
|
delete src_default.onDeactivate;
|
|
17266
17271
|
}
|
|
17267
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linear"]){var a=o.adapters["linear"];a.__adapterHash="
|
|
17272
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linear"]){var a=o.adapters["linear"];a.__adapterHash="62341ed930892cdfafd0ab4b362e610ac36a92d961f9f52baa5348cde3f1b5d1";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"linear",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
17268
17273
|
//# sourceMappingURL=adapter.iife.js.map
|