@visa-check-r/integrations 0.0.100 → 0.0.102
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 +128 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +49 -15
- package/dist/index.d.ts +49 -15
- package/dist/index.esm.js +128 -23
- 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",
|
|
@@ -361,13 +370,6 @@ var userQuery = [
|
|
|
361
370
|
];
|
|
362
371
|
|
|
363
372
|
// src/services/user/types/user.type.ts
|
|
364
|
-
var listPartnerClientsResponseFields = [
|
|
365
|
-
"clients",
|
|
366
|
-
"total"
|
|
367
|
-
];
|
|
368
|
-
var listPartnerClientsResponseNestedFields = {
|
|
369
|
-
clients: userQuery
|
|
370
|
-
};
|
|
371
373
|
var getPartnerMatricesResponseFields = ["partnerMatrices"];
|
|
372
374
|
var getPartnerMatricesResponseNestedFields = {
|
|
373
375
|
partnerMatrices: partnerMatricesQuery
|
|
@@ -408,6 +410,14 @@ var createUserResponseNestedFields = getUserResponseNestedFields;
|
|
|
408
410
|
var updateUserResponseFields = getUserResponseFields;
|
|
409
411
|
var updateUserResponseNestedFields = getUserResponseNestedFields;
|
|
410
412
|
var deleteUserResponseFields = ["userId"];
|
|
413
|
+
var listPartnerClientsResponseFields = [
|
|
414
|
+
"clients",
|
|
415
|
+
"total"
|
|
416
|
+
];
|
|
417
|
+
var listPartnerClientsResponseNestedFields = {
|
|
418
|
+
..._getUserResponseNestedFields,
|
|
419
|
+
clients: userQuery
|
|
420
|
+
};
|
|
411
421
|
|
|
412
422
|
// src/services/user/user.service.ts
|
|
413
423
|
var createUserService = (client) => ({
|
|
@@ -1507,6 +1517,101 @@ var createNotificationService = (client) => ({
|
|
|
1507
1517
|
)
|
|
1508
1518
|
});
|
|
1509
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: "($coupon: AppConfigInput!)",
|
|
1538
|
+
field: "(coupon: $coupon)"
|
|
1539
|
+
},
|
|
1540
|
+
list: {
|
|
1541
|
+
operation: "query",
|
|
1542
|
+
name: "listAppConfigs",
|
|
1543
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $coupon: AppConfigInput, $couponIds: [String])",
|
|
1544
|
+
field: "(limit: $limit, skip: $skip, search: $search, coupon: $coupon, couponIds: $couponIds)"
|
|
1545
|
+
},
|
|
1546
|
+
create: {
|
|
1547
|
+
operation: "mutation",
|
|
1548
|
+
name: "createAppConfig",
|
|
1549
|
+
variables: "($coupon: AppConfigInput!)",
|
|
1550
|
+
field: "(coupon: $coupon)"
|
|
1551
|
+
},
|
|
1552
|
+
update: {
|
|
1553
|
+
operation: "mutation",
|
|
1554
|
+
name: "updateAppConfig",
|
|
1555
|
+
variables: "($couponId: String!, $coupon: AppConfigInput!)",
|
|
1556
|
+
field: "(couponId: $couponId, coupon: $coupon)"
|
|
1557
|
+
},
|
|
1558
|
+
delete: {
|
|
1559
|
+
operation: "mutation",
|
|
1560
|
+
name: "deleteAppConfig",
|
|
1561
|
+
variables: "($couponId: String!)",
|
|
1562
|
+
field: "(couponId: $couponId)"
|
|
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
|
+
|
|
1510
1615
|
// src/services/checklist/schemas/checklist-item.schema.ts
|
|
1511
1616
|
var checklistItemSchema = {
|
|
1512
1617
|
getChecklistItemCount: (query) => `
|
|
@@ -3098,21 +3203,21 @@ var serviceCreditCostQuery = [
|
|
|
3098
3203
|
];
|
|
3099
3204
|
|
|
3100
3205
|
// src/services/subscription/types/coupon.type.ts
|
|
3101
|
-
var
|
|
3206
|
+
var ENTITY4 = "coupon";
|
|
3102
3207
|
var couponIntegration = createStandardEntityIntegration({
|
|
3103
|
-
key:
|
|
3208
|
+
key: ENTITY4,
|
|
3104
3209
|
fields: couponQuery
|
|
3105
3210
|
});
|
|
3106
3211
|
var couponListIntegration = createListIntegration({
|
|
3107
3212
|
key: "coupons",
|
|
3108
3213
|
fields: couponQuery
|
|
3109
3214
|
});
|
|
3110
|
-
var couponDeleteIntegration = createDeleteIntegration(
|
|
3215
|
+
var couponDeleteIntegration = createDeleteIntegration(ENTITY4);
|
|
3111
3216
|
|
|
3112
3217
|
// src/services/subscription/types/coupon-redemption.type.ts
|
|
3113
|
-
var
|
|
3218
|
+
var ENTITY5 = "couponRedemption";
|
|
3114
3219
|
var couponRedemptionIntegration = createStandardEntityIntegration({
|
|
3115
|
-
key:
|
|
3220
|
+
key: ENTITY5,
|
|
3116
3221
|
fields: couponRedemptionQuery,
|
|
3117
3222
|
nested: {
|
|
3118
3223
|
...couponIntegration.get.nestedFields
|
|
@@ -3125,24 +3230,24 @@ var couponRedemptionListIntegration = createListIntegration({
|
|
|
3125
3230
|
...couponIntegration.get.nestedFields
|
|
3126
3231
|
}
|
|
3127
3232
|
});
|
|
3128
|
-
var couponRedemptionDeleteIntegration = createDeleteIntegration(
|
|
3233
|
+
var couponRedemptionDeleteIntegration = createDeleteIntegration(ENTITY5);
|
|
3129
3234
|
|
|
3130
3235
|
// src/services/subscription/types/credit-plan.type.ts
|
|
3131
|
-
var
|
|
3236
|
+
var ENTITY6 = "creditPlan";
|
|
3132
3237
|
var creditPlanIntegration = createStandardEntityIntegration({
|
|
3133
|
-
key:
|
|
3238
|
+
key: ENTITY6,
|
|
3134
3239
|
fields: creditPlanQuery
|
|
3135
3240
|
});
|
|
3136
3241
|
var creditPlanListIntegration = createListIntegration({
|
|
3137
3242
|
key: "creditPlans",
|
|
3138
3243
|
fields: creditPlanQuery
|
|
3139
3244
|
});
|
|
3140
|
-
var creditPlanDeleteIntegration = createDeleteIntegration(
|
|
3245
|
+
var creditPlanDeleteIntegration = createDeleteIntegration(ENTITY6);
|
|
3141
3246
|
|
|
3142
3247
|
// src/services/subscription/types/credit-transaction.type.ts
|
|
3143
|
-
var
|
|
3248
|
+
var ENTITY7 = "creditTransaction";
|
|
3144
3249
|
var creditTransactionIntegration = createStandardEntityIntegration({
|
|
3145
|
-
key:
|
|
3250
|
+
key: ENTITY7,
|
|
3146
3251
|
fields: creditTransactionQuery,
|
|
3147
3252
|
nested: {
|
|
3148
3253
|
...getUserResponseNestedFields
|
|
@@ -3155,19 +3260,19 @@ var creditTransactionListIntegration = createListIntegration({
|
|
|
3155
3260
|
...getUserResponseNestedFields
|
|
3156
3261
|
}
|
|
3157
3262
|
});
|
|
3158
|
-
var creditTransactionDeleteIntegration = createDeleteIntegration(
|
|
3263
|
+
var creditTransactionDeleteIntegration = createDeleteIntegration(ENTITY7);
|
|
3159
3264
|
|
|
3160
3265
|
// src/services/subscription/types/service-credit-cost.type.ts
|
|
3161
|
-
var
|
|
3266
|
+
var ENTITY8 = "serviceCreditCost";
|
|
3162
3267
|
var serviceCreditCostIntegration = createStandardEntityIntegration({
|
|
3163
|
-
key:
|
|
3268
|
+
key: ENTITY8,
|
|
3164
3269
|
fields: serviceCreditCostQuery
|
|
3165
3270
|
});
|
|
3166
3271
|
var serviceCreditCostListIntegration = createListIntegration({
|
|
3167
3272
|
key: "serviceCreditCosts",
|
|
3168
3273
|
fields: serviceCreditCostQuery
|
|
3169
3274
|
});
|
|
3170
|
-
var serviceCreditCostDeleteIntegration = createDeleteIntegration(
|
|
3275
|
+
var serviceCreditCostDeleteIntegration = createDeleteIntegration(ENTITY8);
|
|
3171
3276
|
|
|
3172
3277
|
// src/services/subscription/schemas/flutter-customer.schema.ts
|
|
3173
3278
|
var flutterSchema = {
|
|
@@ -3793,6 +3898,7 @@ exports.couponRedemptionIntegration = couponRedemptionIntegration;
|
|
|
3793
3898
|
exports.couponRedemptionListIntegration = couponRedemptionListIntegration;
|
|
3794
3899
|
exports.createAIServerService = createAIServerService;
|
|
3795
3900
|
exports.createActivityLogService = createActivityLogService;
|
|
3901
|
+
exports.createAppConfigService = createAppConfigService;
|
|
3796
3902
|
exports.createAuthService = createAuthService;
|
|
3797
3903
|
exports.createCardObjectResponse = createCardObjectResponse;
|
|
3798
3904
|
exports.createChecklistItemResponse = createChecklistItemResponse;
|