@connect-plus-online/ogabai-integrations 0.0.60 → 0.0.62
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 +104 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.esm.js +104 -1
- 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"
|
|
@@ -1158,6 +1166,101 @@ var createUserRoleService = (client) => ({
|
|
|
1158
1166
|
)
|
|
1159
1167
|
});
|
|
1160
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
|
+
});
|
|
1175
|
+
var applicationFeatureListIntegration = createListIntegration({
|
|
1176
|
+
key: "applicationFeatures",
|
|
1177
|
+
fields: applicationFeatureQuery
|
|
1178
|
+
});
|
|
1179
|
+
var applicationFeatureDeleteIntegration = createDeleteIntegration(ENTITY3);
|
|
1180
|
+
|
|
1181
|
+
// src/services/user/schemas/application-feature.schema.ts
|
|
1182
|
+
var applicationFeatureSchema = {
|
|
1183
|
+
get: {
|
|
1184
|
+
operation: "query",
|
|
1185
|
+
name: "getApplicationFeature",
|
|
1186
|
+
variables: "($applicationFeature: ApplicationFeatureInput!)",
|
|
1187
|
+
field: "(applicationFeature: $applicationFeature)"
|
|
1188
|
+
},
|
|
1189
|
+
list: {
|
|
1190
|
+
operation: "query",
|
|
1191
|
+
name: "getApplicationFeatures",
|
|
1192
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $applicationFeature: ApplicationFeatureInput, $applicationFeatureIds: [String])",
|
|
1193
|
+
field: "(limit: $limit, skip: $skip, search: $search, applicationFeature: $applicationFeature, applicationFeatureIds: $applicationFeatureIds)"
|
|
1194
|
+
},
|
|
1195
|
+
create: {
|
|
1196
|
+
operation: "mutation",
|
|
1197
|
+
name: "createApplicationFeature",
|
|
1198
|
+
variables: "($applicationFeature: ApplicationFeatureInput!)",
|
|
1199
|
+
field: "(applicationFeature: $applicationFeature)"
|
|
1200
|
+
},
|
|
1201
|
+
update: {
|
|
1202
|
+
operation: "mutation",
|
|
1203
|
+
name: "updateApplicationFeature",
|
|
1204
|
+
variables: "($applicationFeatureId: String!, $applicationFeature: ApplicationFeatureInput!)",
|
|
1205
|
+
field: "(applicationFeatureId: $applicationFeatureId, applicationFeature: $applicationFeature)"
|
|
1206
|
+
},
|
|
1207
|
+
delete: {
|
|
1208
|
+
operation: "mutation",
|
|
1209
|
+
name: "removeApplicationFeature",
|
|
1210
|
+
variables: "($applicationFeatureId: String!)",
|
|
1211
|
+
field: "(applicationFeatureId: $applicationFeatureId)"
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
// src/services/user/application-feature.service.ts
|
|
1216
|
+
var createApplicationFeatureService = (client) => ({
|
|
1217
|
+
createApplicationFeature: createOperationExecutor(
|
|
1218
|
+
client,
|
|
1219
|
+
"createApplicationFeature",
|
|
1220
|
+
{
|
|
1221
|
+
schema: buildSchema(applicationFeatureSchema.create),
|
|
1222
|
+
defaultRootFields: [...applicationFeatureIntegration.create.responseFields, "pin"],
|
|
1223
|
+
defaultNestedFields: applicationFeatureIntegration.create.nestedFields
|
|
1224
|
+
}
|
|
1225
|
+
),
|
|
1226
|
+
updateApplicationFeature: createOperationExecutor(
|
|
1227
|
+
client,
|
|
1228
|
+
"updateApplicationFeature",
|
|
1229
|
+
{
|
|
1230
|
+
schema: buildSchema(applicationFeatureSchema.update),
|
|
1231
|
+
defaultRootFields: applicationFeatureIntegration.update.responseFields,
|
|
1232
|
+
defaultNestedFields: applicationFeatureIntegration.update.nestedFields
|
|
1233
|
+
}
|
|
1234
|
+
),
|
|
1235
|
+
getApplicationFeature: createOperationExecutor(
|
|
1236
|
+
client,
|
|
1237
|
+
"getApplicationFeature",
|
|
1238
|
+
{
|
|
1239
|
+
schema: buildSchema(applicationFeatureSchema.get),
|
|
1240
|
+
defaultRootFields: applicationFeatureIntegration.get.responseFields,
|
|
1241
|
+
defaultNestedFields: applicationFeatureIntegration.get.nestedFields
|
|
1242
|
+
}
|
|
1243
|
+
),
|
|
1244
|
+
removeApplicationFeature: createOperationExecutor(
|
|
1245
|
+
client,
|
|
1246
|
+
"removeApplicationFeature",
|
|
1247
|
+
{
|
|
1248
|
+
schema: buildSchema(applicationFeatureSchema.delete),
|
|
1249
|
+
defaultRootFields: applicationFeatureDeleteIntegration.responseFields,
|
|
1250
|
+
defaultNestedFields: {}
|
|
1251
|
+
}
|
|
1252
|
+
),
|
|
1253
|
+
getApplicationFeatures: createOperationExecutor(
|
|
1254
|
+
client,
|
|
1255
|
+
"getApplicationFeatures",
|
|
1256
|
+
{
|
|
1257
|
+
schema: buildSchema(applicationFeatureSchema.list),
|
|
1258
|
+
defaultRootFields: [...applicationFeatureListIntegration.responseFields],
|
|
1259
|
+
defaultNestedFields: applicationFeatureListIntegration.nestedFields
|
|
1260
|
+
}
|
|
1261
|
+
)
|
|
1262
|
+
});
|
|
1263
|
+
|
|
1161
1264
|
// src/services/inventory/types/product.type.ts
|
|
1162
1265
|
var getCustomerProductCountsByIdsResponse = [
|
|
1163
1266
|
"customersProductCounts"
|
|
@@ -3135,6 +3238,7 @@ exports.addSubscriptionResponseNestedFields = addSubscriptionResponseNestedField
|
|
|
3135
3238
|
exports.addTransactionResponse = addTransactionResponse;
|
|
3136
3239
|
exports.addTransactionResponseNestedFields = addTransactionResponseNestedFields;
|
|
3137
3240
|
exports.compose = compose;
|
|
3241
|
+
exports.createApplicationFeatureService = createApplicationFeatureService;
|
|
3138
3242
|
exports.createAuthService = createAuthService;
|
|
3139
3243
|
exports.createOrderService = createOrderService;
|
|
3140
3244
|
exports.createPackageService = createPackageService;
|