@connect-plus-online/ogabai-integrations 0.0.99 → 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 +55 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.esm.js +55 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// src/types/user.ts
|
|
4
|
+
var AppNewFeatures = /* @__PURE__ */ ((AppNewFeatures2) => {
|
|
5
|
+
AppNewFeatures2["ExpenseTracker"] = "expenseTracker";
|
|
6
|
+
AppNewFeatures2["ProductImport"] = "productImport";
|
|
7
|
+
return AppNewFeatures2;
|
|
8
|
+
})(AppNewFeatures || {});
|
|
4
9
|
var userRoleExample = {
|
|
5
10
|
name: "Admin",
|
|
6
11
|
description: "Admin",
|
|
@@ -223,6 +228,21 @@ function gqlQueryStringBuilder(query, nestedValues) {
|
|
|
223
228
|
|
|
224
229
|
// src/services/user/schemas/user.schema.ts
|
|
225
230
|
var userSchema = {
|
|
231
|
+
// test features
|
|
232
|
+
getTestFeatureEnabled: (query) => `
|
|
233
|
+
query getTestFeatureEnabled {
|
|
234
|
+
getTestFeatureEnabled {
|
|
235
|
+
${query}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
`,
|
|
239
|
+
getTestFeatures: (query) => `
|
|
240
|
+
query getTestFeatures {
|
|
241
|
+
getTestFeatures {
|
|
242
|
+
${query}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
`,
|
|
226
246
|
// admin dashboard stats
|
|
227
247
|
getUserTypeCounts: (query) => `
|
|
228
248
|
query getUserTypeCounts {
|
|
@@ -1283,6 +1303,12 @@ var createSubscriptionTrialService = (client) => ({
|
|
|
1283
1303
|
});
|
|
1284
1304
|
|
|
1285
1305
|
// src/services/user/types/user.type.ts
|
|
1306
|
+
var getAppTestFeatureEnabledResponse = [
|
|
1307
|
+
"testFeatureEnabled"
|
|
1308
|
+
];
|
|
1309
|
+
var getAppTestFeaturesResponse = [
|
|
1310
|
+
"testFeatures"
|
|
1311
|
+
];
|
|
1286
1312
|
var getUserTypeCountsResponse = [
|
|
1287
1313
|
"userTypeCounts"
|
|
1288
1314
|
];
|
|
@@ -1340,7 +1366,8 @@ var meResponse = [
|
|
|
1340
1366
|
"stores",
|
|
1341
1367
|
"userSetting",
|
|
1342
1368
|
"userAccounts",
|
|
1343
|
-
"subscription"
|
|
1369
|
+
"subscription",
|
|
1370
|
+
"newFeaturesAllowed"
|
|
1344
1371
|
];
|
|
1345
1372
|
var meResponseNestedFields = {
|
|
1346
1373
|
stores: storeQuery,
|
|
@@ -1353,6 +1380,32 @@ var meResponseNestedFields = {
|
|
|
1353
1380
|
|
|
1354
1381
|
// src/services/user/user.service.ts
|
|
1355
1382
|
var createUserService = (client) => ({
|
|
1383
|
+
async getTestFeatureEnabled(fetchFields, option) {
|
|
1384
|
+
var _a, _b;
|
|
1385
|
+
const res = await client.request(
|
|
1386
|
+
user_schema_default.getTestFeatureEnabled(
|
|
1387
|
+
gqlQueryStringBuilder(
|
|
1388
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getAppTestFeatureEnabledResponse
|
|
1389
|
+
)
|
|
1390
|
+
),
|
|
1391
|
+
{},
|
|
1392
|
+
option
|
|
1393
|
+
);
|
|
1394
|
+
return (_b = res.data) == null ? void 0 : _b.getTestFeatureEnabled;
|
|
1395
|
+
},
|
|
1396
|
+
async getTestFeatures(fetchFields, option) {
|
|
1397
|
+
var _a, _b;
|
|
1398
|
+
const res = await client.request(
|
|
1399
|
+
user_schema_default.getTestFeatures(
|
|
1400
|
+
gqlQueryStringBuilder(
|
|
1401
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getAppTestFeaturesResponse
|
|
1402
|
+
)
|
|
1403
|
+
),
|
|
1404
|
+
{},
|
|
1405
|
+
option
|
|
1406
|
+
);
|
|
1407
|
+
return (_b = res.data) == null ? void 0 : _b.getTestFeatures;
|
|
1408
|
+
},
|
|
1356
1409
|
// admin dashboard stats
|
|
1357
1410
|
async getUserTypeCounts(fetchFields, option) {
|
|
1358
1411
|
var _a, _b, _c;
|
|
@@ -3902,6 +3955,7 @@ var createExpenseDispenseService = (client) => {
|
|
|
3902
3955
|
};
|
|
3903
3956
|
|
|
3904
3957
|
exports.APPLICATION_FEATURES = APPLICATION_FEATURES;
|
|
3958
|
+
exports.AppNewFeatures = AppNewFeatures;
|
|
3905
3959
|
exports.AuthenticationError = AuthenticationError;
|
|
3906
3960
|
exports.GraphQLClient = GraphQLClient;
|
|
3907
3961
|
exports.NetworkError = NetworkError;
|