@alevnyacow/nzmt 0.15.10 → 0.15.12
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/bin/cli.js
CHANGED
|
@@ -925,7 +925,7 @@ function generateController(upperCase, lowerCase, crudService) {
|
|
|
925
925
|
`\t\t},`,
|
|
926
926
|
`\t\tdetails_GET: {`,
|
|
927
927
|
`\t\t\tquery: ${crudServiceLowercase}Metadata.schemas.getDetails.payload,`,
|
|
928
|
-
`\t\t\tresponse: ${crudServiceLowercase}Metadata.schemas.getDetails.response.
|
|
928
|
+
`\t\t\tresponse: ${crudServiceLowercase}Metadata.schemas.getDetails.response.unwrap()`,
|
|
929
929
|
`\t\t},`,
|
|
930
930
|
`\t\tPOST: {`,
|
|
931
931
|
`\t\t\tbody: ${crudServiceLowercase}Metadata.schemas.create.payload,`,
|
|
@@ -127,7 +127,7 @@ export declare const InRAM: <T extends Metadata>(schemas: T, options?: {
|
|
|
127
127
|
payload: T["customOperations"][operation]["payload"];
|
|
128
128
|
response: T["customOperations"][operation]["response"];
|
|
129
129
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
130
|
-
response: z.
|
|
130
|
+
response: z.ZodNullable<T["models"]["details"]>;
|
|
131
131
|
};
|
|
132
132
|
create: {
|
|
133
133
|
payload: z.ZodObject<Parameters<(CRUD<{
|
|
@@ -299,7 +299,7 @@ export declare const InRAM: <T extends Metadata>(schemas: T, options?: {
|
|
|
299
299
|
payload: T["customOperations"][operation]["payload"];
|
|
300
300
|
response: T["customOperations"][operation]["response"];
|
|
301
301
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
302
|
-
response: z.
|
|
302
|
+
response: z.ZodNullable<T["models"]["details"]>;
|
|
303
303
|
};
|
|
304
304
|
create: {
|
|
305
305
|
payload: z.ZodObject<Parameters<(CRUD<{
|
|
@@ -469,7 +469,7 @@ export declare const InRAM: <T extends Metadata>(schemas: T, options?: {
|
|
|
469
469
|
payload: T["customOperations"][operation]["payload"];
|
|
470
470
|
response: T["customOperations"][operation]["response"];
|
|
471
471
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
472
|
-
response: z.
|
|
472
|
+
response: z.ZodNullable<T["models"]["details"]>;
|
|
473
473
|
};
|
|
474
474
|
create: {
|
|
475
475
|
payload: z.ZodObject<Parameters<(CRUD<{
|
|
@@ -639,7 +639,7 @@ export declare const InRAM: <T extends Metadata>(schemas: T, options?: {
|
|
|
639
639
|
payload: T["customOperations"][operation]["payload"];
|
|
640
640
|
response: T["customOperations"][operation]["response"];
|
|
641
641
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
642
|
-
response: z.
|
|
642
|
+
response: z.ZodNullable<T["models"]["details"]>;
|
|
643
643
|
};
|
|
644
644
|
create: {
|
|
645
645
|
payload: z.ZodObject<Parameters<(CRUD<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ZodArray, ZodBoolean, ZodObject, ZodString, ZodType
|
|
1
|
+
import type { ZodArray, ZodBoolean, ZodNullable, ZodObject, ZodString, ZodType } from 'zod';
|
|
2
2
|
import z from 'zod';
|
|
3
3
|
import { Pagination } from '../entities/pagination.entity';
|
|
4
4
|
import type { CRUD } from './store.shared-models.utils';
|
|
@@ -137,7 +137,7 @@ export declare const toModuleMetadata: <Schemas extends {
|
|
|
137
137
|
payload: Schemas["customOperations"][operation]["payload"];
|
|
138
138
|
response: Schemas["customOperations"][operation]["response"];
|
|
139
139
|
}; } : {}))["details"]>[0]>;
|
|
140
|
-
response:
|
|
140
|
+
response: ZodNullable<Schemas["models"]["details"]>;
|
|
141
141
|
};
|
|
142
142
|
create: {
|
|
143
143
|
payload: ZodObject<Parameters<(CRUD<Models<Schemas["models"]["list"], Schemas["models"]["details"]>, SearchPayload<Schemas["searchPayload"]["list"], Schemas["searchPayload"]["specific"]>, ActionsPayload<Schemas["actionsPayload"]["create"], Schemas["actionsPayload"]["update"]>> & (Schemas["customOperations"] extends Record<string, {
|
|
@@ -243,7 +243,7 @@ export declare const methods: <T extends Metadata>(schemas: T) => <Method extend
|
|
|
243
243
|
payload: T["customOperations"][operation]["payload"];
|
|
244
244
|
response: T["customOperations"][operation]["response"];
|
|
245
245
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
246
|
-
response:
|
|
246
|
+
response: ZodNullable<T["models"]["details"]>;
|
|
247
247
|
};
|
|
248
248
|
create: {
|
|
249
249
|
payload: ZodObject<Parameters<(CRUD<Models<T["models"]["list"], T["models"]["details"]>, SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
@@ -343,7 +343,7 @@ export declare const methods: <T extends Metadata>(schemas: T) => <Method extend
|
|
|
343
343
|
payload: T["customOperations"][operation]["payload"];
|
|
344
344
|
response: T["customOperations"][operation]["response"];
|
|
345
345
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
346
|
-
response:
|
|
346
|
+
response: ZodNullable<T["models"]["details"]>;
|
|
347
347
|
};
|
|
348
348
|
create: {
|
|
349
349
|
payload: ZodObject<Parameters<(CRUD<Models<T["models"]["list"], T["models"]["details"]>, SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
@@ -441,7 +441,7 @@ export declare const methods: <T extends Metadata>(schemas: T) => <Method extend
|
|
|
441
441
|
payload: T["customOperations"][operation]["payload"];
|
|
442
442
|
response: T["customOperations"][operation]["response"];
|
|
443
443
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
444
|
-
response:
|
|
444
|
+
response: ZodNullable<T["models"]["details"]>;
|
|
445
445
|
};
|
|
446
446
|
create: {
|
|
447
447
|
payload: ZodObject<Parameters<(CRUD<Models<T["models"]["list"], T["models"]["details"]>, SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
@@ -539,7 +539,7 @@ export declare const methods: <T extends Metadata>(schemas: T) => <Method extend
|
|
|
539
539
|
payload: T["customOperations"][operation]["payload"];
|
|
540
540
|
response: T["customOperations"][operation]["response"];
|
|
541
541
|
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
542
|
-
response:
|
|
542
|
+
response: ZodNullable<T["models"]["details"]>;
|
|
543
543
|
};
|
|
544
544
|
create: {
|
|
545
545
|
payload: ZodObject<Parameters<(CRUD<Models<T["models"]["list"], T["models"]["details"]>, SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|