@maxzima/wa-communicator 1.0.4 → 1.0.5

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/README.md CHANGED
@@ -87,7 +87,7 @@ communicator.signUp({
87
87
  .then((response) => callback(response));
88
88
 
89
89
  communicator.registration({
90
- authToken: 'some_auth_token...',
90
+ accessToken: 'some_auth_token...',
91
91
  name: 'companyName',
92
92
  hash: 'some_tracking_hash...',
93
93
  deviceType: 'mobile',
@@ -129,7 +129,7 @@ export class Communicator {
129
129
  return yield this.send({
130
130
  method: 'POST',
131
131
  url: `${this.props.clientFAPIBaseUrl}${"clients/registration"}`,
132
- headers: Object.assign({ 'Authorization': `Bearer ${data.authToken}` }, CommunicatorDefaultRequestData.FETCH_HEADERS_INIT),
132
+ headers: Object.assign({ 'Authorization': `Bearer ${data.accessToken}` }, CommunicatorDefaultRequestData.FETCH_HEADERS_INIT),
133
133
  body,
134
134
  });
135
135
  });
@@ -100,7 +100,7 @@ declare type TRegistrationRequestBody = {
100
100
  source: TRegistrationRequestBodySource;
101
101
  };
102
102
  declare type TRegistrationRequestData = {
103
- authToken: string;
103
+ accessToken: string;
104
104
  name: TRegistrationRequestBody['name'];
105
105
  deviceType: TRegistrationRequestBodySource['device_type'];
106
106
  hash: TRegistrationRequestBodySource['hash'];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.4",
2
+ "version": "1.0.5",
3
3
  "name": "@maxzima/wa-communicator",
4
4
  "description": "",
5
5
  "author": "Noname",
@@ -135,7 +135,7 @@ export class Communicator {
135
135
  method: 'POST',
136
136
  url: `${this.props.clientFAPIBaseUrl}${CommunicatorFAPIEndpointEnum.REGISTRATION}`,
137
137
  headers: {
138
- 'Authorization': `Bearer ${data.authToken}`,
138
+ 'Authorization': `Bearer ${data.accessToken}`,
139
139
  ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
140
140
  },
141
141
  body,
@@ -145,7 +145,7 @@ type TRegistrationRequestBody = {
145
145
  }
146
146
 
147
147
  type TRegistrationRequestData = {
148
- authToken: string,
148
+ accessToken: string,
149
149
  name: TRegistrationRequestBody['name'],
150
150
  deviceType: TRegistrationRequestBodySource['device_type']
151
151
  hash: TRegistrationRequestBodySource['hash'],