@visa-check-r/integrations 0.0.101 → 0.0.103
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 +120 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.esm.js +120 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -257,6 +257,15 @@ var userSchema = {
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
// src/services/user/user.entity.ts
|
|
260
|
+
var appConfigQuery = [
|
|
261
|
+
"createdAt",
|
|
262
|
+
"id",
|
|
263
|
+
"shortname",
|
|
264
|
+
"status",
|
|
265
|
+
"title",
|
|
266
|
+
"value",
|
|
267
|
+
"valueDefinition"
|
|
268
|
+
];
|
|
260
269
|
var notificationQuery = [
|
|
261
270
|
"id",
|
|
262
271
|
"userId",
|
|
@@ -1508,6 +1517,101 @@ var createNotificationService = (client) => ({
|
|
|
1508
1517
|
)
|
|
1509
1518
|
});
|
|
1510
1519
|
|
|
1520
|
+
// src/services/user/types/app-config.type.ts
|
|
1521
|
+
var ENTITY3 = "appConfig";
|
|
1522
|
+
var appConfigIntegration = createStandardEntityIntegration({
|
|
1523
|
+
key: ENTITY3,
|
|
1524
|
+
fields: appConfigQuery
|
|
1525
|
+
});
|
|
1526
|
+
var appConfigListIntegration = createListIntegration({
|
|
1527
|
+
key: "appConfigs",
|
|
1528
|
+
fields: appConfigQuery
|
|
1529
|
+
});
|
|
1530
|
+
var appConfigDeleteIntegration = createDeleteIntegration(ENTITY3);
|
|
1531
|
+
|
|
1532
|
+
// src/services/user/schemas/app-config.schema.ts
|
|
1533
|
+
var appConfigSchema = {
|
|
1534
|
+
get: {
|
|
1535
|
+
operation: "query",
|
|
1536
|
+
name: "getAppConfig",
|
|
1537
|
+
variables: "($appConfig: AppConfigInput!)",
|
|
1538
|
+
field: "(appConfig: $appConfig)"
|
|
1539
|
+
},
|
|
1540
|
+
list: {
|
|
1541
|
+
operation: "query",
|
|
1542
|
+
name: "listAppConfigs",
|
|
1543
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $appConfig: AppConfigInput, $appConfigIds: [String])",
|
|
1544
|
+
field: "(limit: $limit, skip: $skip, search: $search, appConfig: $appConfig, appConfigIds: $appConfigIds)"
|
|
1545
|
+
},
|
|
1546
|
+
create: {
|
|
1547
|
+
operation: "mutation",
|
|
1548
|
+
name: "createAppConfig",
|
|
1549
|
+
variables: "($appConfig: AppConfigInput!)",
|
|
1550
|
+
field: "(appConfig: $appConfig)"
|
|
1551
|
+
},
|
|
1552
|
+
update: {
|
|
1553
|
+
operation: "mutation",
|
|
1554
|
+
name: "updateAppConfig",
|
|
1555
|
+
variables: "($appConfigId: String!, $appConfig: AppConfigInput!)",
|
|
1556
|
+
field: "(appConfigId: $appConfigId, appConfig: $appConfig)"
|
|
1557
|
+
},
|
|
1558
|
+
delete: {
|
|
1559
|
+
operation: "mutation",
|
|
1560
|
+
name: "deleteAppConfig",
|
|
1561
|
+
variables: "($appConfigId: String!)",
|
|
1562
|
+
field: "(appConfigId: $appConfigId)"
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
// src/services/user/app-config.service.ts
|
|
1567
|
+
var createAppConfigService = (client) => ({
|
|
1568
|
+
createAppConfig: createOperationExecutor(
|
|
1569
|
+
client,
|
|
1570
|
+
"createAppConfig",
|
|
1571
|
+
{
|
|
1572
|
+
schema: buildSchema(appConfigSchema.create),
|
|
1573
|
+
defaultRootFields: appConfigIntegration.create.responseFields,
|
|
1574
|
+
defaultNestedFields: appConfigIntegration.create.nestedFields
|
|
1575
|
+
}
|
|
1576
|
+
),
|
|
1577
|
+
updateAppConfig: createOperationExecutor(
|
|
1578
|
+
client,
|
|
1579
|
+
"updateAppConfig",
|
|
1580
|
+
{
|
|
1581
|
+
schema: buildSchema(appConfigSchema.update),
|
|
1582
|
+
defaultRootFields: appConfigIntegration.update.responseFields,
|
|
1583
|
+
defaultNestedFields: appConfigIntegration.update.nestedFields
|
|
1584
|
+
}
|
|
1585
|
+
),
|
|
1586
|
+
getAppConfig: createOperationExecutor(
|
|
1587
|
+
client,
|
|
1588
|
+
"getAppConfig",
|
|
1589
|
+
{
|
|
1590
|
+
schema: buildSchema(appConfigSchema.get),
|
|
1591
|
+
defaultRootFields: appConfigIntegration.get.responseFields,
|
|
1592
|
+
defaultNestedFields: appConfigIntegration.get.nestedFields
|
|
1593
|
+
}
|
|
1594
|
+
),
|
|
1595
|
+
deleteAppConfig: createOperationExecutor(
|
|
1596
|
+
client,
|
|
1597
|
+
"deleteAppConfig",
|
|
1598
|
+
{
|
|
1599
|
+
schema: buildSchema(appConfigSchema.delete),
|
|
1600
|
+
defaultRootFields: appConfigDeleteIntegration.responseFields,
|
|
1601
|
+
defaultNestedFields: {}
|
|
1602
|
+
}
|
|
1603
|
+
),
|
|
1604
|
+
listAppConfigs: createOperationExecutor(
|
|
1605
|
+
client,
|
|
1606
|
+
"listAppConfigs",
|
|
1607
|
+
{
|
|
1608
|
+
schema: buildSchema(appConfigSchema.list),
|
|
1609
|
+
defaultRootFields: [...appConfigListIntegration.responseFields],
|
|
1610
|
+
defaultNestedFields: appConfigListIntegration.nestedFields
|
|
1611
|
+
}
|
|
1612
|
+
)
|
|
1613
|
+
});
|
|
1614
|
+
|
|
1511
1615
|
// src/services/checklist/schemas/checklist-item.schema.ts
|
|
1512
1616
|
var checklistItemSchema = {
|
|
1513
1617
|
getChecklistItemCount: (query) => `
|
|
@@ -3099,21 +3203,21 @@ var serviceCreditCostQuery = [
|
|
|
3099
3203
|
];
|
|
3100
3204
|
|
|
3101
3205
|
// src/services/subscription/types/coupon.type.ts
|
|
3102
|
-
var
|
|
3206
|
+
var ENTITY4 = "coupon";
|
|
3103
3207
|
var couponIntegration = createStandardEntityIntegration({
|
|
3104
|
-
key:
|
|
3208
|
+
key: ENTITY4,
|
|
3105
3209
|
fields: couponQuery
|
|
3106
3210
|
});
|
|
3107
3211
|
var couponListIntegration = createListIntegration({
|
|
3108
3212
|
key: "coupons",
|
|
3109
3213
|
fields: couponQuery
|
|
3110
3214
|
});
|
|
3111
|
-
var couponDeleteIntegration = createDeleteIntegration(
|
|
3215
|
+
var couponDeleteIntegration = createDeleteIntegration(ENTITY4);
|
|
3112
3216
|
|
|
3113
3217
|
// src/services/subscription/types/coupon-redemption.type.ts
|
|
3114
|
-
var
|
|
3218
|
+
var ENTITY5 = "couponRedemption";
|
|
3115
3219
|
var couponRedemptionIntegration = createStandardEntityIntegration({
|
|
3116
|
-
key:
|
|
3220
|
+
key: ENTITY5,
|
|
3117
3221
|
fields: couponRedemptionQuery,
|
|
3118
3222
|
nested: {
|
|
3119
3223
|
...couponIntegration.get.nestedFields
|
|
@@ -3126,24 +3230,24 @@ var couponRedemptionListIntegration = createListIntegration({
|
|
|
3126
3230
|
...couponIntegration.get.nestedFields
|
|
3127
3231
|
}
|
|
3128
3232
|
});
|
|
3129
|
-
var couponRedemptionDeleteIntegration = createDeleteIntegration(
|
|
3233
|
+
var couponRedemptionDeleteIntegration = createDeleteIntegration(ENTITY5);
|
|
3130
3234
|
|
|
3131
3235
|
// src/services/subscription/types/credit-plan.type.ts
|
|
3132
|
-
var
|
|
3236
|
+
var ENTITY6 = "creditPlan";
|
|
3133
3237
|
var creditPlanIntegration = createStandardEntityIntegration({
|
|
3134
|
-
key:
|
|
3238
|
+
key: ENTITY6,
|
|
3135
3239
|
fields: creditPlanQuery
|
|
3136
3240
|
});
|
|
3137
3241
|
var creditPlanListIntegration = createListIntegration({
|
|
3138
3242
|
key: "creditPlans",
|
|
3139
3243
|
fields: creditPlanQuery
|
|
3140
3244
|
});
|
|
3141
|
-
var creditPlanDeleteIntegration = createDeleteIntegration(
|
|
3245
|
+
var creditPlanDeleteIntegration = createDeleteIntegration(ENTITY6);
|
|
3142
3246
|
|
|
3143
3247
|
// src/services/subscription/types/credit-transaction.type.ts
|
|
3144
|
-
var
|
|
3248
|
+
var ENTITY7 = "creditTransaction";
|
|
3145
3249
|
var creditTransactionIntegration = createStandardEntityIntegration({
|
|
3146
|
-
key:
|
|
3250
|
+
key: ENTITY7,
|
|
3147
3251
|
fields: creditTransactionQuery,
|
|
3148
3252
|
nested: {
|
|
3149
3253
|
...getUserResponseNestedFields
|
|
@@ -3156,19 +3260,19 @@ var creditTransactionListIntegration = createListIntegration({
|
|
|
3156
3260
|
...getUserResponseNestedFields
|
|
3157
3261
|
}
|
|
3158
3262
|
});
|
|
3159
|
-
var creditTransactionDeleteIntegration = createDeleteIntegration(
|
|
3263
|
+
var creditTransactionDeleteIntegration = createDeleteIntegration(ENTITY7);
|
|
3160
3264
|
|
|
3161
3265
|
// src/services/subscription/types/service-credit-cost.type.ts
|
|
3162
|
-
var
|
|
3266
|
+
var ENTITY8 = "serviceCreditCost";
|
|
3163
3267
|
var serviceCreditCostIntegration = createStandardEntityIntegration({
|
|
3164
|
-
key:
|
|
3268
|
+
key: ENTITY8,
|
|
3165
3269
|
fields: serviceCreditCostQuery
|
|
3166
3270
|
});
|
|
3167
3271
|
var serviceCreditCostListIntegration = createListIntegration({
|
|
3168
3272
|
key: "serviceCreditCosts",
|
|
3169
3273
|
fields: serviceCreditCostQuery
|
|
3170
3274
|
});
|
|
3171
|
-
var serviceCreditCostDeleteIntegration = createDeleteIntegration(
|
|
3275
|
+
var serviceCreditCostDeleteIntegration = createDeleteIntegration(ENTITY8);
|
|
3172
3276
|
|
|
3173
3277
|
// src/services/subscription/schemas/flutter-customer.schema.ts
|
|
3174
3278
|
var flutterSchema = {
|
|
@@ -3794,6 +3898,7 @@ exports.couponRedemptionIntegration = couponRedemptionIntegration;
|
|
|
3794
3898
|
exports.couponRedemptionListIntegration = couponRedemptionListIntegration;
|
|
3795
3899
|
exports.createAIServerService = createAIServerService;
|
|
3796
3900
|
exports.createActivityLogService = createActivityLogService;
|
|
3901
|
+
exports.createAppConfigService = createAppConfigService;
|
|
3797
3902
|
exports.createAuthService = createAuthService;
|
|
3798
3903
|
exports.createCardObjectResponse = createCardObjectResponse;
|
|
3799
3904
|
exports.createChecklistItemResponse = createChecklistItemResponse;
|