@_henriquewilson/gabirubi-domain 1.0.35 → 1.0.36

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,15 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const BaseResponseSchema: z.ZodObject<{
4
+ success: z.ZodDefault<z.ZodBoolean>;
5
+ message: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ success: boolean;
8
+ message?: string | null | undefined;
9
+ }, {
10
+ success?: boolean | undefined;
11
+ message?: string | null | undefined;
12
+ }>;
13
+ type BaseResponse = z.infer<typeof BaseResponseSchema>;
14
+
15
+ export { BaseResponse, BaseResponseSchema };
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const BaseResponseSchema: z.ZodObject<{
4
+ success: z.ZodDefault<z.ZodBoolean>;
5
+ message: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ success: boolean;
8
+ message?: string | null | undefined;
9
+ }, {
10
+ success?: boolean | undefined;
11
+ message?: string | null | undefined;
12
+ }>;
13
+ type BaseResponse = z.infer<typeof BaseResponseSchema>;
14
+
15
+ export { BaseResponse, BaseResponseSchema };
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = function(target, all) {
7
+ for(var name in all)__defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ };
12
+ var __copyProps = function(to, from, except, desc) {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
15
+ try {
16
+ var _loop = function() {
17
+ var key = _step.value;
18
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: function() {
20
+ return from[key];
21
+ },
22
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23
+ });
24
+ };
25
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
26
+ } catch (err) {
27
+ _didIteratorError = true;
28
+ _iteratorError = err;
29
+ } finally{
30
+ try {
31
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
32
+ _iterator.return();
33
+ }
34
+ } finally{
35
+ if (_didIteratorError) {
36
+ throw _iteratorError;
37
+ }
38
+ }
39
+ }
40
+ }
41
+ return to;
42
+ };
43
+ var __toCommonJS = function(mod) {
44
+ return __copyProps(__defProp({}, "__esModule", {
45
+ value: true
46
+ }), mod);
47
+ };
48
+ // src/model/api/response.model.ts
49
+ var response_model_exports = {};
50
+ __export(response_model_exports, {
51
+ BaseResponseSchema: function() {
52
+ return BaseResponseSchema;
53
+ }
54
+ });
55
+ module.exports = __toCommonJS(response_model_exports);
56
+ var import_zod = require("zod");
57
+ var BaseResponseSchema = import_zod.z.object({
58
+ success: import_zod.z.boolean().default(false),
59
+ message: import_zod.z.string().optional().nullish()
60
+ });
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ BaseResponseSchema: BaseResponseSchema
64
+ });
65
+ //# sourceMappingURL=response.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/model/api/response.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAgB;AAET,IAAM,qBAAqB,aAAE,OAAO;AAAA,EACzC,SAAS,aAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EAClC,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,QAAQ;AACzC,CAAC","sourcesContent":["import {z} from \"zod\";\n\nexport const BaseResponseSchema = z.object({\n success: z.boolean().default(false),\n message: z.string().optional().nullish(),\n})\n\nexport type BaseResponse = z.infer<typeof BaseResponseSchema>\n"]}
@@ -0,0 +1,10 @@
1
+ // src/model/api/response.model.ts
2
+ import { z } from "zod";
3
+ var BaseResponseSchema = z.object({
4
+ success: z.boolean().default(false),
5
+ message: z.string().optional().nullish()
6
+ });
7
+ export {
8
+ BaseResponseSchema
9
+ };
10
+ //# sourceMappingURL=response.model.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/model/api/response.model.ts"],"sourcesContent":["import {z} from \"zod\";\n\nexport const BaseResponseSchema = z.object({\n success: z.boolean().default(false),\n message: z.string().optional().nullish(),\n})\n\nexport type BaseResponse = z.infer<typeof BaseResponseSchema>\n"],"mappings":";AAAA,SAAQ,SAAQ;AAET,IAAM,qBAAqB,EAAE,OAAO;AAAA,EACzC,SAAS,EAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EAClC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ;AACzC,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_henriquewilson/gabirubi-domain",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "gabirubi domain",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",