@deallony/shared 1.1.94 → 1.1.96

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.
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ import { aiFillAdFormSchema, aiFillFormSchema } from "../../schema/ai";
3
+ export type AIFillFormBody = z.infer<typeof aiFillFormSchema>;
4
+ export type AIFillAdFormBody = z.infer<typeof aiFillAdFormSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export { AdDto } from './ad/Ad.dto';
2
2
  export * as EVENTS from './events';
3
+ export * as Ai from './ai/Ai.dto';
@@ -33,7 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.EVENTS = exports.AdDto = void 0;
36
+ exports.Ai = exports.EVENTS = exports.AdDto = void 0;
37
37
  var Ad_dto_1 = require("./ad/Ad.dto");
38
38
  Object.defineProperty(exports, "AdDto", { enumerable: true, get: function () { return Ad_dto_1.AdDto; } });
39
39
  exports.EVENTS = __importStar(require("./events"));
40
+ exports.Ai = __importStar(require("./ai/Ai.dto"));
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const aiAdFillFormFileSchema: z.ZodObject<{
3
+ URL: z.ZodString;
4
+ mimeType: z.ZodString;
5
+ name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export declare const aiFillAdFormSchema: z.ZodObject<{
8
+ text: z.ZodString;
9
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ URL: z.ZodString;
11
+ mimeType: z.ZodString;
12
+ name: z.ZodString;
13
+ }, z.core.$strip>>>;
14
+ }, z.core.$strip>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aiFillAdFormSchema = exports.aiAdFillFormFileSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.aiAdFillFormFileSchema = zod_1.z.object({
6
+ URL: zod_1.z.string().trim().min(1),
7
+ mimeType: zod_1.z.string().trim().min(1),
8
+ name: zod_1.z.string().trim().min(1),
9
+ });
10
+ exports.aiFillAdFormSchema = zod_1.z.object({
11
+ text: zod_1.z.string().trim(),
12
+ files: zod_1.z.array(exports.aiAdFillFormFileSchema).optional(),
13
+ });
@@ -87,4 +87,3 @@ export declare const aiFillFormSchema: z.ZodObject<{
87
87
  extractionInstructions: z.ZodOptional<z.ZodString>;
88
88
  }, z.core.$strip>>;
89
89
  }, z.core.$strip>;
90
- export type AIFillFormBody = z.infer<typeof aiFillFormSchema>;
@@ -1 +1,2 @@
1
1
  export * from './ai-fill-form.schema';
2
+ export * from './ai-fill-ad-form.schema';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ai-fill-form.schema"), exports);
18
+ __exportStar(require("./ai-fill-ad-form.schema"), exports);
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,3 @@
1
1
  export { AdDto } from './ad/Ad.dto.js';
2
2
  export * as EVENTS from './events/index.js';
3
+ export * as Ai from './ai/Ai.dto.js';
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export const aiAdFillFormFileSchema = z.object({
3
+ URL: z.string().trim().min(1),
4
+ mimeType: z.string().trim().min(1),
5
+ name: z.string().trim().min(1),
6
+ });
7
+ export const aiFillAdFormSchema = z.object({
8
+ text: z.string().trim(),
9
+ files: z.array(aiAdFillFormFileSchema).optional(),
10
+ });
@@ -1 +1,2 @@
1
1
  export * from './ai-fill-form.schema.js';
2
+ export * from './ai-fill-ad-form.schema.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.1.94",
3
+ "version": "1.1.96",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -26,6 +26,8 @@
26
26
  "backend:update": "cd ../backend-service-marketplace && pnpm uninstall @deallony/shared && pnpm install @deallony/shared@latest",
27
27
  "dashboard:update": "cd ../frontend-react-aloo && node ./scripts/upgrade-dellony.js",
28
28
  "current": "npm view @deallony/shared version",
29
+ "============================= Links with project =============================": "",
30
+ "link:backend": "cd ../backend-service-marketplace && pnpm add @deallony/shared@file:../shared-deallony",
29
31
  "========": "============ DEFAULT ============",
30
32
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && node ./scripts/fix-esm-imports.mjs",
31
33
  "watch": "tsc -p tsconfig.cjs.json --watch",