@hiver/connector-agent 3.1.2-linkingerror-beta.0 → 3.1.2-linkingerror-beta.2
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/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
- package/features/write-form/store/slice.d.ts +1 -1
- package/features/write-form/store/slice.d.ts.map +1 -1
- package/index.es.js +23 -11
- package/index.umd.js +38 -38
- package/package.json +1 -1
- package/store/slice.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-linking.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,6CAA8C,MAAM,
|
|
1
|
+
{"version":3,"file":"card-linking.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/card-linking.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,6CAA8C,MAAM,4CAuK3E,CAAC"}
|
|
@@ -109,7 +109,7 @@ declare const unlinkCard: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
|
109
109
|
fulfilledMeta?: unknown;
|
|
110
110
|
rejectedMeta?: unknown;
|
|
111
111
|
}>;
|
|
112
|
-
declare const linkCard: import('@reduxjs/toolkit').AsyncThunk<
|
|
112
|
+
declare const linkCard: import('@reduxjs/toolkit').AsyncThunk<undefined, {
|
|
113
113
|
id: string;
|
|
114
114
|
externalResourceId: string;
|
|
115
115
|
channelType?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,KAAK,EAAsB,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/store/slice.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,KAAK,EAAsB,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,oBAAoB;;;;;;;;;;;mIAgH/B,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;cAES,MAAM,EAAE;iBAAe,MAAM;oBAAkB,MAAM;;;;;;;;;;EAuJlF,CAAC;AAEF,QAAA,MAAM,UAAU;YAIF,MAAM;UACR;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;KAAE;oBACxD,MAAM;iBACT,MAAM;sBACD,MAAM,IAAI;sBACV,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;;;;;;;;;EAgB7C,CAAC;AAEF,QAAA,MAAM,UAAU;YAIF,MAAM;UACR;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;KAAE;oBACxD,MAAM;iBACT,MAAM;wBACC,MAAM;kBACZ;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;KAAE;sBAC9D,MAAM,IAAI;sBACV,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI;;;;;;;;;;EAyB7C,CAAC;AAEF,QAAA,MAAM,UAAU;QAQR,MAAM;kBACI,MAAM;wBACA,MAAM;oBACV,MAAM;;;;;;;;;;EAIzB,CAAC;AAEF,QAAA,MAAM,QAAQ;QASJ,MAAM;wBACU,MAAM;kBACZ,MAAM;oBACJ,MAAM;;;;;;;;;;EAa3B,CAAC;AAEF,QAAA,MAAM,2BAA2B;;;;QAIvB,MAAM;iBACG,MAAM;oBACH,MAAM;wBACF,MAAM;kBACZ,MAAM;;;;;;;;;;EAmDzB,CAAC;AAEF,QAAA,MAAQ,UAAU,wFAAE,oBAAoB,oGAAE,2BAA2B,yGAAE,oBAAoB,kGAC7D,CAAC;;AAC/B,wBAA4C;AAC5C,OAAO,EACL,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACrB,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -7516,11 +7516,18 @@ const Qc = {
|
|
|
7516
7516
|
args: t,
|
|
7517
7517
|
channelType: n,
|
|
7518
7518
|
isRefresh: r
|
|
7519
|
-
}) => {
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7519
|
+
}, { rejectWithValue: i }) => {
|
|
7520
|
+
var o;
|
|
7521
|
+
try {
|
|
7522
|
+
const s = await nv(e, t, n), l = s == null ? void 0 : s.data;
|
|
7523
|
+
return l ? (r && He({ message: Vd, type: On }), { data: cd(l) }) : (r && He({ message: Gd, type: Ct }), {
|
|
7524
|
+
data: null
|
|
7525
|
+
});
|
|
7526
|
+
} catch (s) {
|
|
7527
|
+
return i({
|
|
7528
|
+
status: (o = s.response) == null ? void 0 : o.status
|
|
7529
|
+
});
|
|
7530
|
+
}
|
|
7524
7531
|
}
|
|
7525
7532
|
), { resetState: v5, resetPreviewCardData: rv } = Zd.actions, iv = Zd.reducer, mi = "/v1/api", ov = `${mi}/connectors/forms/list`, sv = `${mi}/connectors/cards/:id/unlink`, av = `${mi}/connectors/forms/:id/link`, cv = `${mi}/connectors/form/:formId`, lv = `${mi}/connectors/forms/:formId/data`, uv = ({
|
|
7526
7533
|
inboxIds: e,
|
|
@@ -7782,8 +7789,15 @@ Do you want to continue?`, Av = "Select an object to create", Tv = "Select an ob
|
|
|
7782
7789
|
externalResourceId: t,
|
|
7783
7790
|
channelType: n,
|
|
7784
7791
|
conversationId: r
|
|
7785
|
-
}) => {
|
|
7786
|
-
|
|
7792
|
+
}, { rejectWithValue: i }) => {
|
|
7793
|
+
var o;
|
|
7794
|
+
try {
|
|
7795
|
+
await fv(e, t, n, r);
|
|
7796
|
+
} catch (s) {
|
|
7797
|
+
return i({
|
|
7798
|
+
status: (o = s.response) == null ? void 0 : o.status
|
|
7799
|
+
});
|
|
7800
|
+
}
|
|
7787
7801
|
}
|
|
7788
7802
|
), Hi = nn(
|
|
7789
7803
|
"connectorCardLibrary/fetchCurrentResourceDetails",
|
|
@@ -13404,8 +13418,7 @@ const fo = (e) => {
|
|
|
13404
13418
|
externalResourceId: g
|
|
13405
13419
|
}, p = i === J.LOADING, m = o === J.LOADING, I = () => {
|
|
13406
13420
|
!l && c && "value" in c && (f(Z1, { object_type: c.label }), n(ur({ id: String(c == null ? void 0 : c.value), args: d })).unwrap().catch((R) => {
|
|
13407
|
-
|
|
13408
|
-
((D = R == null ? void 0 : R.response) == null ? void 0 : D.status) === 400 && He({ message: nl, type: Ct }), He({ message: pv, type: Ct });
|
|
13421
|
+
(R == null ? void 0 : R.status) === 400 ? He({ message: nl, type: Ct }) : He({ message: pv, type: Ct });
|
|
13409
13422
|
})), a((R) => !R);
|
|
13410
13423
|
}, C = () => {
|
|
13411
13424
|
c && "value" in c && h && n(ji({ id: String(c.value), externalResourceId: g, conversationId: h })).unwrap().then(() => {
|
|
@@ -13414,8 +13427,7 @@ const fo = (e) => {
|
|
|
13414
13427
|
input_type: g
|
|
13415
13428
|
}), He({ message: mv, type: On }), e(!1), t();
|
|
13416
13429
|
}).catch((R) => {
|
|
13417
|
-
|
|
13418
|
-
((D = R == null ? void 0 : R.response) == null ? void 0 : D.status) === 400 ? He({ message: nl, type: Ct }) : ((L = R == null ? void 0 : R.response) == null ? void 0 : L.status) === 409 && He({ message: gv, type: Ct }), He({ message: bv, type: Ct });
|
|
13430
|
+
(R == null ? void 0 : R.status) === 400 ? He({ message: nl, type: Ct }) : (R == null ? void 0 : R.status) === 409 ? He({ message: gv, type: Ct }) : He({ message: bv, type: Ct });
|
|
13419
13431
|
});
|
|
13420
13432
|
}, x = () => {
|
|
13421
13433
|
e(!1), a(!1);
|