@linear/sdk 4.0.0 → 6.0.0
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 +93 -0
- package/dist/_generated_documents.d.ts +215 -37
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +101 -29
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +304 -86
- package/dist/index-cjs.js.map +1 -1
- package/dist/index-cjs.min.js +1 -1
- package/dist/index-cjs.min.js.br +0 -0
- package/dist/index-cjs.min.js.gz +0 -0
- package/dist/index-cjs.min.js.map +1 -1
- package/dist/index-es.js +300 -85
- package/dist/index-es.js.map +1 -1
- package/dist/index-es.min.js +1 -1
- package/dist/index-es.min.js.br +0 -0
- package/dist/index-es.min.js.gz +0 -0
- package/dist/index-es.min.js.map +1 -1
- package/dist/index-umd.js +305 -87
- package/dist/index-umd.js.map +1 -1
- package/dist/index-umd.min.js +1 -1
- package/dist/index-umd.min.js.br +0 -0
- package/dist/index-umd.min.js.gz +0 -0
- package/dist/index-umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index-cjs.js
CHANGED
@@ -83430,6 +83430,13 @@ var OrganizationDomainAuthType;
|
|
83430
83430
|
OrganizationDomainAuthType["General"] = "general";
|
83431
83431
|
OrganizationDomainAuthType["Saml"] = "saml";
|
83432
83432
|
})(OrganizationDomainAuthType || (OrganizationDomainAuthType = {}));
|
83433
|
+
/** The different statuses possible for an organization invite. */
|
83434
|
+
var OrganizationInviteStatus;
|
83435
|
+
(function (OrganizationInviteStatus) {
|
83436
|
+
OrganizationInviteStatus["Accepted"] = "accepted";
|
83437
|
+
OrganizationInviteStatus["Expired"] = "expired";
|
83438
|
+
OrganizationInviteStatus["Pending"] = "pending";
|
83439
|
+
})(OrganizationInviteStatus || (OrganizationInviteStatus = {}));
|
83433
83440
|
/** By which field should the pagination order by */
|
83434
83441
|
var PaginationOrderBy;
|
83435
83442
|
(function (PaginationOrderBy) {
|
@@ -84413,6 +84420,7 @@ const UserSettingsFragmentDoc = {
|
|
84413
84420
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
84414
84421
|
},
|
84415
84422
|
},
|
84423
|
+
{ kind: "Field", name: { kind: "Name", value: "showFullUserNames" } },
|
84416
84424
|
],
|
84417
84425
|
},
|
84418
84426
|
},
|
@@ -84956,6 +84964,73 @@ const CommentPayloadFragmentDoc = {
|
|
84956
84964
|
},
|
84957
84965
|
],
|
84958
84966
|
};
|
84967
|
+
const CompanyFragmentDoc = {
|
84968
|
+
kind: "Document",
|
84969
|
+
definitions: [
|
84970
|
+
{
|
84971
|
+
kind: "FragmentDefinition",
|
84972
|
+
name: { kind: "Name", value: "Company" },
|
84973
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Company" } },
|
84974
|
+
selectionSet: {
|
84975
|
+
kind: "SelectionSet",
|
84976
|
+
selections: [
|
84977
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
84978
|
+
{ kind: "Field", name: { kind: "Name", value: "externalId" } },
|
84979
|
+
{ kind: "Field", name: { kind: "Name", value: "logoUrl" } },
|
84980
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
84981
|
+
{ kind: "Field", name: { kind: "Name", value: "websiteUrl" } },
|
84982
|
+
{ kind: "Field", name: { kind: "Name", value: "companyProperties" } },
|
84983
|
+
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
84984
|
+
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
84985
|
+
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
84986
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
84987
|
+
{
|
84988
|
+
kind: "Field",
|
84989
|
+
name: { kind: "Name", value: "creator" },
|
84990
|
+
selectionSet: {
|
84991
|
+
kind: "SelectionSet",
|
84992
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
84993
|
+
},
|
84994
|
+
},
|
84995
|
+
],
|
84996
|
+
},
|
84997
|
+
},
|
84998
|
+
],
|
84999
|
+
};
|
85000
|
+
const CompanyConnectionFragmentDoc = {
|
85001
|
+
kind: "Document",
|
85002
|
+
definitions: [
|
85003
|
+
{
|
85004
|
+
kind: "FragmentDefinition",
|
85005
|
+
name: { kind: "Name", value: "CompanyConnection" },
|
85006
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CompanyConnection" } },
|
85007
|
+
selectionSet: {
|
85008
|
+
kind: "SelectionSet",
|
85009
|
+
selections: [
|
85010
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
85011
|
+
{
|
85012
|
+
kind: "Field",
|
85013
|
+
name: { kind: "Name", value: "nodes" },
|
85014
|
+
selectionSet: {
|
85015
|
+
kind: "SelectionSet",
|
85016
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Company" } }],
|
85017
|
+
},
|
85018
|
+
},
|
85019
|
+
{
|
85020
|
+
kind: "Field",
|
85021
|
+
name: { kind: "Name", value: "pageInfo" },
|
85022
|
+
selectionSet: {
|
85023
|
+
kind: "SelectionSet",
|
85024
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
|
85025
|
+
},
|
85026
|
+
},
|
85027
|
+
],
|
85028
|
+
},
|
85029
|
+
},
|
85030
|
+
...CompanyFragmentDoc.definitions,
|
85031
|
+
...PageInfoFragmentDoc.definitions,
|
85032
|
+
],
|
85033
|
+
};
|
84959
85034
|
const ContactPayloadFragmentDoc = {
|
84960
85035
|
kind: "Document",
|
84961
85036
|
definitions: [
|
@@ -85051,6 +85126,7 @@ const CustomViewFragmentDoc = {
|
|
85051
85126
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
85052
85127
|
},
|
85053
85128
|
},
|
85129
|
+
{ kind: "Field", name: { kind: "Name", value: "shared" } },
|
85054
85130
|
{
|
85055
85131
|
kind: "Field",
|
85056
85132
|
name: { kind: "Name", value: "owner" },
|
@@ -85059,7 +85135,6 @@ const CustomViewFragmentDoc = {
|
|
85059
85135
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
85060
85136
|
},
|
85061
85137
|
},
|
85062
|
-
{ kind: "Field", name: { kind: "Name", value: "shared" } },
|
85063
85138
|
],
|
85064
85139
|
},
|
85065
85140
|
},
|
@@ -87916,13 +87991,13 @@ const OrganizationInviteConnectionFragmentDoc = {
|
|
87916
87991
|
...PageInfoFragmentDoc.definitions,
|
87917
87992
|
],
|
87918
87993
|
};
|
87919
|
-
const
|
87994
|
+
const OrganizationInviteFullDetailsPayloadFragmentDoc = {
|
87920
87995
|
kind: "Document",
|
87921
87996
|
definitions: [
|
87922
87997
|
{
|
87923
87998
|
kind: "FragmentDefinition",
|
87924
|
-
name: { kind: "Name", value: "
|
87925
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "
|
87999
|
+
name: { kind: "Name", value: "OrganizationInviteFullDetailsPayload" },
|
88000
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationInviteFullDetailsPayload" } },
|
87926
88001
|
selectionSet: {
|
87927
88002
|
kind: "SelectionSet",
|
87928
88003
|
selections: [
|
@@ -93068,6 +93143,54 @@ const DeleteIntegrationTemplateDocument = {
|
|
93068
93143
|
...ArchivePayloadFragmentDoc.definitions,
|
93069
93144
|
],
|
93070
93145
|
};
|
93146
|
+
const IntegrationUpdateSlackDocument = {
|
93147
|
+
kind: "Document",
|
93148
|
+
definitions: [
|
93149
|
+
{
|
93150
|
+
kind: "OperationDefinition",
|
93151
|
+
operation: "mutation",
|
93152
|
+
name: { kind: "Name", value: "integrationUpdateSlack" },
|
93153
|
+
variableDefinitions: [
|
93154
|
+
{
|
93155
|
+
kind: "VariableDefinition",
|
93156
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
93157
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
93158
|
+
},
|
93159
|
+
{
|
93160
|
+
kind: "VariableDefinition",
|
93161
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "redirectUri" } },
|
93162
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
93163
|
+
},
|
93164
|
+
],
|
93165
|
+
selectionSet: {
|
93166
|
+
kind: "SelectionSet",
|
93167
|
+
selections: [
|
93168
|
+
{
|
93169
|
+
kind: "Field",
|
93170
|
+
name: { kind: "Name", value: "integrationUpdateSlack" },
|
93171
|
+
arguments: [
|
93172
|
+
{
|
93173
|
+
kind: "Argument",
|
93174
|
+
name: { kind: "Name", value: "code" },
|
93175
|
+
value: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
93176
|
+
},
|
93177
|
+
{
|
93178
|
+
kind: "Argument",
|
93179
|
+
name: { kind: "Name", value: "redirectUri" },
|
93180
|
+
value: { kind: "Variable", name: { kind: "Name", value: "redirectUri" } },
|
93181
|
+
},
|
93182
|
+
],
|
93183
|
+
selectionSet: {
|
93184
|
+
kind: "SelectionSet",
|
93185
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
|
93186
|
+
},
|
93187
|
+
},
|
93188
|
+
],
|
93189
|
+
},
|
93190
|
+
},
|
93191
|
+
...IntegrationPayloadFragmentDoc.definitions,
|
93192
|
+
],
|
93193
|
+
};
|
93071
93194
|
const IntegrationZendeskDocument = {
|
93072
93195
|
kind: "Document",
|
93073
93196
|
definitions: [
|
@@ -97298,6 +97421,44 @@ const UserGoogleCalendarConnectDocument = {
|
|
97298
97421
|
...UserPayloadFragmentDoc.definitions,
|
97299
97422
|
],
|
97300
97423
|
};
|
97424
|
+
const UserJiraConnectDocument = {
|
97425
|
+
kind: "Document",
|
97426
|
+
definitions: [
|
97427
|
+
{
|
97428
|
+
kind: "OperationDefinition",
|
97429
|
+
operation: "mutation",
|
97430
|
+
name: { kind: "Name", value: "userJiraConnect" },
|
97431
|
+
variableDefinitions: [
|
97432
|
+
{
|
97433
|
+
kind: "VariableDefinition",
|
97434
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
97435
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
97436
|
+
},
|
97437
|
+
],
|
97438
|
+
selectionSet: {
|
97439
|
+
kind: "SelectionSet",
|
97440
|
+
selections: [
|
97441
|
+
{
|
97442
|
+
kind: "Field",
|
97443
|
+
name: { kind: "Name", value: "userJiraConnect" },
|
97444
|
+
arguments: [
|
97445
|
+
{
|
97446
|
+
kind: "Argument",
|
97447
|
+
name: { kind: "Name", value: "code" },
|
97448
|
+
value: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
97449
|
+
},
|
97450
|
+
],
|
97451
|
+
selectionSet: {
|
97452
|
+
kind: "SelectionSet",
|
97453
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "UserPayload" } }],
|
97454
|
+
},
|
97455
|
+
},
|
97456
|
+
],
|
97457
|
+
},
|
97458
|
+
},
|
97459
|
+
...UserPayloadFragmentDoc.definitions,
|
97460
|
+
],
|
97461
|
+
};
|
97301
97462
|
const UserPromoteAdminDocument = {
|
97302
97463
|
kind: "Document",
|
97303
97464
|
definitions: [
|
@@ -98074,6 +98235,11 @@ const ProjectMilestonesDocument = {
|
|
98074
98235
|
variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
98075
98236
|
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
98076
98237
|
},
|
98238
|
+
{
|
98239
|
+
kind: "VariableDefinition",
|
98240
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "filter" } },
|
98241
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "ProjectMilestoneFilter" } },
|
98242
|
+
},
|
98077
98243
|
{
|
98078
98244
|
kind: "VariableDefinition",
|
98079
98245
|
variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
|
@@ -98112,6 +98278,11 @@ const ProjectMilestonesDocument = {
|
|
98112
98278
|
name: { kind: "Name", value: "before" },
|
98113
98279
|
value: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
98114
98280
|
},
|
98281
|
+
{
|
98282
|
+
kind: "Argument",
|
98283
|
+
name: { kind: "Name", value: "filter" },
|
98284
|
+
value: { kind: "Variable", name: { kind: "Name", value: "filter" } },
|
98285
|
+
},
|
98115
98286
|
{
|
98116
98287
|
kind: "Argument",
|
98117
98288
|
name: { kind: "Name", value: "first" },
|
@@ -105115,46 +105286,6 @@ const OrganizationInviteDocument = {
|
|
105115
105286
|
...OrganizationInviteFragmentDoc.definitions,
|
105116
105287
|
],
|
105117
105288
|
};
|
105118
|
-
const OrganizationInviteDetailsDocument = {
|
105119
|
-
kind: "Document",
|
105120
|
-
definitions: [
|
105121
|
-
{
|
105122
|
-
kind: "OperationDefinition",
|
105123
|
-
operation: "query",
|
105124
|
-
name: { kind: "Name", value: "organizationInviteDetails" },
|
105125
|
-
variableDefinitions: [
|
105126
|
-
{
|
105127
|
-
kind: "VariableDefinition",
|
105128
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
105129
|
-
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
105130
|
-
},
|
105131
|
-
],
|
105132
|
-
selectionSet: {
|
105133
|
-
kind: "SelectionSet",
|
105134
|
-
selections: [
|
105135
|
-
{
|
105136
|
-
kind: "Field",
|
105137
|
-
name: { kind: "Name", value: "organizationInviteDetails" },
|
105138
|
-
arguments: [
|
105139
|
-
{
|
105140
|
-
kind: "Argument",
|
105141
|
-
name: { kind: "Name", value: "id" },
|
105142
|
-
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
105143
|
-
},
|
105144
|
-
],
|
105145
|
-
selectionSet: {
|
105146
|
-
kind: "SelectionSet",
|
105147
|
-
selections: [
|
105148
|
-
{ kind: "FragmentSpread", name: { kind: "Name", value: "OrganizationInviteDetailsPayload" } },
|
105149
|
-
],
|
105150
|
-
},
|
105151
|
-
},
|
105152
|
-
],
|
105153
|
-
},
|
105154
|
-
},
|
105155
|
-
...OrganizationInviteDetailsPayloadFragmentDoc.definitions,
|
105156
|
-
],
|
105157
|
-
};
|
105158
105289
|
const OrganizationInvitesDocument = {
|
105159
105290
|
kind: "Document",
|
105160
105291
|
definitions: [
|
@@ -110545,6 +110676,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
110545
110676
|
get IssueRelationType () { return IssueRelationType; },
|
110546
110677
|
get OAuthClientApprovalStatus () { return OAuthClientApprovalStatus; },
|
110547
110678
|
get OrganizationDomainAuthType () { return OrganizationDomainAuthType; },
|
110679
|
+
get OrganizationInviteStatus () { return OrganizationInviteStatus; },
|
110548
110680
|
get PaginationOrderBy () { return PaginationOrderBy; },
|
110549
110681
|
get ProjectNotificationSubscriptionType () { return ProjectNotificationSubscriptionType; },
|
110550
110682
|
get ProjectUpdateHealthType () { return ProjectUpdateHealthType; },
|
@@ -110605,6 +110737,8 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
110605
110737
|
CommentFragmentDoc: CommentFragmentDoc,
|
110606
110738
|
CommentConnectionFragmentDoc: CommentConnectionFragmentDoc,
|
110607
110739
|
CommentPayloadFragmentDoc: CommentPayloadFragmentDoc,
|
110740
|
+
CompanyFragmentDoc: CompanyFragmentDoc,
|
110741
|
+
CompanyConnectionFragmentDoc: CompanyConnectionFragmentDoc,
|
110608
110742
|
ContactPayloadFragmentDoc: ContactPayloadFragmentDoc,
|
110609
110743
|
CreateCsvExportReportPayloadFragmentDoc: CreateCsvExportReportPayloadFragmentDoc,
|
110610
110744
|
CreateOrJoinOrganizationResponseFragmentDoc: CreateOrJoinOrganizationResponseFragmentDoc,
|
@@ -110687,7 +110821,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
110687
110821
|
OrganizationExistsPayloadFragmentDoc: OrganizationExistsPayloadFragmentDoc,
|
110688
110822
|
OrganizationInviteFragmentDoc: OrganizationInviteFragmentDoc,
|
110689
110823
|
OrganizationInviteConnectionFragmentDoc: OrganizationInviteConnectionFragmentDoc,
|
110690
|
-
|
110824
|
+
OrganizationInviteFullDetailsPayloadFragmentDoc: OrganizationInviteFullDetailsPayloadFragmentDoc,
|
110691
110825
|
OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
|
110692
110826
|
OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
|
110693
110827
|
OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
|
@@ -110822,6 +110956,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
110822
110956
|
IntegrationSlackProjectPostDocument: IntegrationSlackProjectPostDocument,
|
110823
110957
|
CreateIntegrationTemplateDocument: CreateIntegrationTemplateDocument,
|
110824
110958
|
DeleteIntegrationTemplateDocument: DeleteIntegrationTemplateDocument,
|
110959
|
+
IntegrationUpdateSlackDocument: IntegrationUpdateSlackDocument,
|
110825
110960
|
IntegrationZendeskDocument: IntegrationZendeskDocument,
|
110826
110961
|
CreateIntegrationsSettingsDocument: CreateIntegrationsSettingsDocument,
|
110827
110962
|
UpdateIntegrationsSettingsDocument: UpdateIntegrationsSettingsDocument,
|
@@ -110914,6 +111049,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
110914
111049
|
UpdateUserFlagDocument: UpdateUserFlagDocument,
|
110915
111050
|
UserGitHubConnectDocument: UserGitHubConnectDocument,
|
110916
111051
|
UserGoogleCalendarConnectDocument: UserGoogleCalendarConnectDocument,
|
111052
|
+
UserJiraConnectDocument: UserJiraConnectDocument,
|
110917
111053
|
UserPromoteAdminDocument: UserPromoteAdminDocument,
|
110918
111054
|
UserPromoteMemberDocument: UserPromoteMemberDocument,
|
110919
111055
|
UserSettingsFlagIncrementDocument: UserSettingsFlagIncrementDocument,
|
@@ -111018,7 +111154,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
111018
111154
|
Organization_UsersDocument: Organization_UsersDocument,
|
111019
111155
|
OrganizationExistsDocument: OrganizationExistsDocument,
|
111020
111156
|
OrganizationInviteDocument: OrganizationInviteDocument,
|
111021
|
-
OrganizationInviteDetailsDocument: OrganizationInviteDetailsDocument,
|
111022
111157
|
OrganizationInvitesDocument: OrganizationInvitesDocument,
|
111023
111158
|
ProjectDocument: ProjectDocument,
|
111024
111159
|
Project_DocumentsDocument: Project_DocumentsDocument,
|
@@ -111550,6 +111685,48 @@ class CommentPayload extends Request {
|
|
111550
111685
|
return new CommentQuery(this._request).fetch(this._comment.id);
|
111551
111686
|
}
|
111552
111687
|
}
|
111688
|
+
/**
|
111689
|
+
* A company related to issue's origin.
|
111690
|
+
*
|
111691
|
+
* @param request - function to call the graphql client
|
111692
|
+
* @param data - L.CompanyFragment response data
|
111693
|
+
*/
|
111694
|
+
class Company extends Request {
|
111695
|
+
constructor(request, data) {
|
111696
|
+
var _a, _b, _c, _d, _e, _f;
|
111697
|
+
super(request);
|
111698
|
+
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
111699
|
+
this.companyProperties = (_b = parseJson(data.companyProperties)) !== null && _b !== void 0 ? _b : {};
|
111700
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
111701
|
+
this.externalId = data.externalId;
|
111702
|
+
this.id = data.id;
|
111703
|
+
this.logoUrl = (_d = data.logoUrl) !== null && _d !== void 0 ? _d : undefined;
|
111704
|
+
this.name = data.name;
|
111705
|
+
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
111706
|
+
this.websiteUrl = (_f = data.websiteUrl) !== null && _f !== void 0 ? _f : undefined;
|
111707
|
+
this._creator = data.creator;
|
111708
|
+
}
|
111709
|
+
/** The user who added the company. */
|
111710
|
+
get creator() {
|
111711
|
+
return new UserQuery(this._request).fetch(this._creator.id);
|
111712
|
+
}
|
111713
|
+
/** The organization of the customer. */
|
111714
|
+
get organization() {
|
111715
|
+
return new OrganizationQuery(this._request).fetch();
|
111716
|
+
}
|
111717
|
+
}
|
111718
|
+
/**
|
111719
|
+
* CompanyConnection model
|
111720
|
+
*
|
111721
|
+
* @param request - function to call the graphql client
|
111722
|
+
* @param fetch - function to trigger a refetch of this CompanyConnection model
|
111723
|
+
* @param data - CompanyConnection response data
|
111724
|
+
*/
|
111725
|
+
class CompanyConnection extends Connection {
|
111726
|
+
constructor(request, fetch, data) {
|
111727
|
+
super(request, fetch, data.nodes.map(node => new Company(request, node)), new PageInfo(request, data.pageInfo));
|
111728
|
+
}
|
111729
|
+
}
|
111553
111730
|
/**
|
111554
111731
|
* ContactPayload model
|
111555
111732
|
*
|
@@ -111625,7 +111802,7 @@ class CustomView extends Request {
|
|
111625
111802
|
get organization() {
|
111626
111803
|
return new OrganizationQuery(this._request).fetch();
|
111627
111804
|
}
|
111628
|
-
/** The user who owns the custom view. */
|
111805
|
+
/** [Deprecated] The user who owns the custom view. */
|
111629
111806
|
get owner() {
|
111630
111807
|
return new UserQuery(this._request).fetch(this._owner.id);
|
111631
111808
|
}
|
@@ -113966,12 +114143,12 @@ class OrganizationInviteConnection extends Connection {
|
|
113966
114143
|
}
|
113967
114144
|
}
|
113968
114145
|
/**
|
113969
|
-
*
|
114146
|
+
* OrganizationInviteFullDetailsPayload model
|
113970
114147
|
*
|
113971
114148
|
* @param request - function to call the graphql client
|
113972
|
-
* @param data - L.
|
114149
|
+
* @param data - L.OrganizationInviteFullDetailsPayloadFragment response data
|
113973
114150
|
*/
|
113974
|
-
class
|
114151
|
+
class OrganizationInviteFullDetailsPayload extends Request {
|
113975
114152
|
constructor(request, data) {
|
113976
114153
|
var _a, _b;
|
113977
114154
|
super(request);
|
@@ -115739,6 +115916,7 @@ class UserSettings extends Request {
|
|
115739
115916
|
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
115740
115917
|
this.id = data.id;
|
115741
115918
|
this.notificationPreferences = (_d = parseJson(data.notificationPreferences)) !== null && _d !== void 0 ? _d : {};
|
115919
|
+
this.showFullUserNames = data.showFullUserNames;
|
115742
115920
|
this.unsubscribedFrom = data.unsubscribedFrom;
|
115743
115921
|
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
115744
115922
|
this._user = data.user;
|
@@ -117751,6 +117929,33 @@ class DeleteIntegrationTemplateMutation extends Request {
|
|
117751
117929
|
});
|
117752
117930
|
}
|
117753
117931
|
}
|
117932
|
+
/**
|
117933
|
+
* A fetchable IntegrationUpdateSlack Mutation
|
117934
|
+
*
|
117935
|
+
* @param request - function to call the graphql client
|
117936
|
+
*/
|
117937
|
+
class IntegrationUpdateSlackMutation extends Request {
|
117938
|
+
constructor(request) {
|
117939
|
+
super(request);
|
117940
|
+
}
|
117941
|
+
/**
|
117942
|
+
* Call the IntegrationUpdateSlack mutation and return a IntegrationPayload
|
117943
|
+
*
|
117944
|
+
* @param code - required code to pass to integrationUpdateSlack
|
117945
|
+
* @param redirectUri - required redirectUri to pass to integrationUpdateSlack
|
117946
|
+
* @returns parsed response from IntegrationUpdateSlackMutation
|
117947
|
+
*/
|
117948
|
+
fetch(code, redirectUri) {
|
117949
|
+
return __awaiter(this, void 0, void 0, function* () {
|
117950
|
+
const response = yield this._request(IntegrationUpdateSlackDocument, {
|
117951
|
+
code,
|
117952
|
+
redirectUri,
|
117953
|
+
});
|
117954
|
+
const data = response.integrationUpdateSlack;
|
117955
|
+
return new IntegrationPayload(this._request, data);
|
117956
|
+
});
|
117957
|
+
}
|
117958
|
+
}
|
117754
117959
|
/**
|
117755
117960
|
* A fetchable IntegrationZendesk Mutation
|
117756
117961
|
*
|
@@ -120095,6 +120300,31 @@ class UserGoogleCalendarConnectMutation extends Request {
|
|
120095
120300
|
});
|
120096
120301
|
}
|
120097
120302
|
}
|
120303
|
+
/**
|
120304
|
+
* A fetchable UserJiraConnect Mutation
|
120305
|
+
*
|
120306
|
+
* @param request - function to call the graphql client
|
120307
|
+
*/
|
120308
|
+
class UserJiraConnectMutation extends Request {
|
120309
|
+
constructor(request) {
|
120310
|
+
super(request);
|
120311
|
+
}
|
120312
|
+
/**
|
120313
|
+
* Call the UserJiraConnect mutation and return a UserPayload
|
120314
|
+
*
|
120315
|
+
* @param code - required code to pass to userJiraConnect
|
120316
|
+
* @returns parsed response from UserJiraConnectMutation
|
120317
|
+
*/
|
120318
|
+
fetch(code) {
|
120319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
120320
|
+
const response = yield this._request(UserJiraConnectDocument, {
|
120321
|
+
code,
|
120322
|
+
});
|
120323
|
+
const data = response.userJiraConnect;
|
120324
|
+
return new UserPayload(this._request, data);
|
120325
|
+
});
|
120326
|
+
}
|
120327
|
+
}
|
120098
120328
|
/**
|
120099
120329
|
* A fetchable UserPromoteAdmin Mutation
|
120100
120330
|
*
|
@@ -121750,31 +121980,6 @@ class OrganizationInviteQuery extends Request {
|
|
121750
121980
|
});
|
121751
121981
|
}
|
121752
121982
|
}
|
121753
|
-
/**
|
121754
|
-
* A fetchable OrganizationInviteDetails Query
|
121755
|
-
*
|
121756
|
-
* @param request - function to call the graphql client
|
121757
|
-
*/
|
121758
|
-
class OrganizationInviteDetailsQuery extends Request {
|
121759
|
-
constructor(request) {
|
121760
|
-
super(request);
|
121761
|
-
}
|
121762
|
-
/**
|
121763
|
-
* Call the OrganizationInviteDetails query and return a OrganizationInviteDetailsPayload
|
121764
|
-
*
|
121765
|
-
* @param id - required id to pass to organizationInviteDetails
|
121766
|
-
* @returns parsed response from OrganizationInviteDetailsQuery
|
121767
|
-
*/
|
121768
|
-
fetch(id) {
|
121769
|
-
return __awaiter(this, void 0, void 0, function* () {
|
121770
|
-
const response = yield this._request(OrganizationInviteDetailsDocument, {
|
121771
|
-
id,
|
121772
|
-
});
|
121773
|
-
const data = response.organizationInviteDetails;
|
121774
|
-
return new OrganizationInviteDetailsPayload(this._request, data);
|
121775
|
-
});
|
121776
|
-
}
|
121777
|
-
}
|
121778
121983
|
/**
|
121779
121984
|
* A fetchable OrganizationInvites Query
|
121780
121985
|
*
|
@@ -125015,6 +125220,16 @@ class LinearSdk extends Request {
|
|
125015
125220
|
deleteIntegrationTemplate(id) {
|
125016
125221
|
return new DeleteIntegrationTemplateMutation(this._request).fetch(id);
|
125017
125222
|
}
|
125223
|
+
/**
|
125224
|
+
* Updates the organization's Slack integration.
|
125225
|
+
*
|
125226
|
+
* @param code - required code to pass to integrationUpdateSlack
|
125227
|
+
* @param redirectUri - required redirectUri to pass to integrationUpdateSlack
|
125228
|
+
* @returns IntegrationPayload
|
125229
|
+
*/
|
125230
|
+
integrationUpdateSlack(code, redirectUri) {
|
125231
|
+
return new IntegrationUpdateSlackMutation(this._request).fetch(code, redirectUri);
|
125232
|
+
}
|
125018
125233
|
/**
|
125019
125234
|
* Integrates the organization with Zendesk.
|
125020
125235
|
*
|
@@ -125879,6 +126094,15 @@ class LinearSdk extends Request {
|
|
125879
126094
|
userGoogleCalendarConnect(code) {
|
125880
126095
|
return new UserGoogleCalendarConnectMutation(this._request).fetch(code);
|
125881
126096
|
}
|
126097
|
+
/**
|
126098
|
+
* Connects the Jira user to this Linear account via OAuth2.
|
126099
|
+
*
|
126100
|
+
* @param code - required code to pass to userJiraConnect
|
126101
|
+
* @returns UserPayload
|
126102
|
+
*/
|
126103
|
+
userJiraConnect(code) {
|
126104
|
+
return new UserJiraConnectMutation(this._request).fetch(code);
|
126105
|
+
}
|
125882
126106
|
/**
|
125883
126107
|
* Makes user an admin. Can only be called by an admin.
|
125884
126108
|
*
|
@@ -126492,15 +126716,6 @@ class LinearSdk extends Request {
|
|
126492
126716
|
organizationInvite(id) {
|
126493
126717
|
return new OrganizationInviteQuery(this._request).fetch(id);
|
126494
126718
|
}
|
126495
|
-
/**
|
126496
|
-
* One specific organization invite.
|
126497
|
-
*
|
126498
|
-
* @param id - required id to pass to organizationInviteDetails
|
126499
|
-
* @returns OrganizationInviteDetailsPayload
|
126500
|
-
*/
|
126501
|
-
organizationInviteDetails(id) {
|
126502
|
-
return new OrganizationInviteDetailsQuery(this._request).fetch(id);
|
126503
|
-
}
|
126504
126719
|
/**
|
126505
126720
|
* All invites for the organization.
|
126506
126721
|
*
|
@@ -126944,6 +127159,8 @@ exports.CommentPayload = CommentPayload;
|
|
126944
127159
|
exports.CommentQuery = CommentQuery;
|
126945
127160
|
exports.Comment_ChildrenQuery = Comment_ChildrenQuery;
|
126946
127161
|
exports.CommentsQuery = CommentsQuery;
|
127162
|
+
exports.Company = Company;
|
127163
|
+
exports.CompanyConnection = CompanyConnection;
|
126947
127164
|
exports.Connection = Connection;
|
126948
127165
|
exports.ContactPayload = ContactPayload;
|
126949
127166
|
exports.CreateApiKeyMutation = CreateApiKeyMutation;
|
@@ -127106,6 +127323,7 @@ exports.IntegrationTemplateConnection = IntegrationTemplateConnection;
|
|
127106
127323
|
exports.IntegrationTemplatePayload = IntegrationTemplatePayload;
|
127107
127324
|
exports.IntegrationTemplateQuery = IntegrationTemplateQuery;
|
127108
127325
|
exports.IntegrationTemplatesQuery = IntegrationTemplatesQuery;
|
127326
|
+
exports.IntegrationUpdateSlackMutation = IntegrationUpdateSlackMutation;
|
127109
127327
|
exports.IntegrationZendeskMutation = IntegrationZendeskMutation;
|
127110
127328
|
exports.IntegrationsQuery = IntegrationsQuery;
|
127111
127329
|
exports.IntegrationsSettings = IntegrationsSettings;
|
@@ -127219,8 +127437,7 @@ exports.OrganizationExistsPayload = OrganizationExistsPayload;
|
|
127219
127437
|
exports.OrganizationExistsQuery = OrganizationExistsQuery;
|
127220
127438
|
exports.OrganizationInvite = OrganizationInvite;
|
127221
127439
|
exports.OrganizationInviteConnection = OrganizationInviteConnection;
|
127222
|
-
exports.
|
127223
|
-
exports.OrganizationInviteDetailsQuery = OrganizationInviteDetailsQuery;
|
127440
|
+
exports.OrganizationInviteFullDetailsPayload = OrganizationInviteFullDetailsPayload;
|
127224
127441
|
exports.OrganizationInvitePayload = OrganizationInvitePayload;
|
127225
127442
|
exports.OrganizationInviteQuery = OrganizationInviteQuery;
|
127226
127443
|
exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
|
@@ -127397,6 +127614,7 @@ exports.UserDiscordConnectMutation = UserDiscordConnectMutation;
|
|
127397
127614
|
exports.UserExternalUserDisconnectMutation = UserExternalUserDisconnectMutation;
|
127398
127615
|
exports.UserGitHubConnectMutation = UserGitHubConnectMutation;
|
127399
127616
|
exports.UserGoogleCalendarConnectMutation = UserGoogleCalendarConnectMutation;
|
127617
|
+
exports.UserJiraConnectMutation = UserJiraConnectMutation;
|
127400
127618
|
exports.UserLinearError = UserLinearError;
|
127401
127619
|
exports.UserPayload = UserPayload;
|
127402
127620
|
exports.UserPromoteAdminMutation = UserPromoteAdminMutation;
|