confluence.js 1.2.2 → 1.4.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 +18 -0
- package/README.md +15 -57
- package/out/api/analytics.d.ts +16 -0
- package/out/api/analytics.js +34 -0
- package/out/api/audit.d.ts +1 -1
- package/out/api/audit.js +12 -12
- package/out/api/content.d.ts +1 -1
- package/out/api/content.js +20 -20
- package/out/api/contentAttachments.d.ts +3 -3
- package/out/api/contentAttachments.js +13 -12
- package/out/api/contentBody.d.ts +1 -1
- package/out/api/contentBody.js +2 -2
- package/out/api/contentChildrenAndDescendants.d.ts +3 -3
- package/out/api/contentChildrenAndDescendants.js +16 -15
- package/out/api/contentComments.d.ts +1 -1
- package/out/api/contentComments.js +2 -2
- package/out/api/contentContentState.d.ts +58 -0
- package/out/api/contentContentState.js +63 -0
- package/out/api/contentLabels.d.ts +1 -1
- package/out/api/contentLabels.js +8 -8
- package/out/api/contentMacroBody.d.ts +1 -1
- package/out/api/contentMacroBody.js +2 -2
- package/out/api/contentPermissions.d.ts +1 -1
- package/out/api/contentPermissions.js +3 -3
- package/out/api/contentProperties.d.ts +1 -1
- package/out/api/contentProperties.js +12 -12
- package/out/api/contentRestrictions.d.ts +1 -1
- package/out/api/contentRestrictions.js +30 -30
- package/out/api/contentVersions.d.ts +1 -1
- package/out/api/contentVersions.js +8 -8
- package/out/api/contentWatches.d.ts +1 -1
- package/out/api/contentWatches.js +24 -24
- package/out/api/dynamicModules.d.ts +1 -1
- package/out/api/dynamicModules.js +6 -6
- package/out/api/experimental.d.ts +123 -5
- package/out/api/experimental.js +65 -13
- package/out/api/group.d.ts +1 -1
- package/out/api/group.js +35 -32
- package/out/api/index.d.ts +2 -0
- package/out/api/index.js +31 -29
- package/out/api/inlineTasks.d.ts +1 -1
- package/out/api/inlineTasks.js +6 -6
- package/out/api/labelInfo.d.ts +1 -1
- package/out/api/labelInfo.js +2 -2
- package/out/api/longRunningTask.d.ts +1 -1
- package/out/api/longRunningTask.js +4 -4
- package/out/api/models/availableContentStates.d.ts +6 -0
- package/out/api/models/availableContentStates.js +2 -0
- package/out/api/models/blueprintTemplate.d.ts +1 -1
- package/out/api/models/bulkUserLookup.d.ts +2 -2
- package/out/api/models/content.d.ts +6 -6
- package/out/api/models/contentHistory.d.ts +2 -2
- package/out/api/models/contentLookAndFeel.d.ts +1 -1
- package/out/api/models/contentMetadata.d.ts +1 -1
- package/out/api/models/contentRestriction.d.ts +2 -2
- package/out/api/models/contentState.d.ts +8 -0
- package/out/api/models/contentState.js +2 -0
- package/out/api/models/contentStateContainer.d.ts +5 -0
- package/out/api/models/contentStateContainer.js +2 -0
- package/out/api/models/contentStateSettings.d.ts +11 -0
- package/out/api/models/contentStateSettings.js +2 -0
- package/out/api/models/contentTemplate.d.ts +1 -1
- package/out/api/models/copyPageHierarchyRequest.d.ts +2 -0
- package/out/api/models/copyPageRequest.d.ts +1 -1
- package/out/api/models/horizontalHeaderLookAndFeel.d.ts +1 -1
- package/out/api/models/index.d.ts +8 -0
- package/out/api/models/index.js +166 -158
- package/out/api/models/labelArray.d.ts +1 -1
- package/out/api/models/longTask.d.ts +8 -0
- package/out/api/models/longTask.js +2 -0
- package/out/api/models/longTaskStatusArray.d.ts +1 -1
- package/out/api/models/lookAndFeel.d.ts +2 -2
- package/out/api/models/migratedUserArray.d.ts +1 -1
- package/out/api/models/relation.d.ts +1 -1
- package/out/api/models/relationArray.d.ts +1 -1
- package/out/api/models/searchPageResponseSearchResult.d.ts +1 -1
- package/out/api/models/searchResult.d.ts +2 -2
- package/out/api/models/space.d.ts +4 -4
- package/out/api/models/spaceArray.d.ts +1 -1
- package/out/api/models/spacePermission.d.ts +1 -1
- package/out/api/models/spacePermissionCreate.d.ts +1 -1
- package/out/api/models/spacePermissionRequest.d.ts +1 -1
- package/out/api/models/spacePermissionV2.d.ts +1 -1
- package/out/api/models/spacePropertyArray.d.ts +1 -1
- package/out/api/models/spaceWatchArray.d.ts +1 -1
- package/out/api/models/themeArray.d.ts +1 -1
- package/out/api/models/user.d.ts +2 -2
- package/out/api/models/userAnonymous.d.ts +1 -1
- package/out/api/models/userProperty.d.ts +13 -0
- package/out/api/models/userProperty.js +2 -0
- package/out/api/models/userPropertyCreate.d.ts +4 -0
- package/out/api/models/userPropertyCreate.js +2 -0
- package/out/api/models/userPropertyKeyArray.d.ts +10 -0
- package/out/api/models/userPropertyKeyArray.js +2 -0
- package/out/api/models/userPropertyUpdate.d.ts +4 -0
- package/out/api/models/userPropertyUpdate.js +2 -0
- package/out/api/models/usersUserKeys.d.ts +1 -1
- package/out/api/models/version.d.ts +2 -2
- package/out/api/models/versionArray.d.ts +1 -1
- package/out/api/models/watchArray.d.ts +1 -1
- package/out/api/parameters/createUserProperty.d.ts +10 -0
- package/out/api/parameters/createUserProperty.js +2 -0
- package/out/api/parameters/deletePageTree.d.ts +4 -0
- package/out/api/parameters/deletePageTree.js +2 -0
- package/out/api/parameters/deleteUserProperty.d.ts +9 -0
- package/out/api/parameters/deleteUserProperty.js +2 -0
- package/out/api/parameters/getAvailableContentStates.d.ts +4 -0
- package/out/api/parameters/getAvailableContentStates.js +2 -0
- package/out/api/parameters/getContentState.d.ts +6 -0
- package/out/api/parameters/getContentState.js +2 -0
- package/out/api/parameters/getContentStateLastUpdated.d.ts +4 -0
- package/out/api/parameters/getContentStateLastUpdated.js +2 -0
- package/out/api/parameters/getContentStateSettings.d.ts +4 -0
- package/out/api/parameters/getContentStateSettings.js +2 -0
- package/out/api/parameters/getGroupMembersByGroupId.d.ts +5 -0
- package/out/api/parameters/getMembersByQueryParam.d.ts +5 -0
- package/out/api/parameters/getSpaces.d.ts +1 -1
- package/out/api/parameters/getUserProperties.d.ts +8 -0
- package/out/api/parameters/getUserProperties.js +2 -0
- package/out/api/parameters/getUserProperty.d.ts +6 -0
- package/out/api/parameters/getUserProperty.js +2 -0
- package/out/api/parameters/index.d.ts +12 -0
- package/out/api/parameters/index.js +170 -158
- package/out/api/parameters/removeContentState.d.ts +4 -0
- package/out/api/parameters/removeContentState.js +2 -0
- package/out/api/parameters/searchGroups.d.ts +5 -0
- package/out/api/parameters/setContentState.d.ts +8 -0
- package/out/api/parameters/setContentState.js +2 -0
- package/out/api/parameters/updateUserProperty.d.ts +10 -0
- package/out/api/parameters/updateUserProperty.js +2 -0
- package/out/api/relation.d.ts +1 -1
- package/out/api/relation.js +12 -12
- package/out/api/search.d.ts +3 -3
- package/out/api/search.js +7 -6
- package/out/api/settings.d.ts +5 -1
- package/out/api/settings.js +21 -12
- package/out/api/space.d.ts +1 -1
- package/out/api/space.js +21 -17
- package/out/api/spacePermissions.d.ts +1 -1
- package/out/api/spacePermissions.js +7 -7
- package/out/api/spaceProperties.d.ts +1 -1
- package/out/api/spaceProperties.js +12 -12
- package/out/api/spaceSettings.d.ts +1 -1
- package/out/api/spaceSettings.js +4 -4
- package/out/api/template.d.ts +1 -1
- package/out/api/template.js +12 -12
- package/out/api/themes.d.ts +1 -1
- package/out/api/themes.js +12 -12
- package/out/api/users.d.ts +3 -3
- package/out/api/users.js +16 -16
- package/out/clients/baseClient.d.ts +3 -6
- package/out/clients/baseClient.js +16 -38
- package/out/clients/client.d.ts +2 -3
- package/out/clients/confluenceClient.d.ts +3 -1
- package/out/clients/confluenceClient.js +2 -0
- package/out/clients/index.js +4 -4
- package/out/config.d.ts +8 -4
- package/out/index.js +4 -4
- package/out/paramSerializer.d.ts +1 -0
- package/out/paramSerializer.js +16 -0
- package/out/server/audit.d.ts +1 -1
- package/out/server/audit.js +6 -6
- package/out/server/content.d.ts +1 -1
- package/out/server/content.js +32 -32
- package/out/server/contentBody.d.ts +1 -1
- package/out/server/contentBody.js +1 -1
- package/out/server/group.d.ts +1 -1
- package/out/server/group.js +3 -3
- package/out/server/index.js +8 -8
- package/out/server/longTask.d.ts +1 -1
- package/out/server/longTask.js +2 -2
- package/out/server/models/content.d.ts +6 -6
- package/out/server/models/contentChildren.d.ts +1 -1
- package/out/server/models/contentHistory.d.ts +2 -2
- package/out/server/models/contentLookAndFeel.d.ts +1 -1
- package/out/server/models/contentRestriction.d.ts +2 -2
- package/out/server/models/index.js +60 -60
- package/out/server/models/lookAndFeel.d.ts +2 -2
- package/out/server/models/searchResult.d.ts +2 -2
- package/out/server/models/space.d.ts +3 -3
- package/out/server/models/spacePermission.d.ts +1 -1
- package/out/server/models/user.d.ts +1 -1
- package/out/server/models/version.d.ts +1 -1
- package/out/server/parameters/index.js +64 -64
- package/out/server/search.d.ts +1 -1
- package/out/server/search.js +1 -1
- package/out/server/space.d.ts +1 -1
- package/out/server/space.js +14 -14
- package/out/server/user.d.ts +1 -1
- package/out/server/user.js +10 -10
- package/out/services/authenticationService/authenticationService.js +4 -1
- package/out/services/authenticationService/authentications/createPATAuthenticationToken.d.ts +2 -0
- package/out/services/authenticationService/authentications/createPATAuthenticationToken.js +10 -0
- package/out/services/authenticationService/authentications/index.d.ts +1 -0
- package/out/services/authenticationService/authentications/index.js +4 -3
- package/out/services/authenticationService/index.js +1 -1
- package/package.json +30 -27
- package/src/api/analytics.ts +44 -0
- package/src/api/audit.ts +7 -7
- package/src/api/content.ts +11 -11
- package/src/api/contentAttachments.ts +11 -10
- package/src/api/contentBody.ts +2 -2
- package/src/api/contentChildrenAndDescendants.ts +15 -11
- package/src/api/contentComments.ts +2 -2
- package/src/api/contentContentState.ts +157 -0
- package/src/api/contentLabels.ts +5 -5
- package/src/api/contentMacroBody.ts +2 -2
- package/src/api/contentPermissions.ts +2 -2
- package/src/api/contentProperties.ts +7 -7
- package/src/api/contentRestrictions.ts +16 -16
- package/src/api/contentVersions.ts +5 -5
- package/src/api/contentWatches.ts +13 -13
- package/src/api/dynamicModules.ts +4 -4
- package/src/api/experimental.ts +216 -13
- package/src/api/group.ts +20 -16
- package/src/api/index.ts +2 -0
- package/src/api/inlineTasks.ts +4 -4
- package/src/api/labelInfo.ts +2 -2
- package/src/api/longRunningTask.ts +3 -3
- package/src/api/models/availableContentStates.ts +7 -0
- package/src/api/models/blueprintTemplate.ts +1 -1
- package/src/api/models/bulkUserLookup.ts +2 -2
- package/src/api/models/content.ts +6 -6
- package/src/api/models/contentHistory.ts +2 -2
- package/src/api/models/contentLookAndFeel.ts +1 -1
- package/src/api/models/contentMetadata.ts +1 -1
- package/src/api/models/contentRestriction.ts +2 -2
- package/src/api/models/contentState.ts +8 -0
- package/src/api/models/contentStateContainer.ts +6 -0
- package/src/api/models/contentStateSettings.ts +12 -0
- package/src/api/models/contentTemplate.ts +1 -1
- package/src/api/models/copyPageHierarchyRequest.ts +2 -0
- package/src/api/models/copyPageRequest.ts +1 -1
- package/src/api/models/horizontalHeaderLookAndFeel.ts +1 -1
- package/src/api/models/index.ts +8 -0
- package/src/api/models/labelArray.ts +1 -1
- package/src/api/models/longTask.ts +8 -0
- package/src/api/models/longTaskStatusArray.ts +1 -1
- package/src/api/models/lookAndFeel.ts +2 -2
- package/src/api/models/migratedUserArray.ts +1 -1
- package/src/api/models/relation.ts +1 -1
- package/src/api/models/relationArray.ts +1 -1
- package/src/api/models/searchPageResponseSearchResult.ts +1 -1
- package/src/api/models/searchResult.ts +2 -2
- package/src/api/models/space.ts +4 -4
- package/src/api/models/spaceArray.ts +1 -1
- package/src/api/models/spacePermission.ts +1 -1
- package/src/api/models/spacePermissionCreate.ts +1 -1
- package/src/api/models/spacePermissionRequest.ts +1 -1
- package/src/api/models/spacePermissionV2.ts +1 -1
- package/src/api/models/spacePropertyArray.ts +1 -1
- package/src/api/models/spaceWatchArray.ts +1 -1
- package/src/api/models/themeArray.ts +1 -1
- package/src/api/models/user.ts +2 -2
- package/src/api/models/userAnonymous.ts +1 -1
- package/src/api/models/userProperty.ts +14 -0
- package/src/api/models/userPropertyCreate.ts +4 -0
- package/src/api/models/userPropertyKeyArray.ts +11 -0
- package/src/api/models/userPropertyUpdate.ts +4 -0
- package/src/api/models/usersUserKeys.ts +1 -1
- package/src/api/models/version.ts +2 -2
- package/src/api/models/versionArray.ts +1 -1
- package/src/api/models/watchArray.ts +1 -1
- package/src/api/parameters/createUserProperty.ts +11 -0
- package/src/api/parameters/deletePageTree.ts +4 -0
- package/src/api/parameters/deleteUserProperty.ts +9 -0
- package/src/api/parameters/getAvailableContentStates.ts +4 -0
- package/src/api/parameters/getContentState.ts +6 -0
- package/src/api/parameters/getContentStateLastUpdated.ts +4 -0
- package/src/api/parameters/getContentStateSettings.ts +4 -0
- package/src/api/parameters/getGroupMembersByGroupId.ts +5 -0
- package/src/api/parameters/getMembersByQueryParam.ts +5 -0
- package/src/api/parameters/getSpaces.ts +31 -1
- package/src/api/parameters/getUserProperties.ts +8 -0
- package/src/api/parameters/getUserProperty.ts +6 -0
- package/src/api/parameters/index.ts +12 -0
- package/src/api/parameters/removeContentState.ts +4 -0
- package/src/api/parameters/searchGroups.ts +5 -0
- package/src/api/parameters/setContentState.ts +8 -0
- package/src/api/parameters/updateUserProperty.ts +11 -0
- package/src/api/relation.ts +6 -6
- package/src/api/search.ts +7 -5
- package/src/api/settings.ts +29 -7
- package/src/api/space.ts +14 -10
- package/src/api/spacePermissions.ts +4 -4
- package/src/api/spaceProperties.ts +7 -7
- package/src/api/spaceSettings.ts +3 -3
- package/src/api/template.ts +7 -7
- package/src/api/themes.ts +7 -7
- package/src/api/users.ts +12 -12
- package/src/clients/baseClient.ts +12 -64
- package/src/clients/client.ts +2 -3
- package/src/clients/confluenceClient.ts +4 -0
- package/src/config.ts +9 -4
- package/src/paramSerializer.ts +15 -0
- package/src/server/audit.ts +2 -2
- package/src/server/content.ts +2 -2
- package/src/server/contentBody.ts +1 -1
- package/src/server/group.ts +2 -2
- package/src/server/longTask.ts +2 -2
- package/src/server/models/content.ts +6 -6
- package/src/server/models/contentChildren.ts +1 -1
- package/src/server/models/contentHistory.ts +2 -2
- package/src/server/models/contentLookAndFeel.ts +1 -1
- package/src/server/models/contentRestriction.ts +2 -2
- package/src/server/models/lookAndFeel.ts +2 -2
- package/src/server/models/searchResult.ts +2 -2
- package/src/server/models/space.ts +3 -3
- package/src/server/models/spacePermission.ts +1 -1
- package/src/server/models/user.ts +1 -1
- package/src/server/models/version.ts +1 -1
- package/src/server/search.ts +2 -2
- package/src/server/space.ts +2 -2
- package/src/server/user.ts +2 -2
- package/src/services/authenticationService/authenticationService.ts +5 -0
- package/src/services/authenticationService/authentications/createBasicAuthenticationToken.ts +1 -1
- package/src/services/authenticationService/authentications/createPATAuthenticationToken.ts +5 -0
- package/src/services/authenticationService/authentications/index.ts +1 -0
- package/tsconfig.lint.json +7 -0
package/src/api/template.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Template {
|
|
@@ -44,7 +44,7 @@ export class Template {
|
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
return this.client.sendRequest(config, callback
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -85,7 +85,7 @@ export class Template {
|
|
|
85
85
|
},
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
return this.client.sendRequest(config, callback
|
|
88
|
+
return this.client.sendRequest(config, callback);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
@@ -133,7 +133,7 @@ export class Template {
|
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
return this.client.sendRequest(config, callback
|
|
136
|
+
return this.client.sendRequest(config, callback);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
@@ -171,7 +171,7 @@ export class Template {
|
|
|
171
171
|
},
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
return this.client.sendRequest(config, callback
|
|
174
|
+
return this.client.sendRequest(config, callback);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
@@ -205,7 +205,7 @@ export class Template {
|
|
|
205
205
|
method: 'GET',
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
return this.client.sendRequest(config, callback
|
|
208
|
+
return this.client.sendRequest(config, callback);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/**
|
|
@@ -242,6 +242,6 @@ export class Template {
|
|
|
242
242
|
method: 'DELETE',
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
-
return this.client.sendRequest(config, callback
|
|
245
|
+
return this.client.sendRequest(config, callback);
|
|
246
246
|
}
|
|
247
247
|
}
|
package/src/api/themes.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Themes {
|
|
@@ -32,7 +32,7 @@ export class Themes {
|
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
return this.client.sendRequest(config, callback
|
|
35
|
+
return this.client.sendRequest(config, callback);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -53,7 +53,7 @@ export class Themes {
|
|
|
53
53
|
method: 'GET',
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -74,7 +74,7 @@ export class Themes {
|
|
|
74
74
|
method: 'GET',
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
return this.client.sendRequest(config, callback
|
|
77
|
+
return this.client.sendRequest(config, callback);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -100,7 +100,7 @@ export class Themes {
|
|
|
100
100
|
method: 'GET',
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
return this.client.sendRequest(config, callback
|
|
103
|
+
return this.client.sendRequest(config, callback);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -129,7 +129,7 @@ export class Themes {
|
|
|
129
129
|
},
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
return this.client.sendRequest(config, callback
|
|
132
|
+
return this.client.sendRequest(config, callback);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
@@ -150,6 +150,6 @@ export class Themes {
|
|
|
150
150
|
method: 'DELETE',
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
return this.client.sendRequest(config, callback
|
|
153
|
+
return this.client.sendRequest(config, callback);
|
|
154
154
|
}
|
|
155
155
|
}
|
package/src/api/users.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Users {
|
|
@@ -41,7 +41,7 @@ export class Users {
|
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
return this.client.sendRequest(config, callback
|
|
44
|
+
return this.client.sendRequest(config, callback);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -76,7 +76,7 @@ export class Users {
|
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
return this.client.sendRequest(config, callback
|
|
79
|
+
return this.client.sendRequest(config, callback);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
@@ -110,7 +110,7 @@ export class Users {
|
|
|
110
110
|
},
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
return this.client.sendRequest(config, callback
|
|
113
|
+
return this.client.sendRequest(config, callback);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -119,7 +119,7 @@ export class Users {
|
|
|
119
119
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
120
120
|
* ('Can use' global permission).
|
|
121
121
|
*/
|
|
122
|
-
async getGroupMembershipsForUser<T = Models.
|
|
122
|
+
async getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(
|
|
123
123
|
parameters: Parameters.GetGroupMembershipsForUser,
|
|
124
124
|
callback: Callback<T>
|
|
125
125
|
): Promise<void>;
|
|
@@ -129,11 +129,11 @@ export class Users {
|
|
|
129
129
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
130
130
|
* ('Can use' global permission).
|
|
131
131
|
*/
|
|
132
|
-
async getGroupMembershipsForUser<T = Models.
|
|
132
|
+
async getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(
|
|
133
133
|
parameters: Parameters.GetGroupMembershipsForUser,
|
|
134
134
|
callback?: never
|
|
135
135
|
): Promise<T>;
|
|
136
|
-
async getGroupMembershipsForUser<T = Models.
|
|
136
|
+
async getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(
|
|
137
137
|
parameters: Parameters.GetGroupMembershipsForUser,
|
|
138
138
|
callback?: Callback<T>,
|
|
139
139
|
): Promise<void | T> {
|
|
@@ -149,7 +149,7 @@ export class Users {
|
|
|
149
149
|
},
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
return this.client.sendRequest(config, callback
|
|
152
|
+
return this.client.sendRequest(config, callback);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
@@ -186,7 +186,7 @@ export class Users {
|
|
|
186
186
|
},
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
return this.client.sendRequest(config, callback
|
|
189
|
+
return this.client.sendRequest(config, callback);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
/**
|
|
@@ -223,7 +223,7 @@ export class Users {
|
|
|
223
223
|
},
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
return this.client.sendRequest(config, callback
|
|
226
|
+
return this.client.sendRequest(config, callback);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
@@ -266,7 +266,7 @@ export class Users {
|
|
|
266
266
|
},
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
return this.client.sendRequest(config, callback
|
|
269
|
+
return this.client.sendRequest(config, callback);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
/**
|
|
@@ -306,6 +306,6 @@ export class Users {
|
|
|
306
306
|
},
|
|
307
307
|
};
|
|
308
308
|
|
|
309
|
-
return this.client.sendRequest(config, callback
|
|
309
|
+
return this.client.sendRequest(config, callback);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Authentication, Telemetry, TelemetryClient } from 'telemetry.confluence.js';
|
|
3
|
-
import type { Client } from './client';
|
|
1
|
+
import { AuthenticationService } from '../services/authenticationService';
|
|
4
2
|
import type { Callback } from '../callback';
|
|
3
|
+
import type { Client } from './client';
|
|
5
4
|
import type { Config } from '../config';
|
|
6
|
-
import { AuthenticationService } from '../services/authenticationService';
|
|
7
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
|
+
import axios, { AxiosInstance } from 'axios';
|
|
8
7
|
|
|
9
8
|
const ATLASSIAN_TOKEN_CHECK_FLAG = 'X-Atlassian-Token';
|
|
10
9
|
const ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE = 'no-check';
|
|
11
10
|
|
|
12
11
|
export class BaseClient implements Client {
|
|
13
12
|
#instance: AxiosInstance | undefined;
|
|
14
|
-
private telemetryClient: TelemetryClient;
|
|
15
13
|
|
|
16
14
|
protected urlSuffix = '/wiki/rest/';
|
|
17
15
|
|
|
18
|
-
constructor(protected readonly config: Config) {
|
|
19
|
-
this.telemetryClient = new TelemetryClient(config.telemetry);
|
|
20
|
-
}
|
|
16
|
+
constructor(protected readonly config: Config) {}
|
|
21
17
|
|
|
22
18
|
protected paramSerializer(parameters: Record<string, any>): string {
|
|
23
19
|
const parts: string[] = [];
|
|
24
20
|
|
|
25
21
|
Object.entries(parameters).forEach(([key, value]) => {
|
|
26
22
|
if (value === null || typeof value === 'undefined') {
|
|
27
|
-
return
|
|
23
|
+
return;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
if (Array.isArray(value)) {
|
|
@@ -38,11 +34,15 @@ export class BaseClient implements Client {
|
|
|
38
34
|
} else if (value !== null && typeof value === 'object') {
|
|
39
35
|
// eslint-disable-next-line no-param-reassign
|
|
40
36
|
value = JSON.stringify(value);
|
|
37
|
+
} else if (value instanceof Function) {
|
|
38
|
+
const part = value();
|
|
39
|
+
|
|
40
|
+
return part && parts.push(part);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
parts.push(`${this.encode(key)}=${this.encode(value)}`);
|
|
44
44
|
|
|
45
|
-
return
|
|
45
|
+
return;
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
return parts.join('&');
|
|
@@ -82,38 +82,16 @@ export class BaseClient implements Client {
|
|
|
82
82
|
return this.#instance;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
async sendRequest<T>(requestConfig: RequestConfig, callback: never, telemetryData?:
|
|
85
|
+
async sendRequest<T>(requestConfig: RequestConfig, callback: never, telemetryData?: any): Promise<T>;
|
|
86
86
|
async sendRequest<T>(
|
|
87
87
|
requestConfig: RequestConfig,
|
|
88
88
|
callback: Callback<T>,
|
|
89
|
-
telemetryData?:
|
|
89
|
+
telemetryData?: any,
|
|
90
90
|
): Promise<void>;
|
|
91
91
|
async sendRequest<T>(
|
|
92
92
|
requestConfig: RequestConfig,
|
|
93
93
|
callback: Callback<T> | never,
|
|
94
|
-
telemetryData?: Partial<Telemetry>,
|
|
95
94
|
): Promise<void | T> {
|
|
96
|
-
const startDateTime = new Date();
|
|
97
|
-
|
|
98
|
-
const telemetry: Telemetry = {
|
|
99
|
-
authentication: this.authenticationType,
|
|
100
|
-
baseRequestConfigUsed: !!this.config.baseRequestConfig,
|
|
101
|
-
bodyExists: !!requestConfig.data,
|
|
102
|
-
callbackUsed: !!callback,
|
|
103
|
-
headersExists: !!requestConfig.headers,
|
|
104
|
-
libVersion: '1.2.2',
|
|
105
|
-
libVersionHash: 'bda9643ac6601722a28f238714274da4',
|
|
106
|
-
methodName: telemetryData?.methodName || 'sendRequest',
|
|
107
|
-
onErrorMiddlewareUsed: !!this.config.middlewares?.onError,
|
|
108
|
-
onResponseMiddlewareUsed: !!this.config.middlewares?.onResponse,
|
|
109
|
-
queryExists: !!requestConfig.params,
|
|
110
|
-
requestEndTime: new Date(),
|
|
111
|
-
requestStartTime: startDateTime,
|
|
112
|
-
requestStatusCode: 0,
|
|
113
|
-
noCheckAtlassianToken: !!this.config.noCheckAtlassianToken,
|
|
114
|
-
...telemetryData,
|
|
115
|
-
};
|
|
116
|
-
|
|
117
95
|
try {
|
|
118
96
|
const modifiedRequestConfig = {
|
|
119
97
|
...requestConfig,
|
|
@@ -136,8 +114,6 @@ export class BaseClient implements Client {
|
|
|
136
114
|
|
|
137
115
|
this.config.middlewares?.onResponse?.(response.data);
|
|
138
116
|
|
|
139
|
-
telemetry.requestStatusCode = response.status;
|
|
140
|
-
|
|
141
117
|
return responseHandler(response.data);
|
|
142
118
|
} catch (e: any) {
|
|
143
119
|
const callbackErrorHandler = callback && ((error: Config.Error) => callback(error));
|
|
@@ -149,35 +125,7 @@ export class BaseClient implements Client {
|
|
|
149
125
|
|
|
150
126
|
this.config.middlewares?.onError?.(e);
|
|
151
127
|
|
|
152
|
-
telemetry.requestStatusCode = e.isAxiosError ? e.response?.status ?? 0 : 418;
|
|
153
|
-
|
|
154
128
|
return errorHandler(e);
|
|
155
|
-
} finally {
|
|
156
|
-
telemetry.requestEndTime = new Date();
|
|
157
|
-
|
|
158
|
-
this.telemetryClient.sendTelemetry(telemetry);
|
|
159
129
|
}
|
|
160
130
|
}
|
|
161
|
-
|
|
162
|
-
private get authenticationType(): Authentication {
|
|
163
|
-
const { authentication } = this.config;
|
|
164
|
-
|
|
165
|
-
if (!authentication) {
|
|
166
|
-
return Authentication.None;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (authentication.basic) {
|
|
170
|
-
return Authentication.Basic;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
if (authentication.oauth2) {
|
|
174
|
-
return Authentication.OAuth2;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (authentication.jwt) {
|
|
178
|
-
return Authentication.JWT;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return Authentication.NA;
|
|
182
|
-
}
|
|
183
131
|
}
|
package/src/clients/client.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { Telemetry } from 'telemetry.confluence.js';
|
|
2
1
|
import type { Callback } from '../callback';
|
|
3
2
|
import type { RequestConfig } from '../requestConfig';
|
|
4
3
|
|
|
5
4
|
export interface Client {
|
|
6
|
-
sendRequest<T>(requestConfig: RequestConfig, callback?: never, telemetryData?:
|
|
5
|
+
sendRequest<T>(requestConfig: RequestConfig, callback?: never, telemetryData?: any): Promise<T>;
|
|
7
6
|
sendRequest<T>(
|
|
8
7
|
requestConfig: RequestConfig,
|
|
9
8
|
callback?: Callback<T>,
|
|
10
|
-
telemetryData?:
|
|
9
|
+
telemetryData?: any,
|
|
11
10
|
): Promise<void>;
|
|
12
11
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BaseClient } from './baseClient';
|
|
2
2
|
import {
|
|
3
|
+
Analytics,
|
|
3
4
|
Audit,
|
|
4
5
|
Content,
|
|
5
6
|
ContentAttachments,
|
|
6
7
|
ContentBody,
|
|
7
8
|
ContentChildrenAndDescendants,
|
|
8
9
|
ContentComments,
|
|
10
|
+
ContentContentState,
|
|
9
11
|
ContentLabels,
|
|
10
12
|
ContentMacroBody,
|
|
11
13
|
ContentPermissions,
|
|
@@ -32,12 +34,14 @@ import {
|
|
|
32
34
|
} from '../api';
|
|
33
35
|
|
|
34
36
|
export class ConfluenceClient extends BaseClient {
|
|
37
|
+
analytics = new Analytics(this);
|
|
35
38
|
audit = new Audit(this);
|
|
36
39
|
content = new Content(this);
|
|
37
40
|
contentAttachments = new ContentAttachments(this);
|
|
38
41
|
contentBody = new ContentBody(this);
|
|
39
42
|
contentChildrenAndDescendants = new ContentChildrenAndDescendants(this);
|
|
40
43
|
contentComments = new ContentComments(this);
|
|
44
|
+
contentContentState = new ContentContentState(this);
|
|
41
45
|
contentLabels = new ContentLabels(this);
|
|
42
46
|
contentMacroBody = new ContentMacroBody(this);
|
|
43
47
|
contentPermissions = new ContentPermissions(this);
|
package/src/config.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
-
import type { TelemetryConfig } from 'telemetry.confluence.js';
|
|
3
2
|
import type { RequestConfig } from './requestConfig';
|
|
4
3
|
import type { UtilityTypes } from './utilityTypes';
|
|
5
4
|
|
|
@@ -8,6 +7,7 @@ export interface Config {
|
|
|
8
7
|
baseRequestConfig?: Config.BaseRequestConfig;
|
|
9
8
|
authentication?: Config.Authentication;
|
|
10
9
|
middlewares?: Config.Middlewares;
|
|
10
|
+
/** @deprecated Disabled. Will be removed in the next major version. */
|
|
11
11
|
telemetry?: Config.Telemetry;
|
|
12
12
|
/**
|
|
13
13
|
* Adds `'X-Atlassian-Token': 'no-check'` to each request header
|
|
@@ -18,15 +18,18 @@ export interface Config {
|
|
|
18
18
|
export namespace Config {
|
|
19
19
|
export type BaseRequestConfig = RequestConfig;
|
|
20
20
|
export type Error = AxiosError;
|
|
21
|
-
|
|
21
|
+
/** @deprecated Disabled. Will be removed in the next major version. */
|
|
22
|
+
export type Telemetry = boolean | any;
|
|
22
23
|
|
|
23
24
|
export type Authentication = UtilityTypes.XOR<{
|
|
24
25
|
jwt: Authentication.JWT;
|
|
26
|
+
}, UtilityTypes.XOR<{
|
|
27
|
+
personalAccessToken: Authentication.PersonalAccessToken;
|
|
25
28
|
}, UtilityTypes.XOR<{
|
|
26
29
|
basic: Authentication.Basic;
|
|
27
30
|
}, {
|
|
28
31
|
oauth2: Authentication.OAuth2;
|
|
29
|
-
}
|
|
32
|
+
}>>>;
|
|
30
33
|
|
|
31
34
|
export interface Middlewares {
|
|
32
35
|
onError?: Config.Middlewares.OnErrorHandler;
|
|
@@ -39,10 +42,12 @@ export namespace Config {
|
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
export namespace Authentication {
|
|
45
|
+
export type PersonalAccessToken = string;
|
|
46
|
+
|
|
42
47
|
export type JWT = {
|
|
43
48
|
/** The key from the app descriptor. */
|
|
44
49
|
issuer: string;
|
|
45
|
-
/** The
|
|
50
|
+
/** The shared secret key received during the app installation handshake */
|
|
46
51
|
secret: string;
|
|
47
52
|
/** Token expiry time (default 3 minutes after issuing) */
|
|
48
53
|
expiryTimeSeconds?: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function paramSerializer(key: string, values?: string | string[]) {
|
|
2
|
+
if (typeof values === 'string') {
|
|
3
|
+
return () => `${key}=${values}`;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
if (!values) {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (!values.length) {
|
|
11
|
+
return '';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return () => values.map((value) => `${key}=${value}`).join('&');
|
|
15
|
+
}
|
package/src/server/audit.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
5
|
-
import {
|
|
4
|
+
import { Client } from '../clients';
|
|
6
5
|
import { Pagination } from '../pagination';
|
|
6
|
+
import { RequestConfig } from '../requestConfig';
|
|
7
7
|
|
|
8
8
|
export class Audit {
|
|
9
9
|
constructor(private client: Client) {}
|
package/src/server/content.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
5
|
-
import {
|
|
4
|
+
import { Client } from '../clients';
|
|
6
5
|
import { Pagination } from '../pagination';
|
|
6
|
+
import { RequestConfig } from '../requestConfig';
|
|
7
7
|
|
|
8
8
|
export class Content {
|
|
9
9
|
constructor(private client: Client) {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentBody {
|
package/src/server/group.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
5
|
-
import {
|
|
4
|
+
import { Client } from '../clients';
|
|
6
5
|
import { Pagination } from '../pagination';
|
|
6
|
+
import { RequestConfig } from '../requestConfig';
|
|
7
7
|
|
|
8
8
|
export class Group {
|
|
9
9
|
constructor(private client: Client) {}
|
package/src/server/longTask.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
5
|
-
import {
|
|
4
|
+
import { Client } from '../clients';
|
|
6
5
|
import { Pagination } from '../pagination';
|
|
6
|
+
import { RequestConfig } from '../requestConfig';
|
|
7
7
|
|
|
8
8
|
export class LongTask {
|
|
9
9
|
constructor(private client: Client) {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Space } from './space';
|
|
2
|
-
import { ContentHistory } from './contentHistory';
|
|
3
|
-
import { Version } from './version';
|
|
4
|
-
import { OperationCheckResult } from './operationCheckResult';
|
|
5
|
-
import { ContentChildren } from './contentChildren';
|
|
6
|
-
import { ContentChildType } from './contentChildType';
|
|
7
1
|
import { Container } from './container';
|
|
8
2
|
import { ContentBody } from './contentBody';
|
|
3
|
+
import { ContentChildren } from './contentChildren';
|
|
4
|
+
import { ContentChildType } from './contentChildType';
|
|
5
|
+
import { ContentHistory } from './contentHistory';
|
|
9
6
|
import { ContentRestriction } from './contentRestriction';
|
|
7
|
+
import { OperationCheckResult } from './operationCheckResult';
|
|
8
|
+
import { Space } from './space';
|
|
9
|
+
import { Version } from './version';
|
|
10
10
|
|
|
11
11
|
/** Base object for all content types. */
|
|
12
12
|
export interface Content {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Version } from './version';
|
|
2
|
-
import { UsersUserKeys } from './usersUserKeys';
|
|
3
1
|
import { User } from './user';
|
|
2
|
+
import { UsersUserKeys } from './usersUserKeys';
|
|
3
|
+
import { Version } from './version';
|
|
4
4
|
|
|
5
5
|
export interface ContentHistory {
|
|
6
6
|
latest: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserArray } from './userArray';
|
|
2
|
-
import { GroupArray } from './groupArray';
|
|
3
1
|
import { Content } from './content';
|
|
2
|
+
import { GroupArray } from './groupArray';
|
|
3
|
+
import { UserArray } from './userArray';
|
|
4
4
|
|
|
5
5
|
export interface ContentRestriction {
|
|
6
6
|
operation: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MenusLookAndFeel } from './menusLookAndFeel';
|
|
2
|
-
import { HeaderLookAndFeel } from './headerLookAndFeel';
|
|
3
1
|
import { ContentLookAndFeel } from './contentLookAndFeel';
|
|
2
|
+
import { HeaderLookAndFeel } from './headerLookAndFeel';
|
|
3
|
+
import { MenusLookAndFeel } from './menusLookAndFeel';
|
|
4
4
|
|
|
5
5
|
export interface LookAndFeel {
|
|
6
6
|
headings: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Content } from './content';
|
|
2
|
-
import { ContainerSummary } from './containerSummary';
|
|
3
1
|
import { Breadcrumb } from './breadcrumb';
|
|
2
|
+
import { ContainerSummary } from './containerSummary';
|
|
3
|
+
import { Content } from './content';
|
|
4
4
|
|
|
5
5
|
export interface SearchResult {
|
|
6
6
|
content: Content;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Icon } from './icon';
|
|
2
|
-
import { SpaceDescription } from './spaceDescription';
|
|
3
1
|
import { Content } from './content';
|
|
2
|
+
import { Icon } from './icon';
|
|
4
3
|
import { LabelArray } from './labelArray';
|
|
4
|
+
import { LookAndFeel } from './lookAndFeel';
|
|
5
5
|
import { OperationCheckResult } from './operationCheckResult';
|
|
6
|
+
import { SpaceDescription } from './spaceDescription';
|
|
6
7
|
import { SpacePermission } from './spacePermission';
|
|
7
8
|
import { SpaceSettings } from './spaceSettings';
|
|
8
9
|
import { Theme } from './theme';
|
|
9
|
-
import { LookAndFeel } from './lookAndFeel';
|
|
10
10
|
|
|
11
11
|
export interface Space {
|
|
12
12
|
id: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { User } from './user';
|
|
2
1
|
import { Group } from './group';
|
|
3
2
|
import { OperationCheckResult } from './operationCheckResult';
|
|
3
|
+
import { User } from './user';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* This object represents a permission for given space. Permissions consist of* at least one operation object with an
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon } from './icon';
|
|
2
2
|
import { OperationCheckResult } from './operationCheckResult';
|
|
3
|
-
import { UserDetails } from './userDetails';
|
|
4
3
|
import { Space } from './space';
|
|
4
|
+
import { UserDetails } from './userDetails';
|
|
5
5
|
|
|
6
6
|
export interface User {
|
|
7
7
|
type: string;
|
package/src/server/search.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
5
|
-
import {
|
|
4
|
+
import { Client } from '../clients';
|
|
6
5
|
import { Pagination } from '../pagination';
|
|
6
|
+
import { RequestConfig } from '../requestConfig';
|
|
7
7
|
|
|
8
8
|
export class Search {
|
|
9
9
|
constructor(private client: Client) {}
|