@visma-swno/customer-onboarding-wizard 1.0.18 → 1.0.19
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/core/http.service.d.ts +1 -1
- package/dist/index.js +49 -43
- package/package.json +1 -1
|
@@ -243,7 +243,7 @@ export declare class HttpService {
|
|
|
243
243
|
addCustomerAdministrators(customerId: string, admins: AddAdministratorRequest[]): Promise<unknown>;
|
|
244
244
|
/**
|
|
245
245
|
* Get consultants for a partner, scoped to a customer
|
|
246
|
-
* GET /api/v1/partners/{partnerId}/
|
|
246
|
+
* GET /api/v1/partners/{partnerId}/customers/{customerId}/consultants
|
|
247
247
|
* @param partnerId - The partner ID
|
|
248
248
|
* @param customerId - The customer ID the consultants are scoped to
|
|
249
249
|
* @returns Promise with paginated list of consultants
|
package/dist/index.js
CHANGED
|
@@ -1129,7 +1129,13 @@ class B {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
throw new U(c.status, c.statusText);
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1132
|
+
if (c.status === 204)
|
|
1133
|
+
return;
|
|
1134
|
+
try {
|
|
1135
|
+
return await c.json();
|
|
1136
|
+
} catch {
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1133
1139
|
} catch (c) {
|
|
1134
1140
|
if (clearTimeout(w), c instanceof U)
|
|
1135
1141
|
throw c;
|
|
@@ -1259,7 +1265,7 @@ class B {
|
|
|
1259
1265
|
}
|
|
1260
1266
|
/**
|
|
1261
1267
|
* Get consultants for a partner, scoped to a customer
|
|
1262
|
-
* GET /api/v1/partners/{partnerId}/
|
|
1268
|
+
* GET /api/v1/partners/{partnerId}/customers/{customerId}/consultants
|
|
1263
1269
|
* @param partnerId - The partner ID
|
|
1264
1270
|
* @param customerId - The customer ID the consultants are scoped to
|
|
1265
1271
|
* @returns Promise with paginated list of consultants
|
|
@@ -1351,7 +1357,7 @@ var G = Object.defineProperty, K = Object.getOwnPropertyDescriptor, v = (e, t, a
|
|
|
1351
1357
|
return r && i && G(t, a, i), i;
|
|
1352
1358
|
};
|
|
1353
1359
|
const S = ["NO", "SE", "DK", "FI", "NL"];
|
|
1354
|
-
let
|
|
1360
|
+
let u = class extends _ {
|
|
1355
1361
|
constructor() {
|
|
1356
1362
|
super(...arguments), this.locale = "en-GB", this.customer = null, this.subscriptions = { content: [], totalNumberOfRecords: 0 }, this.editingContact = !1, this.countryDropdownOpen = !1, this.fieldErrors = {}, this.editName = "", this.editAddress1 = "", this.editAddress2 = "", this.editPostalCode = "", this.editCity = "", this.editCountryCode = "", this.editWebUrl = "", this.editContactEmail = "", this.localCustomer = null;
|
|
1357
1363
|
}
|
|
@@ -1768,7 +1774,7 @@ let p = class extends _ {
|
|
|
1768
1774
|
`;
|
|
1769
1775
|
}
|
|
1770
1776
|
};
|
|
1771
|
-
|
|
1777
|
+
u.styles = [
|
|
1772
1778
|
L,
|
|
1773
1779
|
R,
|
|
1774
1780
|
T,
|
|
@@ -1776,55 +1782,55 @@ p.styles = [
|
|
|
1776
1782
|
];
|
|
1777
1783
|
v([
|
|
1778
1784
|
g({ type: Object })
|
|
1779
|
-
],
|
|
1785
|
+
], u.prototype, "translations", 2);
|
|
1780
1786
|
v([
|
|
1781
1787
|
g({ type: String })
|
|
1782
|
-
],
|
|
1788
|
+
], u.prototype, "locale", 2);
|
|
1783
1789
|
v([
|
|
1784
1790
|
g({ type: Object })
|
|
1785
|
-
],
|
|
1791
|
+
], u.prototype, "customer", 2);
|
|
1786
1792
|
v([
|
|
1787
1793
|
g({ type: Object })
|
|
1788
|
-
],
|
|
1794
|
+
], u.prototype, "subscriptions", 2);
|
|
1789
1795
|
v([
|
|
1790
1796
|
l()
|
|
1791
|
-
],
|
|
1797
|
+
], u.prototype, "editingContact", 2);
|
|
1792
1798
|
v([
|
|
1793
1799
|
l()
|
|
1794
|
-
],
|
|
1800
|
+
], u.prototype, "countryDropdownOpen", 2);
|
|
1795
1801
|
v([
|
|
1796
1802
|
l()
|
|
1797
|
-
],
|
|
1803
|
+
], u.prototype, "fieldErrors", 2);
|
|
1798
1804
|
v([
|
|
1799
1805
|
l()
|
|
1800
|
-
],
|
|
1806
|
+
], u.prototype, "editName", 2);
|
|
1801
1807
|
v([
|
|
1802
1808
|
l()
|
|
1803
|
-
],
|
|
1809
|
+
], u.prototype, "editAddress1", 2);
|
|
1804
1810
|
v([
|
|
1805
1811
|
l()
|
|
1806
|
-
],
|
|
1812
|
+
], u.prototype, "editAddress2", 2);
|
|
1807
1813
|
v([
|
|
1808
1814
|
l()
|
|
1809
|
-
],
|
|
1815
|
+
], u.prototype, "editPostalCode", 2);
|
|
1810
1816
|
v([
|
|
1811
1817
|
l()
|
|
1812
|
-
],
|
|
1818
|
+
], u.prototype, "editCity", 2);
|
|
1813
1819
|
v([
|
|
1814
1820
|
l()
|
|
1815
|
-
],
|
|
1821
|
+
], u.prototype, "editCountryCode", 2);
|
|
1816
1822
|
v([
|
|
1817
1823
|
l()
|
|
1818
|
-
],
|
|
1824
|
+
], u.prototype, "editWebUrl", 2);
|
|
1819
1825
|
v([
|
|
1820
1826
|
l()
|
|
1821
|
-
],
|
|
1827
|
+
], u.prototype, "editContactEmail", 2);
|
|
1822
1828
|
v([
|
|
1823
1829
|
l()
|
|
1824
|
-
],
|
|
1825
|
-
|
|
1830
|
+
], u.prototype, "localCustomer", 2);
|
|
1831
|
+
u = v([
|
|
1826
1832
|
C("wizard-step1-company")
|
|
1827
|
-
],
|
|
1833
|
+
], u);
|
|
1828
1834
|
var Y = Object.defineProperty, W = Object.getOwnPropertyDescriptor, E = (e, t, a, r) => {
|
|
1829
1835
|
for (var i = r > 1 ? void 0 : r ? W(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1830
1836
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
@@ -2592,7 +2598,7 @@ var J = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, y = (e, t,
|
|
|
2592
2598
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
2593
2599
|
return r && i && J(t, a, i), i;
|
|
2594
2600
|
};
|
|
2595
|
-
let
|
|
2601
|
+
let p = class extends _ {
|
|
2596
2602
|
constructor() {
|
|
2597
2603
|
super(...arguments), this.locale = "en-US", this.baseUrl = "", this.adminUrl = "", this.taskId = "", this.customerId = "", this.step = "welcome", this.userName = "User", this.userEmail = "", this.currentStep = 0, this.completedSteps = /* @__PURE__ */ new Set(), this.errorState = null, this.customer = null, this.customerSubscriptions = { content: [], totalNumberOfRecords: 0 }, this.visible = !0, this.i18n = new M(), this.httpService = null, this.pendingAuthToken = void 0, this.errorMessageListener = null;
|
|
2598
2604
|
}
|
|
@@ -2605,7 +2611,7 @@ let u = class extends _ {
|
|
|
2605
2611
|
];
|
|
2606
2612
|
}
|
|
2607
2613
|
connectedCallback() {
|
|
2608
|
-
super.connectedCallback(), this.currentStep =
|
|
2614
|
+
super.connectedCallback(), this.currentStep = p.stepMap[this.step] ?? 0, this.i18n.setLocale(this.locale), this.setupErrorMessageListener();
|
|
2609
2615
|
}
|
|
2610
2616
|
firstUpdated() {
|
|
2611
2617
|
this.updateComplete.then(() => {
|
|
@@ -2918,64 +2924,64 @@ let u = class extends _ {
|
|
|
2918
2924
|
`;
|
|
2919
2925
|
}
|
|
2920
2926
|
};
|
|
2921
|
-
|
|
2927
|
+
p.stepMap = {
|
|
2922
2928
|
welcome: 0,
|
|
2923
2929
|
company: 1,
|
|
2924
2930
|
administrators: 2,
|
|
2925
2931
|
"partner-access": 3,
|
|
2926
2932
|
complete: 4
|
|
2927
2933
|
};
|
|
2928
|
-
|
|
2934
|
+
p.styles = [
|
|
2929
2935
|
L,
|
|
2930
2936
|
R,
|
|
2931
2937
|
$`:host{display:block;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.overlay{position:fixed;inset:var(--vsn-customer-onboarding-wizard-navbar-height,var(--vsn-co-navbar-height,0px)) 0 0 0;background:var(--vsn-customer-onboarding-wizard-overlay-bg,var(--ga-color-miscellaneous-overlay));display:flex;align-items:center;justify-content:center;z-index:1000;}.wizard-container{background:var(--ga-color-white);width:780px;max-height:90vh;box-sizing:border-box;padding:var(--ga-size-spacing-05);border-radius:var(--ga-radius);border:1px solid var(--ga-color-cyan-80);display:flex;flex-direction:column;overflow:hidden;}.wizard-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;}h1.wizard-title{font-size:var(--ga-text-xl-size);line-height:var(--ga-text-xl-line-height);font-weight:var(--ga-font-weight-semibold);margin:0;padding-bottom:var(--ga-size-spacing-06);color:var(--ga-color-text-headings);text-align:left;letter-spacing:var(--ga-text-xl-tracking);}.error-actions{display:flex;justify-content:flex-end;padding-top:var(--ga-size-spacing-05);border-top:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-30);margin-top:var(--ga-size-spacing-05);}.error-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ga-size-spacing-04);padding:var(--ga-size-spacing-05);margin-bottom:var(--ga-size-spacing-06);background-color:var(--ga-color-surface-error);border:var(--ga-size-border-width-sm) solid var(--ga-color-border-error);border-radius:var(--ga-radius);animation:slideDown 0.3s ease-out;}@keyframes slideDown{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:translateY(0);}}.error-content{display:flex;align-items:flex-start;gap:var(--ga-size-spacing-04);flex:1;}.error-icon{width:24px;height:24px;color:var(--ga-color-error);flex-shrink:0;}.error-icon svg{width:24px;height:24px;}.error-text-container{display:flex;flex-direction:column;gap:var(--ga-size-spacing-01);flex:1;}.error-title{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-cyan-90);font-weight:600;margin:0;}.error-message{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-cyan-90);font-weight:400;margin:0;}.error-dismiss{background:none;border:none;padding:0;cursor:pointer;color:var(--ga-color-red-60);width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;opacity:0.7;transition:opacity 0.2s;}.error-dismiss:hover{opacity:1;}.error-dismiss:focus-visible{outline:var(--ga-size-border-width-md) solid var(--ga-color-border-focus);outline-offset:var(--ga-size-border-width-md);border-radius:var(--ga-radius);}.error-dismiss svg{width:20px;height:20px;}.step-indicators{display:flex;height:82px;align-items:flex-end;}.step-wrapper{flex:1;display:flex;align-items:flex-start;height:100%;box-sizing:border-box;padding:var(--ga-size-spacing-03) var(--ga-size-spacing-02) var(--ga-size-spacing-03) 0;border-top:var(--ga-size-border-width-md) solid var(--ga-color-surface-disabled);}.step-wrapper.active{border-top-width:var(--ga-size-border-width-lg);border-top-color:var(--ga-color-primary);}.step-wrapper.completed{border-top-color:var(--ga-color-success);}.step-indicator{display:flex;align-items:center;gap:var(--ga-size-spacing-02);padding-left:var(--ga-size-spacing-03);}.step-icon{width:24px;height:24px;border-radius:var(--ga-radius-round);background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--ga-color-primary);}.step-indicator.active .step-icon{color:var(--ga-color-primary);}.step-indicator.completed .step-icon{color:var(--ga-color-success);}.step-label{font-size:var(--ga-text-md-size);font-weight:500;color:var(--ga-color-primary);white-space:nowrap;letter-spacing:-0.1px}.step-indicator.active .step-label{color:var(--ga-color-text-headings);font-weight:500;}`
|
|
2932
2938
|
];
|
|
2933
2939
|
y([
|
|
2934
2940
|
g({ type: String })
|
|
2935
|
-
],
|
|
2941
|
+
], p.prototype, "locale", 2);
|
|
2936
2942
|
y([
|
|
2937
2943
|
g({ type: String })
|
|
2938
|
-
],
|
|
2944
|
+
], p.prototype, "baseUrl", 2);
|
|
2939
2945
|
y([
|
|
2940
2946
|
g({ type: String })
|
|
2941
|
-
],
|
|
2947
|
+
], p.prototype, "adminUrl", 2);
|
|
2942
2948
|
y([
|
|
2943
2949
|
g({ type: String })
|
|
2944
|
-
],
|
|
2950
|
+
], p.prototype, "taskId", 2);
|
|
2945
2951
|
y([
|
|
2946
2952
|
g({ type: String })
|
|
2947
|
-
],
|
|
2953
|
+
], p.prototype, "customerId", 2);
|
|
2948
2954
|
y([
|
|
2949
2955
|
g({ type: String })
|
|
2950
|
-
],
|
|
2956
|
+
], p.prototype, "step", 2);
|
|
2951
2957
|
y([
|
|
2952
2958
|
g({ attribute: "user-name" })
|
|
2953
|
-
],
|
|
2959
|
+
], p.prototype, "userName", 2);
|
|
2954
2960
|
y([
|
|
2955
2961
|
g({ attribute: "user-email" })
|
|
2956
|
-
],
|
|
2962
|
+
], p.prototype, "userEmail", 2);
|
|
2957
2963
|
y([
|
|
2958
2964
|
l()
|
|
2959
|
-
],
|
|
2965
|
+
], p.prototype, "currentStep", 2);
|
|
2960
2966
|
y([
|
|
2961
2967
|
l()
|
|
2962
|
-
],
|
|
2968
|
+
], p.prototype, "completedSteps", 2);
|
|
2963
2969
|
y([
|
|
2964
2970
|
l()
|
|
2965
|
-
],
|
|
2971
|
+
], p.prototype, "errorState", 2);
|
|
2966
2972
|
y([
|
|
2967
2973
|
l()
|
|
2968
|
-
],
|
|
2974
|
+
], p.prototype, "customer", 2);
|
|
2969
2975
|
y([
|
|
2970
2976
|
l()
|
|
2971
|
-
],
|
|
2977
|
+
], p.prototype, "customerSubscriptions", 2);
|
|
2972
2978
|
y([
|
|
2973
2979
|
l()
|
|
2974
|
-
],
|
|
2975
|
-
|
|
2980
|
+
], p.prototype, "visible", 2);
|
|
2981
|
+
p = y([
|
|
2976
2982
|
C("vsn-customer-onboarding-wizard")
|
|
2977
|
-
],
|
|
2983
|
+
], p);
|
|
2978
2984
|
export {
|
|
2979
|
-
|
|
2985
|
+
p as CustomerOnboardingWizard,
|
|
2980
2986
|
B as HttpService
|
|
2981
2987
|
};
|