@connect-plus-online/ogabai-integrations 0.0.56 → 0.0.57

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 CHANGED
@@ -632,6 +632,13 @@ var createUserService = (client) => ({
632
632
 
633
633
  // src/services/user/schemas/auth.schema.ts
634
634
  var authSchema = {
635
+ authenticateWithStore: (query) => `
636
+ mutation authenticateWithStore($storeId: String!, $roleId: String!) {
637
+ authenticateWithStore(storeId: $storeId, roleId: $roleId) {
638
+ ${query}
639
+ }
640
+ }
641
+ `,
635
642
  // change pin
636
643
  changePin: (query) => `
637
644
  mutation changePin($userId: String!, $oldPin: String!, $newPin: String!) {
@@ -692,6 +699,9 @@ var authSchema = {
692
699
  };
693
700
 
694
701
  // src/services/user/types/auth.type.ts
702
+ var authenticateWithStoreResponse = [
703
+ "accessToken"
704
+ ];
695
705
  var checkRegistrationResponse = [
696
706
  "isRegistered"
697
707
  ];
@@ -722,6 +732,18 @@ var signUpResponse = [
722
732
 
723
733
  // src/services/user/auth.service.ts
724
734
  var createAuthService = (client) => ({
735
+ async authenticateWithStore(input, fetchFields, option) {
736
+ var _a;
737
+ return client.request(
738
+ authSchema.authenticateWithStore(
739
+ gqlQueryStringBuilder(
740
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : authenticateWithStoreResponse
741
+ )
742
+ ),
743
+ input,
744
+ option
745
+ );
746
+ },
725
747
  async checkRegistration(input, fetchFields, option) {
726
748
  var _a;
727
749
  return client.request(