@connect-plus-online/ogabai-integrations 0.0.24 → 0.0.26
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 +23 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.esm.js +23 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -422,10 +422,14 @@ var getUsersResponseNestedFields = {
|
|
|
422
422
|
users: userQuery,
|
|
423
423
|
..._getUserResponseNestedFields
|
|
424
424
|
};
|
|
425
|
-
|
|
426
|
-
...getUserResponse
|
|
427
|
-
|
|
428
|
-
|
|
425
|
+
var updateUserResponse = {
|
|
426
|
+
...getUserResponse,
|
|
427
|
+
"uploadImageResponse": ["fileUrl", "url"]
|
|
428
|
+
};
|
|
429
|
+
var updateUserResponseNestedFields = {
|
|
430
|
+
...getUserResponseNestedFields,
|
|
431
|
+
uploadImageResponse: ["fileUrl", "url"]
|
|
432
|
+
};
|
|
429
433
|
var meResponse = [
|
|
430
434
|
"user",
|
|
431
435
|
"account",
|
|
@@ -493,6 +497,19 @@ var createUserService = (client) => ({
|
|
|
493
497
|
input,
|
|
494
498
|
option
|
|
495
499
|
);
|
|
500
|
+
},
|
|
501
|
+
async updateUser(input, fetchFields, option) {
|
|
502
|
+
var _a, _b;
|
|
503
|
+
return client.request(
|
|
504
|
+
user_schema_default.updateUser(
|
|
505
|
+
gqlQueryStringBuilder(
|
|
506
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : updateUserResponse,
|
|
507
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : updateUserResponseNestedFields
|
|
508
|
+
)
|
|
509
|
+
),
|
|
510
|
+
input,
|
|
511
|
+
option
|
|
512
|
+
);
|
|
496
513
|
}
|
|
497
514
|
});
|
|
498
515
|
|
|
@@ -1445,14 +1462,14 @@ var createStockService = (client) => ({
|
|
|
1445
1462
|
var storeSchema = {
|
|
1446
1463
|
getStore: (query) => `
|
|
1447
1464
|
query getStore($store: StoreInput!) {
|
|
1448
|
-
|
|
1465
|
+
getStore(store: $store) {
|
|
1449
1466
|
${query}
|
|
1450
1467
|
}
|
|
1451
1468
|
}
|
|
1452
1469
|
`,
|
|
1453
1470
|
getStores: (query) => `
|
|
1454
1471
|
query getStores($search: String, $store: StoreInput, $storeIds: [String], $limit: Int, $skip: Int) {
|
|
1455
|
-
|
|
1472
|
+
getStores(search: $search, store: $store, storeIds: $storeIds, limit: $limit, skip: $skip) {
|
|
1456
1473
|
${query}
|
|
1457
1474
|
}
|
|
1458
1475
|
}
|