starta.apiclient 1.112.12571 → 1.112.12572

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.
@@ -8,8 +8,8 @@ export default class Products {
8
8
  withTechcard?: boolean;
9
9
  warehouseId?: string;
10
10
  }): Promise<import("../../types").StartaResponse>;
11
- add(organizationLogin: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, barcode, }: Product): Promise<import("../../types").StartaResponse>;
12
- update(organizationLogin: string, productId: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, barcode, }: Product): Promise<import("../../types").StartaResponse>;
11
+ add(organizationLogin: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }: Product): Promise<import("../../types").StartaResponse>;
12
+ update(organizationLogin: string, productId: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }: Product): Promise<import("../../types").StartaResponse>;
13
13
  delete(organizationLogin: string, productId: string): Promise<import("../../types").StartaResponse>;
14
14
  get(organizationLogin: string, productId: string): Promise<import("../../types").StartaResponse>;
15
15
  }
@@ -11,7 +11,7 @@ class Products {
11
11
  method: 'GET',
12
12
  });
13
13
  }
14
- add(organizationLogin, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, barcode, }) {
14
+ add(organizationLogin, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }) {
15
15
  return this._requestRunner.performRequest({
16
16
  url: `accounts/${organizationLogin}/products`,
17
17
  method: 'POST',
@@ -34,11 +34,10 @@ class Products {
34
34
  publicName,
35
35
  image,
36
36
  description,
37
- barcode,
38
37
  },
39
38
  });
40
39
  }
41
- update(organizationLogin, productId, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, barcode, }) {
40
+ update(organizationLogin, productId, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }) {
42
41
  return this._requestRunner.performRequest({
43
42
  url: `accounts/${organizationLogin}/products/${productId}`,
44
43
  method: 'PUT',
@@ -61,7 +60,6 @@ class Products {
61
60
  publicName,
62
61
  image,
63
62
  description,
64
- barcode,
65
63
  },
66
64
  });
67
65
  }
@@ -13,5 +13,4 @@ export default class Warehouses {
13
13
  type: 'forServices' | 'forSales';
14
14
  }): Promise<import("../../types").StartaResponse>;
15
15
  delete(organizationLogin: string, warehouseId: string): Promise<import("../../types").StartaResponse>;
16
- get(organizationLogin: string, branchId?: string): Promise<import("../../types").StartaResponse>;
17
16
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const _helpers_1 = require("../_helpers");
4
3
  class Warehouses {
5
4
  constructor(requestRunner) {
6
5
  this._requestRunner = requestRunner;
@@ -33,12 +32,5 @@ class Warehouses {
33
32
  method: 'DELETE',
34
33
  });
35
34
  }
36
- get(organizationLogin, branchId) {
37
- const queryParams = branchId ? { branchId } : {};
38
- return this._requestRunner.performRequest({
39
- url: `accounts/${organizationLogin}/warehouses${(0, _helpers_1.buildQuery)(queryParams)}`,
40
- method: 'GET',
41
- });
42
- }
43
35
  }
44
36
  exports.default = Warehouses;
package/lib/types.d.ts CHANGED
@@ -139,7 +139,6 @@ export type Product = {
139
139
  publicName?: LocalizedString;
140
140
  description?: LocalizedString;
141
141
  image?: string;
142
- barcode?: string;
143
142
  };
144
143
  export type ProductOperation = {
145
144
  organizationLogin: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12571",
3
+ "version": "1.112.12572",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",