starta.apiclient 1.112.9178 → 1.112.9213

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.
@@ -43,7 +43,7 @@ export default class Accounts {
43
43
  getOrdersFilters(login: string): Promise<import("../types").StartaResponse>;
44
44
  addServiceProvider(login: string, organizationLogin: string): Promise<import("../types").StartaResponse>;
45
45
  removeServiceProvider(login: string, organizationLogin: string): Promise<import("../types").StartaResponse>;
46
- createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions, referralId, platform, potentialOrganization, }: {
46
+ createViaSocialNetwork({ email, login, socialNetworksKey, authMethod, acceptedTermsAndConditions, referralId, platform, potentialOrganization, eventId, }: {
47
47
  email: any;
48
48
  login: any;
49
49
  socialNetworksKey: any;
@@ -52,6 +52,7 @@ export default class Accounts {
52
52
  referralId?: any;
53
53
  platform?: 'web' | 'ios' | 'android';
54
54
  potentialOrganization?: boolean;
55
+ eventId?: string;
55
56
  }): Promise<import("../types").StartaResponse>;
56
57
  create({ email, login, password, passwordConfirm, firstName, lastName, phone, authMethod, recaptchaToken, acceptedTermsAndConditions, referralId, platform, shortSession, potentialOrganization, eventId, }: {
57
58
  email: any;
@@ -97,7 +97,7 @@ class Accounts {
97
97
  method: 'DELETE',
98
98
  });
99
99
  }
100
- createViaSocialNetwork({ email, login, socialNetworksKey, authMethod = 'cookie', acceptedTermsAndConditions, referralId, platform, potentialOrganization, }) {
100
+ createViaSocialNetwork({ email, login, socialNetworksKey, authMethod = 'cookie', acceptedTermsAndConditions, referralId, platform, potentialOrganization, eventId, }) {
101
101
  return this._requestRunner.performRequest({
102
102
  url: `accounts/sn`,
103
103
  method: 'POST',
@@ -110,6 +110,7 @@ class Accounts {
110
110
  referralId,
111
111
  platform,
112
112
  potentialOrganization,
113
+ eventId,
113
114
  },
114
115
  });
115
116
  }
@@ -76,7 +76,7 @@ export default class Organizations {
76
76
  imageId: string;
77
77
  }>;
78
78
  }): Promise<import("../../types").StartaResponse>;
79
- setOnboardingStepComplete(organizationLogin: any, step: any): Promise<import("../../types").StartaResponse>;
79
+ setOnboardingStepComplete(organizationLogin: any, step: any, eventId?: any): Promise<import("../../types").StartaResponse>;
80
80
  setMFUDiscountSettings(organizationLogin: string, { enabled, discount }: {
81
81
  enabled: boolean;
82
82
  discount: number;
@@ -102,10 +102,13 @@ class Organizations {
102
102
  body: { gallerySettings },
103
103
  });
104
104
  }
105
- setOnboardingStepComplete(organizationLogin, step) {
105
+ setOnboardingStepComplete(organizationLogin, step, eventId) {
106
106
  return this._requestRunner.performRequest({
107
107
  url: `accounts/${organizationLogin}/onboarding/${step}/completed`,
108
108
  method: 'PUT',
109
+ body: {
110
+ eventId,
111
+ },
109
112
  });
110
113
  }
111
114
  setMFUDiscountSettings(organizationLogin, { enabled, discount }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.9178",
3
+ "version": "1.112.9213",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",