@griddo/api-types 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -23,7 +23,6 @@ pnpm add @griddo/api-types
23
23
 
24
24
  > EN CONSTRUCCIÓN
25
25
 
26
-
27
26
  ## 🛡️ Buenas prácticas
28
27
 
29
28
  > EN CONSTRUCCIÓN
@@ -35,4 +34,3 @@ pnpm add @griddo/api-types
35
34
  > EN CONSTRUCCIÓN
36
35
 
37
36
  ---
38
-
@@ -0,0 +1,5 @@
1
+ export interface ContentPresence {
2
+ presenceType: "page-specific" | "page-custom" | "page-manual" | "all";
3
+ relatedPages: Array<number> | null;
4
+ }
5
+ export type ContentBodyPosition = "start" | "end";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +1,17 @@
1
- export type ExportFormat = 'json' | 'xml' | 'csv' | 'xlsx';
1
+ export type ExportFormat = "json" | "xml" | "csv" | "xlsx";
2
2
  export type ExportedFile = {
3
- type: 'single';
3
+ type: "single";
4
4
  content: string;
5
5
  contentType: string;
6
6
  fileName: string;
7
7
  } | {
8
- type: 'zip';
8
+ type: "zip";
9
9
  buffer: Buffer;
10
10
  contentType: string;
11
11
  fileName: string;
12
12
  };
13
13
  export type ExportResponse = {
14
- type: ExportedFile['type'];
14
+ type: ExportedFile["type"];
15
15
  contentType: string;
16
16
  fileName: string;
17
17
  send: string | Buffer;
@@ -1,2 +1,2 @@
1
- export * from './pagination';
2
- export * from './export';
1
+ export * from "./pagination";
2
+ export * from "./export";
@@ -0,0 +1,29 @@
1
+ import type { PageIntegration } from "src/pages";
2
+ export type Integration = Pick<PageIntegration, "name" | "description" | "site" | "contentHead" | "contentBody" | "contentBodyPosition" | "contentPresence" | "active" | "type">;
3
+ export interface DataPackSiteConfigDataDTO {
4
+ defaultParent?: null | number;
5
+ modifiableOnPage?: boolean;
6
+ indexDefault?: boolean;
7
+ defaultTemplate?: null;
8
+ defaultHeader?: null | number;
9
+ defaultFooter?: null | number;
10
+ import?: Record<string, unknown>[];
11
+ templates?: {
12
+ [templateName: string]: {
13
+ integrations: Integration[];
14
+ };
15
+ };
16
+ }
17
+ export interface DataPackSiteDTO {
18
+ id?: number | null;
19
+ siteId: number;
20
+ dataPackId: string;
21
+ config?: DataPackSiteConfigDataDTO | null;
22
+ deleted: boolean | 1 | 0;
23
+ }
24
+ export type DataPackSiteUpdateParamsDTO = Omit<DataPackSiteDTO, "deleted" | "id">;
25
+ export interface DataPackConfigConfigParams {
26
+ id: string;
27
+ site: string;
28
+ }
29
+ export type DataPackConfigRequest = DataPackSiteConfigDataDTO;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./config";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./config"), exports);
package/dist/index.d.ts CHANGED
@@ -1,3 +1,9 @@
1
- export * from './common';
2
- export * from './logs';
3
- export * from './pages';
1
+ export * from "./common";
2
+ export * from "./logs";
3
+ export * from "./schemas";
4
+ export * from "./dataPack";
5
+ export * from "./site";
6
+ export * from "./redirects";
7
+ export * from "./add-ons";
8
+ export * from "./pages";
9
+ export * from "./queue";
package/dist/index.js CHANGED
@@ -16,4 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./logs"), exports);
19
+ __exportStar(require("./schemas"), exports);
20
+ __exportStar(require("./dataPack"), exports);
21
+ __exportStar(require("./site"), exports);
22
+ __exportStar(require("./redirects"), exports);
23
+ __exportStar(require("./add-ons"), exports);
19
24
  __exportStar(require("./pages"), exports);
25
+ __exportStar(require("./queue"), exports);