@agility/content-fetch 2.0.0-rc18 → 2.0.0-rc20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agility-content-fetch.node.js +11377 -0
- package/dist/api-client.d.ts +2 -6
- package/dist/browser.js +17 -1537
- package/dist/node.js +29 -12532
- package/dist/types/Client.d.ts +8 -1
- package/package.json +3 -5
- package/.nyc_output/713b1ec2-05ec-4b67-8061-b6cad0a45ad5.json +0 -1
- package/coverage/base.css +0 -223
- package/coverage/block-navigation.js +0 -79
- package/coverage/index.html +0 -123
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -170
- package/coverage/src/api-client.js.html +0 -549
- package/coverage/src/content-fetch.js.html +0 -336
- package/coverage/src/index.html +0 -123
- package/coverage/src/methods/getContentItem.js.html +0 -285
- package/coverage/src/methods/getContentList.js.html +0 -486
- package/coverage/src/methods/getGallery.js.html +0 -243
- package/coverage/src/methods/getPage.js.html +0 -273
- package/coverage/src/methods/getSitemapFlat.js.html +0 -240
- package/coverage/src/methods/getSitemapNested.js.html +0 -231
- package/coverage/src/methods/getSyncContent.js.html +0 -258
- package/coverage/src/methods/getSyncPages.js.html +0 -258
- package/coverage/src/methods/getUrlRedirections.js.html +0 -339
- package/coverage/src/methods/index.html +0 -201
- package/coverage/src/methods/syncContentItems.js.html +0 -186
- package/coverage/src/methods/syncPageItems.js.html +0 -186
- package/coverage/src/types/FilterLogicOperator.js.html +0 -129
- package/coverage/src/types/FilterOperator.js.html +0 -156
- package/coverage/src/types/SortDirection.js.html +0 -129
- package/coverage/src/types/index.html +0 -123
- package/coverage/src/utils.js.html +0 -330
package/dist/api-client.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AxiosInstance } from 'axios';
|
|
2
1
|
import { SitemapFlatRequestParams } from './methods/getSitemapFlat';
|
|
3
2
|
import { SitemapNestedRequestParams } from './methods/getSitemapNested';
|
|
4
3
|
import { ContentItemRequestParams } from './methods/getContentItem';
|
|
@@ -10,6 +9,7 @@ import { SyncContentRequestParams } from './methods/getSyncContent';
|
|
|
10
9
|
import { SyncPagesRequestParams } from './methods/getSyncPages';
|
|
11
10
|
import { Config } from './types/Config';
|
|
12
11
|
import * as types from './types';
|
|
12
|
+
import { RequestParams } from './types/Client';
|
|
13
13
|
export interface ApiClientInstance {
|
|
14
14
|
config: Config;
|
|
15
15
|
makeRequest(req: any): Promise<any>;
|
|
@@ -25,7 +25,6 @@ export interface ApiClientInstance {
|
|
|
25
25
|
}
|
|
26
26
|
declare class ApiClient {
|
|
27
27
|
config: Config;
|
|
28
|
-
_api: AxiosInstance;
|
|
29
28
|
constructor(userConfig: Config);
|
|
30
29
|
types: typeof types;
|
|
31
30
|
getContentItem(params: ContentItemRequestParams): Promise<any>;
|
|
@@ -37,10 +36,7 @@ declare class ApiClient {
|
|
|
37
36
|
getUrlRedirections(params: UrlRedirectionsRequestParams): Promise<any>;
|
|
38
37
|
getSyncContent(params: SyncContentRequestParams): Promise<any>;
|
|
39
38
|
getSyncPages(params: SyncPagesRequestParams): Promise<any>;
|
|
40
|
-
makeRequest(reqConfig:
|
|
41
|
-
baseURL: string;
|
|
42
|
-
url: string;
|
|
43
|
-
}): Promise<any>;
|
|
39
|
+
makeRequest(reqConfig: RequestParams): Promise<any>;
|
|
44
40
|
}
|
|
45
41
|
export declare function getApi(config: Config): ApiClient;
|
|
46
42
|
export default getApi;
|