@verdocs/web-sdk 4.1.4 → 4.1.8

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.
@@ -121,16 +121,12 @@ const VerdocsAuth = class {
121
121
  handleSignup() {
122
122
  this.submitting = true;
123
123
  this.accessTokenForVerification = null;
124
- jsSdk.createAccount(this.endpoint, {
124
+ jsSdk.createProfile(this.endpoint, {
125
125
  email: this.username,
126
126
  password: this.password,
127
127
  firstName: this.first,
128
128
  lastName: this.last,
129
129
  orgName: this.orgname,
130
- // industry: this.industry,
131
- // size: this.companySize,
132
- // reason: this.reason,
133
- // hearabout: this.howHear,
134
130
  })
135
131
  .then(r => {
136
132
  console.log('Result', r);
@@ -1,4 +1,4 @@
1
- import { VerdocsEndpoint, createAccount, authenticate, decodeAccessTokenBody, resendVerification, resetPassword } from "@verdocs/js-sdk";
1
+ import { VerdocsEndpoint, createProfile, authenticate, decodeAccessTokenBody, resendVerification, resetPassword } from "@verdocs/js-sdk";
2
2
  import { h } from "@stencil/core";
3
3
  import { VerdocsToast } from "../../../utils/Toast";
4
4
  import { SDKError } from "../../../utils/errors";
@@ -125,16 +125,12 @@ export class VerdocsAuth {
125
125
  handleSignup() {
126
126
  this.submitting = true;
127
127
  this.accessTokenForVerification = null;
128
- createAccount(this.endpoint, {
128
+ createProfile(this.endpoint, {
129
129
  email: this.username,
130
130
  password: this.password,
131
131
  firstName: this.first,
132
132
  lastName: this.last,
133
133
  orgName: this.orgname,
134
- // industry: this.industry,
135
- // size: this.companySize,
136
- // reason: this.reason,
137
- // hearabout: this.howHear,
138
134
  })
139
135
  .then(r => {
140
136
  console.log('Result', r);
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { VerdocsEndpoint, createAccount, authenticate, decodeAccessTokenBody, resendVerification, resetPassword } from '@verdocs/js-sdk';
2
+ import { VerdocsEndpoint, createProfile, authenticate, decodeAccessTokenBody, resendVerification, resetPassword } from '@verdocs/js-sdk';
3
3
  import { V as VerdocsToast } from './Toast.js';
4
4
  import { S as SDKError } from './errors.js';
5
5
  import { d as defineCustomElement$5 } from './verdocs-button2.js';
@@ -122,16 +122,12 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsAuth extends
122
122
  handleSignup() {
123
123
  this.submitting = true;
124
124
  this.accessTokenForVerification = null;
125
- createAccount(this.endpoint, {
125
+ createProfile(this.endpoint, {
126
126
  email: this.username,
127
127
  password: this.password,
128
128
  firstName: this.first,
129
129
  lastName: this.last,
130
130
  orgName: this.orgname,
131
- // industry: this.industry,
132
- // size: this.companySize,
133
- // reason: this.reason,
134
- // hearabout: this.howHear,
135
131
  })
136
132
  .then(r => {
137
133
  console.log('Result', r);