@longvansoftware/storefront-js-client 4.2.9 → 4.3.0

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.
@@ -64,12 +64,14 @@ exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
64
64
  $type: String!
65
65
  $redirectUrl: String!
66
66
  $redirectUrlError: String
67
+ $serviceOperator: String
67
68
  ) {
68
69
  loginGoogle(
69
70
  orgId: $orgId
70
71
  type: $type
71
72
  redirectUrl: $redirectUrl
72
73
  redirectUrlError: $redirectUrlError
74
+ serviceOperator: $serviceOperator
73
75
  )
74
76
  }
75
77
  `;
@@ -79,12 +81,14 @@ exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
79
81
  $type: String!
80
82
  $redirectUrl: String!
81
83
  $redirectUrlError: String
84
+ $serviceOperator: String
82
85
  ) {
83
86
  loginFacebook(
84
87
  orgId: $orgId
85
88
  type: $type
86
89
  redirectUrl: $redirectUrl
87
90
  redirectUrlError: $redirectUrlError
91
+ serviceOperator: $serviceOperator
88
92
  )
89
93
  }
90
94
  `;
@@ -94,12 +98,14 @@ exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
94
98
  $type: String!
95
99
  $redirectUrl: String!
96
100
  $redirectUrlError: String
101
+ $serviceOperator: String
97
102
  ) {
98
103
  loginZalo(
99
104
  orgId: $orgId
100
105
  type: $type
101
106
  redirectUrl: $redirectUrl
102
107
  redirectUrlError: $redirectUrlError
108
+ serviceOperator: $serviceOperator
103
109
  )
104
110
  }
105
111
  `;
@@ -42,8 +42,8 @@ export declare class AuthService extends Service {
42
42
  sendSmsVerifyCode(username: string): Promise<any>;
43
43
  verifyCode(username: string, code: string): Promise<any>;
44
44
  resetPassword(username: string, newPassword: string, accessToken: string): Promise<any>;
45
- loginGoogle(redirectUrl: string, redirectUrlError?: string): Promise<any>;
46
- loginFacebook(redirectUrl: string, redirectUrlError?: string): Promise<any>;
45
+ loginGoogle(redirectUrl: string, serviceOperator: string, redirectUrlError?: string): Promise<any>;
46
+ loginFacebook(redirectUrl: string, serviceOperator: string, redirectUrlError?: string): Promise<any>;
47
47
  /**
48
48
  * Logs in a user via Zalo by executing a GraphQL query.
49
49
  *
@@ -51,7 +51,7 @@ export declare class AuthService extends Service {
51
51
  * @returns A promise that resolves to the result of the `loginZalo` GraphQL query.
52
52
  * @throws Will throw an error if the GraphQL query fails.
53
53
  */
54
- loginZalo(redirectUrl: string, redirectUrlError?: string): Promise<any>;
54
+ loginZalo(redirectUrl: string, serviceOperator: string, redirectUrlError?: string): Promise<any>;
55
55
  /**
56
56
  * Creates a new organization.
57
57
  *
@@ -276,13 +276,14 @@ class AuthService extends serviceSDK_1.Service {
276
276
  }
277
277
  });
278
278
  }
279
- loginGoogle(redirectUrl, redirectUrlError) {
279
+ loginGoogle(redirectUrl, serviceOperator, redirectUrlError) {
280
280
  return __awaiter(this, void 0, void 0, function* () {
281
281
  const query = queries_1.LOGIN_GOOGLE;
282
282
  const variables = {
283
283
  orgId: this.orgId,
284
284
  type: "login",
285
285
  redirectUrl,
286
+ serviceOperator,
286
287
  redirectUrlError,
287
288
  };
288
289
  try {
@@ -295,13 +296,14 @@ class AuthService extends serviceSDK_1.Service {
295
296
  }
296
297
  });
297
298
  }
298
- loginFacebook(redirectUrl, redirectUrlError) {
299
+ loginFacebook(redirectUrl, serviceOperator, redirectUrlError) {
299
300
  return __awaiter(this, void 0, void 0, function* () {
300
301
  const query = queries_1.LOGIN_FACEBOOK;
301
302
  const variables = {
302
303
  orgId: this.orgId,
303
304
  type: "login",
304
305
  redirectUrl,
306
+ serviceOperator,
305
307
  redirectUrlError,
306
308
  };
307
309
  try {
@@ -321,13 +323,14 @@ class AuthService extends serviceSDK_1.Service {
321
323
  * @returns A promise that resolves to the result of the `loginZalo` GraphQL query.
322
324
  * @throws Will throw an error if the GraphQL query fails.
323
325
  */
324
- loginZalo(redirectUrl, redirectUrlError) {
326
+ loginZalo(redirectUrl, serviceOperator, redirectUrlError) {
325
327
  return __awaiter(this, void 0, void 0, function* () {
326
328
  const query = queries_1.LOGIN_ZALO;
327
329
  const variables = {
328
330
  orgId: this.orgId,
329
331
  type: "login",
330
332
  redirectUrl,
333
+ serviceOperator,
331
334
  redirectUrlError,
332
335
  };
333
336
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.2.9",
3
+ "version": "4.3.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [