@porulle/core 0.10.8 → 0.11.0
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/config/types.d.ts +3 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/interfaces/rest/index.d.ts.map +1 -1
- package/dist/interfaces/rest/index.js +4 -0
- package/dist/interfaces/rest/routes/admin/custom-field-proposals.d.ts +5 -0
- package/dist/interfaces/rest/routes/admin/custom-field-proposals.d.ts.map +1 -0
- package/dist/interfaces/rest/routes/admin/custom-field-proposals.js +22 -0
- package/dist/interfaces/rest/routes/admin/entity-field-definitions.d.ts +5 -0
- package/dist/interfaces/rest/routes/admin/entity-field-definitions.d.ts.map +1 -0
- package/dist/interfaces/rest/routes/admin/entity-field-definitions.js +39 -0
- package/dist/interfaces/rest/routes/catalog.d.ts.map +1 -1
- package/dist/interfaces/rest/routes/catalog.js +37 -2
- package/dist/interfaces/rest/routes/search.d.ts.map +1 -1
- package/dist/interfaces/rest/routes/search.js +12 -0
- package/dist/interfaces/rest/schemas/admin-custom-field-proposals.d.ts +134 -0
- package/dist/interfaces/rest/schemas/admin-custom-field-proposals.d.ts.map +1 -0
- package/dist/interfaces/rest/schemas/admin-custom-field-proposals.js +26 -0
- package/dist/interfaces/rest/schemas/admin-entity-field-definitions.d.ts +592 -0
- package/dist/interfaces/rest/schemas/admin-entity-field-definitions.d.ts.map +1 -0
- package/dist/interfaces/rest/schemas/admin-entity-field-definitions.js +109 -0
- package/dist/interfaces/rest/schemas/catalog.d.ts +1364 -401
- package/dist/interfaces/rest/schemas/catalog.d.ts.map +1 -1
- package/dist/interfaces/rest/schemas/catalog.js +86 -0
- package/dist/interfaces/rest/schemas/pricing.d.ts +1 -0
- package/dist/interfaces/rest/schemas/pricing.d.ts.map +1 -1
- package/dist/interfaces/rest/schemas/search.d.ts +1 -0
- package/dist/interfaces/rest/schemas/search.d.ts.map +1 -1
- package/dist/interfaces/rest/schemas/search.js +1 -0
- package/dist/modules/catalog/entity-service.d.ts +5 -3
- package/dist/modules/catalog/entity-service.d.ts.map +1 -1
- package/dist/modules/catalog/entity-service.js +73 -22
- package/dist/modules/catalog/module.d.ts +6 -1
- package/dist/modules/catalog/module.d.ts.map +1 -1
- package/dist/modules/catalog/module.js +6 -1
- package/dist/modules/catalog/ownership.d.ts +5 -0
- package/dist/modules/catalog/ownership.d.ts.map +1 -0
- package/dist/modules/catalog/ownership.js +11 -0
- package/dist/modules/catalog/repository/index.d.ts +52 -1
- package/dist/modules/catalog/repository/index.d.ts.map +1 -1
- package/dist/modules/catalog/repository/index.js +321 -2
- package/dist/modules/catalog/revision.d.ts +4 -0
- package/dist/modules/catalog/revision.d.ts.map +1 -0
- package/dist/modules/catalog/revision.js +33 -0
- package/dist/modules/catalog/schema.d.ts +979 -110
- package/dist/modules/catalog/schema.d.ts.map +1 -1
- package/dist/modules/catalog/schema.js +112 -2
- package/dist/modules/catalog/schemas.d.ts +2 -0
- package/dist/modules/catalog/schemas.d.ts.map +1 -1
- package/dist/modules/catalog/schemas.js +2 -0
- package/dist/modules/catalog/service.d.ts +66 -3
- package/dist/modules/catalog/service.d.ts.map +1 -1
- package/dist/modules/catalog/service.js +512 -11
- package/dist/modules/channels/adapter.d.ts +85 -0
- package/dist/modules/channels/adapter.d.ts.map +1 -1
- package/dist/modules/channels/adapter.js +9 -1
- package/dist/modules/media/module.d.ts +68 -0
- package/dist/modules/media/module.d.ts.map +1 -1
- package/dist/modules/media/module.js +2 -0
- package/dist/modules/media/schema.d.ts +70 -0
- package/dist/modules/media/schema.d.ts.map +1 -1
- package/dist/modules/media/schema.js +20 -2
- package/dist/modules/media/service.d.ts +8 -1
- package/dist/modules/media/service.d.ts.map +1 -1
- package/dist/modules/media/service.js +66 -18
- package/dist/modules/pricing/schema.d.ts +17 -0
- package/dist/modules/pricing/schema.d.ts.map +1 -1
- package/dist/modules/pricing/schema.js +1 -0
- package/dist/modules/pricing/schemas.d.ts +1 -0
- package/dist/modules/pricing/schemas.d.ts.map +1 -1
- package/dist/modules/pricing/schemas.js +1 -0
- package/dist/modules/pricing/service.d.ts.map +1 -1
- package/dist/modules/pricing/service.js +6 -1
- package/dist/modules/search/adapter.d.ts +2 -0
- package/dist/modules/search/adapter.d.ts.map +1 -1
- package/dist/modules/search/module.d.ts.map +1 -1
- package/dist/modules/search/module.js +2 -0
- package/dist/modules/search/service.d.ts +4 -0
- package/dist/modules/search/service.d.ts.map +1 -1
- package/dist/modules/search/service.js +74 -5
- package/dist/runtime/kernel-modules.d.ts +73 -0
- package/dist/runtime/kernel-modules.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/config/types.ts +3 -0
- package/src/index.ts +14 -0
- package/src/interfaces/rest/index.ts +4 -0
- package/src/interfaces/rest/routes/admin/custom-field-proposals.ts +37 -0
- package/src/interfaces/rest/routes/admin/entity-field-definitions.ts +89 -0
- package/src/interfaces/rest/routes/catalog.ts +85 -0
- package/src/interfaces/rest/routes/search.ts +16 -0
- package/src/interfaces/rest/schemas/admin-custom-field-proposals.ts +29 -0
- package/src/interfaces/rest/schemas/admin-entity-field-definitions.ts +120 -0
- package/src/interfaces/rest/schemas/catalog.ts +92 -0
- package/src/interfaces/rest/schemas/search.ts +2 -0
- package/src/modules/catalog/entity-service.ts +73 -20
- package/src/modules/catalog/module.ts +15 -0
- package/src/modules/catalog/ownership.ts +17 -0
- package/src/modules/catalog/repository/index.ts +547 -1
- package/src/modules/catalog/revision.ts +35 -0
- package/src/modules/catalog/schema.ts +169 -1
- package/src/modules/catalog/schemas.ts +2 -0
- package/src/modules/catalog/service.ts +738 -13
- package/src/modules/channels/adapter.ts +107 -1
- package/src/modules/media/module.ts +2 -0
- package/src/modules/media/schema.ts +23 -2
- package/src/modules/media/service.ts +84 -23
- package/src/modules/pricing/schema.ts +1 -0
- package/src/modules/pricing/schemas.ts +1 -0
- package/src/modules/pricing/service.ts +7 -2
- package/src/modules/search/adapter.ts +2 -0
- package/src/modules/search/module.ts +2 -0
- package/src/modules/search/service.ts +87 -6
|
@@ -917,6 +917,291 @@ export declare const getEntityAttributesRoute: {
|
|
|
917
917
|
} & {
|
|
918
918
|
getRoutingPath(): "/entities/:id/attributes/:locale";
|
|
919
919
|
};
|
|
920
|
+
export declare const listFieldOwnershipRoute: {
|
|
921
|
+
method: "get";
|
|
922
|
+
path: "/entities/{id}/field-ownership";
|
|
923
|
+
tags: string[];
|
|
924
|
+
summary: string;
|
|
925
|
+
request: {
|
|
926
|
+
params: z.ZodObject<{
|
|
927
|
+
id: z.ZodUUID;
|
|
928
|
+
}, z.core.$strip>;
|
|
929
|
+
query: z.ZodObject<{
|
|
930
|
+
storeId: z.ZodOptional<z.ZodString>;
|
|
931
|
+
}, z.core.$strip>;
|
|
932
|
+
};
|
|
933
|
+
responses: {
|
|
934
|
+
400: {
|
|
935
|
+
readonly content: {
|
|
936
|
+
readonly "application/json": {
|
|
937
|
+
readonly schema: z.ZodObject<{
|
|
938
|
+
error: z.ZodObject<{
|
|
939
|
+
code: z.ZodString;
|
|
940
|
+
message: z.ZodString;
|
|
941
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
942
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
943
|
+
path: z.ZodString;
|
|
944
|
+
message: z.ZodString;
|
|
945
|
+
code: z.ZodString;
|
|
946
|
+
}, z.core.$strip>>>;
|
|
947
|
+
}, z.core.$strip>>;
|
|
948
|
+
}, z.core.$strip>;
|
|
949
|
+
}, z.core.$strip>;
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
readonly description: "Business logic error.";
|
|
953
|
+
};
|
|
954
|
+
401: {
|
|
955
|
+
readonly content: {
|
|
956
|
+
readonly "application/json": {
|
|
957
|
+
readonly schema: z.ZodObject<{
|
|
958
|
+
error: z.ZodObject<{
|
|
959
|
+
code: z.ZodString;
|
|
960
|
+
message: z.ZodString;
|
|
961
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
962
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
963
|
+
path: z.ZodString;
|
|
964
|
+
message: z.ZodString;
|
|
965
|
+
code: z.ZodString;
|
|
966
|
+
}, z.core.$strip>>>;
|
|
967
|
+
}, z.core.$strip>>;
|
|
968
|
+
}, z.core.$strip>;
|
|
969
|
+
}, z.core.$strip>;
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
readonly description: "Authentication required.";
|
|
973
|
+
};
|
|
974
|
+
403: {
|
|
975
|
+
readonly content: {
|
|
976
|
+
readonly "application/json": {
|
|
977
|
+
readonly schema: z.ZodObject<{
|
|
978
|
+
error: z.ZodObject<{
|
|
979
|
+
code: z.ZodString;
|
|
980
|
+
message: z.ZodString;
|
|
981
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
982
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
983
|
+
path: z.ZodString;
|
|
984
|
+
message: z.ZodString;
|
|
985
|
+
code: z.ZodString;
|
|
986
|
+
}, z.core.$strip>>>;
|
|
987
|
+
}, z.core.$strip>>;
|
|
988
|
+
}, z.core.$strip>;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
readonly description: "Insufficient permissions.";
|
|
993
|
+
};
|
|
994
|
+
404: {
|
|
995
|
+
readonly content: {
|
|
996
|
+
readonly "application/json": {
|
|
997
|
+
readonly schema: z.ZodObject<{
|
|
998
|
+
error: z.ZodObject<{
|
|
999
|
+
code: z.ZodString;
|
|
1000
|
+
message: z.ZodString;
|
|
1001
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1002
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1003
|
+
path: z.ZodString;
|
|
1004
|
+
message: z.ZodString;
|
|
1005
|
+
code: z.ZodString;
|
|
1006
|
+
}, z.core.$strip>>>;
|
|
1007
|
+
}, z.core.$strip>>;
|
|
1008
|
+
}, z.core.$strip>;
|
|
1009
|
+
}, z.core.$strip>;
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
readonly description: "Resource not found.";
|
|
1013
|
+
};
|
|
1014
|
+
422: {
|
|
1015
|
+
readonly content: {
|
|
1016
|
+
readonly "application/json": {
|
|
1017
|
+
readonly schema: z.ZodObject<{
|
|
1018
|
+
error: z.ZodObject<{
|
|
1019
|
+
code: z.ZodString;
|
|
1020
|
+
message: z.ZodString;
|
|
1021
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1022
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1023
|
+
path: z.ZodString;
|
|
1024
|
+
message: z.ZodString;
|
|
1025
|
+
code: z.ZodString;
|
|
1026
|
+
}, z.core.$strip>>>;
|
|
1027
|
+
}, z.core.$strip>>;
|
|
1028
|
+
}, z.core.$strip>;
|
|
1029
|
+
}, z.core.$strip>;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
readonly description: "Validation error.";
|
|
1033
|
+
};
|
|
1034
|
+
200: {
|
|
1035
|
+
content: {
|
|
1036
|
+
"application/json": {
|
|
1037
|
+
schema: z.ZodObject<{
|
|
1038
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1039
|
+
id: z.ZodString;
|
|
1040
|
+
organizationId: z.ZodString;
|
|
1041
|
+
entityId: z.ZodString;
|
|
1042
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1043
|
+
storeId: z.ZodNullable<z.ZodString>;
|
|
1044
|
+
fieldPath: z.ZodString;
|
|
1045
|
+
owner: z.ZodEnum<{
|
|
1046
|
+
platform: "platform";
|
|
1047
|
+
store: "store";
|
|
1048
|
+
shared: "shared";
|
|
1049
|
+
}>;
|
|
1050
|
+
updatedAt: z.ZodString;
|
|
1051
|
+
}, z.core.$strip>>;
|
|
1052
|
+
}, z.core.$strip>;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
description: string;
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
} & {
|
|
1059
|
+
getRoutingPath(): "/entities/:id/field-ownership";
|
|
1060
|
+
};
|
|
1061
|
+
export declare const setFieldOwnershipRoute: {
|
|
1062
|
+
method: "put";
|
|
1063
|
+
path: "/entities/{id}/field-ownership";
|
|
1064
|
+
tags: string[];
|
|
1065
|
+
summary: string;
|
|
1066
|
+
request: {
|
|
1067
|
+
params: z.ZodObject<{
|
|
1068
|
+
id: z.ZodUUID;
|
|
1069
|
+
}, z.core.$strip>;
|
|
1070
|
+
body: {
|
|
1071
|
+
content: {
|
|
1072
|
+
"application/json": {
|
|
1073
|
+
schema: z.ZodObject<{
|
|
1074
|
+
fieldPath: z.ZodString;
|
|
1075
|
+
owner: z.ZodEnum<{
|
|
1076
|
+
platform: "platform";
|
|
1077
|
+
store: "store";
|
|
1078
|
+
shared: "shared";
|
|
1079
|
+
}>;
|
|
1080
|
+
storeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1081
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1082
|
+
}, z.core.$strip>;
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
required: true;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
responses: {
|
|
1089
|
+
400: {
|
|
1090
|
+
readonly content: {
|
|
1091
|
+
readonly "application/json": {
|
|
1092
|
+
readonly schema: z.ZodObject<{
|
|
1093
|
+
error: z.ZodObject<{
|
|
1094
|
+
code: z.ZodString;
|
|
1095
|
+
message: z.ZodString;
|
|
1096
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1097
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1098
|
+
path: z.ZodString;
|
|
1099
|
+
message: z.ZodString;
|
|
1100
|
+
code: z.ZodString;
|
|
1101
|
+
}, z.core.$strip>>>;
|
|
1102
|
+
}, z.core.$strip>>;
|
|
1103
|
+
}, z.core.$strip>;
|
|
1104
|
+
}, z.core.$strip>;
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
readonly description: "Business logic error.";
|
|
1108
|
+
};
|
|
1109
|
+
401: {
|
|
1110
|
+
readonly content: {
|
|
1111
|
+
readonly "application/json": {
|
|
1112
|
+
readonly schema: z.ZodObject<{
|
|
1113
|
+
error: z.ZodObject<{
|
|
1114
|
+
code: z.ZodString;
|
|
1115
|
+
message: z.ZodString;
|
|
1116
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1117
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1118
|
+
path: z.ZodString;
|
|
1119
|
+
message: z.ZodString;
|
|
1120
|
+
code: z.ZodString;
|
|
1121
|
+
}, z.core.$strip>>>;
|
|
1122
|
+
}, z.core.$strip>>;
|
|
1123
|
+
}, z.core.$strip>;
|
|
1124
|
+
}, z.core.$strip>;
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
readonly description: "Authentication required.";
|
|
1128
|
+
};
|
|
1129
|
+
403: {
|
|
1130
|
+
readonly content: {
|
|
1131
|
+
readonly "application/json": {
|
|
1132
|
+
readonly schema: z.ZodObject<{
|
|
1133
|
+
error: z.ZodObject<{
|
|
1134
|
+
code: z.ZodString;
|
|
1135
|
+
message: z.ZodString;
|
|
1136
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1137
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1138
|
+
path: z.ZodString;
|
|
1139
|
+
message: z.ZodString;
|
|
1140
|
+
code: z.ZodString;
|
|
1141
|
+
}, z.core.$strip>>>;
|
|
1142
|
+
}, z.core.$strip>>;
|
|
1143
|
+
}, z.core.$strip>;
|
|
1144
|
+
}, z.core.$strip>;
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
readonly description: "Insufficient permissions.";
|
|
1148
|
+
};
|
|
1149
|
+
404: {
|
|
1150
|
+
readonly content: {
|
|
1151
|
+
readonly "application/json": {
|
|
1152
|
+
readonly schema: z.ZodObject<{
|
|
1153
|
+
error: z.ZodObject<{
|
|
1154
|
+
code: z.ZodString;
|
|
1155
|
+
message: z.ZodString;
|
|
1156
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1157
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1158
|
+
path: z.ZodString;
|
|
1159
|
+
message: z.ZodString;
|
|
1160
|
+
code: z.ZodString;
|
|
1161
|
+
}, z.core.$strip>>>;
|
|
1162
|
+
}, z.core.$strip>>;
|
|
1163
|
+
}, z.core.$strip>;
|
|
1164
|
+
}, z.core.$strip>;
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
readonly description: "Resource not found.";
|
|
1168
|
+
};
|
|
1169
|
+
422: {
|
|
1170
|
+
readonly content: {
|
|
1171
|
+
readonly "application/json": {
|
|
1172
|
+
readonly schema: z.ZodObject<{
|
|
1173
|
+
error: z.ZodObject<{
|
|
1174
|
+
code: z.ZodString;
|
|
1175
|
+
message: z.ZodString;
|
|
1176
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1177
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1178
|
+
path: z.ZodString;
|
|
1179
|
+
message: z.ZodString;
|
|
1180
|
+
code: z.ZodString;
|
|
1181
|
+
}, z.core.$strip>>>;
|
|
1182
|
+
}, z.core.$strip>>;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
readonly description: "Validation error.";
|
|
1188
|
+
};
|
|
1189
|
+
200: {
|
|
1190
|
+
content: {
|
|
1191
|
+
"application/json": {
|
|
1192
|
+
schema: z.ZodObject<{
|
|
1193
|
+
data: z.ZodObject<{
|
|
1194
|
+
updated: z.ZodLiteral<true>;
|
|
1195
|
+
}, z.core.$strip>;
|
|
1196
|
+
}, z.core.$strip>;
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
description: string;
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
} & {
|
|
1203
|
+
getRoutingPath(): "/entities/:id/field-ownership";
|
|
1204
|
+
};
|
|
920
1205
|
export declare const listCategoriesRoute: {
|
|
921
1206
|
method: "get";
|
|
922
1207
|
path: "/categories";
|
|
@@ -1378,16 +1663,270 @@ export declare const listBrandsRoute: {
|
|
|
1378
1663
|
};
|
|
1379
1664
|
};
|
|
1380
1665
|
} & {
|
|
1381
|
-
getRoutingPath(): "/brands";
|
|
1666
|
+
getRoutingPath(): "/brands";
|
|
1667
|
+
};
|
|
1668
|
+
export declare const deleteEntityRoute: {
|
|
1669
|
+
method: "delete";
|
|
1670
|
+
path: "/entities/{id}";
|
|
1671
|
+
tags: string[];
|
|
1672
|
+
summary: string;
|
|
1673
|
+
request: {
|
|
1674
|
+
params: z.ZodObject<{
|
|
1675
|
+
id: z.ZodUUID;
|
|
1676
|
+
}, z.core.$strip>;
|
|
1677
|
+
};
|
|
1678
|
+
responses: {
|
|
1679
|
+
400: {
|
|
1680
|
+
readonly content: {
|
|
1681
|
+
readonly "application/json": {
|
|
1682
|
+
readonly schema: z.ZodObject<{
|
|
1683
|
+
error: z.ZodObject<{
|
|
1684
|
+
code: z.ZodString;
|
|
1685
|
+
message: z.ZodString;
|
|
1686
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1687
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1688
|
+
path: z.ZodString;
|
|
1689
|
+
message: z.ZodString;
|
|
1690
|
+
code: z.ZodString;
|
|
1691
|
+
}, z.core.$strip>>>;
|
|
1692
|
+
}, z.core.$strip>>;
|
|
1693
|
+
}, z.core.$strip>;
|
|
1694
|
+
}, z.core.$strip>;
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
readonly description: "Business logic error.";
|
|
1698
|
+
};
|
|
1699
|
+
401: {
|
|
1700
|
+
readonly content: {
|
|
1701
|
+
readonly "application/json": {
|
|
1702
|
+
readonly schema: z.ZodObject<{
|
|
1703
|
+
error: z.ZodObject<{
|
|
1704
|
+
code: z.ZodString;
|
|
1705
|
+
message: z.ZodString;
|
|
1706
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1707
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1708
|
+
path: z.ZodString;
|
|
1709
|
+
message: z.ZodString;
|
|
1710
|
+
code: z.ZodString;
|
|
1711
|
+
}, z.core.$strip>>>;
|
|
1712
|
+
}, z.core.$strip>>;
|
|
1713
|
+
}, z.core.$strip>;
|
|
1714
|
+
}, z.core.$strip>;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
readonly description: "Authentication required.";
|
|
1718
|
+
};
|
|
1719
|
+
403: {
|
|
1720
|
+
readonly content: {
|
|
1721
|
+
readonly "application/json": {
|
|
1722
|
+
readonly schema: z.ZodObject<{
|
|
1723
|
+
error: z.ZodObject<{
|
|
1724
|
+
code: z.ZodString;
|
|
1725
|
+
message: z.ZodString;
|
|
1726
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1727
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1728
|
+
path: z.ZodString;
|
|
1729
|
+
message: z.ZodString;
|
|
1730
|
+
code: z.ZodString;
|
|
1731
|
+
}, z.core.$strip>>>;
|
|
1732
|
+
}, z.core.$strip>>;
|
|
1733
|
+
}, z.core.$strip>;
|
|
1734
|
+
}, z.core.$strip>;
|
|
1735
|
+
};
|
|
1736
|
+
};
|
|
1737
|
+
readonly description: "Insufficient permissions.";
|
|
1738
|
+
};
|
|
1739
|
+
404: {
|
|
1740
|
+
readonly content: {
|
|
1741
|
+
readonly "application/json": {
|
|
1742
|
+
readonly schema: z.ZodObject<{
|
|
1743
|
+
error: z.ZodObject<{
|
|
1744
|
+
code: z.ZodString;
|
|
1745
|
+
message: z.ZodString;
|
|
1746
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1747
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1748
|
+
path: z.ZodString;
|
|
1749
|
+
message: z.ZodString;
|
|
1750
|
+
code: z.ZodString;
|
|
1751
|
+
}, z.core.$strip>>>;
|
|
1752
|
+
}, z.core.$strip>>;
|
|
1753
|
+
}, z.core.$strip>;
|
|
1754
|
+
}, z.core.$strip>;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
readonly description: "Resource not found.";
|
|
1758
|
+
};
|
|
1759
|
+
422: {
|
|
1760
|
+
readonly content: {
|
|
1761
|
+
readonly "application/json": {
|
|
1762
|
+
readonly schema: z.ZodObject<{
|
|
1763
|
+
error: z.ZodObject<{
|
|
1764
|
+
code: z.ZodString;
|
|
1765
|
+
message: z.ZodString;
|
|
1766
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1767
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1768
|
+
path: z.ZodString;
|
|
1769
|
+
message: z.ZodString;
|
|
1770
|
+
code: z.ZodString;
|
|
1771
|
+
}, z.core.$strip>>>;
|
|
1772
|
+
}, z.core.$strip>>;
|
|
1773
|
+
}, z.core.$strip>;
|
|
1774
|
+
}, z.core.$strip>;
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1777
|
+
readonly description: "Validation error.";
|
|
1778
|
+
};
|
|
1779
|
+
200: {
|
|
1780
|
+
content: {
|
|
1781
|
+
"application/json": {
|
|
1782
|
+
schema: z.ZodObject<{
|
|
1783
|
+
data: z.ZodObject<{
|
|
1784
|
+
deleted: z.ZodLiteral<true>;
|
|
1785
|
+
}, z.core.$strip>;
|
|
1786
|
+
}, z.core.$strip>;
|
|
1787
|
+
};
|
|
1788
|
+
};
|
|
1789
|
+
description: string;
|
|
1790
|
+
};
|
|
1791
|
+
};
|
|
1792
|
+
} & {
|
|
1793
|
+
getRoutingPath(): "/entities/:id";
|
|
1794
|
+
};
|
|
1795
|
+
export declare const deleteCategoryRoute: {
|
|
1796
|
+
method: "delete";
|
|
1797
|
+
path: "/categories/{categoryId}";
|
|
1798
|
+
tags: string[];
|
|
1799
|
+
summary: string;
|
|
1800
|
+
request: {
|
|
1801
|
+
params: z.ZodObject<{
|
|
1802
|
+
categoryId: z.ZodUUID;
|
|
1803
|
+
}, z.core.$strip>;
|
|
1804
|
+
};
|
|
1805
|
+
responses: {
|
|
1806
|
+
400: {
|
|
1807
|
+
readonly content: {
|
|
1808
|
+
readonly "application/json": {
|
|
1809
|
+
readonly schema: z.ZodObject<{
|
|
1810
|
+
error: z.ZodObject<{
|
|
1811
|
+
code: z.ZodString;
|
|
1812
|
+
message: z.ZodString;
|
|
1813
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1814
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1815
|
+
path: z.ZodString;
|
|
1816
|
+
message: z.ZodString;
|
|
1817
|
+
code: z.ZodString;
|
|
1818
|
+
}, z.core.$strip>>>;
|
|
1819
|
+
}, z.core.$strip>>;
|
|
1820
|
+
}, z.core.$strip>;
|
|
1821
|
+
}, z.core.$strip>;
|
|
1822
|
+
};
|
|
1823
|
+
};
|
|
1824
|
+
readonly description: "Business logic error.";
|
|
1825
|
+
};
|
|
1826
|
+
401: {
|
|
1827
|
+
readonly content: {
|
|
1828
|
+
readonly "application/json": {
|
|
1829
|
+
readonly schema: z.ZodObject<{
|
|
1830
|
+
error: z.ZodObject<{
|
|
1831
|
+
code: z.ZodString;
|
|
1832
|
+
message: z.ZodString;
|
|
1833
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1834
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1835
|
+
path: z.ZodString;
|
|
1836
|
+
message: z.ZodString;
|
|
1837
|
+
code: z.ZodString;
|
|
1838
|
+
}, z.core.$strip>>>;
|
|
1839
|
+
}, z.core.$strip>>;
|
|
1840
|
+
}, z.core.$strip>;
|
|
1841
|
+
}, z.core.$strip>;
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
readonly description: "Authentication required.";
|
|
1845
|
+
};
|
|
1846
|
+
403: {
|
|
1847
|
+
readonly content: {
|
|
1848
|
+
readonly "application/json": {
|
|
1849
|
+
readonly schema: z.ZodObject<{
|
|
1850
|
+
error: z.ZodObject<{
|
|
1851
|
+
code: z.ZodString;
|
|
1852
|
+
message: z.ZodString;
|
|
1853
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1854
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1855
|
+
path: z.ZodString;
|
|
1856
|
+
message: z.ZodString;
|
|
1857
|
+
code: z.ZodString;
|
|
1858
|
+
}, z.core.$strip>>>;
|
|
1859
|
+
}, z.core.$strip>>;
|
|
1860
|
+
}, z.core.$strip>;
|
|
1861
|
+
}, z.core.$strip>;
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
readonly description: "Insufficient permissions.";
|
|
1865
|
+
};
|
|
1866
|
+
404: {
|
|
1867
|
+
readonly content: {
|
|
1868
|
+
readonly "application/json": {
|
|
1869
|
+
readonly schema: z.ZodObject<{
|
|
1870
|
+
error: z.ZodObject<{
|
|
1871
|
+
code: z.ZodString;
|
|
1872
|
+
message: z.ZodString;
|
|
1873
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1874
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1875
|
+
path: z.ZodString;
|
|
1876
|
+
message: z.ZodString;
|
|
1877
|
+
code: z.ZodString;
|
|
1878
|
+
}, z.core.$strip>>>;
|
|
1879
|
+
}, z.core.$strip>>;
|
|
1880
|
+
}, z.core.$strip>;
|
|
1881
|
+
}, z.core.$strip>;
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
readonly description: "Resource not found.";
|
|
1885
|
+
};
|
|
1886
|
+
422: {
|
|
1887
|
+
readonly content: {
|
|
1888
|
+
readonly "application/json": {
|
|
1889
|
+
readonly schema: z.ZodObject<{
|
|
1890
|
+
error: z.ZodObject<{
|
|
1891
|
+
code: z.ZodString;
|
|
1892
|
+
message: z.ZodString;
|
|
1893
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1894
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1895
|
+
path: z.ZodString;
|
|
1896
|
+
message: z.ZodString;
|
|
1897
|
+
code: z.ZodString;
|
|
1898
|
+
}, z.core.$strip>>>;
|
|
1899
|
+
}, z.core.$strip>>;
|
|
1900
|
+
}, z.core.$strip>;
|
|
1901
|
+
}, z.core.$strip>;
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
readonly description: "Validation error.";
|
|
1905
|
+
};
|
|
1906
|
+
200: {
|
|
1907
|
+
content: {
|
|
1908
|
+
"application/json": {
|
|
1909
|
+
schema: z.ZodObject<{
|
|
1910
|
+
data: z.ZodObject<{
|
|
1911
|
+
deleted: z.ZodLiteral<true>;
|
|
1912
|
+
}, z.core.$strip>;
|
|
1913
|
+
}, z.core.$strip>;
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
description: string;
|
|
1917
|
+
};
|
|
1918
|
+
};
|
|
1919
|
+
} & {
|
|
1920
|
+
getRoutingPath(): "/categories/:categoryId";
|
|
1382
1921
|
};
|
|
1383
|
-
export declare const
|
|
1922
|
+
export declare const deleteBrandRoute: {
|
|
1384
1923
|
method: "delete";
|
|
1385
|
-
path: "/
|
|
1924
|
+
path: "/brands/{brandId}";
|
|
1386
1925
|
tags: string[];
|
|
1387
1926
|
summary: string;
|
|
1388
1927
|
request: {
|
|
1389
1928
|
params: z.ZodObject<{
|
|
1390
|
-
|
|
1929
|
+
brandId: z.ZodUUID;
|
|
1391
1930
|
}, z.core.$strip>;
|
|
1392
1931
|
};
|
|
1393
1932
|
responses: {
|
|
@@ -1505,15 +2044,16 @@ export declare const deleteEntityRoute: {
|
|
|
1505
2044
|
};
|
|
1506
2045
|
};
|
|
1507
2046
|
} & {
|
|
1508
|
-
getRoutingPath(): "/
|
|
2047
|
+
getRoutingPath(): "/brands/:brandId";
|
|
1509
2048
|
};
|
|
1510
|
-
export declare const
|
|
2049
|
+
export declare const removeEntityFromCategoryRoute: {
|
|
1511
2050
|
method: "delete";
|
|
1512
|
-
path: "/categories/{categoryId}";
|
|
2051
|
+
path: "/entities/{id}/categories/{categoryId}";
|
|
1513
2052
|
tags: string[];
|
|
1514
2053
|
summary: string;
|
|
1515
2054
|
request: {
|
|
1516
2055
|
params: z.ZodObject<{
|
|
2056
|
+
id: z.ZodUUID;
|
|
1517
2057
|
categoryId: z.ZodUUID;
|
|
1518
2058
|
}, z.core.$strip>;
|
|
1519
2059
|
};
|
|
@@ -1623,7 +2163,7 @@ export declare const deleteCategoryRoute: {
|
|
|
1623
2163
|
"application/json": {
|
|
1624
2164
|
schema: z.ZodObject<{
|
|
1625
2165
|
data: z.ZodObject<{
|
|
1626
|
-
|
|
2166
|
+
unlinked: z.ZodLiteral<true>;
|
|
1627
2167
|
}, z.core.$strip>;
|
|
1628
2168
|
}, z.core.$strip>;
|
|
1629
2169
|
};
|
|
@@ -1632,15 +2172,16 @@ export declare const deleteCategoryRoute: {
|
|
|
1632
2172
|
};
|
|
1633
2173
|
};
|
|
1634
2174
|
} & {
|
|
1635
|
-
getRoutingPath(): "/categories/:categoryId";
|
|
2175
|
+
getRoutingPath(): "/entities/:id/categories/:categoryId";
|
|
1636
2176
|
};
|
|
1637
|
-
export declare const
|
|
2177
|
+
export declare const removeEntityFromBrandRoute: {
|
|
1638
2178
|
method: "delete";
|
|
1639
|
-
path: "/brands/{brandId}";
|
|
2179
|
+
path: "/entities/{id}/brands/{brandId}";
|
|
1640
2180
|
tags: string[];
|
|
1641
2181
|
summary: string;
|
|
1642
2182
|
request: {
|
|
1643
2183
|
params: z.ZodObject<{
|
|
2184
|
+
id: z.ZodUUID;
|
|
1644
2185
|
brandId: z.ZodUUID;
|
|
1645
2186
|
}, z.core.$strip>;
|
|
1646
2187
|
};
|
|
@@ -1750,7 +2291,7 @@ export declare const deleteBrandRoute: {
|
|
|
1750
2291
|
"application/json": {
|
|
1751
2292
|
schema: z.ZodObject<{
|
|
1752
2293
|
data: z.ZodObject<{
|
|
1753
|
-
|
|
2294
|
+
unlinked: z.ZodLiteral<true>;
|
|
1754
2295
|
}, z.core.$strip>;
|
|
1755
2296
|
}, z.core.$strip>;
|
|
1756
2297
|
};
|
|
@@ -1759,17 +2300,16 @@ export declare const deleteBrandRoute: {
|
|
|
1759
2300
|
};
|
|
1760
2301
|
};
|
|
1761
2302
|
} & {
|
|
1762
|
-
getRoutingPath(): "/brands/:brandId";
|
|
2303
|
+
getRoutingPath(): "/entities/:id/brands/:brandId";
|
|
1763
2304
|
};
|
|
1764
|
-
export declare const
|
|
1765
|
-
method: "
|
|
1766
|
-
path: "/entities/{id}/
|
|
2305
|
+
export declare const publishEntityRoute: {
|
|
2306
|
+
method: "post";
|
|
2307
|
+
path: "/entities/{id}/publish";
|
|
1767
2308
|
tags: string[];
|
|
1768
2309
|
summary: string;
|
|
1769
2310
|
request: {
|
|
1770
2311
|
params: z.ZodObject<{
|
|
1771
2312
|
id: z.ZodUUID;
|
|
1772
|
-
categoryId: z.ZodUUID;
|
|
1773
2313
|
}, z.core.$strip>;
|
|
1774
2314
|
};
|
|
1775
2315
|
responses: {
|
|
@@ -1877,9 +2417,216 @@ export declare const removeEntityFromCategoryRoute: {
|
|
|
1877
2417
|
content: {
|
|
1878
2418
|
"application/json": {
|
|
1879
2419
|
schema: z.ZodObject<{
|
|
1880
|
-
data:
|
|
1881
|
-
|
|
1882
|
-
|
|
2420
|
+
data: import("drizzle-zod").BuildSchema<"select", {
|
|
2421
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2422
|
+
name: "id";
|
|
2423
|
+
tableName: "sellable_entities";
|
|
2424
|
+
dataType: "string";
|
|
2425
|
+
columnType: "PgUUID";
|
|
2426
|
+
data: string;
|
|
2427
|
+
driverParam: string;
|
|
2428
|
+
notNull: true;
|
|
2429
|
+
hasDefault: true;
|
|
2430
|
+
isPrimaryKey: true;
|
|
2431
|
+
isAutoincrement: false;
|
|
2432
|
+
hasRuntimeDefault: false;
|
|
2433
|
+
enumValues: undefined;
|
|
2434
|
+
baseColumn: never;
|
|
2435
|
+
identity: undefined;
|
|
2436
|
+
generated: undefined;
|
|
2437
|
+
}, {}, {}>;
|
|
2438
|
+
organizationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2439
|
+
name: "organization_id";
|
|
2440
|
+
tableName: "sellable_entities";
|
|
2441
|
+
dataType: "string";
|
|
2442
|
+
columnType: "PgText";
|
|
2443
|
+
data: string;
|
|
2444
|
+
driverParam: string;
|
|
2445
|
+
notNull: true;
|
|
2446
|
+
hasDefault: false;
|
|
2447
|
+
isPrimaryKey: false;
|
|
2448
|
+
isAutoincrement: false;
|
|
2449
|
+
hasRuntimeDefault: false;
|
|
2450
|
+
enumValues: [string, ...string[]];
|
|
2451
|
+
baseColumn: never;
|
|
2452
|
+
identity: undefined;
|
|
2453
|
+
generated: undefined;
|
|
2454
|
+
}, {}, {}>;
|
|
2455
|
+
sourceStoreId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2456
|
+
name: "source_store_id";
|
|
2457
|
+
tableName: "sellable_entities";
|
|
2458
|
+
dataType: "string";
|
|
2459
|
+
columnType: "PgText";
|
|
2460
|
+
data: string;
|
|
2461
|
+
driverParam: string;
|
|
2462
|
+
notNull: false;
|
|
2463
|
+
hasDefault: false;
|
|
2464
|
+
isPrimaryKey: false;
|
|
2465
|
+
isAutoincrement: false;
|
|
2466
|
+
hasRuntimeDefault: false;
|
|
2467
|
+
enumValues: [string, ...string[]];
|
|
2468
|
+
baseColumn: never;
|
|
2469
|
+
identity: undefined;
|
|
2470
|
+
generated: undefined;
|
|
2471
|
+
}, {}, {}>;
|
|
2472
|
+
type: import("drizzle-orm/pg-core").PgColumn<{
|
|
2473
|
+
name: "type";
|
|
2474
|
+
tableName: "sellable_entities";
|
|
2475
|
+
dataType: "string";
|
|
2476
|
+
columnType: "PgText";
|
|
2477
|
+
data: string;
|
|
2478
|
+
driverParam: string;
|
|
2479
|
+
notNull: true;
|
|
2480
|
+
hasDefault: false;
|
|
2481
|
+
isPrimaryKey: false;
|
|
2482
|
+
isAutoincrement: false;
|
|
2483
|
+
hasRuntimeDefault: false;
|
|
2484
|
+
enumValues: [string, ...string[]];
|
|
2485
|
+
baseColumn: never;
|
|
2486
|
+
identity: undefined;
|
|
2487
|
+
generated: undefined;
|
|
2488
|
+
}, {}, {}>;
|
|
2489
|
+
slug: import("drizzle-orm/pg-core").PgColumn<{
|
|
2490
|
+
name: "slug";
|
|
2491
|
+
tableName: "sellable_entities";
|
|
2492
|
+
dataType: "string";
|
|
2493
|
+
columnType: "PgText";
|
|
2494
|
+
data: string;
|
|
2495
|
+
driverParam: string;
|
|
2496
|
+
notNull: true;
|
|
2497
|
+
hasDefault: false;
|
|
2498
|
+
isPrimaryKey: false;
|
|
2499
|
+
isAutoincrement: false;
|
|
2500
|
+
hasRuntimeDefault: false;
|
|
2501
|
+
enumValues: [string, ...string[]];
|
|
2502
|
+
baseColumn: never;
|
|
2503
|
+
identity: undefined;
|
|
2504
|
+
generated: undefined;
|
|
2505
|
+
}, {}, {}>;
|
|
2506
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
2507
|
+
name: "status";
|
|
2508
|
+
tableName: "sellable_entities";
|
|
2509
|
+
dataType: "string";
|
|
2510
|
+
columnType: "PgText";
|
|
2511
|
+
data: "draft" | "active" | "archived" | "discontinued";
|
|
2512
|
+
driverParam: string;
|
|
2513
|
+
notNull: true;
|
|
2514
|
+
hasDefault: true;
|
|
2515
|
+
isPrimaryKey: false;
|
|
2516
|
+
isAutoincrement: false;
|
|
2517
|
+
hasRuntimeDefault: false;
|
|
2518
|
+
enumValues: ["draft", "active", "archived", "discontinued"];
|
|
2519
|
+
baseColumn: never;
|
|
2520
|
+
identity: undefined;
|
|
2521
|
+
generated: undefined;
|
|
2522
|
+
}, {}, {}>;
|
|
2523
|
+
isVisible: import("drizzle-orm/pg-core").PgColumn<{
|
|
2524
|
+
name: "is_visible";
|
|
2525
|
+
tableName: "sellable_entities";
|
|
2526
|
+
dataType: "boolean";
|
|
2527
|
+
columnType: "PgBoolean";
|
|
2528
|
+
data: boolean;
|
|
2529
|
+
driverParam: boolean;
|
|
2530
|
+
notNull: true;
|
|
2531
|
+
hasDefault: true;
|
|
2532
|
+
isPrimaryKey: false;
|
|
2533
|
+
isAutoincrement: false;
|
|
2534
|
+
hasRuntimeDefault: false;
|
|
2535
|
+
enumValues: undefined;
|
|
2536
|
+
baseColumn: never;
|
|
2537
|
+
identity: undefined;
|
|
2538
|
+
generated: undefined;
|
|
2539
|
+
}, {}, {}>;
|
|
2540
|
+
taxClass: import("drizzle-orm/pg-core").PgColumn<{
|
|
2541
|
+
name: "tax_class";
|
|
2542
|
+
tableName: "sellable_entities";
|
|
2543
|
+
dataType: "string";
|
|
2544
|
+
columnType: "PgText";
|
|
2545
|
+
data: string;
|
|
2546
|
+
driverParam: string;
|
|
2547
|
+
notNull: false;
|
|
2548
|
+
hasDefault: false;
|
|
2549
|
+
isPrimaryKey: false;
|
|
2550
|
+
isAutoincrement: false;
|
|
2551
|
+
hasRuntimeDefault: false;
|
|
2552
|
+
enumValues: [string, ...string[]];
|
|
2553
|
+
baseColumn: never;
|
|
2554
|
+
identity: undefined;
|
|
2555
|
+
generated: undefined;
|
|
2556
|
+
}, {}, {}>;
|
|
2557
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
2558
|
+
name: "metadata";
|
|
2559
|
+
tableName: "sellable_entities";
|
|
2560
|
+
dataType: "json";
|
|
2561
|
+
columnType: "PgJsonb";
|
|
2562
|
+
data: Record<string, unknown>;
|
|
2563
|
+
driverParam: unknown;
|
|
2564
|
+
notNull: false;
|
|
2565
|
+
hasDefault: true;
|
|
2566
|
+
isPrimaryKey: false;
|
|
2567
|
+
isAutoincrement: false;
|
|
2568
|
+
hasRuntimeDefault: false;
|
|
2569
|
+
enumValues: undefined;
|
|
2570
|
+
baseColumn: never;
|
|
2571
|
+
identity: undefined;
|
|
2572
|
+
generated: undefined;
|
|
2573
|
+
}, {}, {
|
|
2574
|
+
$type: Record<string, unknown>;
|
|
2575
|
+
}>;
|
|
2576
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2577
|
+
name: "created_at";
|
|
2578
|
+
tableName: "sellable_entities";
|
|
2579
|
+
dataType: "date";
|
|
2580
|
+
columnType: "PgTimestamp";
|
|
2581
|
+
data: Date;
|
|
2582
|
+
driverParam: string;
|
|
2583
|
+
notNull: true;
|
|
2584
|
+
hasDefault: true;
|
|
2585
|
+
isPrimaryKey: false;
|
|
2586
|
+
isAutoincrement: false;
|
|
2587
|
+
hasRuntimeDefault: false;
|
|
2588
|
+
enumValues: undefined;
|
|
2589
|
+
baseColumn: never;
|
|
2590
|
+
identity: undefined;
|
|
2591
|
+
generated: undefined;
|
|
2592
|
+
}, {}, {}>;
|
|
2593
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2594
|
+
name: "updated_at";
|
|
2595
|
+
tableName: "sellable_entities";
|
|
2596
|
+
dataType: "date";
|
|
2597
|
+
columnType: "PgTimestamp";
|
|
2598
|
+
data: Date;
|
|
2599
|
+
driverParam: string;
|
|
2600
|
+
notNull: true;
|
|
2601
|
+
hasDefault: true;
|
|
2602
|
+
isPrimaryKey: false;
|
|
2603
|
+
isAutoincrement: false;
|
|
2604
|
+
hasRuntimeDefault: false;
|
|
2605
|
+
enumValues: undefined;
|
|
2606
|
+
baseColumn: never;
|
|
2607
|
+
identity: undefined;
|
|
2608
|
+
generated: undefined;
|
|
2609
|
+
}, {}, {}>;
|
|
2610
|
+
publishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2611
|
+
name: "published_at";
|
|
2612
|
+
tableName: "sellable_entities";
|
|
2613
|
+
dataType: "date";
|
|
2614
|
+
columnType: "PgTimestamp";
|
|
2615
|
+
data: Date;
|
|
2616
|
+
driverParam: string;
|
|
2617
|
+
notNull: false;
|
|
2618
|
+
hasDefault: false;
|
|
2619
|
+
isPrimaryKey: false;
|
|
2620
|
+
isAutoincrement: false;
|
|
2621
|
+
hasRuntimeDefault: false;
|
|
2622
|
+
enumValues: undefined;
|
|
2623
|
+
baseColumn: never;
|
|
2624
|
+
identity: undefined;
|
|
2625
|
+
generated: undefined;
|
|
2626
|
+
}, {}, {}>;
|
|
2627
|
+
}, {
|
|
2628
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2629
|
+
}, undefined>;
|
|
1883
2630
|
}, z.core.$strip>;
|
|
1884
2631
|
};
|
|
1885
2632
|
};
|
|
@@ -1887,17 +2634,16 @@ export declare const removeEntityFromCategoryRoute: {
|
|
|
1887
2634
|
};
|
|
1888
2635
|
};
|
|
1889
2636
|
} & {
|
|
1890
|
-
getRoutingPath(): "/entities/:id/
|
|
2637
|
+
getRoutingPath(): "/entities/:id/publish";
|
|
1891
2638
|
};
|
|
1892
|
-
export declare const
|
|
1893
|
-
method: "
|
|
1894
|
-
path: "/entities/{id}/
|
|
2639
|
+
export declare const archiveEntityRoute: {
|
|
2640
|
+
method: "post";
|
|
2641
|
+
path: "/entities/{id}/archive";
|
|
1895
2642
|
tags: string[];
|
|
1896
2643
|
summary: string;
|
|
1897
2644
|
request: {
|
|
1898
2645
|
params: z.ZodObject<{
|
|
1899
2646
|
id: z.ZodUUID;
|
|
1900
|
-
brandId: z.ZodUUID;
|
|
1901
2647
|
}, z.core.$strip>;
|
|
1902
2648
|
};
|
|
1903
2649
|
responses: {
|
|
@@ -2005,9 +2751,216 @@ export declare const removeEntityFromBrandRoute: {
|
|
|
2005
2751
|
content: {
|
|
2006
2752
|
"application/json": {
|
|
2007
2753
|
schema: z.ZodObject<{
|
|
2008
|
-
data:
|
|
2009
|
-
|
|
2010
|
-
|
|
2754
|
+
data: import("drizzle-zod").BuildSchema<"select", {
|
|
2755
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2756
|
+
name: "id";
|
|
2757
|
+
tableName: "sellable_entities";
|
|
2758
|
+
dataType: "string";
|
|
2759
|
+
columnType: "PgUUID";
|
|
2760
|
+
data: string;
|
|
2761
|
+
driverParam: string;
|
|
2762
|
+
notNull: true;
|
|
2763
|
+
hasDefault: true;
|
|
2764
|
+
isPrimaryKey: true;
|
|
2765
|
+
isAutoincrement: false;
|
|
2766
|
+
hasRuntimeDefault: false;
|
|
2767
|
+
enumValues: undefined;
|
|
2768
|
+
baseColumn: never;
|
|
2769
|
+
identity: undefined;
|
|
2770
|
+
generated: undefined;
|
|
2771
|
+
}, {}, {}>;
|
|
2772
|
+
organizationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2773
|
+
name: "organization_id";
|
|
2774
|
+
tableName: "sellable_entities";
|
|
2775
|
+
dataType: "string";
|
|
2776
|
+
columnType: "PgText";
|
|
2777
|
+
data: string;
|
|
2778
|
+
driverParam: string;
|
|
2779
|
+
notNull: true;
|
|
2780
|
+
hasDefault: false;
|
|
2781
|
+
isPrimaryKey: false;
|
|
2782
|
+
isAutoincrement: false;
|
|
2783
|
+
hasRuntimeDefault: false;
|
|
2784
|
+
enumValues: [string, ...string[]];
|
|
2785
|
+
baseColumn: never;
|
|
2786
|
+
identity: undefined;
|
|
2787
|
+
generated: undefined;
|
|
2788
|
+
}, {}, {}>;
|
|
2789
|
+
sourceStoreId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2790
|
+
name: "source_store_id";
|
|
2791
|
+
tableName: "sellable_entities";
|
|
2792
|
+
dataType: "string";
|
|
2793
|
+
columnType: "PgText";
|
|
2794
|
+
data: string;
|
|
2795
|
+
driverParam: string;
|
|
2796
|
+
notNull: false;
|
|
2797
|
+
hasDefault: false;
|
|
2798
|
+
isPrimaryKey: false;
|
|
2799
|
+
isAutoincrement: false;
|
|
2800
|
+
hasRuntimeDefault: false;
|
|
2801
|
+
enumValues: [string, ...string[]];
|
|
2802
|
+
baseColumn: never;
|
|
2803
|
+
identity: undefined;
|
|
2804
|
+
generated: undefined;
|
|
2805
|
+
}, {}, {}>;
|
|
2806
|
+
type: import("drizzle-orm/pg-core").PgColumn<{
|
|
2807
|
+
name: "type";
|
|
2808
|
+
tableName: "sellable_entities";
|
|
2809
|
+
dataType: "string";
|
|
2810
|
+
columnType: "PgText";
|
|
2811
|
+
data: string;
|
|
2812
|
+
driverParam: string;
|
|
2813
|
+
notNull: true;
|
|
2814
|
+
hasDefault: false;
|
|
2815
|
+
isPrimaryKey: false;
|
|
2816
|
+
isAutoincrement: false;
|
|
2817
|
+
hasRuntimeDefault: false;
|
|
2818
|
+
enumValues: [string, ...string[]];
|
|
2819
|
+
baseColumn: never;
|
|
2820
|
+
identity: undefined;
|
|
2821
|
+
generated: undefined;
|
|
2822
|
+
}, {}, {}>;
|
|
2823
|
+
slug: import("drizzle-orm/pg-core").PgColumn<{
|
|
2824
|
+
name: "slug";
|
|
2825
|
+
tableName: "sellable_entities";
|
|
2826
|
+
dataType: "string";
|
|
2827
|
+
columnType: "PgText";
|
|
2828
|
+
data: string;
|
|
2829
|
+
driverParam: string;
|
|
2830
|
+
notNull: true;
|
|
2831
|
+
hasDefault: false;
|
|
2832
|
+
isPrimaryKey: false;
|
|
2833
|
+
isAutoincrement: false;
|
|
2834
|
+
hasRuntimeDefault: false;
|
|
2835
|
+
enumValues: [string, ...string[]];
|
|
2836
|
+
baseColumn: never;
|
|
2837
|
+
identity: undefined;
|
|
2838
|
+
generated: undefined;
|
|
2839
|
+
}, {}, {}>;
|
|
2840
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
2841
|
+
name: "status";
|
|
2842
|
+
tableName: "sellable_entities";
|
|
2843
|
+
dataType: "string";
|
|
2844
|
+
columnType: "PgText";
|
|
2845
|
+
data: "draft" | "active" | "archived" | "discontinued";
|
|
2846
|
+
driverParam: string;
|
|
2847
|
+
notNull: true;
|
|
2848
|
+
hasDefault: true;
|
|
2849
|
+
isPrimaryKey: false;
|
|
2850
|
+
isAutoincrement: false;
|
|
2851
|
+
hasRuntimeDefault: false;
|
|
2852
|
+
enumValues: ["draft", "active", "archived", "discontinued"];
|
|
2853
|
+
baseColumn: never;
|
|
2854
|
+
identity: undefined;
|
|
2855
|
+
generated: undefined;
|
|
2856
|
+
}, {}, {}>;
|
|
2857
|
+
isVisible: import("drizzle-orm/pg-core").PgColumn<{
|
|
2858
|
+
name: "is_visible";
|
|
2859
|
+
tableName: "sellable_entities";
|
|
2860
|
+
dataType: "boolean";
|
|
2861
|
+
columnType: "PgBoolean";
|
|
2862
|
+
data: boolean;
|
|
2863
|
+
driverParam: boolean;
|
|
2864
|
+
notNull: true;
|
|
2865
|
+
hasDefault: true;
|
|
2866
|
+
isPrimaryKey: false;
|
|
2867
|
+
isAutoincrement: false;
|
|
2868
|
+
hasRuntimeDefault: false;
|
|
2869
|
+
enumValues: undefined;
|
|
2870
|
+
baseColumn: never;
|
|
2871
|
+
identity: undefined;
|
|
2872
|
+
generated: undefined;
|
|
2873
|
+
}, {}, {}>;
|
|
2874
|
+
taxClass: import("drizzle-orm/pg-core").PgColumn<{
|
|
2875
|
+
name: "tax_class";
|
|
2876
|
+
tableName: "sellable_entities";
|
|
2877
|
+
dataType: "string";
|
|
2878
|
+
columnType: "PgText";
|
|
2879
|
+
data: string;
|
|
2880
|
+
driverParam: string;
|
|
2881
|
+
notNull: false;
|
|
2882
|
+
hasDefault: false;
|
|
2883
|
+
isPrimaryKey: false;
|
|
2884
|
+
isAutoincrement: false;
|
|
2885
|
+
hasRuntimeDefault: false;
|
|
2886
|
+
enumValues: [string, ...string[]];
|
|
2887
|
+
baseColumn: never;
|
|
2888
|
+
identity: undefined;
|
|
2889
|
+
generated: undefined;
|
|
2890
|
+
}, {}, {}>;
|
|
2891
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
2892
|
+
name: "metadata";
|
|
2893
|
+
tableName: "sellable_entities";
|
|
2894
|
+
dataType: "json";
|
|
2895
|
+
columnType: "PgJsonb";
|
|
2896
|
+
data: Record<string, unknown>;
|
|
2897
|
+
driverParam: unknown;
|
|
2898
|
+
notNull: false;
|
|
2899
|
+
hasDefault: true;
|
|
2900
|
+
isPrimaryKey: false;
|
|
2901
|
+
isAutoincrement: false;
|
|
2902
|
+
hasRuntimeDefault: false;
|
|
2903
|
+
enumValues: undefined;
|
|
2904
|
+
baseColumn: never;
|
|
2905
|
+
identity: undefined;
|
|
2906
|
+
generated: undefined;
|
|
2907
|
+
}, {}, {
|
|
2908
|
+
$type: Record<string, unknown>;
|
|
2909
|
+
}>;
|
|
2910
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2911
|
+
name: "created_at";
|
|
2912
|
+
tableName: "sellable_entities";
|
|
2913
|
+
dataType: "date";
|
|
2914
|
+
columnType: "PgTimestamp";
|
|
2915
|
+
data: Date;
|
|
2916
|
+
driverParam: string;
|
|
2917
|
+
notNull: true;
|
|
2918
|
+
hasDefault: true;
|
|
2919
|
+
isPrimaryKey: false;
|
|
2920
|
+
isAutoincrement: false;
|
|
2921
|
+
hasRuntimeDefault: false;
|
|
2922
|
+
enumValues: undefined;
|
|
2923
|
+
baseColumn: never;
|
|
2924
|
+
identity: undefined;
|
|
2925
|
+
generated: undefined;
|
|
2926
|
+
}, {}, {}>;
|
|
2927
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2928
|
+
name: "updated_at";
|
|
2929
|
+
tableName: "sellable_entities";
|
|
2930
|
+
dataType: "date";
|
|
2931
|
+
columnType: "PgTimestamp";
|
|
2932
|
+
data: Date;
|
|
2933
|
+
driverParam: string;
|
|
2934
|
+
notNull: true;
|
|
2935
|
+
hasDefault: true;
|
|
2936
|
+
isPrimaryKey: false;
|
|
2937
|
+
isAutoincrement: false;
|
|
2938
|
+
hasRuntimeDefault: false;
|
|
2939
|
+
enumValues: undefined;
|
|
2940
|
+
baseColumn: never;
|
|
2941
|
+
identity: undefined;
|
|
2942
|
+
generated: undefined;
|
|
2943
|
+
}, {}, {}>;
|
|
2944
|
+
publishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2945
|
+
name: "published_at";
|
|
2946
|
+
tableName: "sellable_entities";
|
|
2947
|
+
dataType: "date";
|
|
2948
|
+
columnType: "PgTimestamp";
|
|
2949
|
+
data: Date;
|
|
2950
|
+
driverParam: string;
|
|
2951
|
+
notNull: false;
|
|
2952
|
+
hasDefault: false;
|
|
2953
|
+
isPrimaryKey: false;
|
|
2954
|
+
isAutoincrement: false;
|
|
2955
|
+
hasRuntimeDefault: false;
|
|
2956
|
+
enumValues: undefined;
|
|
2957
|
+
baseColumn: never;
|
|
2958
|
+
identity: undefined;
|
|
2959
|
+
generated: undefined;
|
|
2960
|
+
}, {}, {}>;
|
|
2961
|
+
}, {
|
|
2962
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2963
|
+
}, undefined>;
|
|
2011
2964
|
}, z.core.$strip>;
|
|
2012
2965
|
};
|
|
2013
2966
|
};
|
|
@@ -2015,11 +2968,11 @@ export declare const removeEntityFromBrandRoute: {
|
|
|
2015
2968
|
};
|
|
2016
2969
|
};
|
|
2017
2970
|
} & {
|
|
2018
|
-
getRoutingPath(): "/entities/:id/
|
|
2971
|
+
getRoutingPath(): "/entities/:id/archive";
|
|
2019
2972
|
};
|
|
2020
|
-
export declare const
|
|
2973
|
+
export declare const discontinueEntityRoute: {
|
|
2021
2974
|
method: "post";
|
|
2022
|
-
path: "/entities/{id}/
|
|
2975
|
+
path: "/entities/{id}/discontinue";
|
|
2023
2976
|
tags: string[];
|
|
2024
2977
|
summary: string;
|
|
2025
2978
|
request: {
|
|
@@ -2349,17 +3302,296 @@ export declare const publishEntityRoute: {
|
|
|
2349
3302
|
};
|
|
2350
3303
|
};
|
|
2351
3304
|
} & {
|
|
2352
|
-
getRoutingPath(): "/entities/:id/
|
|
3305
|
+
getRoutingPath(): "/entities/:id/discontinue";
|
|
3306
|
+
};
|
|
3307
|
+
export declare const addEntityToCategoryRoute: {
|
|
3308
|
+
method: "post";
|
|
3309
|
+
path: "/entities/{id}/categories/{categoryId}";
|
|
3310
|
+
tags: string[];
|
|
3311
|
+
summary: string;
|
|
3312
|
+
request: {
|
|
3313
|
+
params: z.ZodObject<{
|
|
3314
|
+
id: z.ZodUUID;
|
|
3315
|
+
categoryId: z.ZodUUID;
|
|
3316
|
+
}, z.core.$strip>;
|
|
3317
|
+
};
|
|
3318
|
+
responses: {
|
|
3319
|
+
400: {
|
|
3320
|
+
readonly content: {
|
|
3321
|
+
readonly "application/json": {
|
|
3322
|
+
readonly schema: z.ZodObject<{
|
|
3323
|
+
error: z.ZodObject<{
|
|
3324
|
+
code: z.ZodString;
|
|
3325
|
+
message: z.ZodString;
|
|
3326
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3327
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3328
|
+
path: z.ZodString;
|
|
3329
|
+
message: z.ZodString;
|
|
3330
|
+
code: z.ZodString;
|
|
3331
|
+
}, z.core.$strip>>>;
|
|
3332
|
+
}, z.core.$strip>>;
|
|
3333
|
+
}, z.core.$strip>;
|
|
3334
|
+
}, z.core.$strip>;
|
|
3335
|
+
};
|
|
3336
|
+
};
|
|
3337
|
+
readonly description: "Business logic error.";
|
|
3338
|
+
};
|
|
3339
|
+
401: {
|
|
3340
|
+
readonly content: {
|
|
3341
|
+
readonly "application/json": {
|
|
3342
|
+
readonly schema: z.ZodObject<{
|
|
3343
|
+
error: z.ZodObject<{
|
|
3344
|
+
code: z.ZodString;
|
|
3345
|
+
message: z.ZodString;
|
|
3346
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3347
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3348
|
+
path: z.ZodString;
|
|
3349
|
+
message: z.ZodString;
|
|
3350
|
+
code: z.ZodString;
|
|
3351
|
+
}, z.core.$strip>>>;
|
|
3352
|
+
}, z.core.$strip>>;
|
|
3353
|
+
}, z.core.$strip>;
|
|
3354
|
+
}, z.core.$strip>;
|
|
3355
|
+
};
|
|
3356
|
+
};
|
|
3357
|
+
readonly description: "Authentication required.";
|
|
3358
|
+
};
|
|
3359
|
+
403: {
|
|
3360
|
+
readonly content: {
|
|
3361
|
+
readonly "application/json": {
|
|
3362
|
+
readonly schema: z.ZodObject<{
|
|
3363
|
+
error: z.ZodObject<{
|
|
3364
|
+
code: z.ZodString;
|
|
3365
|
+
message: z.ZodString;
|
|
3366
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3367
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3368
|
+
path: z.ZodString;
|
|
3369
|
+
message: z.ZodString;
|
|
3370
|
+
code: z.ZodString;
|
|
3371
|
+
}, z.core.$strip>>>;
|
|
3372
|
+
}, z.core.$strip>>;
|
|
3373
|
+
}, z.core.$strip>;
|
|
3374
|
+
}, z.core.$strip>;
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3377
|
+
readonly description: "Insufficient permissions.";
|
|
3378
|
+
};
|
|
3379
|
+
404: {
|
|
3380
|
+
readonly content: {
|
|
3381
|
+
readonly "application/json": {
|
|
3382
|
+
readonly schema: z.ZodObject<{
|
|
3383
|
+
error: z.ZodObject<{
|
|
3384
|
+
code: z.ZodString;
|
|
3385
|
+
message: z.ZodString;
|
|
3386
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3387
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3388
|
+
path: z.ZodString;
|
|
3389
|
+
message: z.ZodString;
|
|
3390
|
+
code: z.ZodString;
|
|
3391
|
+
}, z.core.$strip>>>;
|
|
3392
|
+
}, z.core.$strip>>;
|
|
3393
|
+
}, z.core.$strip>;
|
|
3394
|
+
}, z.core.$strip>;
|
|
3395
|
+
};
|
|
3396
|
+
};
|
|
3397
|
+
readonly description: "Resource not found.";
|
|
3398
|
+
};
|
|
3399
|
+
422: {
|
|
3400
|
+
readonly content: {
|
|
3401
|
+
readonly "application/json": {
|
|
3402
|
+
readonly schema: z.ZodObject<{
|
|
3403
|
+
error: z.ZodObject<{
|
|
3404
|
+
code: z.ZodString;
|
|
3405
|
+
message: z.ZodString;
|
|
3406
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3407
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3408
|
+
path: z.ZodString;
|
|
3409
|
+
message: z.ZodString;
|
|
3410
|
+
code: z.ZodString;
|
|
3411
|
+
}, z.core.$strip>>>;
|
|
3412
|
+
}, z.core.$strip>>;
|
|
3413
|
+
}, z.core.$strip>;
|
|
3414
|
+
}, z.core.$strip>;
|
|
3415
|
+
};
|
|
3416
|
+
};
|
|
3417
|
+
readonly description: "Validation error.";
|
|
3418
|
+
};
|
|
3419
|
+
200: {
|
|
3420
|
+
content: {
|
|
3421
|
+
"application/json": {
|
|
3422
|
+
schema: z.ZodObject<{
|
|
3423
|
+
data: z.ZodObject<{
|
|
3424
|
+
linked: z.ZodLiteral<true>;
|
|
3425
|
+
}, z.core.$strip>;
|
|
3426
|
+
}, z.core.$strip>;
|
|
3427
|
+
};
|
|
3428
|
+
};
|
|
3429
|
+
description: string;
|
|
3430
|
+
};
|
|
3431
|
+
};
|
|
3432
|
+
} & {
|
|
3433
|
+
getRoutingPath(): "/entities/:id/categories/:categoryId";
|
|
3434
|
+
};
|
|
3435
|
+
export declare const addEntityToBrandRoute: {
|
|
3436
|
+
method: "post";
|
|
3437
|
+
path: "/entities/{id}/brands/{brandId}";
|
|
3438
|
+
tags: string[];
|
|
3439
|
+
summary: string;
|
|
3440
|
+
request: {
|
|
3441
|
+
params: z.ZodObject<{
|
|
3442
|
+
id: z.ZodUUID;
|
|
3443
|
+
brandId: z.ZodUUID;
|
|
3444
|
+
}, z.core.$strip>;
|
|
3445
|
+
};
|
|
3446
|
+
responses: {
|
|
3447
|
+
400: {
|
|
3448
|
+
readonly content: {
|
|
3449
|
+
readonly "application/json": {
|
|
3450
|
+
readonly schema: z.ZodObject<{
|
|
3451
|
+
error: z.ZodObject<{
|
|
3452
|
+
code: z.ZodString;
|
|
3453
|
+
message: z.ZodString;
|
|
3454
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3455
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3456
|
+
path: z.ZodString;
|
|
3457
|
+
message: z.ZodString;
|
|
3458
|
+
code: z.ZodString;
|
|
3459
|
+
}, z.core.$strip>>>;
|
|
3460
|
+
}, z.core.$strip>>;
|
|
3461
|
+
}, z.core.$strip>;
|
|
3462
|
+
}, z.core.$strip>;
|
|
3463
|
+
};
|
|
3464
|
+
};
|
|
3465
|
+
readonly description: "Business logic error.";
|
|
3466
|
+
};
|
|
3467
|
+
401: {
|
|
3468
|
+
readonly content: {
|
|
3469
|
+
readonly "application/json": {
|
|
3470
|
+
readonly schema: z.ZodObject<{
|
|
3471
|
+
error: z.ZodObject<{
|
|
3472
|
+
code: z.ZodString;
|
|
3473
|
+
message: z.ZodString;
|
|
3474
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3475
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3476
|
+
path: z.ZodString;
|
|
3477
|
+
message: z.ZodString;
|
|
3478
|
+
code: z.ZodString;
|
|
3479
|
+
}, z.core.$strip>>>;
|
|
3480
|
+
}, z.core.$strip>>;
|
|
3481
|
+
}, z.core.$strip>;
|
|
3482
|
+
}, z.core.$strip>;
|
|
3483
|
+
};
|
|
3484
|
+
};
|
|
3485
|
+
readonly description: "Authentication required.";
|
|
3486
|
+
};
|
|
3487
|
+
403: {
|
|
3488
|
+
readonly content: {
|
|
3489
|
+
readonly "application/json": {
|
|
3490
|
+
readonly schema: z.ZodObject<{
|
|
3491
|
+
error: z.ZodObject<{
|
|
3492
|
+
code: z.ZodString;
|
|
3493
|
+
message: z.ZodString;
|
|
3494
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3495
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3496
|
+
path: z.ZodString;
|
|
3497
|
+
message: z.ZodString;
|
|
3498
|
+
code: z.ZodString;
|
|
3499
|
+
}, z.core.$strip>>>;
|
|
3500
|
+
}, z.core.$strip>>;
|
|
3501
|
+
}, z.core.$strip>;
|
|
3502
|
+
}, z.core.$strip>;
|
|
3503
|
+
};
|
|
3504
|
+
};
|
|
3505
|
+
readonly description: "Insufficient permissions.";
|
|
3506
|
+
};
|
|
3507
|
+
404: {
|
|
3508
|
+
readonly content: {
|
|
3509
|
+
readonly "application/json": {
|
|
3510
|
+
readonly schema: z.ZodObject<{
|
|
3511
|
+
error: z.ZodObject<{
|
|
3512
|
+
code: z.ZodString;
|
|
3513
|
+
message: z.ZodString;
|
|
3514
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3515
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3516
|
+
path: z.ZodString;
|
|
3517
|
+
message: z.ZodString;
|
|
3518
|
+
code: z.ZodString;
|
|
3519
|
+
}, z.core.$strip>>>;
|
|
3520
|
+
}, z.core.$strip>>;
|
|
3521
|
+
}, z.core.$strip>;
|
|
3522
|
+
}, z.core.$strip>;
|
|
3523
|
+
};
|
|
3524
|
+
};
|
|
3525
|
+
readonly description: "Resource not found.";
|
|
3526
|
+
};
|
|
3527
|
+
422: {
|
|
3528
|
+
readonly content: {
|
|
3529
|
+
readonly "application/json": {
|
|
3530
|
+
readonly schema: z.ZodObject<{
|
|
3531
|
+
error: z.ZodObject<{
|
|
3532
|
+
code: z.ZodString;
|
|
3533
|
+
message: z.ZodString;
|
|
3534
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
3535
|
+
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3536
|
+
path: z.ZodString;
|
|
3537
|
+
message: z.ZodString;
|
|
3538
|
+
code: z.ZodString;
|
|
3539
|
+
}, z.core.$strip>>>;
|
|
3540
|
+
}, z.core.$strip>>;
|
|
3541
|
+
}, z.core.$strip>;
|
|
3542
|
+
}, z.core.$strip>;
|
|
3543
|
+
};
|
|
3544
|
+
};
|
|
3545
|
+
readonly description: "Validation error.";
|
|
3546
|
+
};
|
|
3547
|
+
200: {
|
|
3548
|
+
content: {
|
|
3549
|
+
"application/json": {
|
|
3550
|
+
schema: z.ZodObject<{
|
|
3551
|
+
data: z.ZodObject<{
|
|
3552
|
+
linked: z.ZodLiteral<true>;
|
|
3553
|
+
}, z.core.$strip>;
|
|
3554
|
+
}, z.core.$strip>;
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
3557
|
+
description: string;
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
} & {
|
|
3561
|
+
getRoutingPath(): "/entities/:id/brands/:brandId";
|
|
2353
3562
|
};
|
|
2354
|
-
export declare const
|
|
3563
|
+
export declare const createEntityRoute: {
|
|
2355
3564
|
method: "post";
|
|
2356
|
-
path: "/entities
|
|
3565
|
+
path: "/entities";
|
|
2357
3566
|
tags: string[];
|
|
2358
3567
|
summary: string;
|
|
2359
3568
|
request: {
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
3569
|
+
body: {
|
|
3570
|
+
content: {
|
|
3571
|
+
"application/json": {
|
|
3572
|
+
schema: z.ZodObject<{
|
|
3573
|
+
type: z.ZodString;
|
|
3574
|
+
slug: z.ZodString;
|
|
3575
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3576
|
+
taxClass: z.ZodOptional<z.ZodString>;
|
|
3577
|
+
basePrice: z.ZodOptional<z.ZodNumber>;
|
|
3578
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3579
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3580
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
3581
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
3582
|
+
title: z.ZodString;
|
|
3583
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3585
|
+
richDescription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3586
|
+
seoTitle: z.ZodOptional<z.ZodString>;
|
|
3587
|
+
seoDescription: z.ZodOptional<z.ZodString>;
|
|
3588
|
+
}, z.core.$strip>>;
|
|
3589
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3590
|
+
}, z.core.$strip>;
|
|
3591
|
+
};
|
|
3592
|
+
};
|
|
3593
|
+
required: true;
|
|
3594
|
+
};
|
|
2363
3595
|
};
|
|
2364
3596
|
responses: {
|
|
2365
3597
|
400: {
|
|
@@ -2462,7 +3694,7 @@ export declare const archiveEntityRoute: {
|
|
|
2462
3694
|
};
|
|
2463
3695
|
readonly description: "Validation error.";
|
|
2464
3696
|
};
|
|
2465
|
-
|
|
3697
|
+
201: {
|
|
2466
3698
|
content: {
|
|
2467
3699
|
"application/json": {
|
|
2468
3700
|
schema: z.ZodObject<{
|
|
@@ -2683,17 +3915,32 @@ export declare const archiveEntityRoute: {
|
|
|
2683
3915
|
};
|
|
2684
3916
|
};
|
|
2685
3917
|
} & {
|
|
2686
|
-
getRoutingPath(): "/entities
|
|
3918
|
+
getRoutingPath(): "/entities";
|
|
2687
3919
|
};
|
|
2688
|
-
export declare const
|
|
2689
|
-
method: "
|
|
2690
|
-
path: "/entities/{id}
|
|
3920
|
+
export declare const updateEntityRoute: {
|
|
3921
|
+
method: "patch";
|
|
3922
|
+
path: "/entities/{id}";
|
|
2691
3923
|
tags: string[];
|
|
2692
3924
|
summary: string;
|
|
2693
3925
|
request: {
|
|
2694
3926
|
params: z.ZodObject<{
|
|
2695
3927
|
id: z.ZodUUID;
|
|
2696
3928
|
}, z.core.$strip>;
|
|
3929
|
+
body: {
|
|
3930
|
+
content: {
|
|
3931
|
+
"application/json": {
|
|
3932
|
+
schema: z.ZodObject<{
|
|
3933
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
3934
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3935
|
+
taxClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3936
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3937
|
+
isVisible: z.ZodOptional<z.ZodBoolean>;
|
|
3938
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnknown>>>;
|
|
3939
|
+
}, z.core.$strip>;
|
|
3940
|
+
};
|
|
3941
|
+
};
|
|
3942
|
+
required: true;
|
|
3943
|
+
};
|
|
2697
3944
|
};
|
|
2698
3945
|
responses: {
|
|
2699
3946
|
400: {
|
|
@@ -2970,174 +4217,46 @@ export declare const discontinueEntityRoute: {
|
|
|
2970
4217
|
hasRuntimeDefault: false;
|
|
2971
4218
|
enumValues: undefined;
|
|
2972
4219
|
baseColumn: never;
|
|
2973
|
-
identity: undefined;
|
|
2974
|
-
generated: undefined;
|
|
2975
|
-
}, {}, {}>;
|
|
2976
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2977
|
-
name: "updated_at";
|
|
2978
|
-
tableName: "sellable_entities";
|
|
2979
|
-
dataType: "date";
|
|
2980
|
-
columnType: "PgTimestamp";
|
|
2981
|
-
data: Date;
|
|
2982
|
-
driverParam: string;
|
|
2983
|
-
notNull: true;
|
|
2984
|
-
hasDefault: true;
|
|
2985
|
-
isPrimaryKey: false;
|
|
2986
|
-
isAutoincrement: false;
|
|
2987
|
-
hasRuntimeDefault: false;
|
|
2988
|
-
enumValues: undefined;
|
|
2989
|
-
baseColumn: never;
|
|
2990
|
-
identity: undefined;
|
|
2991
|
-
generated: undefined;
|
|
2992
|
-
}, {}, {}>;
|
|
2993
|
-
publishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2994
|
-
name: "published_at";
|
|
2995
|
-
tableName: "sellable_entities";
|
|
2996
|
-
dataType: "date";
|
|
2997
|
-
columnType: "PgTimestamp";
|
|
2998
|
-
data: Date;
|
|
2999
|
-
driverParam: string;
|
|
3000
|
-
notNull: false;
|
|
3001
|
-
hasDefault: false;
|
|
3002
|
-
isPrimaryKey: false;
|
|
3003
|
-
isAutoincrement: false;
|
|
3004
|
-
hasRuntimeDefault: false;
|
|
3005
|
-
enumValues: undefined;
|
|
3006
|
-
baseColumn: never;
|
|
3007
|
-
identity: undefined;
|
|
3008
|
-
generated: undefined;
|
|
3009
|
-
}, {}, {}>;
|
|
3010
|
-
}, {
|
|
3011
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3012
|
-
}, undefined>;
|
|
3013
|
-
}, z.core.$strip>;
|
|
3014
|
-
};
|
|
3015
|
-
};
|
|
3016
|
-
description: string;
|
|
3017
|
-
};
|
|
3018
|
-
};
|
|
3019
|
-
} & {
|
|
3020
|
-
getRoutingPath(): "/entities/:id/discontinue";
|
|
3021
|
-
};
|
|
3022
|
-
export declare const addEntityToCategoryRoute: {
|
|
3023
|
-
method: "post";
|
|
3024
|
-
path: "/entities/{id}/categories/{categoryId}";
|
|
3025
|
-
tags: string[];
|
|
3026
|
-
summary: string;
|
|
3027
|
-
request: {
|
|
3028
|
-
params: z.ZodObject<{
|
|
3029
|
-
id: z.ZodUUID;
|
|
3030
|
-
categoryId: z.ZodUUID;
|
|
3031
|
-
}, z.core.$strip>;
|
|
3032
|
-
};
|
|
3033
|
-
responses: {
|
|
3034
|
-
400: {
|
|
3035
|
-
readonly content: {
|
|
3036
|
-
readonly "application/json": {
|
|
3037
|
-
readonly schema: z.ZodObject<{
|
|
3038
|
-
error: z.ZodObject<{
|
|
3039
|
-
code: z.ZodString;
|
|
3040
|
-
message: z.ZodString;
|
|
3041
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
3042
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3043
|
-
path: z.ZodString;
|
|
3044
|
-
message: z.ZodString;
|
|
3045
|
-
code: z.ZodString;
|
|
3046
|
-
}, z.core.$strip>>>;
|
|
3047
|
-
}, z.core.$strip>>;
|
|
3048
|
-
}, z.core.$strip>;
|
|
3049
|
-
}, z.core.$strip>;
|
|
3050
|
-
};
|
|
3051
|
-
};
|
|
3052
|
-
readonly description: "Business logic error.";
|
|
3053
|
-
};
|
|
3054
|
-
401: {
|
|
3055
|
-
readonly content: {
|
|
3056
|
-
readonly "application/json": {
|
|
3057
|
-
readonly schema: z.ZodObject<{
|
|
3058
|
-
error: z.ZodObject<{
|
|
3059
|
-
code: z.ZodString;
|
|
3060
|
-
message: z.ZodString;
|
|
3061
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
3062
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3063
|
-
path: z.ZodString;
|
|
3064
|
-
message: z.ZodString;
|
|
3065
|
-
code: z.ZodString;
|
|
3066
|
-
}, z.core.$strip>>>;
|
|
3067
|
-
}, z.core.$strip>>;
|
|
3068
|
-
}, z.core.$strip>;
|
|
3069
|
-
}, z.core.$strip>;
|
|
3070
|
-
};
|
|
3071
|
-
};
|
|
3072
|
-
readonly description: "Authentication required.";
|
|
3073
|
-
};
|
|
3074
|
-
403: {
|
|
3075
|
-
readonly content: {
|
|
3076
|
-
readonly "application/json": {
|
|
3077
|
-
readonly schema: z.ZodObject<{
|
|
3078
|
-
error: z.ZodObject<{
|
|
3079
|
-
code: z.ZodString;
|
|
3080
|
-
message: z.ZodString;
|
|
3081
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
3082
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3083
|
-
path: z.ZodString;
|
|
3084
|
-
message: z.ZodString;
|
|
3085
|
-
code: z.ZodString;
|
|
3086
|
-
}, z.core.$strip>>>;
|
|
3087
|
-
}, z.core.$strip>>;
|
|
3088
|
-
}, z.core.$strip>;
|
|
3089
|
-
}, z.core.$strip>;
|
|
3090
|
-
};
|
|
3091
|
-
};
|
|
3092
|
-
readonly description: "Insufficient permissions.";
|
|
3093
|
-
};
|
|
3094
|
-
404: {
|
|
3095
|
-
readonly content: {
|
|
3096
|
-
readonly "application/json": {
|
|
3097
|
-
readonly schema: z.ZodObject<{
|
|
3098
|
-
error: z.ZodObject<{
|
|
3099
|
-
code: z.ZodString;
|
|
3100
|
-
message: z.ZodString;
|
|
3101
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
3102
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3103
|
-
path: z.ZodString;
|
|
3104
|
-
message: z.ZodString;
|
|
3105
|
-
code: z.ZodString;
|
|
3106
|
-
}, z.core.$strip>>>;
|
|
3107
|
-
}, z.core.$strip>>;
|
|
3108
|
-
}, z.core.$strip>;
|
|
3109
|
-
}, z.core.$strip>;
|
|
3110
|
-
};
|
|
3111
|
-
};
|
|
3112
|
-
readonly description: "Resource not found.";
|
|
3113
|
-
};
|
|
3114
|
-
422: {
|
|
3115
|
-
readonly content: {
|
|
3116
|
-
readonly "application/json": {
|
|
3117
|
-
readonly schema: z.ZodObject<{
|
|
3118
|
-
error: z.ZodObject<{
|
|
3119
|
-
code: z.ZodString;
|
|
3120
|
-
message: z.ZodString;
|
|
3121
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
3122
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3123
|
-
path: z.ZodString;
|
|
3124
|
-
message: z.ZodString;
|
|
3125
|
-
code: z.ZodString;
|
|
3126
|
-
}, z.core.$strip>>>;
|
|
3127
|
-
}, z.core.$strip>>;
|
|
3128
|
-
}, z.core.$strip>;
|
|
3129
|
-
}, z.core.$strip>;
|
|
3130
|
-
};
|
|
3131
|
-
};
|
|
3132
|
-
readonly description: "Validation error.";
|
|
3133
|
-
};
|
|
3134
|
-
200: {
|
|
3135
|
-
content: {
|
|
3136
|
-
"application/json": {
|
|
3137
|
-
schema: z.ZodObject<{
|
|
3138
|
-
data: z.ZodObject<{
|
|
3139
|
-
linked: z.ZodLiteral<true>;
|
|
3140
|
-
}, z.core.$strip>;
|
|
4220
|
+
identity: undefined;
|
|
4221
|
+
generated: undefined;
|
|
4222
|
+
}, {}, {}>;
|
|
4223
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4224
|
+
name: "updated_at";
|
|
4225
|
+
tableName: "sellable_entities";
|
|
4226
|
+
dataType: "date";
|
|
4227
|
+
columnType: "PgTimestamp";
|
|
4228
|
+
data: Date;
|
|
4229
|
+
driverParam: string;
|
|
4230
|
+
notNull: true;
|
|
4231
|
+
hasDefault: true;
|
|
4232
|
+
isPrimaryKey: false;
|
|
4233
|
+
isAutoincrement: false;
|
|
4234
|
+
hasRuntimeDefault: false;
|
|
4235
|
+
enumValues: undefined;
|
|
4236
|
+
baseColumn: never;
|
|
4237
|
+
identity: undefined;
|
|
4238
|
+
generated: undefined;
|
|
4239
|
+
}, {}, {}>;
|
|
4240
|
+
publishedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4241
|
+
name: "published_at";
|
|
4242
|
+
tableName: "sellable_entities";
|
|
4243
|
+
dataType: "date";
|
|
4244
|
+
columnType: "PgTimestamp";
|
|
4245
|
+
data: Date;
|
|
4246
|
+
driverParam: string;
|
|
4247
|
+
notNull: false;
|
|
4248
|
+
hasDefault: false;
|
|
4249
|
+
isPrimaryKey: false;
|
|
4250
|
+
isAutoincrement: false;
|
|
4251
|
+
hasRuntimeDefault: false;
|
|
4252
|
+
enumValues: undefined;
|
|
4253
|
+
baseColumn: never;
|
|
4254
|
+
identity: undefined;
|
|
4255
|
+
generated: undefined;
|
|
4256
|
+
}, {}, {}>;
|
|
4257
|
+
}, {
|
|
4258
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4259
|
+
}, undefined>;
|
|
3141
4260
|
}, z.core.$strip>;
|
|
3142
4261
|
};
|
|
3143
4262
|
};
|
|
@@ -3145,18 +4264,26 @@ export declare const addEntityToCategoryRoute: {
|
|
|
3145
4264
|
};
|
|
3146
4265
|
};
|
|
3147
4266
|
} & {
|
|
3148
|
-
getRoutingPath(): "/entities/:id
|
|
4267
|
+
getRoutingPath(): "/entities/:id";
|
|
3149
4268
|
};
|
|
3150
|
-
export declare const
|
|
3151
|
-
method: "
|
|
3152
|
-
path: "/entities/{id}/
|
|
4269
|
+
export declare const setEntityAttributesRoute: {
|
|
4270
|
+
method: "put";
|
|
4271
|
+
path: "/entities/{id}/attributes/{locale}";
|
|
3153
4272
|
tags: string[];
|
|
3154
4273
|
summary: string;
|
|
3155
4274
|
request: {
|
|
3156
4275
|
params: z.ZodObject<{
|
|
3157
4276
|
id: z.ZodUUID;
|
|
3158
|
-
|
|
4277
|
+
locale: z.ZodString;
|
|
3159
4278
|
}, z.core.$strip>;
|
|
4279
|
+
body: {
|
|
4280
|
+
content: {
|
|
4281
|
+
"application/json": {
|
|
4282
|
+
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4283
|
+
};
|
|
4284
|
+
};
|
|
4285
|
+
required: true;
|
|
4286
|
+
};
|
|
3160
4287
|
};
|
|
3161
4288
|
responses: {
|
|
3162
4289
|
400: {
|
|
@@ -3264,7 +4391,7 @@ export declare const addEntityToBrandRoute: {
|
|
|
3264
4391
|
"application/json": {
|
|
3265
4392
|
schema: z.ZodObject<{
|
|
3266
4393
|
data: z.ZodObject<{
|
|
3267
|
-
|
|
4394
|
+
updated: z.ZodLiteral<true>;
|
|
3268
4395
|
}, z.core.$strip>;
|
|
3269
4396
|
}, z.core.$strip>;
|
|
3270
4397
|
};
|
|
@@ -3273,40 +4400,21 @@ export declare const addEntityToBrandRoute: {
|
|
|
3273
4400
|
};
|
|
3274
4401
|
};
|
|
3275
4402
|
} & {
|
|
3276
|
-
getRoutingPath(): "/entities/:id/
|
|
4403
|
+
getRoutingPath(): "/entities/:id/attributes/:locale";
|
|
3277
4404
|
};
|
|
3278
|
-
export declare const
|
|
4405
|
+
export declare const approveCustomFieldRoute: {
|
|
3279
4406
|
method: "post";
|
|
3280
|
-
path: "/entities";
|
|
4407
|
+
path: "/entities/{id}/custom-fields/{fieldName}/approve";
|
|
3281
4408
|
tags: string[];
|
|
3282
4409
|
summary: string;
|
|
3283
4410
|
request: {
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
taxClass: z.ZodOptional<z.ZodString>;
|
|
3292
|
-
basePrice: z.ZodOptional<z.ZodNumber>;
|
|
3293
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
3294
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3295
|
-
attributes: z.ZodOptional<z.ZodObject<{
|
|
3296
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
3297
|
-
title: z.ZodString;
|
|
3298
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
3299
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3300
|
-
richDescription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3301
|
-
seoTitle: z.ZodOptional<z.ZodString>;
|
|
3302
|
-
seoDescription: z.ZodOptional<z.ZodString>;
|
|
3303
|
-
}, z.core.$strip>>;
|
|
3304
|
-
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3305
|
-
}, z.core.$strip>;
|
|
3306
|
-
};
|
|
3307
|
-
};
|
|
3308
|
-
required: true;
|
|
3309
|
-
};
|
|
4411
|
+
params: z.ZodObject<{
|
|
4412
|
+
id: z.ZodUUID;
|
|
4413
|
+
fieldName: z.ZodString;
|
|
4414
|
+
}, z.core.$strip>;
|
|
4415
|
+
query: z.ZodObject<{
|
|
4416
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
4417
|
+
}, z.core.$strip>;
|
|
3310
4418
|
};
|
|
3311
4419
|
responses: {
|
|
3312
4420
|
400: {
|
|
@@ -3409,7 +4517,7 @@ export declare const createEntityRoute: {
|
|
|
3409
4517
|
};
|
|
3410
4518
|
readonly description: "Validation error.";
|
|
3411
4519
|
};
|
|
3412
|
-
|
|
4520
|
+
200: {
|
|
3413
4521
|
content: {
|
|
3414
4522
|
"application/json": {
|
|
3415
4523
|
schema: z.ZodObject<{
|
|
@@ -3630,31 +4738,21 @@ export declare const createEntityRoute: {
|
|
|
3630
4738
|
};
|
|
3631
4739
|
};
|
|
3632
4740
|
} & {
|
|
3633
|
-
getRoutingPath(): "/entities";
|
|
4741
|
+
getRoutingPath(): "/entities/:id/custom-fields/:fieldName/approve";
|
|
3634
4742
|
};
|
|
3635
|
-
export declare const
|
|
3636
|
-
method: "
|
|
3637
|
-
path: "/entities/{id}";
|
|
4743
|
+
export declare const rejectCustomFieldRoute: {
|
|
4744
|
+
method: "post";
|
|
4745
|
+
path: "/entities/{id}/custom-fields/{fieldName}/reject";
|
|
3638
4746
|
tags: string[];
|
|
3639
4747
|
summary: string;
|
|
3640
4748
|
request: {
|
|
3641
4749
|
params: z.ZodObject<{
|
|
3642
4750
|
id: z.ZodUUID;
|
|
4751
|
+
fieldName: z.ZodString;
|
|
4752
|
+
}, z.core.$strip>;
|
|
4753
|
+
query: z.ZodObject<{
|
|
4754
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
3643
4755
|
}, z.core.$strip>;
|
|
3644
|
-
body: {
|
|
3645
|
-
content: {
|
|
3646
|
-
"application/json": {
|
|
3647
|
-
schema: z.ZodObject<{
|
|
3648
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
3649
|
-
status: z.ZodOptional<z.ZodString>;
|
|
3650
|
-
taxClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3651
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3652
|
-
isVisible: z.ZodOptional<z.ZodBoolean>;
|
|
3653
|
-
}, z.core.$strip>;
|
|
3654
|
-
};
|
|
3655
|
-
};
|
|
3656
|
-
required: true;
|
|
3657
|
-
};
|
|
3658
4756
|
};
|
|
3659
4757
|
responses: {
|
|
3660
4758
|
400: {
|
|
@@ -3978,143 +5076,7 @@ export declare const updateEntityRoute: {
|
|
|
3978
5076
|
};
|
|
3979
5077
|
};
|
|
3980
5078
|
} & {
|
|
3981
|
-
getRoutingPath(): "/entities/:id";
|
|
3982
|
-
};
|
|
3983
|
-
export declare const setEntityAttributesRoute: {
|
|
3984
|
-
method: "put";
|
|
3985
|
-
path: "/entities/{id}/attributes/{locale}";
|
|
3986
|
-
tags: string[];
|
|
3987
|
-
summary: string;
|
|
3988
|
-
request: {
|
|
3989
|
-
params: z.ZodObject<{
|
|
3990
|
-
id: z.ZodUUID;
|
|
3991
|
-
locale: z.ZodString;
|
|
3992
|
-
}, z.core.$strip>;
|
|
3993
|
-
body: {
|
|
3994
|
-
content: {
|
|
3995
|
-
"application/json": {
|
|
3996
|
-
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3997
|
-
};
|
|
3998
|
-
};
|
|
3999
|
-
required: true;
|
|
4000
|
-
};
|
|
4001
|
-
};
|
|
4002
|
-
responses: {
|
|
4003
|
-
400: {
|
|
4004
|
-
readonly content: {
|
|
4005
|
-
readonly "application/json": {
|
|
4006
|
-
readonly schema: z.ZodObject<{
|
|
4007
|
-
error: z.ZodObject<{
|
|
4008
|
-
code: z.ZodString;
|
|
4009
|
-
message: z.ZodString;
|
|
4010
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
4011
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4012
|
-
path: z.ZodString;
|
|
4013
|
-
message: z.ZodString;
|
|
4014
|
-
code: z.ZodString;
|
|
4015
|
-
}, z.core.$strip>>>;
|
|
4016
|
-
}, z.core.$strip>>;
|
|
4017
|
-
}, z.core.$strip>;
|
|
4018
|
-
}, z.core.$strip>;
|
|
4019
|
-
};
|
|
4020
|
-
};
|
|
4021
|
-
readonly description: "Business logic error.";
|
|
4022
|
-
};
|
|
4023
|
-
401: {
|
|
4024
|
-
readonly content: {
|
|
4025
|
-
readonly "application/json": {
|
|
4026
|
-
readonly schema: z.ZodObject<{
|
|
4027
|
-
error: z.ZodObject<{
|
|
4028
|
-
code: z.ZodString;
|
|
4029
|
-
message: z.ZodString;
|
|
4030
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
4031
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4032
|
-
path: z.ZodString;
|
|
4033
|
-
message: z.ZodString;
|
|
4034
|
-
code: z.ZodString;
|
|
4035
|
-
}, z.core.$strip>>>;
|
|
4036
|
-
}, z.core.$strip>>;
|
|
4037
|
-
}, z.core.$strip>;
|
|
4038
|
-
}, z.core.$strip>;
|
|
4039
|
-
};
|
|
4040
|
-
};
|
|
4041
|
-
readonly description: "Authentication required.";
|
|
4042
|
-
};
|
|
4043
|
-
403: {
|
|
4044
|
-
readonly content: {
|
|
4045
|
-
readonly "application/json": {
|
|
4046
|
-
readonly schema: z.ZodObject<{
|
|
4047
|
-
error: z.ZodObject<{
|
|
4048
|
-
code: z.ZodString;
|
|
4049
|
-
message: z.ZodString;
|
|
4050
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
4051
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4052
|
-
path: z.ZodString;
|
|
4053
|
-
message: z.ZodString;
|
|
4054
|
-
code: z.ZodString;
|
|
4055
|
-
}, z.core.$strip>>>;
|
|
4056
|
-
}, z.core.$strip>>;
|
|
4057
|
-
}, z.core.$strip>;
|
|
4058
|
-
}, z.core.$strip>;
|
|
4059
|
-
};
|
|
4060
|
-
};
|
|
4061
|
-
readonly description: "Insufficient permissions.";
|
|
4062
|
-
};
|
|
4063
|
-
404: {
|
|
4064
|
-
readonly content: {
|
|
4065
|
-
readonly "application/json": {
|
|
4066
|
-
readonly schema: z.ZodObject<{
|
|
4067
|
-
error: z.ZodObject<{
|
|
4068
|
-
code: z.ZodString;
|
|
4069
|
-
message: z.ZodString;
|
|
4070
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
4071
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4072
|
-
path: z.ZodString;
|
|
4073
|
-
message: z.ZodString;
|
|
4074
|
-
code: z.ZodString;
|
|
4075
|
-
}, z.core.$strip>>>;
|
|
4076
|
-
}, z.core.$strip>>;
|
|
4077
|
-
}, z.core.$strip>;
|
|
4078
|
-
}, z.core.$strip>;
|
|
4079
|
-
};
|
|
4080
|
-
};
|
|
4081
|
-
readonly description: "Resource not found.";
|
|
4082
|
-
};
|
|
4083
|
-
422: {
|
|
4084
|
-
readonly content: {
|
|
4085
|
-
readonly "application/json": {
|
|
4086
|
-
readonly schema: z.ZodObject<{
|
|
4087
|
-
error: z.ZodObject<{
|
|
4088
|
-
code: z.ZodString;
|
|
4089
|
-
message: z.ZodString;
|
|
4090
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
4091
|
-
issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4092
|
-
path: z.ZodString;
|
|
4093
|
-
message: z.ZodString;
|
|
4094
|
-
code: z.ZodString;
|
|
4095
|
-
}, z.core.$strip>>>;
|
|
4096
|
-
}, z.core.$strip>>;
|
|
4097
|
-
}, z.core.$strip>;
|
|
4098
|
-
}, z.core.$strip>;
|
|
4099
|
-
};
|
|
4100
|
-
};
|
|
4101
|
-
readonly description: "Validation error.";
|
|
4102
|
-
};
|
|
4103
|
-
200: {
|
|
4104
|
-
content: {
|
|
4105
|
-
"application/json": {
|
|
4106
|
-
schema: z.ZodObject<{
|
|
4107
|
-
data: z.ZodObject<{
|
|
4108
|
-
updated: z.ZodLiteral<true>;
|
|
4109
|
-
}, z.core.$strip>;
|
|
4110
|
-
}, z.core.$strip>;
|
|
4111
|
-
};
|
|
4112
|
-
};
|
|
4113
|
-
description: string;
|
|
4114
|
-
};
|
|
4115
|
-
};
|
|
4116
|
-
} & {
|
|
4117
|
-
getRoutingPath(): "/entities/:id/attributes/:locale";
|
|
5079
|
+
getRoutingPath(): "/entities/:id/custom-fields/:fieldName/reject";
|
|
4118
5080
|
};
|
|
4119
5081
|
export declare const createCategoryRoute: {
|
|
4120
5082
|
method: "post";
|
|
@@ -6867,6 +7829,7 @@ export declare const createVariantRoute: {
|
|
|
6867
7829
|
"application/json": {
|
|
6868
7830
|
schema: z.ZodObject<{
|
|
6869
7831
|
sku: z.ZodOptional<z.ZodString>;
|
|
7832
|
+
barcode: z.ZodOptional<z.ZodString>;
|
|
6870
7833
|
options: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
6871
7834
|
price: z.ZodOptional<z.ZodNumber>;
|
|
6872
7835
|
taxClass: z.ZodOptional<z.ZodString>;
|