@connect-plus-online/ogabai-integrations 0.0.59 → 0.0.61
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.js +116 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.esm.js +116 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -230,6 +230,14 @@ var userSchema = {
|
|
|
230
230
|
var user_schema_default = userSchema;
|
|
231
231
|
|
|
232
232
|
// src/services/user/user.entity.ts
|
|
233
|
+
var applicationFeatureQuery = [
|
|
234
|
+
"createdAt",
|
|
235
|
+
"description",
|
|
236
|
+
"id",
|
|
237
|
+
"name",
|
|
238
|
+
"shortname",
|
|
239
|
+
"applicationFeatureStatus"
|
|
240
|
+
];
|
|
233
241
|
var privilegeQuery = [
|
|
234
242
|
"actions",
|
|
235
243
|
"feature"
|
|
@@ -241,7 +249,8 @@ var userAccountQuery = [
|
|
|
241
249
|
"userId",
|
|
242
250
|
"userRoleId",
|
|
243
251
|
"store",
|
|
244
|
-
"userRole"
|
|
252
|
+
"userRole",
|
|
253
|
+
"user"
|
|
245
254
|
];
|
|
246
255
|
var userRoleQuery = [
|
|
247
256
|
"createdAt",
|
|
@@ -922,7 +931,8 @@ var userAccountIntegration = createStandardEntityIntegration({
|
|
|
922
931
|
nested: {
|
|
923
932
|
userAccount: userAccountQuery,
|
|
924
933
|
store: storeQuery,
|
|
925
|
-
privileges: privilegeQuery
|
|
934
|
+
privileges: privilegeQuery,
|
|
935
|
+
user: userQuery
|
|
926
936
|
}
|
|
927
937
|
});
|
|
928
938
|
var userAccountListIntegration = createListIntegration({
|
|
@@ -931,7 +941,8 @@ var userAccountListIntegration = createListIntegration({
|
|
|
931
941
|
nested: {
|
|
932
942
|
privileges: privilegeQuery,
|
|
933
943
|
userAccount: userAccountQuery,
|
|
934
|
-
store: storeQuery
|
|
944
|
+
store: storeQuery,
|
|
945
|
+
user: userQuery
|
|
935
946
|
}
|
|
936
947
|
});
|
|
937
948
|
var userAccountDeleteIntegration = createDeleteIntegration(ENTITY);
|
|
@@ -1155,6 +1166,107 @@ var createUserRoleService = (client) => ({
|
|
|
1155
1166
|
)
|
|
1156
1167
|
});
|
|
1157
1168
|
|
|
1169
|
+
// src/services/user/types/application-feature.type.ts
|
|
1170
|
+
var ENTITY3 = "applicationFeature";
|
|
1171
|
+
var applicationFeatureIntegration = createStandardEntityIntegration({
|
|
1172
|
+
key: ENTITY3,
|
|
1173
|
+
fields: applicationFeatureQuery,
|
|
1174
|
+
nested: {
|
|
1175
|
+
privileges: privilegeQuery
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
var applicationFeatureListIntegration = createListIntegration({
|
|
1179
|
+
key: "applicationFeatures",
|
|
1180
|
+
fields: applicationFeatureQuery,
|
|
1181
|
+
nested: {
|
|
1182
|
+
privileges: privilegeQuery
|
|
1183
|
+
}
|
|
1184
|
+
});
|
|
1185
|
+
var applicationFeatureDeleteIntegration = createDeleteIntegration(ENTITY3);
|
|
1186
|
+
|
|
1187
|
+
// src/services/user/schemas/application-feature.schema.ts
|
|
1188
|
+
var applicationFeatureSchema = {
|
|
1189
|
+
get: {
|
|
1190
|
+
operation: "query",
|
|
1191
|
+
name: "getApplicationFeature",
|
|
1192
|
+
variables: "($applicationFeature: ApplicationFeatureInput!)",
|
|
1193
|
+
field: "(applicationFeature: $applicationFeature)"
|
|
1194
|
+
},
|
|
1195
|
+
list: {
|
|
1196
|
+
operation: "query",
|
|
1197
|
+
name: "getApplicationFeatures",
|
|
1198
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $applicationFeature: ApplicationFeatureInput, $applicationFeatureIds: [String])",
|
|
1199
|
+
field: "(limit: $limit, skip: $skip, search: $search, applicationFeature: $applicationFeature, applicationFeatureIds: $applicationFeatureIds)"
|
|
1200
|
+
},
|
|
1201
|
+
create: {
|
|
1202
|
+
operation: "mutation",
|
|
1203
|
+
name: "createApplicationFeature",
|
|
1204
|
+
variables: "($applicationFeature: ApplicationFeatureInput!)",
|
|
1205
|
+
field: "(applicationFeature: $applicationFeature)"
|
|
1206
|
+
},
|
|
1207
|
+
update: {
|
|
1208
|
+
operation: "mutation",
|
|
1209
|
+
name: "updateApplicationFeature",
|
|
1210
|
+
variables: "($applicationFeatureId: String!, $applicationFeature: ApplicationFeatureInput!)",
|
|
1211
|
+
field: "(applicationFeatureId: $applicationFeatureId, applicationFeature: $applicationFeature)"
|
|
1212
|
+
},
|
|
1213
|
+
delete: {
|
|
1214
|
+
operation: "mutation",
|
|
1215
|
+
name: "removeApplicationFeature",
|
|
1216
|
+
variables: "($applicationFeatureId: String!)",
|
|
1217
|
+
field: "(applicationFeatureId: $applicationFeatureId)"
|
|
1218
|
+
}
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
// src/services/user/application-feature.service.ts
|
|
1222
|
+
var createApplicationFeatureService = (client) => ({
|
|
1223
|
+
createApplicationFeature: createOperationExecutor(
|
|
1224
|
+
client,
|
|
1225
|
+
"createApplicationFeature",
|
|
1226
|
+
{
|
|
1227
|
+
schema: buildSchema(applicationFeatureSchema.create),
|
|
1228
|
+
defaultRootFields: applicationFeatureIntegration.create.responseFields,
|
|
1229
|
+
defaultNestedFields: applicationFeatureIntegration.create.nestedFields
|
|
1230
|
+
}
|
|
1231
|
+
),
|
|
1232
|
+
updateApplicationFeature: createOperationExecutor(
|
|
1233
|
+
client,
|
|
1234
|
+
"updateApplicationFeature",
|
|
1235
|
+
{
|
|
1236
|
+
schema: buildSchema(applicationFeatureSchema.update),
|
|
1237
|
+
defaultRootFields: applicationFeatureIntegration.update.responseFields,
|
|
1238
|
+
defaultNestedFields: applicationFeatureIntegration.update.nestedFields
|
|
1239
|
+
}
|
|
1240
|
+
),
|
|
1241
|
+
getApplicationFeature: createOperationExecutor(
|
|
1242
|
+
client,
|
|
1243
|
+
"getApplicationFeature",
|
|
1244
|
+
{
|
|
1245
|
+
schema: buildSchema(applicationFeatureSchema.get),
|
|
1246
|
+
defaultRootFields: applicationFeatureIntegration.get.responseFields,
|
|
1247
|
+
defaultNestedFields: applicationFeatureIntegration.get.nestedFields
|
|
1248
|
+
}
|
|
1249
|
+
),
|
|
1250
|
+
removeApplicationFeature: createOperationExecutor(
|
|
1251
|
+
client,
|
|
1252
|
+
"removeApplicationFeature",
|
|
1253
|
+
{
|
|
1254
|
+
schema: buildSchema(applicationFeatureSchema.delete),
|
|
1255
|
+
defaultRootFields: applicationFeatureDeleteIntegration.responseFields,
|
|
1256
|
+
defaultNestedFields: {}
|
|
1257
|
+
}
|
|
1258
|
+
),
|
|
1259
|
+
getApplicationFeatures: createOperationExecutor(
|
|
1260
|
+
client,
|
|
1261
|
+
"getApplicationFeatures",
|
|
1262
|
+
{
|
|
1263
|
+
schema: buildSchema(applicationFeatureSchema.list),
|
|
1264
|
+
defaultRootFields: [...applicationFeatureListIntegration.responseFields],
|
|
1265
|
+
defaultNestedFields: applicationFeatureListIntegration.nestedFields
|
|
1266
|
+
}
|
|
1267
|
+
)
|
|
1268
|
+
});
|
|
1269
|
+
|
|
1158
1270
|
// src/services/inventory/types/product.type.ts
|
|
1159
1271
|
var getCustomerProductCountsByIdsResponse = [
|
|
1160
1272
|
"customersProductCounts"
|
|
@@ -3132,6 +3244,7 @@ exports.addSubscriptionResponseNestedFields = addSubscriptionResponseNestedField
|
|
|
3132
3244
|
exports.addTransactionResponse = addTransactionResponse;
|
|
3133
3245
|
exports.addTransactionResponseNestedFields = addTransactionResponseNestedFields;
|
|
3134
3246
|
exports.compose = compose;
|
|
3247
|
+
exports.createApplicationFeatureService = createApplicationFeatureService;
|
|
3135
3248
|
exports.createAuthService = createAuthService;
|
|
3136
3249
|
exports.createOrderService = createOrderService;
|
|
3137
3250
|
exports.createPackageService = createPackageService;
|