@connect-plus-online/ogabai-integrations 0.0.76 → 0.0.78

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
@@ -1456,8 +1456,8 @@ var authSchema = {
1456
1456
  }
1457
1457
  `,
1458
1458
  login: (query) => `
1459
- mutation login($phone: String!, $pin: String!, $userType: UserTypeEnum) {
1460
- login(phone: $phone, pin: $pin, userType: $userType) {
1459
+ mutation login($phone: String!, $pin: String, $userType: UserTypeEnum, $password: String) {
1460
+ login(phone: $phone, pin: $pin, userType: $userType, password: $password) {
1461
1461
  ${query}
1462
1462
  }
1463
1463
  }
@@ -1905,6 +1905,13 @@ var searchProductNamesResponse = [
1905
1905
  var searchProductNamesResponseNestedFields = {
1906
1906
  productNames: productNameQuery
1907
1907
  };
1908
+ var addProductsResponseFields = [
1909
+ "products"
1910
+ ];
1911
+ var addProductsResponseNestedFields = {
1912
+ products: productQuery,
1913
+ ..._getProductResponseNestedFields
1914
+ };
1908
1915
  var addProductResponseFields = [
1909
1916
  "product"
1910
1917
  ];
@@ -2377,6 +2384,13 @@ var productSchema = {
2377
2384
  }
2378
2385
  }
2379
2386
  `,
2387
+ addProducts: (mutation) => `
2388
+ mutation addProducts($products: ProductsInput!, $template: Boolean) {
2389
+ addProducts(products: $products, template: $template) {
2390
+ ${mutation}
2391
+ }
2392
+ }
2393
+ `,
2380
2394
  updateProduct: (mutation) => `
2381
2395
  mutation updateProduct($productId: String!, $product: ProductInput!, $template: Boolean) {
2382
2396
  updateProduct(productId: $productId, product: $product, template: $template) {
@@ -2506,6 +2520,20 @@ var createProductService = (client) => ({
2506
2520
  );
2507
2521
  return (_d = (_c = res.data) == null ? void 0 : _c.addProduct) != null ? _d : null;
2508
2522
  },
2523
+ async addProducts(input, fetchFields, option) {
2524
+ var _a, _b, _c, _d;
2525
+ const res = await client.request(
2526
+ productSchema.addProducts(
2527
+ gqlQueryStringBuilder(
2528
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : addProductsResponseFields,
2529
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : addProductsResponseNestedFields
2530
+ )
2531
+ ),
2532
+ input,
2533
+ option
2534
+ );
2535
+ return (_d = (_c = res.data) == null ? void 0 : _c.addProducts) != null ? _d : null;
2536
+ },
2509
2537
  async getProduct(input, fetchFields, option) {
2510
2538
  var _a, _b, _c, _d;
2511
2539
  const res = await client.request(
@@ -3317,6 +3345,8 @@ exports.addPriceResponseFields = addPriceResponseFields;
3317
3345
  exports.addPriceResponseNestedFields = addPriceResponseNestedFields;
3318
3346
  exports.addProductResponseFields = addProductResponseFields;
3319
3347
  exports.addProductResponseNestedFields = addProductResponseNestedFields;
3348
+ exports.addProductsResponseFields = addProductsResponseFields;
3349
+ exports.addProductsResponseNestedFields = addProductsResponseNestedFields;
3320
3350
  exports.addStockResponse = addStockResponse;
3321
3351
  exports.addStockResponseNestedFields = addStockResponseNestedFields;
3322
3352
  exports.addStoreResponse = addStoreResponse;