@juhuu/sdk-ts 1.2.149 → 1.2.150
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -2598,6 +2598,7 @@ declare namespace JUHUU {
|
|
2598
2598
|
surveyEnabled: boolean;
|
2599
2599
|
accountingAreaId: string;
|
2600
2600
|
deviceIdArray: string[];
|
2601
|
+
locationAssignmentStrategy: "kochUndPartnerBikeTower" | "none";
|
2601
2602
|
}
|
2602
2603
|
export interface RentableDevice extends Base {
|
2603
2604
|
type: "rentableDevice";
|
package/dist/index.d.ts
CHANGED
@@ -2598,6 +2598,7 @@ declare namespace JUHUU {
|
|
2598
2598
|
surveyEnabled: boolean;
|
2599
2599
|
accountingAreaId: string;
|
2600
2600
|
deviceIdArray: string[];
|
2601
|
+
locationAssignmentStrategy: "kochUndPartnerBikeTower" | "none";
|
2601
2602
|
}
|
2602
2603
|
export interface RentableDevice extends Base {
|
2603
2604
|
type: "rentableDevice";
|
package/dist/index.js
CHANGED
@@ -206,9 +206,12 @@ var Service = class {
|
|
206
206
|
statusText: response?.statusText ?? "",
|
207
207
|
status: response?.status ?? 0
|
208
208
|
};
|
209
|
-
console.log(
|
209
|
+
console.log(
|
210
|
+
"refreshTokensIfNecessary",
|
211
|
+
currentOptions.refreshTokensIfNecessary
|
212
|
+
);
|
210
213
|
console.log("responseObject.status", responseObject.status);
|
211
|
-
if (responseObject.status === 403 &&
|
214
|
+
if (responseObject.status === 403 && currentOptions.refreshTokensIfNecessary === true) {
|
212
215
|
console.log("refreshing tokens...");
|
213
216
|
const oldRefreshToken = await this.getRefreshToken();
|
214
217
|
console.log("old refresh token", oldRefreshToken);
|
package/dist/index.mjs
CHANGED
@@ -162,9 +162,12 @@ var Service = class {
|
|
162
162
|
statusText: response?.statusText ?? "",
|
163
163
|
status: response?.status ?? 0
|
164
164
|
};
|
165
|
-
console.log(
|
165
|
+
console.log(
|
166
|
+
"refreshTokensIfNecessary",
|
167
|
+
currentOptions.refreshTokensIfNecessary
|
168
|
+
);
|
166
169
|
console.log("responseObject.status", responseObject.status);
|
167
|
-
if (responseObject.status === 403 &&
|
170
|
+
if (responseObject.status === 403 && currentOptions.refreshTokensIfNecessary === true) {
|
168
171
|
console.log("refreshing tokens...");
|
169
172
|
const oldRefreshToken = await this.getRefreshToken();
|
170
173
|
console.log("old refresh token", oldRefreshToken);
|