starta.apiclient 1.36.897 → 1.36.919

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.
@@ -10,14 +10,15 @@ export default class Accounts {
10
10
  }): Promise<import("../types").StartaResponse>;
11
11
  getMainData(login: string): Promise<import("../types").StartaResponse>;
12
12
  serviceProviders(login: string): Promise<import("../types").StartaResponse>;
13
- createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions }: {
13
+ createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions, reffererId }: {
14
14
  email: any;
15
15
  login: any;
16
16
  socialNetworksKey: any;
17
17
  authMethod?: string | undefined;
18
18
  acceptedTermsAndConditions: any;
19
+ reffererId: any;
19
20
  }): Promise<import("../types").StartaResponse>;
20
- create({ email, login, password, passwordConfirm, firstName, lastName, key, phone, authMethod, recaptchaToken, acceptedTermsAndConditions, }: {
21
+ create({ email, login, password, passwordConfirm, firstName, lastName, key, phone, authMethod, recaptchaToken, acceptedTermsAndConditions, reffererId, }: {
21
22
  email: any;
22
23
  login: any;
23
24
  password: any;
@@ -29,6 +30,7 @@ export default class Accounts {
29
30
  authMethod?: string | undefined;
30
31
  recaptchaToken: any;
31
32
  acceptedTermsAndConditions: any;
33
+ reffererId: any;
32
34
  }): Promise<import("../types").StartaResponse>;
33
35
  changePassword(login: string, { currentPassword, newPassword }: {
34
36
  currentPassword: any;
@@ -26,7 +26,7 @@ var Accounts = /** @class */ (function () {
26
26
  });
27
27
  };
28
28
  Accounts.prototype.createViaSocialNetwork = function (_a) {
29
- var email = _a.email, login = _a.login, socialNetworksKey = _a.socialNetworksKey, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, acceptedTermsAndConditions = _a.acceptedTermsAndConditions;
29
+ var email = _a.email, login = _a.login, socialNetworksKey = _a.socialNetworksKey, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, acceptedTermsAndConditions = _a.acceptedTermsAndConditions, reffererId = _a.reffererId;
30
30
  return this._requestRunner.performRequest({
31
31
  url: "accounts/sn",
32
32
  method: 'POST',
@@ -36,11 +36,12 @@ var Accounts = /** @class */ (function () {
36
36
  socialNetworksKey: socialNetworksKey,
37
37
  authMethod: authMethod,
38
38
  acceptedTermsAndConditions: acceptedTermsAndConditions,
39
+ reffererId: reffererId,
39
40
  },
40
41
  });
41
42
  };
42
43
  Accounts.prototype.create = function (_a) {
43
- var email = _a.email, login = _a.login, password = _a.password, passwordConfirm = _a.passwordConfirm, firstName = _a.firstName, lastName = _a.lastName, key = _a.key, phone = _a.phone, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, recaptchaToken = _a.recaptchaToken, acceptedTermsAndConditions = _a.acceptedTermsAndConditions;
44
+ var email = _a.email, login = _a.login, password = _a.password, passwordConfirm = _a.passwordConfirm, firstName = _a.firstName, lastName = _a.lastName, key = _a.key, phone = _a.phone, _b = _a.authMethod, authMethod = _b === void 0 ? 'cookie' : _b, recaptchaToken = _a.recaptchaToken, acceptedTermsAndConditions = _a.acceptedTermsAndConditions, reffererId = _a.reffererId;
44
45
  return this._requestRunner.performRequest({
45
46
  url: "accounts",
46
47
  method: 'POST',
@@ -56,6 +57,7 @@ var Accounts = /** @class */ (function () {
56
57
  authMethod: authMethod,
57
58
  recaptchaToken: recaptchaToken,
58
59
  acceptedTermsAndConditions: acceptedTermsAndConditions,
60
+ reffererId: reffererId,
59
61
  },
60
62
  });
61
63
  };
@@ -2,7 +2,7 @@ import { StartaRequestRunner } from '../../types';
2
2
  export default class Services {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
- add(organizationLogin: any, { name, image, price, allowCancellationByCustomer, disableCancellationByCustomerPriorHours, duration, executors }: {
5
+ add(organizationLogin: any, { name, image, price, allowCancellationByCustomer, disableCancellationByCustomerPriorHours, disableBookingByCustomerPriorHours, duration, executors }: {
6
6
  name: {
7
7
  default: string;
8
8
  [key: string]: string;
@@ -11,6 +11,7 @@ export default class Services {
11
11
  price: number;
12
12
  allowCancellationByCustomer?: boolean;
13
13
  disableCancellationByCustomerPriorHours?: number;
14
+ disableBookingByCustomerPriorHours?: number;
14
15
  duration: number;
15
16
  executors: [
16
17
  {
@@ -20,7 +21,7 @@ export default class Services {
20
21
  }
21
22
  ];
22
23
  }): Promise<import("../../types").StartaResponse>;
23
- update(organizationLogin: any, serviceId: any, { name, image, price, allowCancellationByCustomer, disableCancellationByCustomerPriorHours, duration, executors }: {
24
+ update(organizationLogin: any, serviceId: any, { name, image, price, allowCancellationByCustomer, disableCancellationByCustomerPriorHours, disableBookingByCustomerPriorHours, duration, executors }: {
24
25
  name: {
25
26
  default: string;
26
27
  [key: string]: string;
@@ -29,6 +30,7 @@ export default class Services {
29
30
  price: number;
30
31
  allowCancellationByCustomer?: boolean;
31
32
  disableCancellationByCustomerPriorHours?: number;
33
+ disableBookingByCustomerPriorHours?: number;
32
34
  duration: number;
33
35
  executors: [
34
36
  {
@@ -5,7 +5,7 @@ var Services = /** @class */ (function () {
5
5
  this._requestRunner = requestRunner;
6
6
  }
7
7
  Services.prototype.add = function (organizationLogin, _a) {
8
- var name = _a.name, image = _a.image, price = _a.price, allowCancellationByCustomer = _a.allowCancellationByCustomer, disableCancellationByCustomerPriorHours = _a.disableCancellationByCustomerPriorHours, duration = _a.duration, executors = _a.executors;
8
+ var name = _a.name, image = _a.image, price = _a.price, allowCancellationByCustomer = _a.allowCancellationByCustomer, disableCancellationByCustomerPriorHours = _a.disableCancellationByCustomerPriorHours, disableBookingByCustomerPriorHours = _a.disableBookingByCustomerPriorHours, duration = _a.duration, executors = _a.executors;
9
9
  return this._requestRunner.performRequest({
10
10
  url: "accounts/".concat(organizationLogin, "/services"),
11
11
  method: 'POST',
@@ -17,11 +17,12 @@ var Services = /** @class */ (function () {
17
17
  executors: executors,
18
18
  allowCancellationByCustomer: allowCancellationByCustomer,
19
19
  disableCancellationByCustomerPriorHours: disableCancellationByCustomerPriorHours,
20
+ disableBookingByCustomerPriorHours: disableBookingByCustomerPriorHours,
20
21
  },
21
22
  });
22
23
  };
23
24
  Services.prototype.update = function (organizationLogin, serviceId, _a) {
24
- var name = _a.name, image = _a.image, price = _a.price, allowCancellationByCustomer = _a.allowCancellationByCustomer, disableCancellationByCustomerPriorHours = _a.disableCancellationByCustomerPriorHours, duration = _a.duration, executors = _a.executors;
25
+ var name = _a.name, image = _a.image, price = _a.price, allowCancellationByCustomer = _a.allowCancellationByCustomer, disableCancellationByCustomerPriorHours = _a.disableCancellationByCustomerPriorHours, disableBookingByCustomerPriorHours = _a.disableBookingByCustomerPriorHours, duration = _a.duration, executors = _a.executors;
25
26
  return this._requestRunner.performRequest({
26
27
  url: "accounts/".concat(organizationLogin, "/services/").concat(serviceId),
27
28
  method: 'PUT',
@@ -33,6 +34,7 @@ var Services = /** @class */ (function () {
33
34
  executors: executors,
34
35
  allowCancellationByCustomer: allowCancellationByCustomer,
35
36
  disableCancellationByCustomerPriorHours: disableCancellationByCustomerPriorHours,
37
+ disableBookingByCustomerPriorHours: disableBookingByCustomerPriorHours,
36
38
  },
37
39
  });
38
40
  };
package/lib/types.d.ts CHANGED
@@ -51,6 +51,10 @@ export declare type OrganizationSchedule = {
51
51
  country: any;
52
52
  zipCode: any;
53
53
  appartment: any;
54
+ location: {
55
+ lat: number;
56
+ lng: number;
57
+ };
54
58
  };
55
59
  };
56
60
  schedule: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.36.897",
3
+ "version": "1.36.919",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",