@dotcms/client 0.0.1-alpha.8 → 0.0.1-beta.1

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 (44) hide show
  1. package/README.md +166 -19
  2. package/index.cjs.d.ts +1 -0
  3. package/index.cjs.default.js +1 -0
  4. package/index.cjs.js +2050 -0
  5. package/index.cjs.mjs +2 -0
  6. package/index.esm.d.ts +1 -0
  7. package/index.esm.js +2038 -0
  8. package/package.json +19 -7
  9. package/src/index.d.ts +8 -2
  10. package/src/lib/client/content/builders/collection/collection.d.ts +226 -0
  11. package/src/lib/client/content/content-api.d.ts +129 -0
  12. package/src/lib/client/content/shared/const.d.ts +13 -0
  13. package/src/lib/client/content/shared/types.d.ts +138 -0
  14. package/src/lib/client/content/shared/utils.d.ts +20 -0
  15. package/src/lib/client/models/index.d.ts +12 -0
  16. package/src/lib/client/models/types.d.ts +13 -0
  17. package/src/lib/client/sdk-js-client.d.ts +276 -0
  18. package/src/lib/editor/listeners/listeners.d.ts +45 -0
  19. package/src/lib/editor/models/client.model.d.ts +98 -0
  20. package/src/lib/editor/models/editor.model.d.ts +62 -0
  21. package/src/lib/editor/models/inline-event.model.d.ts +9 -0
  22. package/src/lib/editor/models/listeners.model.d.ts +55 -0
  23. package/src/lib/editor/sdk-editor-vtl.d.ts +1 -0
  24. package/src/lib/editor/sdk-editor.d.ts +92 -0
  25. package/src/lib/editor/utils/editor.utils.d.ts +159 -0
  26. package/src/lib/editor/utils/traditional-vtl.utils.d.ts +4 -0
  27. package/src/lib/query-builder/lucene-syntax/Equals.d.ts +114 -0
  28. package/src/lib/query-builder/lucene-syntax/Field.d.ts +32 -0
  29. package/src/lib/query-builder/lucene-syntax/NotOperand.d.ts +26 -0
  30. package/src/lib/query-builder/lucene-syntax/Operand.d.ts +44 -0
  31. package/src/lib/query-builder/lucene-syntax/index.d.ts +4 -0
  32. package/src/lib/query-builder/sdk-query-builder.d.ts +76 -0
  33. package/src/lib/query-builder/utils/index.d.ts +142 -0
  34. package/src/lib/utils/graphql/transforms.d.ts +24 -0
  35. package/src/lib/utils/index.d.ts +2 -0
  36. package/src/lib/utils/page/common-utils.d.ts +33 -0
  37. package/src/index.js +0 -3
  38. package/src/index.js.map +0 -1
  39. package/src/lib/postMessageToEditor.d.ts +0 -50
  40. package/src/lib/postMessageToEditor.js +0 -42
  41. package/src/lib/postMessageToEditor.js.map +0 -1
  42. package/src/lib/sdk-js-client.d.ts +0 -189
  43. package/src/lib/sdk-js-client.js +0 -148
  44. package/src/lib/sdk-js-client.js.map +0 -1
@@ -1,50 +0,0 @@
1
- /**
2
- * Actions send to the dotcms editor
3
- *
4
- * @export
5
- * @enum {number}
6
- */
7
- export declare enum CUSTOMER_ACTIONS {
8
- /**
9
- * Tell the dotcms editor that page change
10
- */
11
- SET_URL = "set-url",
12
- /**
13
- * Send the element position of the rows, columnsm containers and contentlets
14
- */
15
- SET_BOUNDS = "set-bounds",
16
- /**
17
- * Send the information of the hovered contentlet
18
- */
19
- SET_CONTENTLET = "set-contentlet",
20
- /**
21
- * Tell the editor that the page is being scrolled
22
- */
23
- IFRAME_SCROLL = "scroll",
24
- /**
25
- * Ping the editor to see if the page is inside the editor
26
- */
27
- PING_EDITOR = "ping-editor",
28
- CONTENT_CHANGE = "content-change",
29
- NOOP = "noop"
30
- }
31
- /**
32
- * Post message props
33
- *
34
- * @export
35
- * @template T
36
- * @interface PostMessageProps
37
- */
38
- type PostMessageProps<T> = {
39
- action: CUSTOMER_ACTIONS;
40
- payload?: T;
41
- };
42
- /**
43
- * Post message to dotcms page editor
44
- *
45
- * @export
46
- * @template T
47
- * @param {PostMessageProps<T>} message
48
- */
49
- export declare function postMessageToEditor<T = unknown>(message: PostMessageProps<T>): void;
50
- export {};
@@ -1,42 +0,0 @@
1
- /**
2
- * Actions send to the dotcms editor
3
- *
4
- * @export
5
- * @enum {number}
6
- */
7
- export var CUSTOMER_ACTIONS;
8
- (function (CUSTOMER_ACTIONS) {
9
- /**
10
- * Tell the dotcms editor that page change
11
- */
12
- CUSTOMER_ACTIONS["SET_URL"] = "set-url";
13
- /**
14
- * Send the element position of the rows, columnsm containers and contentlets
15
- */
16
- CUSTOMER_ACTIONS["SET_BOUNDS"] = "set-bounds";
17
- /**
18
- * Send the information of the hovered contentlet
19
- */
20
- CUSTOMER_ACTIONS["SET_CONTENTLET"] = "set-contentlet";
21
- /**
22
- * Tell the editor that the page is being scrolled
23
- */
24
- CUSTOMER_ACTIONS["IFRAME_SCROLL"] = "scroll";
25
- /**
26
- * Ping the editor to see if the page is inside the editor
27
- */
28
- CUSTOMER_ACTIONS["PING_EDITOR"] = "ping-editor";
29
- CUSTOMER_ACTIONS["CONTENT_CHANGE"] = "content-change";
30
- CUSTOMER_ACTIONS["NOOP"] = "noop";
31
- })(CUSTOMER_ACTIONS || (CUSTOMER_ACTIONS = {}));
32
- /**
33
- * Post message to dotcms page editor
34
- *
35
- * @export
36
- * @template T
37
- * @param {PostMessageProps<T>} message
38
- */
39
- export function postMessageToEditor(message) {
40
- window.parent.postMessage(message, '*');
41
- }
42
- //# sourceMappingURL=postMessageToEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postMessageToEditor.js","sourceRoot":"","sources":["../../../../../../libs/sdk/client/src/lib/postMessageToEditor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gBAyBX;AAzBD,WAAY,gBAAgB;IACxB;;OAEG;IACH,uCAAmB,CAAA;IACnB;;OAEG;IACH,6CAAyB,CAAA;IACzB;;OAEG;IACH,qDAAiC,CAAA;IACjC;;OAEG;IACH,4CAAwB,CAAA;IACxB;;OAEG;IACH,+CAA2B,CAAA;IAE3B,qDAAiC,CAAA;IAEjC,iCAAa,CAAA;AACjB,CAAC,EAzBW,gBAAgB,KAAhB,gBAAgB,QAyB3B;AAcD;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAc,OAA4B;IACzE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"}
@@ -1,189 +0,0 @@
1
- export interface ClientConfig {
2
- /**
3
- * The URL of the dotCMS instance.
4
- *
5
- * @description This is the URL of the dotCMS instance you want to interact with. Ensure to include the protocol (http or https).
6
- * @example `https://demo.dotcms.com`
7
- * @type {string}
8
- * @required
9
- */
10
- dotcmsUrl: string;
11
- /**
12
- * The id of the site you want to interact with.
13
- *
14
- * @description to get the site id, go to the site you want to interact with and copy the id from the History tab
15
- *
16
- * @type {string}
17
- * @required
18
- */
19
- siteId?: string;
20
- /**
21
- * The authentication token to use for the requests. If not provided, it will fallback to default site.
22
- *
23
- * @description you can get the auth token from our UI {@link https://www.dotcms.com/docs/latest/rest-api-authentication#creating-an-api-token-in-the-ui}
24
- *
25
- * @type {string}
26
- * @required
27
- */
28
- authToken: string;
29
- /**
30
- * Additional options to pass to the fetch request.
31
- *
32
- * @description These options will be used in the fetch request. Any option can be specified except for 'body' and 'method' which are omitted.
33
- * @example `{ headers: { 'Content-Type': 'application/json' } }`
34
- * @type {Omit<RequestInit, 'body' | 'method'>}
35
- * @optional
36
- */
37
- requestOptions?: Omit<RequestInit, 'body' | 'method'>;
38
- }
39
- type PageApiOptions = {
40
- /**
41
- * The path of the page you want to retrieve.
42
- *
43
- * @type {string}
44
- */
45
- path: string;
46
- /**
47
- * The id of the site you want to interact with. If not provided, the one from the config will be used.
48
- *
49
- * @type {number}
50
- */
51
- siteId?: string;
52
- /**
53
- * The mode of the page you want to retrieve. If not provided will use the default mode of the site.
54
- *
55
- * @type {number}
56
- */
57
- mode?: string;
58
- /**
59
- * The language id of the page you want to retrieve. If not provided will use the default language of the site.
60
- *
61
- * @type {number}
62
- */
63
- language_id?: number;
64
- /**
65
- * The id of the persona you want to retrieve the page for.
66
- *
67
- * @type {string}
68
- */
69
- personaId?: string;
70
- /**
71
- * If you want to fire the rules set on the page
72
- *
73
- * @type {boolean}
74
- */
75
- fireRules?: boolean;
76
- /**
77
- * Allows access to related content via the Relationship fields of contentlets on a Page; 0 (default)
78
- *
79
- * @type {number}
80
- */
81
- depth?: number;
82
- };
83
- type NavApiOptions = {
84
- /**
85
- * The root path to begin traversing the folder tree.
86
- *
87
- * @example
88
- * `/api/v1/nav/` starts from the root of the site
89
- * @example
90
- * `/about-us` starts from the "About Us" folder
91
- *
92
- * @type {string}
93
- */
94
- path: string;
95
- /**
96
- * The depth of the folder tree to return.
97
- * @example
98
- * `1` returns only the element specified in the path.
99
- * @example
100
- * `2` returns the element specified in the path, and if that element is a folder, returns all direct children of that folder.
101
- * @example
102
- * `3` returns all children and grandchildren of the element specified in the path.
103
- *
104
- * @type {number}
105
- */
106
- depth?: number;
107
- /**
108
- * The language ID of content to return.
109
- * @example
110
- * `1` (or unspecified) returns content in the default language of the site.
111
- *
112
- * @link https://www.dotcms.com/docs/latest/system-language-properties#DefaultLanguage
113
- * @link https://www.dotcms.com/docs/latest/adding-and-editing-languages#LanguageID
114
- * @type {number}
115
- */
116
- languageId?: number;
117
- };
118
- /**
119
- * `DotCmsClient` is a TypeScript class that provides methods to interact with the DotCMS REST API.
120
- * It requires a configuration object on instantiation, which includes the DotCMS URL, site ID, and authentication token.
121
- *
122
- * @class DotCmsClient
123
- *
124
- * @property {ClientConfig} config - The configuration object for the DotCMS client.
125
- *
126
- * @method constructor(config: ClientConfig) - Constructs a new instance of the DotCmsClient class.
127
- *
128
- * @method page.get(options: PageApiOptions): Promise<unknown> - Retrieves all the elements of any Page in your dotCMS system in JSON format.
129
- *
130
- * @method nav.get(options: NavApiOptions = { depth: 0, path: '/', languageId: 1 }): Promise<unknown> - Retrieves information about the dotCMS file and folder tree.
131
- *
132
- */
133
- export declare class DotCmsClient {
134
- private config;
135
- private requestOptions;
136
- constructor(config?: ClientConfig);
137
- page: {
138
- /**
139
- * `page.get` is an asynchronous method of the `DotCmsClient` class that retrieves all the elements of any Page in your dotCMS system in JSON format.
140
- * It takes a `PageApiOptions` object as a parameter and returns a Promise that resolves to the response from the DotCMS API.
141
- *
142
- * The Page API enables you to retrieve all the elements of any Page in your dotCMS system.
143
- * The elements may be retrieved in JSON format.
144
- *
145
- * @link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas
146
- * @async
147
- * @param {PageApiOptions} options - The options for the Page API call.
148
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
149
- * @throws {Error} - Throws an error if the options are not valid.
150
- */
151
- get: (options: PageApiOptions) => Promise<unknown>;
152
- };
153
- nav: {
154
- /**
155
- * `nav.get` is an asynchronous method of the `DotCmsClient` class that retrieves information about the dotCMS file and folder tree.
156
- * It takes a `NavApiOptions` object as a parameter (with default values) and returns a Promise that resolves to the response from the DotCMS API.
157
- *
158
- * The navigation REST API enables you to retrieve information about the dotCMS file and folder tree through REST API calls.
159
- * @link https://www.dotcms.com/docs/latest/navigation-rest-api
160
- * @async
161
- * @param {NavApiOptions} options - The options for the Nav API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
162
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
163
- * @throws {Error} - Throws an error if the options are not valid.
164
- */
165
- get: (options?: NavApiOptions) => Promise<unknown>;
166
- };
167
- private validatePageOptions;
168
- private validateNavOptions;
169
- }
170
- /**
171
- * `dotcmsClient` is an object that provides a method to initialize the DotCMS SDK client.
172
- * It has a single method `init` which takes a configuration object and returns an instance of the `DotCmsClient` class.
173
- *
174
- * @namespace dotcmsClient
175
- *
176
- * @method init(config: ClientConfig): DotCmsClient - Initializes the SDK client.
177
- */
178
- export declare const dotcmsClient: {
179
- /**
180
- * `init` is a method of the `dotcmsClient` object that initializes the SDK client.
181
- * It takes a configuration object as a parameter and returns an instance of the `DotCmsClient` class.
182
- *
183
- * @method init
184
- * @param {ClientConfig} config - The configuration object for the DotCMS client.
185
- * @returns {DotCmsClient} - An instance of the {@link DotCmsClient} class.
186
- */
187
- init: (config: ClientConfig) => DotCmsClient;
188
- };
189
- export {};
@@ -1,148 +0,0 @@
1
- function isValidUrl(url) {
2
- try {
3
- new URL(url);
4
- return true;
5
- }
6
- catch (error) {
7
- return false;
8
- }
9
- }
10
- /**
11
- * `DotCmsClient` is a TypeScript class that provides methods to interact with the DotCMS REST API.
12
- * It requires a configuration object on instantiation, which includes the DotCMS URL, site ID, and authentication token.
13
- *
14
- * @class DotCmsClient
15
- *
16
- * @property {ClientConfig} config - The configuration object for the DotCMS client.
17
- *
18
- * @method constructor(config: ClientConfig) - Constructs a new instance of the DotCmsClient class.
19
- *
20
- * @method page.get(options: PageApiOptions): Promise<unknown> - Retrieves all the elements of any Page in your dotCMS system in JSON format.
21
- *
22
- * @method nav.get(options: NavApiOptions = { depth: 0, path: '/', languageId: 1 }): Promise<unknown> - Retrieves information about the dotCMS file and folder tree.
23
- *
24
- */
25
- export class DotCmsClient {
26
- constructor(config = { dotcmsUrl: '', authToken: '', requestOptions: {}, siteId: '' }) {
27
- this.page = {
28
- /**
29
- * `page.get` is an asynchronous method of the `DotCmsClient` class that retrieves all the elements of any Page in your dotCMS system in JSON format.
30
- * It takes a `PageApiOptions` object as a parameter and returns a Promise that resolves to the response from the DotCMS API.
31
- *
32
- * The Page API enables you to retrieve all the elements of any Page in your dotCMS system.
33
- * The elements may be retrieved in JSON format.
34
- *
35
- * @link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas
36
- * @async
37
- * @param {PageApiOptions} options - The options for the Page API call.
38
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
39
- * @throws {Error} - Throws an error if the options are not valid.
40
- */
41
- get: async (options) => {
42
- this.validatePageOptions(options);
43
- const queryParamsObj = {};
44
- for (const [key, value] of Object.entries(options)) {
45
- if (value === undefined || key === 'path' || key === 'siteId')
46
- continue;
47
- if (key === 'personaId') {
48
- queryParamsObj['com.dotmarketing.persona.id'] = String(value);
49
- }
50
- else if (key === 'mode' && value) {
51
- queryParamsObj['mode'] = String(value);
52
- }
53
- else {
54
- queryParamsObj[key] = String(value);
55
- }
56
- }
57
- const queryHostId = options.siteId ?? this.config.siteId ?? '';
58
- if (queryHostId) {
59
- queryParamsObj['host_id'] = queryHostId;
60
- }
61
- const queryParams = new URLSearchParams(queryParamsObj).toString();
62
- const formattedPath = options.path.startsWith('/') ? options.path : `/${options.path}`;
63
- const url = `${this.config.dotcmsUrl}/api/v1/page/json${formattedPath}${queryParams ? `?${queryParams}` : ''}`;
64
- const response = await fetch(url, this.requestOptions);
65
- return response.json();
66
- }
67
- };
68
- this.nav = {
69
- /**
70
- * `nav.get` is an asynchronous method of the `DotCmsClient` class that retrieves information about the dotCMS file and folder tree.
71
- * It takes a `NavApiOptions` object as a parameter (with default values) and returns a Promise that resolves to the response from the DotCMS API.
72
- *
73
- * The navigation REST API enables you to retrieve information about the dotCMS file and folder tree through REST API calls.
74
- * @link https://www.dotcms.com/docs/latest/navigation-rest-api
75
- * @async
76
- * @param {NavApiOptions} options - The options for the Nav API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
77
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
78
- * @throws {Error} - Throws an error if the options are not valid.
79
- */
80
- get: async (options = { depth: 0, path: '/', languageId: 1 }) => {
81
- this.validateNavOptions(options);
82
- // Extract the 'path' from the options and prepare the rest as query parameters
83
- const { path, ...queryParamsOptions } = options;
84
- const queryParamsObj = {};
85
- Object.entries(queryParamsOptions).forEach(([key, value]) => {
86
- if (value !== undefined) {
87
- queryParamsObj[key] = String(value);
88
- }
89
- });
90
- const queryParams = new URLSearchParams(queryParamsObj).toString();
91
- // Format the URL correctly depending on the 'path' value
92
- const formattedPath = path === '/' ? '/' : `/${path}`;
93
- const url = `${this.config.dotcmsUrl}/api/v1/nav${formattedPath}${queryParams ? `?${queryParams}` : ''}`;
94
- const response = await fetch(url, this.requestOptions);
95
- return response.json();
96
- }
97
- };
98
- if (!config.dotcmsUrl) {
99
- throw new Error("Invalid configuration - 'dotcmsUrl' is required");
100
- }
101
- if (!isValidUrl(config.dotcmsUrl)) {
102
- throw new Error("Invalid configuration - 'dotcmsUrl' must be a valid URL");
103
- }
104
- if (!config.authToken) {
105
- throw new Error("Invalid configuration - 'authToken' is required");
106
- }
107
- this.config = config;
108
- this.requestOptions = {
109
- ...this.config.requestOptions,
110
- headers: {
111
- Authorization: `Bearer ${this.config.authToken}`,
112
- ...this.config.requestOptions?.headers
113
- }
114
- };
115
- }
116
- validatePageOptions(options) {
117
- if (!options.path) {
118
- throw new Error("The 'path' parameter is required for the Page API");
119
- }
120
- }
121
- validateNavOptions(options) {
122
- if (!options.path) {
123
- throw new Error("The 'path' parameter is required for the Nav API");
124
- }
125
- }
126
- }
127
- /**
128
- * `dotcmsClient` is an object that provides a method to initialize the DotCMS SDK client.
129
- * It has a single method `init` which takes a configuration object and returns an instance of the `DotCmsClient` class.
130
- *
131
- * @namespace dotcmsClient
132
- *
133
- * @method init(config: ClientConfig): DotCmsClient - Initializes the SDK client.
134
- */
135
- export const dotcmsClient = {
136
- /**
137
- * `init` is a method of the `dotcmsClient` object that initializes the SDK client.
138
- * It takes a configuration object as a parameter and returns an instance of the `DotCmsClient` class.
139
- *
140
- * @method init
141
- * @param {ClientConfig} config - The configuration object for the DotCMS client.
142
- * @returns {DotCmsClient} - An instance of the {@link DotCmsClient} class.
143
- */
144
- init: (config) => {
145
- return new DotCmsClient(config);
146
- }
147
- };
148
- //# sourceMappingURL=sdk-js-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk-js-client.js","sourceRoot":"","sources":["../../../../../../libs/sdk/client/src/lib/sdk-js-client.ts"],"names":[],"mappings":"AAwHA,SAAS,UAAU,CAAC,GAAW;IAC3B,IAAI;QACA,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAEb,OAAO,IAAI,CAAC;KACf;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,KAAK,CAAC;KAChB;AACL,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,YAAY;IAIrB,YACI,SAA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