@dotcms/client 0.0.1-alpha.4 → 0.0.1-alpha.41

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 (41) hide show
  1. package/README.md +17 -6
  2. package/index.cjs.d.ts +1 -0
  3. package/index.cjs.default.js +1 -0
  4. package/index.cjs.js +1953 -0
  5. package/index.cjs.mjs +2 -0
  6. package/index.esm.d.ts +1 -0
  7. package/index.esm.js +1944 -0
  8. package/package.json +19 -7
  9. package/src/index.d.ts +6 -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 +50 -0
  19. package/src/lib/{postMessageToEditor.d.ts → editor/models/client.model.d.ts} +33 -2
  20. package/src/lib/editor/models/editor.model.d.ts +49 -0
  21. package/src/lib/editor/models/listeners.model.d.ts +47 -0
  22. package/src/lib/editor/sdk-editor-vtl.d.ts +6 -0
  23. package/src/lib/editor/sdk-editor.d.ts +54 -0
  24. package/src/lib/editor/utils/editor.utils.d.ts +159 -0
  25. package/src/lib/query-builder/lucene-syntax/Equals.d.ts +114 -0
  26. package/src/lib/query-builder/lucene-syntax/Field.d.ts +32 -0
  27. package/src/lib/query-builder/lucene-syntax/NotOperand.d.ts +26 -0
  28. package/src/lib/query-builder/lucene-syntax/Operand.d.ts +44 -0
  29. package/src/lib/query-builder/lucene-syntax/index.d.ts +4 -0
  30. package/src/lib/query-builder/sdk-query-builder.d.ts +76 -0
  31. package/src/lib/query-builder/utils/index.d.ts +142 -0
  32. package/src/lib/utils/graphql/transforms.d.ts +24 -0
  33. package/src/lib/utils/index.d.ts +2 -0
  34. package/src/lib/utils/page/common-utils.d.ts +33 -0
  35. package/src/index.js +0 -3
  36. package/src/index.js.map +0 -1
  37. package/src/lib/postMessageToEditor.js +0 -42
  38. package/src/lib/postMessageToEditor.js.map +0 -1
  39. package/src/lib/sdk-js-client.d.ts +0 -183
  40. package/src/lib/sdk-js-client.js +0 -145
  41. package/src/lib/sdk-js-client.js.map +0 -1
@@ -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,183 +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 language id of the page you want to retrieve. If not provided will use the default language of the site.
54
- *
55
- * @type {number}
56
- */
57
- language_id?: number;
58
- /**
59
- * The id of the persona you want to retrieve the page for.
60
- *
61
- * @type {string}
62
- */
63
- personaId?: string;
64
- /**
65
- * If you want to fire the rules set on the page
66
- *
67
- * @type {boolean}
68
- */
69
- fireRules?: boolean;
70
- /**
71
- * Allows access to related content via the Relationship fields of contentlets on a Page; 0 (default)
72
- *
73
- * @type {number}
74
- */
75
- depth?: number;
76
- };
77
- type NavApiOptions = {
78
- /**
79
- * The root path to begin traversing the folder tree.
80
- *
81
- * @example
82
- * `/api/v1/nav/` starts from the root of the site
83
- * @example
84
- * `/about-us` starts from the "About Us" folder
85
- *
86
- * @type {string}
87
- */
88
- path: string;
89
- /**
90
- * The depth of the folder tree to return.
91
- * @example
92
- * `1` returns only the element specified in the path.
93
- * @example
94
- * `2` returns the element specified in the path, and if that element is a folder, returns all direct children of that folder.
95
- * @example
96
- * `3` returns all children and grandchildren of the element specified in the path.
97
- *
98
- * @type {number}
99
- */
100
- depth?: number;
101
- /**
102
- * The language ID of content to return.
103
- * @example
104
- * `1` (or unspecified) returns content in the default language of the site.
105
- *
106
- * @link https://www.dotcms.com/docs/latest/system-language-properties#DefaultLanguage
107
- * @link https://www.dotcms.com/docs/latest/adding-and-editing-languages#LanguageID
108
- * @type {number}
109
- */
110
- languageId?: number;
111
- };
112
- /**
113
- * `DotCmsClient` is a TypeScript class that provides methods to interact with the DotCMS REST API.
114
- * It requires a configuration object on instantiation, which includes the DotCMS URL, site ID, and authentication token.
115
- *
116
- * @class DotCmsClient
117
- *
118
- * @property {ClientConfig} config - The configuration object for the DotCMS client.
119
- *
120
- * @method constructor(config: ClientConfig) - Constructs a new instance of the DotCmsClient class.
121
- *
122
- * @method page.get(options: PageApiOptions): Promise<unknown> - Retrieves all the elements of any Page in your dotCMS system in JSON format.
123
- *
124
- * @method nav.get(options: NavApiOptions = { depth: 0, path: '/', languageId: 1 }): Promise<unknown> - Retrieves information about the dotCMS file and folder tree.
125
- *
126
- */
127
- export declare class DotCmsClient {
128
- private config;
129
- private requestOptions;
130
- constructor(config?: ClientConfig);
131
- page: {
132
- /**
133
- * `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.
134
- * It takes a `PageApiOptions` object as a parameter and returns a Promise that resolves to the response from the DotCMS API.
135
- *
136
- * The Page API enables you to retrieve all the elements of any Page in your dotCMS system.
137
- * The elements may be retrieved in JSON format.
138
- *
139
- * @link https://www.dotcms.com/docs/latest/page-rest-api-layout-as-a-service-laas
140
- * @async
141
- * @param {PageApiOptions} options - The options for the Page API call.
142
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
143
- * @throws {Error} - Throws an error if the options are not valid.
144
- */
145
- get: (options: PageApiOptions) => Promise<unknown>;
146
- };
147
- nav: {
148
- /**
149
- * `nav.get` is an asynchronous method of the `DotCmsClient` class that retrieves information about the dotCMS file and folder tree.
150
- * It takes a `NavApiOptions` object as a parameter (with default values) and returns a Promise that resolves to the response from the DotCMS API.
151
- *
152
- * The navigation REST API enables you to retrieve information about the dotCMS file and folder tree through REST API calls.
153
- * @link https://www.dotcms.com/docs/latest/navigation-rest-api
154
- * @async
155
- * @param {NavApiOptions} options - The options for the Nav API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
156
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
157
- * @throws {Error} - Throws an error if the options are not valid.
158
- */
159
- get: (options?: NavApiOptions) => Promise<unknown>;
160
- };
161
- private validatePageOptions;
162
- private validateNavOptions;
163
- }
164
- /**
165
- * `dotcmsClient` is an object that provides a method to initialize the DotCMS SDK client.
166
- * It has a single method `init` which takes a configuration object and returns an instance of the `DotCmsClient` class.
167
- *
168
- * @namespace dotcmsClient
169
- *
170
- * @method init(config: ClientConfig): DotCmsClient - Initializes the SDK client.
171
- */
172
- export declare const dotcmsClient: {
173
- /**
174
- * `init` is a method of the `dotcmsClient` object that initializes the SDK client.
175
- * It takes a configuration object as a parameter and returns an instance of the `DotCmsClient` class.
176
- *
177
- * @method init
178
- * @param {ClientConfig} config - The configuration object for the DotCMS client.
179
- * @returns {DotCmsClient} - An instance of the {@link DotCmsClient} class.
180
- */
181
- init: (config: ClientConfig) => DotCmsClient;
182
- };
183
- export {};
@@ -1,145 +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 {
51
- queryParamsObj[key] = String(value);
52
- }
53
- }
54
- const queryHostId = options.siteId ?? this.config.siteId ?? '';
55
- if (queryHostId) {
56
- queryParamsObj['host_id'] = queryHostId;
57
- }
58
- const queryParams = new URLSearchParams(queryParamsObj).toString();
59
- const formattedPath = options.path.startsWith('/') ? options.path : `/${options.path}`;
60
- const url = `${this.config.dotcmsUrl}/api/v1/page/json${formattedPath}${queryParams ? `?${queryParams}` : ''}`;
61
- const response = await fetch(url, this.requestOptions);
62
- return response.json();
63
- }
64
- };
65
- this.nav = {
66
- /**
67
- * `nav.get` is an asynchronous method of the `DotCmsClient` class that retrieves information about the dotCMS file and folder tree.
68
- * It takes a `NavApiOptions` object as a parameter (with default values) and returns a Promise that resolves to the response from the DotCMS API.
69
- *
70
- * The navigation REST API enables you to retrieve information about the dotCMS file and folder tree through REST API calls.
71
- * @link https://www.dotcms.com/docs/latest/navigation-rest-api
72
- * @async
73
- * @param {NavApiOptions} options - The options for the Nav API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
74
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
75
- * @throws {Error} - Throws an error if the options are not valid.
76
- */
77
- get: async (options = { depth: 0, path: '/', languageId: 1 }) => {
78
- this.validateNavOptions(options);
79
- // Extract the 'path' from the options and prepare the rest as query parameters
80
- const { path, ...queryParamsOptions } = options;
81
- const queryParamsObj = {};
82
- Object.entries(queryParamsOptions).forEach(([key, value]) => {
83
- if (value !== undefined) {
84
- queryParamsObj[key] = String(value);
85
- }
86
- });
87
- const queryParams = new URLSearchParams(queryParamsObj).toString();
88
- // Format the URL correctly depending on the 'path' value
89
- const formattedPath = path === '/' ? '/' : `/${path}`;
90
- const url = `${this.config.dotcmsUrl}/api/v1/nav${formattedPath}${queryParams ? `?${queryParams}` : ''}`;
91
- const response = await fetch(url, this.requestOptions);
92
- return response.json();
93
- }
94
- };
95
- if (!config.dotcmsUrl) {
96
- throw new Error("Invalid configuration - 'dotcmsUrl' is required");
97
- }
98
- if (!isValidUrl(config.dotcmsUrl)) {
99
- throw new Error("Invalid configuration - 'dotcmsUrl' must be a valid URL");
100
- }
101
- if (!config.authToken) {
102
- throw new Error("Invalid configuration - 'authToken' is required");
103
- }
104
- this.config = config;
105
- this.requestOptions = {
106
- ...this.config.requestOptions,
107
- headers: {
108
- Authorization: `Bearer ${this.config.authToken}`,
109
- ...this.config.requestOptions?.headers
110
- }
111
- };
112
- }
113
- validatePageOptions(options) {
114
- if (!options.path) {
115
- throw new Error("The 'path' parameter is required for the Page API");
116
- }
117
- }
118
- validateNavOptions(options) {
119
- if (!options.path) {
120
- throw new Error("The 'path' parameter is required for the Nav API");
121
- }
122
- }
123
- }
124
- /**
125
- * `dotcmsClient` is an object that provides a method to initialize the DotCMS SDK client.
126
- * It has a single method `init` which takes a configuration object and returns an instance of the `DotCmsClient` class.
127
- *
128
- * @namespace dotcmsClient
129
- *
130
- * @method init(config: ClientConfig): DotCmsClient - Initializes the SDK client.
131
- */
132
- export const dotcmsClient = {
133
- /**
134
- * `init` is a method of the `dotcmsClient` object that initializes the SDK client.
135
- * It takes a configuration object as a parameter and returns an instance of the `DotCmsClient` class.
136
- *
137
- * @method init
138
- * @param {ClientConfig} config - The configuration object for the DotCMS client.
139
- * @returns {DotCmsClient} - An instance of the {@link DotCmsClient} class.
140
- */
141
- init: (config) => {
142
- return new DotCmsClient(config);
143
- }
144
- };
145
- //# 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-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