@alevnyacow/nzmt 0.0.2 → 0.0.3
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/dist/index.cjs +22 -22
- package/dist/index.js +22 -22
- package/dist/store/store.ram.utils.d.ts +668 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6893,39 +6893,39 @@ var __webpack_exports__ = {};
|
|
|
6893
6893
|
};
|
|
6894
6894
|
const store_ram_utils_RAMStore = (schemas, options)=>{
|
|
6895
6895
|
class RAMStore {
|
|
6896
|
-
|
|
6896
|
+
___data = [];
|
|
6897
6897
|
method = zodStoreMethodFactory(schemas);
|
|
6898
|
-
|
|
6898
|
+
___listSearchLogic = (entity, pattern)=>{
|
|
6899
6899
|
const patternKeys = Object.entries(pattern).filter(([_, value])=>!!value).map((x)=>x[0]);
|
|
6900
6900
|
const entityAsObject = entity;
|
|
6901
6901
|
return Object.entries(entityAsObject).filter(([key])=>patternKeys.includes(key)).every(([key, value])=>value === pattern[key] || value?.toString()?.includes(pattern[key]?.toString()));
|
|
6902
6902
|
};
|
|
6903
|
-
|
|
6903
|
+
___specificSearchLogic = (entity, pattern)=>{
|
|
6904
6904
|
const patternKeys = Object.entries(pattern).filter(([_, value])=>!!value).map((x)=>x[0]);
|
|
6905
6905
|
const entityAsObject = entity;
|
|
6906
6906
|
return Object.entries(entityAsObject).filter(([key])=>patternKeys.includes(key)).every(([key, value])=>value === pattern[key] || value?.toString()?.includes(pattern[key]?.toString()));
|
|
6907
6907
|
};
|
|
6908
|
-
|
|
6909
|
-
|
|
6908
|
+
___mapDetailToList = (entity)=>entity;
|
|
6909
|
+
___mapCreatePayloadToDetail = (payload)=>({
|
|
6910
6910
|
...payload,
|
|
6911
6911
|
id: (0, external_uuid_namespaceObject.v4)()
|
|
6912
6912
|
});
|
|
6913
|
-
|
|
6913
|
+
___mapUpdatePayloadToDetail = (prevValue, update)=>({
|
|
6914
6914
|
...prevValue,
|
|
6915
6915
|
...update
|
|
6916
6916
|
});
|
|
6917
6917
|
constructor(){
|
|
6918
6918
|
if (!options) return;
|
|
6919
6919
|
if (options.searchLogic) {
|
|
6920
|
-
if (options.searchLogic.list) this.
|
|
6921
|
-
if (options.searchLogic.specific) this.
|
|
6920
|
+
if (options.searchLogic.list) this.___listSearchLogic = options.searchLogic.list;
|
|
6921
|
+
if (options.searchLogic.specific) this.___specificSearchLogic = options.searchLogic.specific;
|
|
6922
6922
|
}
|
|
6923
6923
|
if (options.mappers) {
|
|
6924
|
-
if (options.mappers.detailToList) this.
|
|
6925
|
-
if (options.mappers.createPayloadToDetail) this.
|
|
6926
|
-
if (options.mappers.updatePayloadToDetail) this.
|
|
6924
|
+
if (options.mappers.detailToList) this.___mapDetailToList = options.mappers.detailToList;
|
|
6925
|
+
if (options.mappers.createPayloadToDetail) this.___mapCreatePayloadToDetail = options.mappers.createPayloadToDetail;
|
|
6926
|
+
if (options.mappers.updatePayloadToDetail) this.___mapUpdatePayloadToDetail = options.mappers.updatePayloadToDetail;
|
|
6927
6927
|
}
|
|
6928
|
-
if (options.initialData) this.
|
|
6928
|
+
if (options.initialData) this.___data = [
|
|
6929
6929
|
...options.initialData
|
|
6930
6930
|
];
|
|
6931
6931
|
}
|
|
@@ -6935,37 +6935,37 @@ var __webpack_exports__ = {};
|
|
|
6935
6935
|
} })=>{
|
|
6936
6936
|
schemas.searchPayload.list.parse(filter);
|
|
6937
6937
|
Pagination.schema.parse(pagination);
|
|
6938
|
-
const afterFiltration = this.
|
|
6938
|
+
const afterFiltration = this.___data.filter((x)=>this.___listSearchLogic(x, filter));
|
|
6939
6939
|
const afterPagination = afterFiltration.filter((_, i)=>i >= pagination.pageSize * pagination.zeroBasedIndex && i < (pagination.zeroBasedIndex + 1) * pagination.pageSize);
|
|
6940
|
-
const result = afterPagination.map((x)=>this.
|
|
6940
|
+
const result = afterPagination.map((x)=>this.___mapDetailToList(x));
|
|
6941
6941
|
external_zod_default().array(schemas.models.list).parse(result);
|
|
6942
6942
|
return result;
|
|
6943
6943
|
});
|
|
6944
6944
|
details = this.method('details', async ({ filter })=>{
|
|
6945
|
-
const details = this.
|
|
6945
|
+
const details = this.___data.find((x)=>this.___specificSearchLogic(x, filter));
|
|
6946
6946
|
if (!details) return null;
|
|
6947
6947
|
return details;
|
|
6948
6948
|
});
|
|
6949
6949
|
create = this.method('create', async ({ payload })=>{
|
|
6950
|
-
const newItem = this.
|
|
6951
|
-
this.
|
|
6950
|
+
const newItem = this.___mapCreatePayloadToDetail(payload);
|
|
6951
|
+
this.___data = this.___data.concat(newItem);
|
|
6952
6952
|
return {
|
|
6953
6953
|
id: newItem.id
|
|
6954
6954
|
};
|
|
6955
6955
|
});
|
|
6956
6956
|
updateOne = this.method('updateOne', async ({ filter, payload })=>{
|
|
6957
|
-
const index = this.
|
|
6958
|
-
this.
|
|
6957
|
+
const index = this.___data.findIndex((x)=>this.___specificSearchLogic(x, filter));
|
|
6958
|
+
this.___data = this.___data.map((x, i)=>{
|
|
6959
6959
|
if (i !== index) return x;
|
|
6960
|
-
return this.
|
|
6960
|
+
return this.___mapUpdatePayloadToDetail(x, payload);
|
|
6961
6961
|
});
|
|
6962
6962
|
return {
|
|
6963
6963
|
success: index > -1
|
|
6964
6964
|
};
|
|
6965
6965
|
});
|
|
6966
6966
|
deleteOne = this.method('deleteOne', async ({ filter })=>{
|
|
6967
|
-
const index = this.
|
|
6968
|
-
this.
|
|
6967
|
+
const index = this.___data.findIndex((x)=>this.___specificSearchLogic(x, filter));
|
|
6968
|
+
this.___data = this.___data.filter((_x, i)=>i !== index);
|
|
6969
6969
|
return {
|
|
6970
6970
|
success: index > -1
|
|
6971
6971
|
};
|
package/dist/index.js
CHANGED
|
@@ -6787,39 +6787,39 @@ const zodStoreMethodFactory = (schemas)=>{
|
|
|
6787
6787
|
};
|
|
6788
6788
|
const store_ram_utils_RAMStore = (schemas, options)=>{
|
|
6789
6789
|
class RAMStore {
|
|
6790
|
-
|
|
6790
|
+
___data = [];
|
|
6791
6791
|
method = zodStoreMethodFactory(schemas);
|
|
6792
|
-
|
|
6792
|
+
___listSearchLogic = (entity, pattern)=>{
|
|
6793
6793
|
const patternKeys = Object.entries(pattern).filter(([_, value])=>!!value).map((x)=>x[0]);
|
|
6794
6794
|
const entityAsObject = entity;
|
|
6795
6795
|
return Object.entries(entityAsObject).filter(([key])=>patternKeys.includes(key)).every(([key, value])=>value === pattern[key] || value?.toString()?.includes(pattern[key]?.toString()));
|
|
6796
6796
|
};
|
|
6797
|
-
|
|
6797
|
+
___specificSearchLogic = (entity, pattern)=>{
|
|
6798
6798
|
const patternKeys = Object.entries(pattern).filter(([_, value])=>!!value).map((x)=>x[0]);
|
|
6799
6799
|
const entityAsObject = entity;
|
|
6800
6800
|
return Object.entries(entityAsObject).filter(([key])=>patternKeys.includes(key)).every(([key, value])=>value === pattern[key] || value?.toString()?.includes(pattern[key]?.toString()));
|
|
6801
6801
|
};
|
|
6802
|
-
|
|
6803
|
-
|
|
6802
|
+
___mapDetailToList = (entity)=>entity;
|
|
6803
|
+
___mapCreatePayloadToDetail = (payload)=>({
|
|
6804
6804
|
...payload,
|
|
6805
6805
|
id: v4()
|
|
6806
6806
|
});
|
|
6807
|
-
|
|
6807
|
+
___mapUpdatePayloadToDetail = (prevValue, update)=>({
|
|
6808
6808
|
...prevValue,
|
|
6809
6809
|
...update
|
|
6810
6810
|
});
|
|
6811
6811
|
constructor(){
|
|
6812
6812
|
if (!options) return;
|
|
6813
6813
|
if (options.searchLogic) {
|
|
6814
|
-
if (options.searchLogic.list) this.
|
|
6815
|
-
if (options.searchLogic.specific) this.
|
|
6814
|
+
if (options.searchLogic.list) this.___listSearchLogic = options.searchLogic.list;
|
|
6815
|
+
if (options.searchLogic.specific) this.___specificSearchLogic = options.searchLogic.specific;
|
|
6816
6816
|
}
|
|
6817
6817
|
if (options.mappers) {
|
|
6818
|
-
if (options.mappers.detailToList) this.
|
|
6819
|
-
if (options.mappers.createPayloadToDetail) this.
|
|
6820
|
-
if (options.mappers.updatePayloadToDetail) this.
|
|
6818
|
+
if (options.mappers.detailToList) this.___mapDetailToList = options.mappers.detailToList;
|
|
6819
|
+
if (options.mappers.createPayloadToDetail) this.___mapCreatePayloadToDetail = options.mappers.createPayloadToDetail;
|
|
6820
|
+
if (options.mappers.updatePayloadToDetail) this.___mapUpdatePayloadToDetail = options.mappers.updatePayloadToDetail;
|
|
6821
6821
|
}
|
|
6822
|
-
if (options.initialData) this.
|
|
6822
|
+
if (options.initialData) this.___data = [
|
|
6823
6823
|
...options.initialData
|
|
6824
6824
|
];
|
|
6825
6825
|
}
|
|
@@ -6829,37 +6829,37 @@ const store_ram_utils_RAMStore = (schemas, options)=>{
|
|
|
6829
6829
|
} })=>{
|
|
6830
6830
|
schemas.searchPayload.list.parse(filter);
|
|
6831
6831
|
Pagination.schema.parse(pagination);
|
|
6832
|
-
const afterFiltration = this.
|
|
6832
|
+
const afterFiltration = this.___data.filter((x)=>this.___listSearchLogic(x, filter));
|
|
6833
6833
|
const afterPagination = afterFiltration.filter((_, i)=>i >= pagination.pageSize * pagination.zeroBasedIndex && i < (pagination.zeroBasedIndex + 1) * pagination.pageSize);
|
|
6834
|
-
const result = afterPagination.map((x)=>this.
|
|
6834
|
+
const result = afterPagination.map((x)=>this.___mapDetailToList(x));
|
|
6835
6835
|
zod.array(schemas.models.list).parse(result);
|
|
6836
6836
|
return result;
|
|
6837
6837
|
});
|
|
6838
6838
|
details = this.method('details', async ({ filter })=>{
|
|
6839
|
-
const details = this.
|
|
6839
|
+
const details = this.___data.find((x)=>this.___specificSearchLogic(x, filter));
|
|
6840
6840
|
if (!details) return null;
|
|
6841
6841
|
return details;
|
|
6842
6842
|
});
|
|
6843
6843
|
create = this.method('create', async ({ payload })=>{
|
|
6844
|
-
const newItem = this.
|
|
6845
|
-
this.
|
|
6844
|
+
const newItem = this.___mapCreatePayloadToDetail(payload);
|
|
6845
|
+
this.___data = this.___data.concat(newItem);
|
|
6846
6846
|
return {
|
|
6847
6847
|
id: newItem.id
|
|
6848
6848
|
};
|
|
6849
6849
|
});
|
|
6850
6850
|
updateOne = this.method('updateOne', async ({ filter, payload })=>{
|
|
6851
|
-
const index = this.
|
|
6852
|
-
this.
|
|
6851
|
+
const index = this.___data.findIndex((x)=>this.___specificSearchLogic(x, filter));
|
|
6852
|
+
this.___data = this.___data.map((x, i)=>{
|
|
6853
6853
|
if (i !== index) return x;
|
|
6854
|
-
return this.
|
|
6854
|
+
return this.___mapUpdatePayloadToDetail(x, payload);
|
|
6855
6855
|
});
|
|
6856
6856
|
return {
|
|
6857
6857
|
success: index > -1
|
|
6858
6858
|
};
|
|
6859
6859
|
});
|
|
6860
6860
|
deleteOne = this.method('deleteOne', async ({ filter })=>{
|
|
6861
|
-
const index = this.
|
|
6862
|
-
this.
|
|
6861
|
+
const index = this.___data.findIndex((x)=>this.___specificSearchLogic(x, filter));
|
|
6862
|
+
this.___data = this.___data.filter((_x, i)=>i !== index);
|
|
6863
6863
|
return {
|
|
6864
6864
|
success: index > -1
|
|
6865
6865
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { Pagination } from './store.pagination.entity';
|
|
1
3
|
import type { CRUDStore, StoreTypes } from './store.shared-models.utils';
|
|
2
4
|
import { type ZodStore, type ZodStoreMetadata } from './store.zod.utils';
|
|
3
5
|
export declare const RAMStore: <T extends ZodStoreMetadata>(schemas: T, options?: {
|
|
@@ -11,13 +13,669 @@ export declare const RAMStore: <T extends ZodStoreMetadata>(schemas: T, options?
|
|
|
11
13
|
updatePayloadToDetail?: (prevValue: StoreTypes<ZodStore<T>>["details"], update: StoreTypes<ZodStore<T>>["updatePayload"]) => StoreTypes<ZodStore<T>>["details"];
|
|
12
14
|
};
|
|
13
15
|
initialData?: Array<StoreTypes<ZodStore<T>>["details"]>;
|
|
14
|
-
}) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
16
|
+
}) => {
|
|
17
|
+
new (): {
|
|
18
|
+
___data: Array<StoreTypes<ZodStore<T>>["details"]>;
|
|
19
|
+
method: <Method extends "details" | "list" | "create" | "updateOne" | "deleteOne" | Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
20
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
21
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
22
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
23
|
+
payload: T["customOperations"][operation]["payload"];
|
|
24
|
+
response: T["customOperations"][operation]["response"];
|
|
25
|
+
}; } : {}), keyof CRUDStore<any, any, any>>>(methodName: Method, handler: (payload: z.core.output<(Record<Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
26
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
27
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
28
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
29
|
+
payload: T["customOperations"][operation]["payload"];
|
|
30
|
+
response: T["customOperations"][operation]["response"];
|
|
31
|
+
}; } : {}), keyof CRUDStore<any, any, any>>, {
|
|
32
|
+
payload: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
33
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
34
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
35
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
36
|
+
payload: T["customOperations"][operation]["payload"];
|
|
37
|
+
response: T["customOperations"][operation]["response"];
|
|
38
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
39
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
40
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
41
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
42
|
+
payload: T["customOperations"][operation]["payload"];
|
|
43
|
+
response: T["customOperations"][operation]["response"];
|
|
44
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["payload"];
|
|
45
|
+
response: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
46
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
47
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
48
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
49
|
+
payload: T["customOperations"][operation]["payload"];
|
|
50
|
+
response: T["customOperations"][operation]["response"];
|
|
51
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
52
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
54
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
55
|
+
payload: T["customOperations"][operation]["payload"];
|
|
56
|
+
response: T["customOperations"][operation]["response"];
|
|
57
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["response"];
|
|
58
|
+
}> & {
|
|
59
|
+
list: {
|
|
60
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
61
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
62
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
63
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
64
|
+
payload: T["customOperations"][operation]["payload"];
|
|
65
|
+
response: T["customOperations"][operation]["response"];
|
|
66
|
+
}; } : {}))["list"]>[0] & {
|
|
67
|
+
pagination: ReturnType<typeof Pagination.schema.optional>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
response: z.ZodArray<Awaited<ReturnType<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
70
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
71
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
72
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
73
|
+
payload: T["customOperations"][operation]["payload"];
|
|
74
|
+
response: T["customOperations"][operation]["response"];
|
|
75
|
+
}; } : {}))["list"]>>[number]>;
|
|
76
|
+
};
|
|
77
|
+
details: {
|
|
78
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
79
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
80
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
81
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
82
|
+
payload: T["customOperations"][operation]["payload"];
|
|
83
|
+
response: T["customOperations"][operation]["response"];
|
|
84
|
+
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
85
|
+
response: z.ZodUnion<[T["models"]["details"], z.ZodNull]>;
|
|
86
|
+
};
|
|
87
|
+
create: {
|
|
88
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
89
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
90
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
91
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
92
|
+
payload: T["customOperations"][operation]["payload"];
|
|
93
|
+
response: T["customOperations"][operation]["response"];
|
|
94
|
+
}; } : {}))["create"]>[0], z.core.$strip>;
|
|
95
|
+
response: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
};
|
|
99
|
+
updateOne: {
|
|
100
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
101
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
102
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
103
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
104
|
+
payload: T["customOperations"][operation]["payload"];
|
|
105
|
+
response: T["customOperations"][operation]["response"];
|
|
106
|
+
}; } : {}))["updateOne"]>[0], z.core.$strip>;
|
|
107
|
+
response: z.ZodObject<{
|
|
108
|
+
success: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
};
|
|
111
|
+
deleteOne: {
|
|
112
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
113
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
114
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
115
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
116
|
+
payload: T["customOperations"][operation]["payload"];
|
|
117
|
+
response: T["customOperations"][operation]["response"];
|
|
118
|
+
}; } : {}))["deleteOne"]>[0], z.core.$strip>;
|
|
119
|
+
response: z.ZodObject<{
|
|
120
|
+
success: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
};
|
|
123
|
+
})[Method]["payload"]>, config: {
|
|
124
|
+
methodError: (payload: string | import("../errors.utils").ErrorBaseCreatingPayload, cause?: unknown) => import("../errors.utils").ModuleErrorModel;
|
|
125
|
+
}) => Promise<z.core.output<(Record<Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
126
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
127
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
128
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
129
|
+
payload: T["customOperations"][operation]["payload"];
|
|
130
|
+
response: T["customOperations"][operation]["response"];
|
|
131
|
+
}; } : {}), keyof CRUDStore<any, any, any>>, {
|
|
132
|
+
payload: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
133
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
134
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
135
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
136
|
+
payload: T["customOperations"][operation]["payload"];
|
|
137
|
+
response: T["customOperations"][operation]["response"];
|
|
138
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
139
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
140
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
141
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
142
|
+
payload: T["customOperations"][operation]["payload"];
|
|
143
|
+
response: T["customOperations"][operation]["response"];
|
|
144
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["payload"];
|
|
145
|
+
response: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
146
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
147
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
148
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
149
|
+
payload: T["customOperations"][operation]["payload"];
|
|
150
|
+
response: T["customOperations"][operation]["response"];
|
|
151
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
152
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
153
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
154
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
155
|
+
payload: T["customOperations"][operation]["payload"];
|
|
156
|
+
response: T["customOperations"][operation]["response"];
|
|
157
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["response"];
|
|
158
|
+
}> & {
|
|
159
|
+
list: {
|
|
160
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
161
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
162
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
163
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
164
|
+
payload: T["customOperations"][operation]["payload"];
|
|
165
|
+
response: T["customOperations"][operation]["response"];
|
|
166
|
+
}; } : {}))["list"]>[0] & {
|
|
167
|
+
pagination: ReturnType<typeof Pagination.schema.optional>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
response: z.ZodArray<Awaited<ReturnType<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
170
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
171
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
172
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
173
|
+
payload: T["customOperations"][operation]["payload"];
|
|
174
|
+
response: T["customOperations"][operation]["response"];
|
|
175
|
+
}; } : {}))["list"]>>[number]>;
|
|
176
|
+
};
|
|
177
|
+
details: {
|
|
178
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
179
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
180
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
181
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
182
|
+
payload: T["customOperations"][operation]["payload"];
|
|
183
|
+
response: T["customOperations"][operation]["response"];
|
|
184
|
+
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
185
|
+
response: z.ZodUnion<[T["models"]["details"], z.ZodNull]>;
|
|
186
|
+
};
|
|
187
|
+
create: {
|
|
188
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
189
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
190
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
191
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
192
|
+
payload: T["customOperations"][operation]["payload"];
|
|
193
|
+
response: T["customOperations"][operation]["response"];
|
|
194
|
+
}; } : {}))["create"]>[0], z.core.$strip>;
|
|
195
|
+
response: z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
};
|
|
199
|
+
updateOne: {
|
|
200
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
201
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
202
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
203
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
204
|
+
payload: T["customOperations"][operation]["payload"];
|
|
205
|
+
response: T["customOperations"][operation]["response"];
|
|
206
|
+
}; } : {}))["updateOne"]>[0], z.core.$strip>;
|
|
207
|
+
response: z.ZodObject<{
|
|
208
|
+
success: z.ZodBoolean;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
};
|
|
211
|
+
deleteOne: {
|
|
212
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
213
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
214
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
215
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
216
|
+
payload: T["customOperations"][operation]["payload"];
|
|
217
|
+
response: T["customOperations"][operation]["response"];
|
|
218
|
+
}; } : {}))["deleteOne"]>[0], z.core.$strip>;
|
|
219
|
+
response: z.ZodObject<{
|
|
220
|
+
success: z.ZodBoolean;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
};
|
|
223
|
+
})[Method]["response"]>>, config?: import("../zod-module.utils").ZodModuleConfig) => (payload: z.core.output<(Record<Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
224
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
225
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
226
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
227
|
+
payload: T["customOperations"][operation]["payload"];
|
|
228
|
+
response: T["customOperations"][operation]["response"];
|
|
229
|
+
}; } : {}), keyof CRUDStore<any, any, any>>, {
|
|
230
|
+
payload: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
231
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
232
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
233
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
234
|
+
payload: T["customOperations"][operation]["payload"];
|
|
235
|
+
response: T["customOperations"][operation]["response"];
|
|
236
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
237
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
238
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
239
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
240
|
+
payload: T["customOperations"][operation]["payload"];
|
|
241
|
+
response: T["customOperations"][operation]["response"];
|
|
242
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["payload"];
|
|
243
|
+
response: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
244
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
245
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
246
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
247
|
+
payload: T["customOperations"][operation]["payload"];
|
|
248
|
+
response: T["customOperations"][operation]["response"];
|
|
249
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
250
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
251
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
252
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
253
|
+
payload: T["customOperations"][operation]["payload"];
|
|
254
|
+
response: T["customOperations"][operation]["response"];
|
|
255
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["response"];
|
|
256
|
+
}> & {
|
|
257
|
+
list: {
|
|
258
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
259
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
260
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
261
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
262
|
+
payload: T["customOperations"][operation]["payload"];
|
|
263
|
+
response: T["customOperations"][operation]["response"];
|
|
264
|
+
}; } : {}))["list"]>[0] & {
|
|
265
|
+
pagination: ReturnType<typeof Pagination.schema.optional>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
response: z.ZodArray<Awaited<ReturnType<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
268
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
269
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
270
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
271
|
+
payload: T["customOperations"][operation]["payload"];
|
|
272
|
+
response: T["customOperations"][operation]["response"];
|
|
273
|
+
}; } : {}))["list"]>>[number]>;
|
|
274
|
+
};
|
|
275
|
+
details: {
|
|
276
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
277
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
278
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
279
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
280
|
+
payload: T["customOperations"][operation]["payload"];
|
|
281
|
+
response: T["customOperations"][operation]["response"];
|
|
282
|
+
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
283
|
+
response: z.ZodUnion<[T["models"]["details"], z.ZodNull]>;
|
|
284
|
+
};
|
|
285
|
+
create: {
|
|
286
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
287
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
288
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
289
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
290
|
+
payload: T["customOperations"][operation]["payload"];
|
|
291
|
+
response: T["customOperations"][operation]["response"];
|
|
292
|
+
}; } : {}))["create"]>[0], z.core.$strip>;
|
|
293
|
+
response: z.ZodObject<{
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
};
|
|
297
|
+
updateOne: {
|
|
298
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
299
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
300
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
301
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
302
|
+
payload: T["customOperations"][operation]["payload"];
|
|
303
|
+
response: T["customOperations"][operation]["response"];
|
|
304
|
+
}; } : {}))["updateOne"]>[0], z.core.$strip>;
|
|
305
|
+
response: z.ZodObject<{
|
|
306
|
+
success: z.ZodBoolean;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
};
|
|
309
|
+
deleteOne: {
|
|
310
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
311
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
312
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
313
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
314
|
+
payload: T["customOperations"][operation]["payload"];
|
|
315
|
+
response: T["customOperations"][operation]["response"];
|
|
316
|
+
}; } : {}))["deleteOne"]>[0], z.core.$strip>;
|
|
317
|
+
response: z.ZodObject<{
|
|
318
|
+
success: z.ZodBoolean;
|
|
319
|
+
}, z.core.$strip>;
|
|
320
|
+
};
|
|
321
|
+
})[Method]["payload"]>) => Promise<z.core.output<(Record<Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
322
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
323
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
324
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
325
|
+
payload: T["customOperations"][operation]["payload"];
|
|
326
|
+
response: T["customOperations"][operation]["response"];
|
|
327
|
+
}; } : {}), keyof CRUDStore<any, any, any>>, {
|
|
328
|
+
payload: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
329
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
330
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
331
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
332
|
+
payload: T["customOperations"][operation]["payload"];
|
|
333
|
+
response: T["customOperations"][operation]["response"];
|
|
334
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
335
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
336
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
337
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
338
|
+
payload: T["customOperations"][operation]["payload"];
|
|
339
|
+
response: T["customOperations"][operation]["response"];
|
|
340
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["payload"];
|
|
341
|
+
response: (CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
342
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
343
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
344
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
345
|
+
payload: T["customOperations"][operation]["payload"];
|
|
346
|
+
response: T["customOperations"][operation]["response"];
|
|
347
|
+
}; } : {}))[Exclude<keyof (T["customOperations"] extends Record<string, {
|
|
348
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
349
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
350
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
351
|
+
payload: T["customOperations"][operation]["payload"];
|
|
352
|
+
response: T["customOperations"][operation]["response"];
|
|
353
|
+
}; } : {}), keyof CRUDStore<any, any, any>>]["response"];
|
|
354
|
+
}> & {
|
|
355
|
+
list: {
|
|
356
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
357
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
358
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
359
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
360
|
+
payload: T["customOperations"][operation]["payload"];
|
|
361
|
+
response: T["customOperations"][operation]["response"];
|
|
362
|
+
}; } : {}))["list"]>[0] & {
|
|
363
|
+
pagination: ReturnType<typeof Pagination.schema.optional>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
response: z.ZodArray<Awaited<ReturnType<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
366
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
367
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
368
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
369
|
+
payload: T["customOperations"][operation]["payload"];
|
|
370
|
+
response: T["customOperations"][operation]["response"];
|
|
371
|
+
}; } : {}))["list"]>>[number]>;
|
|
372
|
+
};
|
|
373
|
+
details: {
|
|
374
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
375
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
376
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
377
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
378
|
+
payload: T["customOperations"][operation]["payload"];
|
|
379
|
+
response: T["customOperations"][operation]["response"];
|
|
380
|
+
}; } : {}))["details"]>[0], z.core.$strip>;
|
|
381
|
+
response: z.ZodUnion<[T["models"]["details"], z.ZodNull]>;
|
|
382
|
+
};
|
|
383
|
+
create: {
|
|
384
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
385
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
386
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
387
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
388
|
+
payload: T["customOperations"][operation]["payload"];
|
|
389
|
+
response: T["customOperations"][operation]["response"];
|
|
390
|
+
}; } : {}))["create"]>[0], z.core.$strip>;
|
|
391
|
+
response: z.ZodObject<{
|
|
392
|
+
id: z.ZodString;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
};
|
|
395
|
+
updateOne: {
|
|
396
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
397
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
398
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
399
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
400
|
+
payload: T["customOperations"][operation]["payload"];
|
|
401
|
+
response: T["customOperations"][operation]["response"];
|
|
402
|
+
}; } : {}))["updateOne"]>[0], z.core.$strip>;
|
|
403
|
+
response: z.ZodObject<{
|
|
404
|
+
success: z.ZodBoolean;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
};
|
|
407
|
+
deleteOne: {
|
|
408
|
+
payload: z.ZodObject<Parameters<(CRUDStore<import("./store.shared-models.utils").Models<T["models"]["list"], T["models"]["details"]>, import("./store.shared-models.utils").SearchPayload<T["searchPayload"]["list"], T["searchPayload"]["specific"]>, import("./store.shared-models.utils").ActionsPayload<T["actionsPayload"]["create"], T["actionsPayload"]["update"]>> & (T["customOperations"] extends Record<string, {
|
|
409
|
+
payload: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
410
|
+
response: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
411
|
+
}> ? { [operation in keyof T["customOperations"]]: {
|
|
412
|
+
payload: T["customOperations"][operation]["payload"];
|
|
413
|
+
response: T["customOperations"][operation]["response"];
|
|
414
|
+
}; } : {}))["deleteOne"]>[0], z.core.$strip>;
|
|
415
|
+
response: z.ZodObject<{
|
|
416
|
+
success: z.ZodBoolean;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
};
|
|
419
|
+
})[Method]["response"]>>;
|
|
420
|
+
___listSearchLogic: (entity: StoreTypes<ZodStore<T>>["details"], pattern: StoreTypes<ZodStore<T>>["findListPayload"]) => boolean;
|
|
421
|
+
___specificSearchLogic: (entity: StoreTypes<ZodStore<T>>["details"], pattern: StoreTypes<ZodStore<T>>["findOnePayload"]) => boolean;
|
|
422
|
+
___mapDetailToList: (entity: StoreTypes<ZodStore<T>>["details"]) => StoreTypes<ZodStore<T>>["listModel"];
|
|
423
|
+
___mapCreatePayloadToDetail: (payload: StoreTypes<ZodStore<T>>["createPayload"]) => StoreTypes<ZodStore<T>>["details"];
|
|
424
|
+
___mapUpdatePayloadToDetail: (prevValue: StoreTypes<ZodStore<T>>["details"], update: StoreTypes<ZodStore<T>>["updatePayload"]) => StoreTypes<ZodStore<T>>["details"];
|
|
425
|
+
list: (data: {
|
|
426
|
+
filter: (ZodStore<T> extends infer T_1 ? T_1 extends ZodStore<T> ? T_1 extends {
|
|
427
|
+
list: (data: {
|
|
428
|
+
filter: infer SList;
|
|
429
|
+
pagination?: any;
|
|
430
|
+
}) => Promise<Array<infer MList>>;
|
|
431
|
+
details: (data: {
|
|
432
|
+
filter: infer SDetail;
|
|
433
|
+
}) => Promise<infer MDetail>;
|
|
434
|
+
create: (data: {
|
|
435
|
+
payload: infer ACreate;
|
|
436
|
+
}) => Promise<any>;
|
|
437
|
+
updateOne: (data: {
|
|
438
|
+
filter: any;
|
|
439
|
+
payload: infer AUpdate;
|
|
440
|
+
}) => Promise<any>;
|
|
441
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
442
|
+
} ? {
|
|
443
|
+
Models: {
|
|
444
|
+
list: NonNullable<MList>;
|
|
445
|
+
detail: NonNullable<MDetail>;
|
|
446
|
+
};
|
|
447
|
+
SearchPayload: {
|
|
448
|
+
list: SList;
|
|
449
|
+
specific: SDetail;
|
|
450
|
+
};
|
|
451
|
+
ActionsPayload: {
|
|
452
|
+
create: ACreate;
|
|
453
|
+
update: AUpdate;
|
|
454
|
+
};
|
|
455
|
+
} : never : never : never)["SearchPayload"]["list"];
|
|
456
|
+
pagination?: import("./store.pagination.entity").PaginationModel;
|
|
457
|
+
}) => Promise<(ZodStore<T> extends infer T_2 ? T_2 extends ZodStore<T> ? T_2 extends {
|
|
458
|
+
list: (data: {
|
|
459
|
+
filter: infer SList;
|
|
460
|
+
pagination?: any;
|
|
461
|
+
}) => Promise<Array<infer MList>>;
|
|
462
|
+
details: (data: {
|
|
463
|
+
filter: infer SDetail;
|
|
464
|
+
}) => Promise<infer MDetail>;
|
|
465
|
+
create: (data: {
|
|
466
|
+
payload: infer ACreate;
|
|
467
|
+
}) => Promise<any>;
|
|
468
|
+
updateOne: (data: {
|
|
469
|
+
filter: any;
|
|
470
|
+
payload: infer AUpdate;
|
|
471
|
+
}) => Promise<any>;
|
|
472
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
473
|
+
} ? {
|
|
474
|
+
Models: {
|
|
475
|
+
list: NonNullable<MList>;
|
|
476
|
+
detail: NonNullable<MDetail>;
|
|
477
|
+
};
|
|
478
|
+
SearchPayload: {
|
|
479
|
+
list: SList;
|
|
480
|
+
specific: SDetail;
|
|
481
|
+
};
|
|
482
|
+
ActionsPayload: {
|
|
483
|
+
create: ACreate;
|
|
484
|
+
update: AUpdate;
|
|
485
|
+
};
|
|
486
|
+
} : never : never : never)["Models"]["list"][]>;
|
|
487
|
+
details: (data: {
|
|
488
|
+
filter: (ZodStore<T> extends infer T_1 ? T_1 extends ZodStore<T> ? T_1 extends {
|
|
489
|
+
list: (data: {
|
|
490
|
+
filter: infer SList;
|
|
491
|
+
pagination?: any;
|
|
492
|
+
}) => Promise<Array<infer MList>>;
|
|
493
|
+
details: (data: {
|
|
494
|
+
filter: infer SDetail;
|
|
495
|
+
}) => Promise<infer MDetail>;
|
|
496
|
+
create: (data: {
|
|
497
|
+
payload: infer ACreate;
|
|
498
|
+
}) => Promise<any>;
|
|
499
|
+
updateOne: (data: {
|
|
500
|
+
filter: any;
|
|
501
|
+
payload: infer AUpdate;
|
|
502
|
+
}) => Promise<any>;
|
|
503
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
504
|
+
} ? {
|
|
505
|
+
Models: {
|
|
506
|
+
list: NonNullable<MList>;
|
|
507
|
+
detail: NonNullable<MDetail>;
|
|
508
|
+
};
|
|
509
|
+
SearchPayload: {
|
|
510
|
+
list: SList;
|
|
511
|
+
specific: SDetail;
|
|
512
|
+
};
|
|
513
|
+
ActionsPayload: {
|
|
514
|
+
create: ACreate;
|
|
515
|
+
update: AUpdate;
|
|
516
|
+
};
|
|
517
|
+
} : never : never : never)["SearchPayload"]["specific"];
|
|
518
|
+
}) => Promise<(ZodStore<T> extends infer T_2 ? T_2 extends ZodStore<T> ? T_2 extends {
|
|
519
|
+
list: (data: {
|
|
520
|
+
filter: infer SList;
|
|
521
|
+
pagination?: any;
|
|
522
|
+
}) => Promise<Array<infer MList>>;
|
|
523
|
+
details: (data: {
|
|
524
|
+
filter: infer SDetail;
|
|
525
|
+
}) => Promise<infer MDetail>;
|
|
526
|
+
create: (data: {
|
|
527
|
+
payload: infer ACreate;
|
|
528
|
+
}) => Promise<any>;
|
|
529
|
+
updateOne: (data: {
|
|
530
|
+
filter: any;
|
|
531
|
+
payload: infer AUpdate;
|
|
532
|
+
}) => Promise<any>;
|
|
533
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
534
|
+
} ? {
|
|
535
|
+
Models: {
|
|
536
|
+
list: NonNullable<MList>;
|
|
537
|
+
detail: NonNullable<MDetail>;
|
|
538
|
+
};
|
|
539
|
+
SearchPayload: {
|
|
540
|
+
list: SList;
|
|
541
|
+
specific: SDetail;
|
|
542
|
+
};
|
|
543
|
+
ActionsPayload: {
|
|
544
|
+
create: ACreate;
|
|
545
|
+
update: AUpdate;
|
|
546
|
+
};
|
|
547
|
+
} : never : never : never)["Models"]["detail"] | null>;
|
|
548
|
+
create: (data: {
|
|
549
|
+
payload: (ZodStore<T> extends infer T_1 ? T_1 extends ZodStore<T> ? T_1 extends {
|
|
550
|
+
list: (data: {
|
|
551
|
+
filter: infer SList;
|
|
552
|
+
pagination?: any;
|
|
553
|
+
}) => Promise<Array<infer MList>>;
|
|
554
|
+
details: (data: {
|
|
555
|
+
filter: infer SDetail;
|
|
556
|
+
}) => Promise<infer MDetail>;
|
|
557
|
+
create: (data: {
|
|
558
|
+
payload: infer ACreate;
|
|
559
|
+
}) => Promise<any>;
|
|
560
|
+
updateOne: (data: {
|
|
561
|
+
filter: any;
|
|
562
|
+
payload: infer AUpdate;
|
|
563
|
+
}) => Promise<any>;
|
|
564
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
565
|
+
} ? {
|
|
566
|
+
Models: {
|
|
567
|
+
list: NonNullable<MList>;
|
|
568
|
+
detail: NonNullable<MDetail>;
|
|
569
|
+
};
|
|
570
|
+
SearchPayload: {
|
|
571
|
+
list: SList;
|
|
572
|
+
specific: SDetail;
|
|
573
|
+
};
|
|
574
|
+
ActionsPayload: {
|
|
575
|
+
create: ACreate;
|
|
576
|
+
update: AUpdate;
|
|
577
|
+
};
|
|
578
|
+
} : never : never : never)["ActionsPayload"]["create"];
|
|
579
|
+
}) => Promise<{
|
|
580
|
+
id: string;
|
|
581
|
+
}>;
|
|
582
|
+
updateOne: (data: {
|
|
583
|
+
filter: (ZodStore<T> extends infer T_1 ? T_1 extends ZodStore<T> ? T_1 extends {
|
|
584
|
+
list: (data: {
|
|
585
|
+
filter: infer SList;
|
|
586
|
+
pagination?: any;
|
|
587
|
+
}) => Promise<Array<infer MList>>;
|
|
588
|
+
details: (data: {
|
|
589
|
+
filter: infer SDetail;
|
|
590
|
+
}) => Promise<infer MDetail>;
|
|
591
|
+
create: (data: {
|
|
592
|
+
payload: infer ACreate;
|
|
593
|
+
}) => Promise<any>;
|
|
594
|
+
updateOne: (data: {
|
|
595
|
+
filter: any;
|
|
596
|
+
payload: infer AUpdate;
|
|
597
|
+
}) => Promise<any>;
|
|
598
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
599
|
+
} ? {
|
|
600
|
+
Models: {
|
|
601
|
+
list: NonNullable<MList>;
|
|
602
|
+
detail: NonNullable<MDetail>;
|
|
603
|
+
};
|
|
604
|
+
SearchPayload: {
|
|
605
|
+
list: SList;
|
|
606
|
+
specific: SDetail;
|
|
607
|
+
};
|
|
608
|
+
ActionsPayload: {
|
|
609
|
+
create: ACreate;
|
|
610
|
+
update: AUpdate;
|
|
611
|
+
};
|
|
612
|
+
} : never : never : never)["SearchPayload"]["specific"];
|
|
613
|
+
payload: (ZodStore<T> extends infer T_2 ? T_2 extends ZodStore<T> ? T_2 extends {
|
|
614
|
+
list: (data: {
|
|
615
|
+
filter: infer SList;
|
|
616
|
+
pagination?: any;
|
|
617
|
+
}) => Promise<Array<infer MList>>;
|
|
618
|
+
details: (data: {
|
|
619
|
+
filter: infer SDetail;
|
|
620
|
+
}) => Promise<infer MDetail>;
|
|
621
|
+
create: (data: {
|
|
622
|
+
payload: infer ACreate;
|
|
623
|
+
}) => Promise<any>;
|
|
624
|
+
updateOne: (data: {
|
|
625
|
+
filter: any;
|
|
626
|
+
payload: infer AUpdate;
|
|
627
|
+
}) => Promise<any>;
|
|
628
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
629
|
+
} ? {
|
|
630
|
+
Models: {
|
|
631
|
+
list: NonNullable<MList>;
|
|
632
|
+
detail: NonNullable<MDetail>;
|
|
633
|
+
};
|
|
634
|
+
SearchPayload: {
|
|
635
|
+
list: SList;
|
|
636
|
+
specific: SDetail;
|
|
637
|
+
};
|
|
638
|
+
ActionsPayload: {
|
|
639
|
+
create: ACreate;
|
|
640
|
+
update: AUpdate;
|
|
641
|
+
};
|
|
642
|
+
} : never : never : never)["ActionsPayload"]["update"];
|
|
643
|
+
}) => Promise<{
|
|
644
|
+
success: boolean;
|
|
645
|
+
}>;
|
|
646
|
+
deleteOne: (data: {
|
|
647
|
+
filter: (ZodStore<T> extends infer T_1 ? T_1 extends ZodStore<T> ? T_1 extends {
|
|
648
|
+
list: (data: {
|
|
649
|
+
filter: infer SList;
|
|
650
|
+
pagination?: any;
|
|
651
|
+
}) => Promise<Array<infer MList>>;
|
|
652
|
+
details: (data: {
|
|
653
|
+
filter: infer SDetail;
|
|
654
|
+
}) => Promise<infer MDetail>;
|
|
655
|
+
create: (data: {
|
|
656
|
+
payload: infer ACreate;
|
|
657
|
+
}) => Promise<any>;
|
|
658
|
+
updateOne: (data: {
|
|
659
|
+
filter: any;
|
|
660
|
+
payload: infer AUpdate;
|
|
661
|
+
}) => Promise<any>;
|
|
662
|
+
deleteOne: (payload: any) => Promise<any>;
|
|
663
|
+
} ? {
|
|
664
|
+
Models: {
|
|
665
|
+
list: NonNullable<MList>;
|
|
666
|
+
detail: NonNullable<MDetail>;
|
|
667
|
+
};
|
|
668
|
+
SearchPayload: {
|
|
669
|
+
list: SList;
|
|
670
|
+
specific: SDetail;
|
|
671
|
+
};
|
|
672
|
+
ActionsPayload: {
|
|
673
|
+
create: ACreate;
|
|
674
|
+
update: AUpdate;
|
|
675
|
+
};
|
|
676
|
+
} : never : never : never)["SearchPayload"]["specific"];
|
|
677
|
+
}) => Promise<{
|
|
678
|
+
success: boolean;
|
|
679
|
+
}>;
|
|
680
|
+
};
|
|
681
|
+
};
|