@juhuu/sdk-ts 1.2.116 → 1.2.118

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 CHANGED
@@ -14,7 +14,15 @@ type UserGroup = "retailer" | "engineer" | "operator" | "user";
14
14
  type Frontend = "dashboard" | "app";
15
15
  interface Offer {
16
16
  tariffId: string;
17
- licenseTemplateIdArray: string[];
17
+ licenseTemplateIdArray?: string[];
18
+ /**
19
+ * Array of arrays of licenseTemplateIds
20
+ * The first array is and "or" and the second array is an "and" condition.
21
+ * Example: [["licenseTemplateId1", "licenseTemplateId2"], ["licenseTemplateId3", "licenseTemplateId4"]]
22
+ * This would mean that the offer is only valid if the user has either (licenseTemplateId1 and licenseTemplateId2) or (licenseTemplateId3 and licenseTemplateId4)
23
+ * If the user does not own a license the app will guide the user to acquire the necessary licenses in the order of the array.
24
+ */
25
+ licenseTemplateCascadeArray?: string[][];
18
26
  offerTime: OfferTime;
19
27
  }
20
28
  type DevicePermission = {
@@ -1117,7 +1125,10 @@ declare namespace JUHUU {
1117
1125
  defaultPaymentMethodId: string | null;
1118
1126
  defaultPaymentMethodProvider: "stripe" | "not_set";
1119
1127
  acceptedTermIdArray: string[];
1120
- licenseArray: JUHUU.License.Object[];
1128
+ licenseArray: {
1129
+ validUntil: Date | null;
1130
+ licenseTemplateId: string;
1131
+ }[];
1121
1132
  languageCode: LanguageCode | null;
1122
1133
  billingAddress: DeepNullable<Address>;
1123
1134
  billingEmail: string | null;
@@ -1178,7 +1189,6 @@ declare namespace JUHUU {
1178
1189
  type Params = {
1179
1190
  userId: string;
1180
1191
  name?: string;
1181
- licenseArray?: string[];
1182
1192
  platform?: Platform;
1183
1193
  languageCode?: LanguageCode;
1184
1194
  appVersion?: string;
@@ -2566,14 +2576,6 @@ declare namespace JUHUU {
2566
2576
  }
2567
2577
  export { };
2568
2578
  }
2569
- namespace License {
2570
- type Object = {
2571
- id: string;
2572
- validUntil: Date | null;
2573
- licenseTemplateId: string | null;
2574
- version: number;
2575
- };
2576
- }
2577
2579
  namespace Device {
2578
2580
  type Object = {
2579
2581
  id: string;
package/dist/index.d.ts CHANGED
@@ -14,7 +14,15 @@ type UserGroup = "retailer" | "engineer" | "operator" | "user";
14
14
  type Frontend = "dashboard" | "app";
15
15
  interface Offer {
16
16
  tariffId: string;
17
- licenseTemplateIdArray: string[];
17
+ licenseTemplateIdArray?: string[];
18
+ /**
19
+ * Array of arrays of licenseTemplateIds
20
+ * The first array is and "or" and the second array is an "and" condition.
21
+ * Example: [["licenseTemplateId1", "licenseTemplateId2"], ["licenseTemplateId3", "licenseTemplateId4"]]
22
+ * This would mean that the offer is only valid if the user has either (licenseTemplateId1 and licenseTemplateId2) or (licenseTemplateId3 and licenseTemplateId4)
23
+ * If the user does not own a license the app will guide the user to acquire the necessary licenses in the order of the array.
24
+ */
25
+ licenseTemplateCascadeArray?: string[][];
18
26
  offerTime: OfferTime;
19
27
  }
20
28
  type DevicePermission = {
@@ -1117,7 +1125,10 @@ declare namespace JUHUU {
1117
1125
  defaultPaymentMethodId: string | null;
1118
1126
  defaultPaymentMethodProvider: "stripe" | "not_set";
1119
1127
  acceptedTermIdArray: string[];
1120
- licenseArray: JUHUU.License.Object[];
1128
+ licenseArray: {
1129
+ validUntil: Date | null;
1130
+ licenseTemplateId: string;
1131
+ }[];
1121
1132
  languageCode: LanguageCode | null;
1122
1133
  billingAddress: DeepNullable<Address>;
1123
1134
  billingEmail: string | null;
@@ -1178,7 +1189,6 @@ declare namespace JUHUU {
1178
1189
  type Params = {
1179
1190
  userId: string;
1180
1191
  name?: string;
1181
- licenseArray?: string[];
1182
1192
  platform?: Platform;
1183
1193
  languageCode?: LanguageCode;
1184
1194
  appVersion?: string;
@@ -2566,14 +2576,6 @@ declare namespace JUHUU {
2566
2576
  }
2567
2577
  export { };
2568
2578
  }
2569
- namespace License {
2570
- type Object = {
2571
- id: string;
2572
- validUntil: Date | null;
2573
- licenseTemplateId: string | null;
2574
- version: number;
2575
- };
2576
- }
2577
2579
  namespace Device {
2578
2580
  type Object = {
2579
2581
  id: string;
package/dist/index.js CHANGED
@@ -637,7 +637,6 @@ var UsersService = class extends Service {
637
637
  url: "users/" + UserUpdateParams.userId,
638
638
  body: {
639
639
  name: UserUpdateParams?.name,
640
- licenseArray: UserUpdateParams?.licenseArray,
641
640
  platform: UserUpdateParams?.platform,
642
641
  languageCode: UserUpdateParams?.languageCode,
643
642
  appVersion: UserUpdateParams?.appVersion,
package/dist/index.mjs CHANGED
@@ -593,7 +593,6 @@ var UsersService = class extends Service {
593
593
  url: "users/" + UserUpdateParams.userId,
594
594
  body: {
595
595
  name: UserUpdateParams?.name,
596
- licenseArray: UserUpdateParams?.licenseArray,
597
596
  platform: UserUpdateParams?.platform,
598
597
  languageCode: UserUpdateParams?.languageCode,
599
598
  appVersion: UserUpdateParams?.appVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.116",
3
+ "version": "1.2.118",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",