@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-umd.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
10
10
|
|
11
11
|
(function() {
|
12
|
-
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"
|
12
|
+
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"6.0.0"};
|
13
13
|
try {
|
14
14
|
if (process) {
|
15
15
|
process.env = Object.assign({}, process.env);
|
@@ -1404,6 +1404,13 @@
|
|
1404
1404
|
OrganizationDomainAuthType["General"] = "general";
|
1405
1405
|
OrganizationDomainAuthType["Saml"] = "saml";
|
1406
1406
|
})(OrganizationDomainAuthType || (OrganizationDomainAuthType = {}));
|
1407
|
+
/** The different statuses possible for an organization invite. */
|
1408
|
+
var OrganizationInviteStatus;
|
1409
|
+
(function (OrganizationInviteStatus) {
|
1410
|
+
OrganizationInviteStatus["Accepted"] = "accepted";
|
1411
|
+
OrganizationInviteStatus["Expired"] = "expired";
|
1412
|
+
OrganizationInviteStatus["Pending"] = "pending";
|
1413
|
+
})(OrganizationInviteStatus || (OrganizationInviteStatus = {}));
|
1407
1414
|
/** By which field should the pagination order by */
|
1408
1415
|
var PaginationOrderBy;
|
1409
1416
|
(function (PaginationOrderBy) {
|
@@ -2387,6 +2394,7 @@
|
|
2387
2394
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
2388
2395
|
},
|
2389
2396
|
},
|
2397
|
+
{ kind: "Field", name: { kind: "Name", value: "showFullUserNames" } },
|
2390
2398
|
],
|
2391
2399
|
},
|
2392
2400
|
},
|
@@ -2930,6 +2938,73 @@
|
|
2930
2938
|
},
|
2931
2939
|
],
|
2932
2940
|
};
|
2941
|
+
const CompanyFragmentDoc = {
|
2942
|
+
kind: "Document",
|
2943
|
+
definitions: [
|
2944
|
+
{
|
2945
|
+
kind: "FragmentDefinition",
|
2946
|
+
name: { kind: "Name", value: "Company" },
|
2947
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Company" } },
|
2948
|
+
selectionSet: {
|
2949
|
+
kind: "SelectionSet",
|
2950
|
+
selections: [
|
2951
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
2952
|
+
{ kind: "Field", name: { kind: "Name", value: "externalId" } },
|
2953
|
+
{ kind: "Field", name: { kind: "Name", value: "logoUrl" } },
|
2954
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
2955
|
+
{ kind: "Field", name: { kind: "Name", value: "websiteUrl" } },
|
2956
|
+
{ kind: "Field", name: { kind: "Name", value: "companyProperties" } },
|
2957
|
+
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
2958
|
+
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
2959
|
+
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
2960
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
2961
|
+
{
|
2962
|
+
kind: "Field",
|
2963
|
+
name: { kind: "Name", value: "creator" },
|
2964
|
+
selectionSet: {
|
2965
|
+
kind: "SelectionSet",
|
2966
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
2967
|
+
},
|
2968
|
+
},
|
2969
|
+
],
|
2970
|
+
},
|
2971
|
+
},
|
2972
|
+
],
|
2973
|
+
};
|
2974
|
+
const CompanyConnectionFragmentDoc = {
|
2975
|
+
kind: "Document",
|
2976
|
+
definitions: [
|
2977
|
+
{
|
2978
|
+
kind: "FragmentDefinition",
|
2979
|
+
name: { kind: "Name", value: "CompanyConnection" },
|
2980
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CompanyConnection" } },
|
2981
|
+
selectionSet: {
|
2982
|
+
kind: "SelectionSet",
|
2983
|
+
selections: [
|
2984
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
2985
|
+
{
|
2986
|
+
kind: "Field",
|
2987
|
+
name: { kind: "Name", value: "nodes" },
|
2988
|
+
selectionSet: {
|
2989
|
+
kind: "SelectionSet",
|
2990
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Company" } }],
|
2991
|
+
},
|
2992
|
+
},
|
2993
|
+
{
|
2994
|
+
kind: "Field",
|
2995
|
+
name: { kind: "Name", value: "pageInfo" },
|
2996
|
+
selectionSet: {
|
2997
|
+
kind: "SelectionSet",
|
2998
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
|
2999
|
+
},
|
3000
|
+
},
|
3001
|
+
],
|
3002
|
+
},
|
3003
|
+
},
|
3004
|
+
...CompanyFragmentDoc.definitions,
|
3005
|
+
...PageInfoFragmentDoc.definitions,
|
3006
|
+
],
|
3007
|
+
};
|
2933
3008
|
const ContactPayloadFragmentDoc = {
|
2934
3009
|
kind: "Document",
|
2935
3010
|
definitions: [
|
@@ -3025,6 +3100,7 @@
|
|
3025
3100
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
3026
3101
|
},
|
3027
3102
|
},
|
3103
|
+
{ kind: "Field", name: { kind: "Name", value: "shared" } },
|
3028
3104
|
{
|
3029
3105
|
kind: "Field",
|
3030
3106
|
name: { kind: "Name", value: "owner" },
|
@@ -3033,7 +3109,6 @@
|
|
3033
3109
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
3034
3110
|
},
|
3035
3111
|
},
|
3036
|
-
{ kind: "Field", name: { kind: "Name", value: "shared" } },
|
3037
3112
|
],
|
3038
3113
|
},
|
3039
3114
|
},
|
@@ -5890,13 +5965,13 @@
|
|
5890
5965
|
...PageInfoFragmentDoc.definitions,
|
5891
5966
|
],
|
5892
5967
|
};
|
5893
|
-
const
|
5968
|
+
const OrganizationInviteFullDetailsPayloadFragmentDoc = {
|
5894
5969
|
kind: "Document",
|
5895
5970
|
definitions: [
|
5896
5971
|
{
|
5897
5972
|
kind: "FragmentDefinition",
|
5898
|
-
name: { kind: "Name", value: "
|
5899
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "
|
5973
|
+
name: { kind: "Name", value: "OrganizationInviteFullDetailsPayload" },
|
5974
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationInviteFullDetailsPayload" } },
|
5900
5975
|
selectionSet: {
|
5901
5976
|
kind: "SelectionSet",
|
5902
5977
|
selections: [
|
@@ -11042,6 +11117,54 @@
|
|
11042
11117
|
...ArchivePayloadFragmentDoc.definitions,
|
11043
11118
|
],
|
11044
11119
|
};
|
11120
|
+
const IntegrationUpdateSlackDocument = {
|
11121
|
+
kind: "Document",
|
11122
|
+
definitions: [
|
11123
|
+
{
|
11124
|
+
kind: "OperationDefinition",
|
11125
|
+
operation: "mutation",
|
11126
|
+
name: { kind: "Name", value: "integrationUpdateSlack" },
|
11127
|
+
variableDefinitions: [
|
11128
|
+
{
|
11129
|
+
kind: "VariableDefinition",
|
11130
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
11131
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
11132
|
+
},
|
11133
|
+
{
|
11134
|
+
kind: "VariableDefinition",
|
11135
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "redirectUri" } },
|
11136
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
11137
|
+
},
|
11138
|
+
],
|
11139
|
+
selectionSet: {
|
11140
|
+
kind: "SelectionSet",
|
11141
|
+
selections: [
|
11142
|
+
{
|
11143
|
+
kind: "Field",
|
11144
|
+
name: { kind: "Name", value: "integrationUpdateSlack" },
|
11145
|
+
arguments: [
|
11146
|
+
{
|
11147
|
+
kind: "Argument",
|
11148
|
+
name: { kind: "Name", value: "code" },
|
11149
|
+
value: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
11150
|
+
},
|
11151
|
+
{
|
11152
|
+
kind: "Argument",
|
11153
|
+
name: { kind: "Name", value: "redirectUri" },
|
11154
|
+
value: { kind: "Variable", name: { kind: "Name", value: "redirectUri" } },
|
11155
|
+
},
|
11156
|
+
],
|
11157
|
+
selectionSet: {
|
11158
|
+
kind: "SelectionSet",
|
11159
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
|
11160
|
+
},
|
11161
|
+
},
|
11162
|
+
],
|
11163
|
+
},
|
11164
|
+
},
|
11165
|
+
...IntegrationPayloadFragmentDoc.definitions,
|
11166
|
+
],
|
11167
|
+
};
|
11045
11168
|
const IntegrationZendeskDocument = {
|
11046
11169
|
kind: "Document",
|
11047
11170
|
definitions: [
|
@@ -15272,6 +15395,44 @@
|
|
15272
15395
|
...UserPayloadFragmentDoc.definitions,
|
15273
15396
|
],
|
15274
15397
|
};
|
15398
|
+
const UserJiraConnectDocument = {
|
15399
|
+
kind: "Document",
|
15400
|
+
definitions: [
|
15401
|
+
{
|
15402
|
+
kind: "OperationDefinition",
|
15403
|
+
operation: "mutation",
|
15404
|
+
name: { kind: "Name", value: "userJiraConnect" },
|
15405
|
+
variableDefinitions: [
|
15406
|
+
{
|
15407
|
+
kind: "VariableDefinition",
|
15408
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
15409
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
15410
|
+
},
|
15411
|
+
],
|
15412
|
+
selectionSet: {
|
15413
|
+
kind: "SelectionSet",
|
15414
|
+
selections: [
|
15415
|
+
{
|
15416
|
+
kind: "Field",
|
15417
|
+
name: { kind: "Name", value: "userJiraConnect" },
|
15418
|
+
arguments: [
|
15419
|
+
{
|
15420
|
+
kind: "Argument",
|
15421
|
+
name: { kind: "Name", value: "code" },
|
15422
|
+
value: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
15423
|
+
},
|
15424
|
+
],
|
15425
|
+
selectionSet: {
|
15426
|
+
kind: "SelectionSet",
|
15427
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "UserPayload" } }],
|
15428
|
+
},
|
15429
|
+
},
|
15430
|
+
],
|
15431
|
+
},
|
15432
|
+
},
|
15433
|
+
...UserPayloadFragmentDoc.definitions,
|
15434
|
+
],
|
15435
|
+
};
|
15275
15436
|
const UserPromoteAdminDocument = {
|
15276
15437
|
kind: "Document",
|
15277
15438
|
definitions: [
|
@@ -16048,6 +16209,11 @@
|
|
16048
16209
|
variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
16049
16210
|
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
16050
16211
|
},
|
16212
|
+
{
|
16213
|
+
kind: "VariableDefinition",
|
16214
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "filter" } },
|
16215
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "ProjectMilestoneFilter" } },
|
16216
|
+
},
|
16051
16217
|
{
|
16052
16218
|
kind: "VariableDefinition",
|
16053
16219
|
variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
|
@@ -16086,6 +16252,11 @@
|
|
16086
16252
|
name: { kind: "Name", value: "before" },
|
16087
16253
|
value: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
16088
16254
|
},
|
16255
|
+
{
|
16256
|
+
kind: "Argument",
|
16257
|
+
name: { kind: "Name", value: "filter" },
|
16258
|
+
value: { kind: "Variable", name: { kind: "Name", value: "filter" } },
|
16259
|
+
},
|
16089
16260
|
{
|
16090
16261
|
kind: "Argument",
|
16091
16262
|
name: { kind: "Name", value: "first" },
|
@@ -23089,46 +23260,6 @@
|
|
23089
23260
|
...OrganizationInviteFragmentDoc.definitions,
|
23090
23261
|
],
|
23091
23262
|
};
|
23092
|
-
const OrganizationInviteDetailsDocument = {
|
23093
|
-
kind: "Document",
|
23094
|
-
definitions: [
|
23095
|
-
{
|
23096
|
-
kind: "OperationDefinition",
|
23097
|
-
operation: "query",
|
23098
|
-
name: { kind: "Name", value: "organizationInviteDetails" },
|
23099
|
-
variableDefinitions: [
|
23100
|
-
{
|
23101
|
-
kind: "VariableDefinition",
|
23102
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
23103
|
-
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
23104
|
-
},
|
23105
|
-
],
|
23106
|
-
selectionSet: {
|
23107
|
-
kind: "SelectionSet",
|
23108
|
-
selections: [
|
23109
|
-
{
|
23110
|
-
kind: "Field",
|
23111
|
-
name: { kind: "Name", value: "organizationInviteDetails" },
|
23112
|
-
arguments: [
|
23113
|
-
{
|
23114
|
-
kind: "Argument",
|
23115
|
-
name: { kind: "Name", value: "id" },
|
23116
|
-
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
23117
|
-
},
|
23118
|
-
],
|
23119
|
-
selectionSet: {
|
23120
|
-
kind: "SelectionSet",
|
23121
|
-
selections: [
|
23122
|
-
{ kind: "FragmentSpread", name: { kind: "Name", value: "OrganizationInviteDetailsPayload" } },
|
23123
|
-
],
|
23124
|
-
},
|
23125
|
-
},
|
23126
|
-
],
|
23127
|
-
},
|
23128
|
-
},
|
23129
|
-
...OrganizationInviteDetailsPayloadFragmentDoc.definitions,
|
23130
|
-
],
|
23131
|
-
};
|
23132
23263
|
const OrganizationInvitesDocument = {
|
23133
23264
|
kind: "Document",
|
23134
23265
|
definitions: [
|
@@ -28519,6 +28650,7 @@
|
|
28519
28650
|
get IssueRelationType () { return IssueRelationType; },
|
28520
28651
|
get OAuthClientApprovalStatus () { return OAuthClientApprovalStatus; },
|
28521
28652
|
get OrganizationDomainAuthType () { return OrganizationDomainAuthType; },
|
28653
|
+
get OrganizationInviteStatus () { return OrganizationInviteStatus; },
|
28522
28654
|
get PaginationOrderBy () { return PaginationOrderBy; },
|
28523
28655
|
get ProjectNotificationSubscriptionType () { return ProjectNotificationSubscriptionType; },
|
28524
28656
|
get ProjectUpdateHealthType () { return ProjectUpdateHealthType; },
|
@@ -28579,6 +28711,8 @@
|
|
28579
28711
|
CommentFragmentDoc: CommentFragmentDoc,
|
28580
28712
|
CommentConnectionFragmentDoc: CommentConnectionFragmentDoc,
|
28581
28713
|
CommentPayloadFragmentDoc: CommentPayloadFragmentDoc,
|
28714
|
+
CompanyFragmentDoc: CompanyFragmentDoc,
|
28715
|
+
CompanyConnectionFragmentDoc: CompanyConnectionFragmentDoc,
|
28582
28716
|
ContactPayloadFragmentDoc: ContactPayloadFragmentDoc,
|
28583
28717
|
CreateCsvExportReportPayloadFragmentDoc: CreateCsvExportReportPayloadFragmentDoc,
|
28584
28718
|
CreateOrJoinOrganizationResponseFragmentDoc: CreateOrJoinOrganizationResponseFragmentDoc,
|
@@ -28661,7 +28795,7 @@
|
|
28661
28795
|
OrganizationExistsPayloadFragmentDoc: OrganizationExistsPayloadFragmentDoc,
|
28662
28796
|
OrganizationInviteFragmentDoc: OrganizationInviteFragmentDoc,
|
28663
28797
|
OrganizationInviteConnectionFragmentDoc: OrganizationInviteConnectionFragmentDoc,
|
28664
|
-
|
28798
|
+
OrganizationInviteFullDetailsPayloadFragmentDoc: OrganizationInviteFullDetailsPayloadFragmentDoc,
|
28665
28799
|
OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
|
28666
28800
|
OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
|
28667
28801
|
OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
|
@@ -28796,6 +28930,7 @@
|
|
28796
28930
|
IntegrationSlackProjectPostDocument: IntegrationSlackProjectPostDocument,
|
28797
28931
|
CreateIntegrationTemplateDocument: CreateIntegrationTemplateDocument,
|
28798
28932
|
DeleteIntegrationTemplateDocument: DeleteIntegrationTemplateDocument,
|
28933
|
+
IntegrationUpdateSlackDocument: IntegrationUpdateSlackDocument,
|
28799
28934
|
IntegrationZendeskDocument: IntegrationZendeskDocument,
|
28800
28935
|
CreateIntegrationsSettingsDocument: CreateIntegrationsSettingsDocument,
|
28801
28936
|
UpdateIntegrationsSettingsDocument: UpdateIntegrationsSettingsDocument,
|
@@ -28888,6 +29023,7 @@
|
|
28888
29023
|
UpdateUserFlagDocument: UpdateUserFlagDocument,
|
28889
29024
|
UserGitHubConnectDocument: UserGitHubConnectDocument,
|
28890
29025
|
UserGoogleCalendarConnectDocument: UserGoogleCalendarConnectDocument,
|
29026
|
+
UserJiraConnectDocument: UserJiraConnectDocument,
|
28891
29027
|
UserPromoteAdminDocument: UserPromoteAdminDocument,
|
28892
29028
|
UserPromoteMemberDocument: UserPromoteMemberDocument,
|
28893
29029
|
UserSettingsFlagIncrementDocument: UserSettingsFlagIncrementDocument,
|
@@ -28992,7 +29128,6 @@
|
|
28992
29128
|
Organization_UsersDocument: Organization_UsersDocument,
|
28993
29129
|
OrganizationExistsDocument: OrganizationExistsDocument,
|
28994
29130
|
OrganizationInviteDocument: OrganizationInviteDocument,
|
28995
|
-
OrganizationInviteDetailsDocument: OrganizationInviteDetailsDocument,
|
28996
29131
|
OrganizationInvitesDocument: OrganizationInvitesDocument,
|
28997
29132
|
ProjectDocument: ProjectDocument,
|
28998
29133
|
Project_DocumentsDocument: Project_DocumentsDocument,
|
@@ -29524,6 +29659,48 @@
|
|
29524
29659
|
return new CommentQuery(this._request).fetch(this._comment.id);
|
29525
29660
|
}
|
29526
29661
|
}
|
29662
|
+
/**
|
29663
|
+
* A company related to issue's origin.
|
29664
|
+
*
|
29665
|
+
* @param request - function to call the graphql client
|
29666
|
+
* @param data - L.CompanyFragment response data
|
29667
|
+
*/
|
29668
|
+
class Company extends Request {
|
29669
|
+
constructor(request, data) {
|
29670
|
+
var _a, _b, _c, _d, _e, _f;
|
29671
|
+
super(request);
|
29672
|
+
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
29673
|
+
this.companyProperties = (_b = parseJson(data.companyProperties)) !== null && _b !== void 0 ? _b : {};
|
29674
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
29675
|
+
this.externalId = data.externalId;
|
29676
|
+
this.id = data.id;
|
29677
|
+
this.logoUrl = (_d = data.logoUrl) !== null && _d !== void 0 ? _d : undefined;
|
29678
|
+
this.name = data.name;
|
29679
|
+
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
29680
|
+
this.websiteUrl = (_f = data.websiteUrl) !== null && _f !== void 0 ? _f : undefined;
|
29681
|
+
this._creator = data.creator;
|
29682
|
+
}
|
29683
|
+
/** The user who added the company. */
|
29684
|
+
get creator() {
|
29685
|
+
return new UserQuery(this._request).fetch(this._creator.id);
|
29686
|
+
}
|
29687
|
+
/** The organization of the customer. */
|
29688
|
+
get organization() {
|
29689
|
+
return new OrganizationQuery(this._request).fetch();
|
29690
|
+
}
|
29691
|
+
}
|
29692
|
+
/**
|
29693
|
+
* CompanyConnection model
|
29694
|
+
*
|
29695
|
+
* @param request - function to call the graphql client
|
29696
|
+
* @param fetch - function to trigger a refetch of this CompanyConnection model
|
29697
|
+
* @param data - CompanyConnection response data
|
29698
|
+
*/
|
29699
|
+
class CompanyConnection extends Connection {
|
29700
|
+
constructor(request, fetch, data) {
|
29701
|
+
super(request, fetch, data.nodes.map(node => new Company(request, node)), new PageInfo(request, data.pageInfo));
|
29702
|
+
}
|
29703
|
+
}
|
29527
29704
|
/**
|
29528
29705
|
* ContactPayload model
|
29529
29706
|
*
|
@@ -29599,7 +29776,7 @@
|
|
29599
29776
|
get organization() {
|
29600
29777
|
return new OrganizationQuery(this._request).fetch();
|
29601
29778
|
}
|
29602
|
-
/** The user who owns the custom view. */
|
29779
|
+
/** [Deprecated] The user who owns the custom view. */
|
29603
29780
|
get owner() {
|
29604
29781
|
return new UserQuery(this._request).fetch(this._owner.id);
|
29605
29782
|
}
|
@@ -31940,12 +32117,12 @@
|
|
31940
32117
|
}
|
31941
32118
|
}
|
31942
32119
|
/**
|
31943
|
-
*
|
32120
|
+
* OrganizationInviteFullDetailsPayload model
|
31944
32121
|
*
|
31945
32122
|
* @param request - function to call the graphql client
|
31946
|
-
* @param data - L.
|
32123
|
+
* @param data - L.OrganizationInviteFullDetailsPayloadFragment response data
|
31947
32124
|
*/
|
31948
|
-
class
|
32125
|
+
class OrganizationInviteFullDetailsPayload extends Request {
|
31949
32126
|
constructor(request, data) {
|
31950
32127
|
var _a, _b;
|
31951
32128
|
super(request);
|
@@ -33713,6 +33890,7 @@
|
|
33713
33890
|
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
33714
33891
|
this.id = data.id;
|
33715
33892
|
this.notificationPreferences = (_d = parseJson(data.notificationPreferences)) !== null && _d !== void 0 ? _d : {};
|
33893
|
+
this.showFullUserNames = data.showFullUserNames;
|
33716
33894
|
this.unsubscribedFrom = data.unsubscribedFrom;
|
33717
33895
|
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
33718
33896
|
this._user = data.user;
|
@@ -35725,6 +35903,33 @@
|
|
35725
35903
|
});
|
35726
35904
|
}
|
35727
35905
|
}
|
35906
|
+
/**
|
35907
|
+
* A fetchable IntegrationUpdateSlack Mutation
|
35908
|
+
*
|
35909
|
+
* @param request - function to call the graphql client
|
35910
|
+
*/
|
35911
|
+
class IntegrationUpdateSlackMutation extends Request {
|
35912
|
+
constructor(request) {
|
35913
|
+
super(request);
|
35914
|
+
}
|
35915
|
+
/**
|
35916
|
+
* Call the IntegrationUpdateSlack mutation and return a IntegrationPayload
|
35917
|
+
*
|
35918
|
+
* @param code - required code to pass to integrationUpdateSlack
|
35919
|
+
* @param redirectUri - required redirectUri to pass to integrationUpdateSlack
|
35920
|
+
* @returns parsed response from IntegrationUpdateSlackMutation
|
35921
|
+
*/
|
35922
|
+
fetch(code, redirectUri) {
|
35923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
35924
|
+
const response = yield this._request(IntegrationUpdateSlackDocument, {
|
35925
|
+
code,
|
35926
|
+
redirectUri,
|
35927
|
+
});
|
35928
|
+
const data = response.integrationUpdateSlack;
|
35929
|
+
return new IntegrationPayload(this._request, data);
|
35930
|
+
});
|
35931
|
+
}
|
35932
|
+
}
|
35728
35933
|
/**
|
35729
35934
|
* A fetchable IntegrationZendesk Mutation
|
35730
35935
|
*
|
@@ -38069,6 +38274,31 @@
|
|
38069
38274
|
});
|
38070
38275
|
}
|
38071
38276
|
}
|
38277
|
+
/**
|
38278
|
+
* A fetchable UserJiraConnect Mutation
|
38279
|
+
*
|
38280
|
+
* @param request - function to call the graphql client
|
38281
|
+
*/
|
38282
|
+
class UserJiraConnectMutation extends Request {
|
38283
|
+
constructor(request) {
|
38284
|
+
super(request);
|
38285
|
+
}
|
38286
|
+
/**
|
38287
|
+
* Call the UserJiraConnect mutation and return a UserPayload
|
38288
|
+
*
|
38289
|
+
* @param code - required code to pass to userJiraConnect
|
38290
|
+
* @returns parsed response from UserJiraConnectMutation
|
38291
|
+
*/
|
38292
|
+
fetch(code) {
|
38293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
38294
|
+
const response = yield this._request(UserJiraConnectDocument, {
|
38295
|
+
code,
|
38296
|
+
});
|
38297
|
+
const data = response.userJiraConnect;
|
38298
|
+
return new UserPayload(this._request, data);
|
38299
|
+
});
|
38300
|
+
}
|
38301
|
+
}
|
38072
38302
|
/**
|
38073
38303
|
* A fetchable UserPromoteAdmin Mutation
|
38074
38304
|
*
|
@@ -39724,31 +39954,6 @@
|
|
39724
39954
|
});
|
39725
39955
|
}
|
39726
39956
|
}
|
39727
|
-
/**
|
39728
|
-
* A fetchable OrganizationInviteDetails Query
|
39729
|
-
*
|
39730
|
-
* @param request - function to call the graphql client
|
39731
|
-
*/
|
39732
|
-
class OrganizationInviteDetailsQuery extends Request {
|
39733
|
-
constructor(request) {
|
39734
|
-
super(request);
|
39735
|
-
}
|
39736
|
-
/**
|
39737
|
-
* Call the OrganizationInviteDetails query and return a OrganizationInviteDetailsPayload
|
39738
|
-
*
|
39739
|
-
* @param id - required id to pass to organizationInviteDetails
|
39740
|
-
* @returns parsed response from OrganizationInviteDetailsQuery
|
39741
|
-
*/
|
39742
|
-
fetch(id) {
|
39743
|
-
return __awaiter(this, void 0, void 0, function* () {
|
39744
|
-
const response = yield this._request(OrganizationInviteDetailsDocument, {
|
39745
|
-
id,
|
39746
|
-
});
|
39747
|
-
const data = response.organizationInviteDetails;
|
39748
|
-
return new OrganizationInviteDetailsPayload(this._request, data);
|
39749
|
-
});
|
39750
|
-
}
|
39751
|
-
}
|
39752
39957
|
/**
|
39753
39958
|
* A fetchable OrganizationInvites Query
|
39754
39959
|
*
|
@@ -42989,6 +43194,16 @@
|
|
42989
43194
|
deleteIntegrationTemplate(id) {
|
42990
43195
|
return new DeleteIntegrationTemplateMutation(this._request).fetch(id);
|
42991
43196
|
}
|
43197
|
+
/**
|
43198
|
+
* Updates the organization's Slack integration.
|
43199
|
+
*
|
43200
|
+
* @param code - required code to pass to integrationUpdateSlack
|
43201
|
+
* @param redirectUri - required redirectUri to pass to integrationUpdateSlack
|
43202
|
+
* @returns IntegrationPayload
|
43203
|
+
*/
|
43204
|
+
integrationUpdateSlack(code, redirectUri) {
|
43205
|
+
return new IntegrationUpdateSlackMutation(this._request).fetch(code, redirectUri);
|
43206
|
+
}
|
42992
43207
|
/**
|
42993
43208
|
* Integrates the organization with Zendesk.
|
42994
43209
|
*
|
@@ -43853,6 +44068,15 @@
|
|
43853
44068
|
userGoogleCalendarConnect(code) {
|
43854
44069
|
return new UserGoogleCalendarConnectMutation(this._request).fetch(code);
|
43855
44070
|
}
|
44071
|
+
/**
|
44072
|
+
* Connects the Jira user to this Linear account via OAuth2.
|
44073
|
+
*
|
44074
|
+
* @param code - required code to pass to userJiraConnect
|
44075
|
+
* @returns UserPayload
|
44076
|
+
*/
|
44077
|
+
userJiraConnect(code) {
|
44078
|
+
return new UserJiraConnectMutation(this._request).fetch(code);
|
44079
|
+
}
|
43856
44080
|
/**
|
43857
44081
|
* Makes user an admin. Can only be called by an admin.
|
43858
44082
|
*
|
@@ -44466,15 +44690,6 @@
|
|
44466
44690
|
organizationInvite(id) {
|
44467
44691
|
return new OrganizationInviteQuery(this._request).fetch(id);
|
44468
44692
|
}
|
44469
|
-
/**
|
44470
|
-
* One specific organization invite.
|
44471
|
-
*
|
44472
|
-
* @param id - required id to pass to organizationInviteDetails
|
44473
|
-
* @returns OrganizationInviteDetailsPayload
|
44474
|
-
*/
|
44475
|
-
organizationInviteDetails(id) {
|
44476
|
-
return new OrganizationInviteDetailsQuery(this._request).fetch(id);
|
44477
|
-
}
|
44478
44693
|
/**
|
44479
44694
|
* All invites for the organization.
|
44480
44695
|
*
|
@@ -44918,6 +45133,8 @@
|
|
44918
45133
|
exports.CommentQuery = CommentQuery;
|
44919
45134
|
exports.Comment_ChildrenQuery = Comment_ChildrenQuery;
|
44920
45135
|
exports.CommentsQuery = CommentsQuery;
|
45136
|
+
exports.Company = Company;
|
45137
|
+
exports.CompanyConnection = CompanyConnection;
|
44921
45138
|
exports.Connection = Connection;
|
44922
45139
|
exports.ContactPayload = ContactPayload;
|
44923
45140
|
exports.CreateApiKeyMutation = CreateApiKeyMutation;
|
@@ -45080,6 +45297,7 @@
|
|
45080
45297
|
exports.IntegrationTemplatePayload = IntegrationTemplatePayload;
|
45081
45298
|
exports.IntegrationTemplateQuery = IntegrationTemplateQuery;
|
45082
45299
|
exports.IntegrationTemplatesQuery = IntegrationTemplatesQuery;
|
45300
|
+
exports.IntegrationUpdateSlackMutation = IntegrationUpdateSlackMutation;
|
45083
45301
|
exports.IntegrationZendeskMutation = IntegrationZendeskMutation;
|
45084
45302
|
exports.IntegrationsQuery = IntegrationsQuery;
|
45085
45303
|
exports.IntegrationsSettings = IntegrationsSettings;
|
@@ -45193,8 +45411,7 @@
|
|
45193
45411
|
exports.OrganizationExistsQuery = OrganizationExistsQuery;
|
45194
45412
|
exports.OrganizationInvite = OrganizationInvite;
|
45195
45413
|
exports.OrganizationInviteConnection = OrganizationInviteConnection;
|
45196
|
-
exports.
|
45197
|
-
exports.OrganizationInviteDetailsQuery = OrganizationInviteDetailsQuery;
|
45414
|
+
exports.OrganizationInviteFullDetailsPayload = OrganizationInviteFullDetailsPayload;
|
45198
45415
|
exports.OrganizationInvitePayload = OrganizationInvitePayload;
|
45199
45416
|
exports.OrganizationInviteQuery = OrganizationInviteQuery;
|
45200
45417
|
exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
|
@@ -45371,6 +45588,7 @@
|
|
45371
45588
|
exports.UserExternalUserDisconnectMutation = UserExternalUserDisconnectMutation;
|
45372
45589
|
exports.UserGitHubConnectMutation = UserGitHubConnectMutation;
|
45373
45590
|
exports.UserGoogleCalendarConnectMutation = UserGoogleCalendarConnectMutation;
|
45591
|
+
exports.UserJiraConnectMutation = UserJiraConnectMutation;
|
45374
45592
|
exports.UserLinearError = UserLinearError;
|
45375
45593
|
exports.UserPayload = UserPayload;
|
45376
45594
|
exports.UserPromoteAdminMutation = UserPromoteAdminMutation;
|