@alevnyacow/nzmt 0.0.27 → 0.0.29
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 +5 -5
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -324,16 +324,16 @@ function generateService(lowerCase, upperCase, withCrud) {
|
|
|
324
324
|
`\tname: '${upperCase}sService',`,
|
|
325
325
|
"\tschemas: {",
|
|
326
326
|
"\t\tgetSpecific: {",
|
|
327
|
-
`\t\t\tpayload: z.object({
|
|
327
|
+
`\t\t\tpayload: z.object({`,
|
|
328
328
|
`\t\t\tfilter: ${lowerCase}StoreMetadata.searchPayload.specific`,
|
|
329
329
|
`\t\t}),`,
|
|
330
|
-
`\t\t\tresponse: z.object({
|
|
330
|
+
`\t\t\tresponse: z.object({`,
|
|
331
331
|
`\t\t\t\titem: ${lowerCase}StoreMetadata.models.details.nullable()`,
|
|
332
332
|
`\t\t\t})`,
|
|
333
333
|
`\t\t},`,
|
|
334
334
|
`\t\tgetList: {`,
|
|
335
335
|
`\t\t\tpayload: z.object({`
|
|
336
|
-
`\t\t\t\tfilter: ${lowerCase}StoreMetadata.searchPayload.list
|
|
336
|
+
`\t\t\t\tfilter: ${lowerCase}StoreMetadata.searchPayload.list,`,
|
|
337
337
|
`\t\t\t\tpagination: Entities.Pagination.schema.optional()`,
|
|
338
338
|
`\t\t\t})`,
|
|
339
339
|
`\t\t\tresponse: z.object({`,
|
|
@@ -345,7 +345,7 @@ function generateService(lowerCase, upperCase, withCrud) {
|
|
|
345
345
|
`\t\t\t\tfilter: ${lowerCase}StoreMetadata.searchPayload.specific,`,
|
|
346
346
|
`\t\t\t\tpayload: userStoreMetadata.actionsPayload.update`,
|
|
347
347
|
`\t\t\t}),`,
|
|
348
|
-
`\t\t\tresponse: z.object({})
|
|
348
|
+
`\t\t\tresponse: z.object({})`,
|
|
349
349
|
`\t\t},`,
|
|
350
350
|
`\t\tcreate: {`,
|
|
351
351
|
`\t\t\tpayload: z.object({`,
|
|
@@ -354,7 +354,7 @@ function generateService(lowerCase, upperCase, withCrud) {
|
|
|
354
354
|
`\t\t\tresponse: z.object({`,
|
|
355
355
|
`\t\t\t\tid: Entities.Identifier.schema`,
|
|
356
356
|
`\t\t\t}),`,
|
|
357
|
-
`\t\t}
|
|
357
|
+
`\t\t},`,
|
|
358
358
|
`\t\tdeleteOne: {`,
|
|
359
359
|
`\t\t\tpayload: z.object({`,
|
|
360
360
|
`\t\t\t\tfilter: ${lowerCase}StoreMetadata.searchPayload.specific`,
|