@libretexts/cxone-expert-node 1.1.1 → 1.2.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.
Files changed (83) hide show
  1. package/README.md +29 -18
  2. package/dist/index.cjs +6 -0
  3. package/dist/index.d.ts +40 -32
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.mjs +3079 -0
  6. package/dist/modules/archive.d.ts +19 -18
  7. package/dist/modules/archive.d.ts.map +1 -0
  8. package/dist/modules/auth.d.ts +9 -8
  9. package/dist/modules/auth.d.ts.map +1 -0
  10. package/dist/modules/contextMaps.d.ts +11 -10
  11. package/dist/modules/contextMaps.d.ts.map +1 -0
  12. package/dist/modules/events.d.ts +16 -15
  13. package/dist/modules/events.d.ts.map +1 -0
  14. package/dist/modules/files.d.ts +24 -23
  15. package/dist/modules/files.d.ts.map +1 -0
  16. package/dist/modules/groups.d.ts +12 -11
  17. package/dist/modules/groups.d.ts.map +1 -0
  18. package/dist/modules/pages.d.ts +68 -68
  19. package/dist/modules/pages.d.ts.map +1 -0
  20. package/dist/modules/requests.d.ts +15 -14
  21. package/dist/modules/requests.d.ts.map +1 -0
  22. package/dist/modules/site.d.ts +23 -22
  23. package/dist/modules/site.d.ts.map +1 -0
  24. package/dist/modules/users.d.ts +17 -16
  25. package/dist/modules/users.d.ts.map +1 -0
  26. package/dist/types/archive.d.ts +79 -78
  27. package/dist/types/archive.d.ts.map +1 -0
  28. package/dist/types/auth.d.ts +12 -11
  29. package/dist/types/auth.d.ts.map +1 -0
  30. package/dist/types/contextMaps.d.ts +35 -34
  31. package/dist/types/contextMaps.d.ts.map +1 -0
  32. package/dist/types/events.d.ts +69 -68
  33. package/dist/types/events.d.ts.map +1 -0
  34. package/dist/types/files.d.ts +62 -61
  35. package/dist/types/files.d.ts.map +1 -0
  36. package/dist/types/groups.d.ts +58 -57
  37. package/dist/types/groups.d.ts.map +1 -0
  38. package/dist/types/index.d.ts +28 -19
  39. package/dist/types/index.d.ts.map +1 -0
  40. package/dist/types/pages.d.ts +738 -737
  41. package/dist/types/pages.d.ts.map +1 -0
  42. package/dist/types/requests.d.ts +10 -9
  43. package/dist/types/requests.d.ts.map +1 -0
  44. package/dist/types/security.d.ts +58 -57
  45. package/dist/types/security.d.ts.map +1 -0
  46. package/dist/types/site.d.ts +255 -254
  47. package/dist/types/site.d.ts.map +1 -0
  48. package/dist/types/users.d.ts +82 -81
  49. package/dist/types/users.d.ts.map +1 -0
  50. package/dist/utils.d.ts +4 -2
  51. package/dist/utils.d.ts.map +1 -0
  52. package/package.json +20 -10
  53. package/dist/cxone-expert-node.cjs.development.js +0 -1511
  54. package/dist/cxone-expert-node.cjs.development.js.map +0 -1
  55. package/dist/cxone-expert-node.cjs.production.min.js +0 -2
  56. package/dist/cxone-expert-node.cjs.production.min.js.map +0 -1
  57. package/dist/cxone-expert-node.esm.js +0 -1505
  58. package/dist/cxone-expert-node.esm.js.map +0 -1
  59. package/dist/index.js +0 -8
  60. package/src/index.ts +0 -105
  61. package/src/modules/archive.ts +0 -186
  62. package/src/modules/auth.ts +0 -35
  63. package/src/modules/contextMaps.ts +0 -56
  64. package/src/modules/events.ts +0 -140
  65. package/src/modules/files.ts +0 -291
  66. package/src/modules/groups.ts +0 -79
  67. package/src/modules/pages.ts +0 -1236
  68. package/src/modules/requests.ts +0 -68
  69. package/src/modules/site.ts +0 -266
  70. package/src/modules/users.ts +0 -161
  71. package/src/types/archive.ts +0 -101
  72. package/src/types/auth.ts +0 -14
  73. package/src/types/contextMaps.ts +0 -46
  74. package/src/types/events.ts +0 -91
  75. package/src/types/files.ts +0 -87
  76. package/src/types/groups.ts +0 -74
  77. package/src/types/index.ts +0 -22
  78. package/src/types/pages.ts +0 -859
  79. package/src/types/requests.ts +0 -11
  80. package/src/types/security.ts +0 -61
  81. package/src/types/site.ts +0 -304
  82. package/src/types/users.ts +0 -101
  83. package/src/utils.ts +0 -8
@@ -1,78 +1,79 @@
1
- import { BaseQueryParams, PaginationQueryParams } from "./requests";
2
- import { ExpertUser } from "./security";
3
- export declare type GetArchiveParams = {
4
- authenticate?: boolean;
5
- };
6
- export declare type GetArchiveFilesParams = {
7
- authenticate?: boolean;
8
- } & PaginationQueryParams;
9
- export declare type GetArchiveFileParams = {
10
- authenticate?: boolean;
11
- };
12
- export declare type GetArchivePagesParams = BaseQueryParams & PaginationQueryParams;
13
- export declare type GetArchivePageParams = {
14
- authenticate?: boolean;
15
- };
16
- export declare type GetArchiveResponse = {
17
- "files.archive": {
18
- "@href": string;
19
- };
20
- "pages.archive": {
21
- "@href": string;
22
- };
23
- };
24
- export declare type GetArchiveFilesResponse = {
25
- "@count": string;
26
- "@offset": string;
27
- "file.archive": ArchiveFile | ArchiveFile[];
28
- };
29
- export declare type GetArchiveFileInfoResponse = ArchiveFile;
30
- export declare type GetArchivePagesResponse = {
31
- "@querycount": string;
32
- "page.archive": ArchivePage | ArchivePage[];
33
- };
34
- export declare type GetArchivePageResponse = ArchivePage;
35
- export declare type GetArchivePageInfoResponse = ArchivePage;
36
- export declare type GeetArchivePageSubPagesResponse = {};
37
- export declare type GetArchivePageContentsResponse = {
38
- "@type": string;
39
- body: any[];
40
- };
41
- export declare type GetArchivePageSubPagesResponse = {
42
- "page.archive"?: ArchivePage | ArchivePage[];
43
- };
44
- export declare type ArchiveFile = {
45
- "@id": string;
46
- "@revision": string;
47
- "@res-id": string;
48
- "@href": string;
49
- "@res-is-head": string;
50
- "@res-is-deleted": string;
51
- "@res-rev-is-deleted": string;
52
- "@res-contents-id": string;
53
- "alt-text": string;
54
- contents: object;
55
- "contents.preview"?: any[];
56
- "date.created": string;
57
- "date.deleted"?: string;
58
- "date.last-modified": string;
59
- description: string;
60
- filename: string;
61
- "page.parent"?: object;
62
- "properties"?: object;
63
- "user-action": {
64
- "@type": string;
65
- };
66
- "user.createdby": ExpertUser;
67
- "user.deletedby"?: ExpertUser;
68
- };
69
- export declare type ArchivePage = {
70
- "@id": string;
71
- "@href": string;
72
- contents: object;
73
- "date.deleted": string;
74
- "path": string;
75
- "subpages"?: object;
76
- "title": string;
77
- "user.deleted": ExpertUser;
78
- };
1
+ import { BaseQueryParams, PaginationQueryParams } from './requests';
2
+ import { ExpertUser } from './security';
3
+ export type GetArchiveParams = {
4
+ authenticate?: boolean;
5
+ };
6
+ export type GetArchiveFilesParams = {
7
+ authenticate?: boolean;
8
+ } & PaginationQueryParams;
9
+ export type GetArchiveFileParams = {
10
+ authenticate?: boolean;
11
+ };
12
+ export type GetArchivePagesParams = BaseQueryParams & PaginationQueryParams;
13
+ export type GetArchivePageParams = {
14
+ authenticate?: boolean;
15
+ };
16
+ export type GetArchiveResponse = {
17
+ "files.archive": {
18
+ "@href": string;
19
+ };
20
+ "pages.archive": {
21
+ "@href": string;
22
+ };
23
+ };
24
+ export type GetArchiveFilesResponse = {
25
+ "@count": string;
26
+ "@offset": string;
27
+ "file.archive": ArchiveFile | ArchiveFile[];
28
+ };
29
+ export type GetArchiveFileInfoResponse = ArchiveFile;
30
+ export type GetArchivePagesResponse = {
31
+ "@querycount": string;
32
+ "page.archive": ArchivePage | ArchivePage[];
33
+ };
34
+ export type GetArchivePageResponse = ArchivePage;
35
+ export type GetArchivePageInfoResponse = ArchivePage;
36
+ export type GeetArchivePageSubPagesResponse = {};
37
+ export type GetArchivePageContentsResponse = {
38
+ "@type": string;
39
+ body: any[];
40
+ };
41
+ export type GetArchivePageSubPagesResponse = {
42
+ "page.archive"?: ArchivePage | ArchivePage[];
43
+ };
44
+ export type ArchiveFile = {
45
+ "@id": string;
46
+ "@revision": string;
47
+ "@res-id": string;
48
+ "@href": string;
49
+ "@res-is-head": string;
50
+ "@res-is-deleted": string;
51
+ "@res-rev-is-deleted": string;
52
+ "@res-contents-id": string;
53
+ "alt-text": string;
54
+ contents: object;
55
+ "contents.preview"?: any[];
56
+ "date.created": string;
57
+ "date.deleted"?: string;
58
+ "date.last-modified": string;
59
+ description: string;
60
+ filename: string;
61
+ "page.parent"?: object;
62
+ "properties"?: object;
63
+ "user-action": {
64
+ "@type": string;
65
+ };
66
+ "user.createdby": ExpertUser;
67
+ "user.deletedby"?: ExpertUser;
68
+ };
69
+ export type ArchivePage = {
70
+ "@id": string;
71
+ "@href": string;
72
+ contents: object;
73
+ "date.deleted": string;
74
+ "path": string;
75
+ "subpages"?: object;
76
+ "title": string;
77
+ "user.deleted": ExpertUser;
78
+ };
79
+ //# sourceMappingURL=archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../src/types/archive.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,qBAAqB,EAEtB,MAAM,YAAY,CAAC;AACtB,OAAO,EAAE,UAAU,EAAgB,MAAM,YAAY,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,qBAAqB,CAAC;AAE1B,MAAM,MAAM,oBAAoB,GAAG;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG,qBAAqB,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAAG;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,eAAe,EAAE;QACb,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,eAAe,EAAE;QACb,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAAC;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,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,UAAU,CAAC;CAC9B,CAAC"}
@@ -1,11 +1,12 @@
1
- export declare type BrowserTokenParams = {
2
- key: string;
3
- };
4
- export declare type ServerTokenParams = {
5
- key: string;
6
- secret: string;
7
- user: string;
8
- };
9
- export declare type AuthObject = {
10
- 'X-Deki-Token': string | null;
11
- };
1
+ export type BrowserTokenParams = {
2
+ key: string;
3
+ };
4
+ export type ServerTokenParams = {
5
+ key: string;
6
+ secret: string;
7
+ user: string;
8
+ };
9
+ export type AuthObject = {
10
+ 'X-Deki-Token': string | null;
11
+ };
12
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;CACf,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAA"}
@@ -1,34 +1,35 @@
1
- export declare type GetContextMapParams = {
2
- contextid?: string;
3
- mapped?: boolean;
4
- language?: string;
5
- verbose?: boolean;
6
- languagesonly?: boolean;
7
- };
8
- export declare type GetContextMapByIdParams = {
9
- authenticate?: boolean;
10
- id?: string;
11
- verbose?: boolean;
12
- language?: string;
13
- };
14
- export declare type GetContextMapResponse = {
15
- languages: {
16
- language: string | string[];
17
- };
18
- contextmap?: Partial<ContextMap> | Partial<ContextMap>[];
19
- };
20
- export declare type GetContextMapByIdResponse = {
21
- "@default": string;
22
- "@exists": string;
23
- id: string;
24
- language: string;
25
- pageid: string;
26
- };
27
- declare type ContextMap = {
28
- "@default": string;
29
- "@exists": string;
30
- id: string;
31
- description: string;
32
- language: string;
33
- };
34
- export {};
1
+ export type GetContextMapParams = {
2
+ contextid?: string;
3
+ mapped?: boolean;
4
+ language?: string;
5
+ verbose?: boolean;
6
+ languagesonly?: boolean;
7
+ };
8
+ export type GetContextMapByIdParams = {
9
+ authenticate?: boolean;
10
+ id?: string;
11
+ verbose?: boolean;
12
+ language?: string;
13
+ };
14
+ export type GetContextMapResponse = {
15
+ languages: {
16
+ language: string | string[];
17
+ };
18
+ contextmap?: Partial<ContextMap> | Partial<ContextMap>[];
19
+ };
20
+ export type GetContextMapByIdResponse = {
21
+ "@default": string;
22
+ "@exists": string;
23
+ id: string;
24
+ language: string;
25
+ pageid: string;
26
+ };
27
+ type ContextMap = {
28
+ "@default": string;
29
+ "@exists": string;
30
+ id: string;
31
+ description: string;
32
+ language: string;
33
+ };
34
+ export {};
35
+ //# sourceMappingURL=contextMaps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextMaps.d.ts","sourceRoot":"","sources":["../../src/types/contextMaps.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,mBAAmB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE;QACP,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC/B,CAAC;IACF,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,KAAK,UAAU,GAAG;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,68 +1,69 @@
1
- export declare type GetPageHierarchyByIdParams = {
2
- limit?: number;
3
- include?: string;
4
- upto?: string;
5
- };
6
- export declare type GetPageHierarchyDetailByIdParams = {
7
- include?: string;
8
- };
9
- export declare type GetEventPageParams = GetPageHierarchyByIdParams;
10
- export declare type GetEventPageDetailParams = GetPageHierarchyByIdParams;
11
- export declare type GetEventUserPageParams = GetPageHierarchyByIdParams;
12
- export declare type GetEventUserPageDetailParams = GetPageHierarchyDetailByIdParams;
13
- export declare type GetPageHierarchyByIdResponse = {
14
- "@count": string;
15
- "@upto": string;
16
- "@since": string;
17
- summary: EventSummary | EventSummary[];
18
- };
19
- export declare type GetPageHierarchyDetailByIdResponse = {
20
- "@count": string;
21
- summary: EventDetailSummary | EventDetailSummary[];
22
- };
23
- export declare type GetEventPageResponse = {
24
- "@count": string;
25
- "@upto": string;
26
- "@since": string;
27
- summary: EventDetailSummary | EventDetailSummary[];
28
- };
29
- export declare type GetEventPageDetailResponse = {
30
- "@count": string;
31
- event: EventDetail;
32
- };
33
- export declare type GetEventUserPageResponse = GetPageHierarchyByIdResponse;
34
- export declare type GetEventUserPageDetailResponse = GetPageHierarchyDetailByIdResponse;
35
- export declare type EventSummary = {
36
- "@id": string;
37
- "@datetime": string;
38
- "@count": string;
39
- "@detailid": string;
40
- "@uri.detail": string;
41
- "@uri.hierarchy"?: string;
42
- event: EventDetail;
43
- page: object;
44
- user?: UserDetail;
45
- };
46
- export declare type EventDetailSummary = {
47
- "@id": string;
48
- "@datetime": string;
49
- "@count": string;
50
- "@uri.detail": string;
51
- event: EventDetail;
52
- };
53
- export declare type EventDetail = {
54
- "@id": string;
55
- "@datetime": string;
56
- "@mt-epoch": string;
57
- "@type": string;
58
- "@language": string;
59
- "@version": string;
60
- diff?: object;
61
- page: object;
62
- request: object;
63
- };
64
- export declare type UserDetail = {
65
- "user": {
66
- "@id": string;
67
- };
68
- };
1
+ export type GetPageHierarchyByIdParams = {
2
+ limit?: number;
3
+ include?: string;
4
+ upto?: string;
5
+ };
6
+ export type GetPageHierarchyDetailByIdParams = {
7
+ include?: string;
8
+ };
9
+ export type GetEventPageParams = GetPageHierarchyByIdParams;
10
+ export type GetEventPageDetailParams = GetPageHierarchyByIdParams;
11
+ export type GetEventUserPageParams = GetPageHierarchyByIdParams;
12
+ export type GetEventUserPageDetailParams = GetPageHierarchyDetailByIdParams;
13
+ export type GetPageHierarchyByIdResponse = {
14
+ "@count": string;
15
+ "@upto": string;
16
+ "@since": string;
17
+ summary: EventSummary | EventSummary[];
18
+ };
19
+ export type GetPageHierarchyDetailByIdResponse = {
20
+ "@count": string;
21
+ summary: EventDetailSummary | EventDetailSummary[];
22
+ };
23
+ export type GetEventPageResponse = {
24
+ "@count": string;
25
+ "@upto": string;
26
+ "@since": string;
27
+ summary: EventDetailSummary | EventDetailSummary[];
28
+ };
29
+ export type GetEventPageDetailResponse = {
30
+ "@count": string;
31
+ event: EventDetail;
32
+ };
33
+ export type GetEventUserPageResponse = GetPageHierarchyByIdResponse;
34
+ export type GetEventUserPageDetailResponse = GetPageHierarchyDetailByIdResponse;
35
+ export type EventSummary = {
36
+ "@id": string;
37
+ "@datetime": string;
38
+ "@count": string;
39
+ "@detailid": string;
40
+ "@uri.detail": string;
41
+ "@uri.hierarchy"?: string;
42
+ event: EventDetail;
43
+ page: object;
44
+ user?: UserDetail;
45
+ };
46
+ export type EventDetailSummary = {
47
+ "@id": string;
48
+ "@datetime": string;
49
+ "@count": string;
50
+ "@uri.detail": string;
51
+ event: EventDetail;
52
+ };
53
+ export type EventDetail = {
54
+ "@id": string;
55
+ "@datetime": string;
56
+ "@mt-epoch": string;
57
+ "@type": string;
58
+ "@language": string;
59
+ "@version": string;
60
+ diff?: object;
61
+ page: object;
62
+ request: object;
63
+ };
64
+ export type UserDetail = {
65
+ "user": {
66
+ "@id": string;
67
+ };
68
+ };
69
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;AAE5D,MAAM,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GAAG,gCAAgC,CAAC;AAE5E,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;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,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;KACf,CAAA;CACF,CAAA"}
@@ -1,61 +1,62 @@
1
- import { BaseQueryParams } from "./requests";
2
- import { PageFile, DeletePageFileNameDescriptionResponse } from "./pages";
3
- export declare type GetFileParams = {
4
- includeDeleted?: boolean;
5
- revision?: string;
6
- size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
7
- format?: "jpg" | "png" | "bmp" | "gif";
8
- ratio?: "fixed" | "var";
9
- width?: number;
10
- height: number;
11
- } & BaseQueryParams;
12
- export declare type GetFileNameParams = GetFileParams;
13
- export declare type GetFileDescriptionParams = {
14
- revision?: string;
15
- } & BaseQueryParams;
16
- export declare type GetFileInfoParams = {
17
- includeDeleted?: boolean;
18
- revision?: string;
19
- } & BaseQueryParams;
20
- export declare type GetFileInfoResponse = PageFile;
21
- export declare type GetFilePropertiesParams = {
22
- names?: string;
23
- contentcutoff?: number;
24
- } & BaseQueryParams;
25
- export declare type GetFilePropertiesKeyParams = BaseQueryParams;
26
- export declare type GetFilePropertiesKeyInfoParams = {
27
- contentcutoff?: number;
28
- } & BaseQueryParams;
29
- export declare type GetFileRevisionsParams = {
30
- changefilter?: "CONTENT" | "NAME" | "LANGUAGE" | "META" | "DELETEFLAG" | "PARENT";
31
- } & BaseQueryParams;
32
- export declare type GetFileRevisionsResponse = {
33
- "@count": string;
34
- "@totalcount": string;
35
- "@href": string;
36
- file: Partial<PageFile> | Partial<PageFile>[] | "";
37
- };
38
- export declare type DeleteFileParams = BaseQueryParams;
39
- export declare type HeadFileParams = {
40
- includeDeleted?: boolean;
41
- revision?: string;
42
- size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
43
- format?: "jpg" | "png" | "bmp" | "gif";
44
- ratio?: "fixed" | "var";
45
- width?: number;
46
- height: number;
47
- } & BaseQueryParams;
48
- export declare type PutFileParams = {
49
- description?: string;
50
- } & BaseQueryParams;
51
- export declare type PutFileResponse = DeletePageFileNameDescriptionResponse;
52
- export declare type DeleteFileNameParams = BaseQueryParams;
53
- export declare type HeadFileNameParams = HeadFileParams;
54
- export declare type PutFileNameParams = PutFileParams;
55
- export declare type PostFileCopyParams = {
56
- name?: string;
57
- to?: string;
58
- } & BaseQueryParams;
59
- export declare type PostFileCopyResponse = PageFile;
60
- export declare type DelDescriptionFileParams = BaseQueryParams;
61
- export declare type DelDescriptionFileResponse = DeletePageFileNameDescriptionResponse;
1
+ import { BaseQueryParams } from './requests';
2
+ import { PageFile, DeletePageFileNameDescriptionResponse } from './pages';
3
+ export type GetFileParams = {
4
+ includeDeleted?: boolean;
5
+ revision?: string;
6
+ size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
7
+ format?: "jpg" | "png" | "bmp" | "gif";
8
+ ratio?: "fixed" | "var";
9
+ width?: number;
10
+ height: number;
11
+ } & BaseQueryParams;
12
+ export type GetFileNameParams = GetFileParams;
13
+ export type GetFileDescriptionParams = {
14
+ revision?: string;
15
+ } & BaseQueryParams;
16
+ export type GetFileInfoParams = {
17
+ includeDeleted?: boolean;
18
+ revision?: string;
19
+ } & BaseQueryParams;
20
+ export type GetFileInfoResponse = PageFile;
21
+ export type GetFilePropertiesParams = {
22
+ names?: string;
23
+ contentcutoff?: number;
24
+ } & BaseQueryParams;
25
+ export type GetFilePropertiesKeyParams = BaseQueryParams;
26
+ export type GetFilePropertiesKeyInfoParams = {
27
+ contentcutoff?: number;
28
+ } & BaseQueryParams;
29
+ export type GetFileRevisionsParams = {
30
+ changefilter?: "CONTENT" | "NAME" | "LANGUAGE" | "META" | "DELETEFLAG" | "PARENT";
31
+ } & BaseQueryParams;
32
+ export type GetFileRevisionsResponse = {
33
+ "@count": string;
34
+ "@totalcount": string;
35
+ "@href": string;
36
+ file: Partial<PageFile> | Partial<PageFile>[] | "";
37
+ };
38
+ export type DeleteFileParams = BaseQueryParams;
39
+ export type HeadFileParams = {
40
+ includeDeleted?: boolean;
41
+ revision?: string;
42
+ size?: "original" | "thumb" | "webview" | "bestfit" | "custom";
43
+ format?: "jpg" | "png" | "bmp" | "gif";
44
+ ratio?: "fixed" | "var";
45
+ width?: number;
46
+ height: number;
47
+ } & BaseQueryParams;
48
+ export type PutFileParams = {
49
+ description?: string;
50
+ } & BaseQueryParams;
51
+ export type PutFileResponse = DeletePageFileNameDescriptionResponse;
52
+ export type DeleteFileNameParams = BaseQueryParams;
53
+ export type HeadFileNameParams = HeadFileParams;
54
+ export type PutFileNameParams = PutFileParams;
55
+ export type PostFileCopyParams = {
56
+ name?: string;
57
+ to?: string;
58
+ } & BaseQueryParams;
59
+ export type PostFileCopyResponse = PageFile;
60
+ export type DelDescriptionFileParams = BaseQueryParams;
61
+ export type DelDescriptionFileResponse = DeletePageFileNameDescriptionResponse;
62
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/types/files.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,QAAQ,EAAE,qCAAqC,EAAE,MAAM,SAAS,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC/D,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,GAAE,KAAK,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM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GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC/D,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,GAAE,KAAK,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,eAAe,CAAC;AAEpB,MAAM,MAAM,aAAa,GAAG;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,eAAe,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,eAAe,CAAC;AAEpB,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAE5C,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;AAEvD,MAAM,MAAM,0BAA0B,GAAG,qCAAqC,CAAC"}
@@ -1,57 +1,58 @@
1
- import { PaginationQueryParams } from "./requests";
2
- import { ExpertUser } from "./security";
3
- export declare type GetGroupsParams = {
4
- authProvider?: number;
5
- groupnamefilter?: string;
6
- sortby?: "id" | "name" | "role" | "service";
7
- authenticate?: boolean;
8
- } & PaginationQueryParams;
9
- export declare type GetGroupParams = {
10
- authenticate?: boolean;
11
- };
12
- export declare type GetGroupUserParams = {
13
- sortby?: "id" | "username" | "nick" | "email" | "fullname" | "date.lastlogin" | "status" | "role" | "service";
14
- authenticate?: boolean;
15
- activatedfilter?: boolean;
16
- rolefilter?: string;
17
- usernamefilter?: string;
18
- } & PaginationQueryParams;
19
- export declare type GetGroupsResponse = {
20
- "@count": string;
21
- "@querycount": string;
22
- "@href": string;
23
- "group": Partial<Group> | Partial<Group>[];
24
- };
25
- export declare type GetGroupResponse = Group;
26
- export declare type GetGroupUserResponse = {
27
- "@count": string;
28
- "@querycount": string;
29
- "@href": string;
30
- "user": Partial<ExpertUser> | Partial<ExpertUser>[] | "";
31
- };
32
- export declare type Group = {
33
- "@id": string;
34
- "@href": string;
35
- "@guid": string;
36
- "groupname": string;
37
- "permissions.group": GroupPermissions;
38
- "service.authentication": {
39
- "@id": string;
40
- "@href": string;
41
- };
42
- "users": {
43
- "@count": string;
44
- "@href": string;
45
- };
46
- };
47
- export declare type GroupPermissions = {
48
- "operations": {
49
- "@mask": string;
50
- "#text": string;
51
- };
52
- "role": {
53
- "@id": string;
54
- "@href": string;
55
- "#text": string;
56
- };
57
- };
1
+ import { PaginationQueryParams } from './requests';
2
+ import { ExpertUser } from './security';
3
+ export type GetGroupsParams = {
4
+ authProvider?: number;
5
+ groupnamefilter?: string;
6
+ sortby?: "id" | "name" | "role" | "service";
7
+ authenticate?: boolean;
8
+ } & PaginationQueryParams;
9
+ export type GetGroupParams = {
10
+ authenticate?: boolean;
11
+ };
12
+ export type GetGroupUserParams = {
13
+ sortby?: "id" | "username" | "nick" | "email" | "fullname" | "date.lastlogin" | "status" | "role" | "service";
14
+ authenticate?: boolean;
15
+ activatedfilter?: boolean;
16
+ rolefilter?: string;
17
+ usernamefilter?: string;
18
+ } & PaginationQueryParams;
19
+ export type GetGroupsResponse = {
20
+ "@count": string;
21
+ "@querycount": string;
22
+ "@href": string;
23
+ "group": Partial<Group> | Partial<Group>[];
24
+ };
25
+ export type GetGroupResponse = Group;
26
+ export type GetGroupUserResponse = {
27
+ "@count": string;
28
+ "@querycount": string;
29
+ "@href": string;
30
+ "user": Partial<ExpertUser> | Partial<ExpertUser>[] | "";
31
+ };
32
+ export type Group = {
33
+ "@id": string;
34
+ "@href": string;
35
+ "@guid": string;
36
+ "groupname": string;
37
+ "permissions.group": GroupPermissions;
38
+ "service.authentication": {
39
+ "@id": string;
40
+ "@href": string;
41
+ };
42
+ "users": {
43
+ "@count": string;
44
+ "@href": string;
45
+ };
46
+ };
47
+ export type GroupPermissions = {
48
+ "operations": {
49
+ "@mask": string;
50
+ "#text": string;
51
+ };
52
+ "role": {
53
+ "@id": string;
54
+ "@href": string;
55
+ "#text": string;
56
+ };
57
+ };
58
+ //# sourceMappingURL=groups.d.ts.map